configure 692 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for xf86-video-intel 2.99.916.
  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. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  259. $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
  260. $0: about your system, including any error possibly output
  261. $0: before this message. Then install a modern shell, or
  262. $0: manually run the script under such a shell if you do
  263. $0: have one."
  264. fi
  265. exit 1
  266. fi
  267. fi
  268. fi
  269. SHELL=${CONFIG_SHELL-/bin/sh}
  270. export SHELL
  271. # Unset more variables known to interfere with behavior of common tools.
  272. CLICOLOR_FORCE= GREP_OPTIONS=
  273. unset CLICOLOR_FORCE GREP_OPTIONS
  274. ## --------------------- ##
  275. ## M4sh Shell Functions. ##
  276. ## --------------------- ##
  277. # as_fn_unset VAR
  278. # ---------------
  279. # Portably unset VAR.
  280. as_fn_unset ()
  281. {
  282. { eval $1=; unset $1;}
  283. }
  284. as_unset=as_fn_unset
  285. # as_fn_set_status STATUS
  286. # -----------------------
  287. # Set $? to STATUS, without forking.
  288. as_fn_set_status ()
  289. {
  290. return $1
  291. } # as_fn_set_status
  292. # as_fn_exit STATUS
  293. # -----------------
  294. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  295. as_fn_exit ()
  296. {
  297. set +e
  298. as_fn_set_status $1
  299. exit $1
  300. } # as_fn_exit
  301. # as_fn_mkdir_p
  302. # -------------
  303. # Create "$as_dir" as a directory, including parents if necessary.
  304. as_fn_mkdir_p ()
  305. {
  306. case $as_dir in #(
  307. -*) as_dir=./$as_dir;;
  308. esac
  309. test -d "$as_dir" || eval $as_mkdir_p || {
  310. as_dirs=
  311. while :; do
  312. case $as_dir in #(
  313. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  314. *) as_qdir=$as_dir;;
  315. esac
  316. as_dirs="'$as_qdir' $as_dirs"
  317. as_dir=`$as_dirname -- "$as_dir" ||
  318. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  319. X"$as_dir" : 'X\(//\)[^/]' \| \
  320. X"$as_dir" : 'X\(//\)$' \| \
  321. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  322. $as_echo X"$as_dir" |
  323. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)[^/].*/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\/\)$/{
  332. s//\1/
  333. q
  334. }
  335. /^X\(\/\).*/{
  336. s//\1/
  337. q
  338. }
  339. s/.*/./; q'`
  340. test -d "$as_dir" && break
  341. done
  342. test -z "$as_dirs" || eval "mkdir $as_dirs"
  343. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  344. } # as_fn_mkdir_p
  345. # as_fn_executable_p FILE
  346. # -----------------------
  347. # Test if FILE is an executable regular file.
  348. as_fn_executable_p ()
  349. {
  350. test -f "$1" && test -x "$1"
  351. } # as_fn_executable_p
  352. # as_fn_append VAR VALUE
  353. # ----------------------
  354. # Append the text in VALUE to the end of the definition contained in VAR. Take
  355. # advantage of any shell optimizations that allow amortized linear growth over
  356. # repeated appends, instead of the typical quadratic growth present in naive
  357. # implementations.
  358. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  359. eval 'as_fn_append ()
  360. {
  361. eval $1+=\$2
  362. }'
  363. else
  364. as_fn_append ()
  365. {
  366. eval $1=\$$1\$2
  367. }
  368. fi # as_fn_append
  369. # as_fn_arith ARG...
  370. # ------------------
  371. # Perform arithmetic evaluation on the ARGs, and store the result in the
  372. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  373. # must be portable across $(()) and expr.
  374. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  375. eval 'as_fn_arith ()
  376. {
  377. as_val=$(( $* ))
  378. }'
  379. else
  380. as_fn_arith ()
  381. {
  382. as_val=`expr "$@" || test $? -eq 1`
  383. }
  384. fi # as_fn_arith
  385. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  386. # ----------------------------------------
  387. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  388. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  389. # script with STATUS, using 1 if that was 0.
  390. as_fn_error ()
  391. {
  392. as_status=$1; test $as_status -eq 0 && as_status=1
  393. if test "$4"; then
  394. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  395. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  396. fi
  397. $as_echo "$as_me: error: $2" >&2
  398. as_fn_exit $as_status
  399. } # as_fn_error
  400. if expr a : '\(a\)' >/dev/null 2>&1 &&
  401. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  402. as_expr=expr
  403. else
  404. as_expr=false
  405. fi
  406. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  407. as_basename=basename
  408. else
  409. as_basename=false
  410. fi
  411. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  412. as_dirname=dirname
  413. else
  414. as_dirname=false
  415. fi
  416. as_me=`$as_basename -- "$0" ||
  417. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  418. X"$0" : 'X\(//\)$' \| \
  419. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  420. $as_echo X/"$0" |
  421. sed '/^.*\/\([^/][^/]*\)\/*$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\/\)$/{
  426. s//\1/
  427. q
  428. }
  429. /^X\/\(\/\).*/{
  430. s//\1/
  431. q
  432. }
  433. s/.*/./; q'`
  434. # Avoid depending upon Character Ranges.
  435. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  436. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  437. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  438. as_cr_digits='0123456789'
  439. as_cr_alnum=$as_cr_Letters$as_cr_digits
  440. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  441. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  442. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  443. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  444. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  445. sed -n '
  446. p
  447. /[$]LINENO/=
  448. ' <$as_myself |
  449. sed '
  450. s/[$]LINENO.*/&-/
  451. t lineno
  452. b
  453. :lineno
  454. N
  455. :loop
  456. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  457. t loop
  458. s/-\n.*//
  459. ' >$as_me.lineno &&
  460. chmod +x "$as_me.lineno" ||
  461. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  462. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  463. # already done that, so ensure we don't try to do so again and fall
  464. # in an infinite loop. This has already happened in practice.
  465. _as_can_reexec=no; export _as_can_reexec
  466. # Don't try to exec as it changes $[0], causing all sort of problems
  467. # (the dirname of $[0] is not the place where we might find the
  468. # original and so on. Autoconf is especially sensitive to this).
  469. . "./$as_me.lineno"
  470. # Exit status is that of the last command.
  471. exit
  472. }
  473. ECHO_C= ECHO_N= ECHO_T=
  474. case `echo -n x` in #(((((
  475. -n*)
  476. case `echo 'xy\c'` in
  477. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  478. xy) ECHO_C='\c';;
  479. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  480. ECHO_T=' ';;
  481. esac;;
  482. *)
  483. ECHO_N='-n';;
  484. esac
  485. rm -f conf$$ conf$$.exe conf$$.file
  486. if test -d conf$$.dir; then
  487. rm -f conf$$.dir/conf$$.file
  488. else
  489. rm -f conf$$.dir
  490. mkdir conf$$.dir 2>/dev/null
  491. fi
  492. if (echo >conf$$.file) 2>/dev/null; then
  493. if ln -s conf$$.file conf$$ 2>/dev/null; then
  494. as_ln_s='ln -s'
  495. # ... but there are two gotchas:
  496. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  497. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  498. # In both cases, we have to default to `cp -pR'.
  499. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  500. as_ln_s='cp -pR'
  501. elif ln conf$$.file conf$$ 2>/dev/null; then
  502. as_ln_s=ln
  503. else
  504. as_ln_s='cp -pR'
  505. fi
  506. else
  507. as_ln_s='cp -pR'
  508. fi
  509. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  510. rmdir conf$$.dir 2>/dev/null
  511. if mkdir -p . 2>/dev/null; then
  512. as_mkdir_p='mkdir -p "$as_dir"'
  513. else
  514. test -d ./-p && rmdir ./-p
  515. as_mkdir_p=false
  516. fi
  517. as_test_x='test -x'
  518. as_executable_p=as_fn_executable_p
  519. # Sed expression to map a string onto a valid CPP name.
  520. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  521. # Sed expression to map a string onto a valid variable name.
  522. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  523. SHELL=${CONFIG_SHELL-/bin/sh}
  524. test -n "$DJDIR" || exec 7<&0 </dev/null
  525. exec 6>&1
  526. # Name of the host.
  527. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  528. # so uname gets run too.
  529. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  530. #
  531. # Initializations.
  532. #
  533. ac_default_prefix=/usr/local
  534. ac_clean_files=
  535. ac_config_libobj_dir=.
  536. LIBOBJS=
  537. cross_compiling=no
  538. subdirs=
  539. MFLAGS=
  540. MAKEFLAGS=
  541. # Identity of this package.
  542. PACKAGE_NAME='xf86-video-intel'
  543. PACKAGE_TARNAME='xf86-video-intel'
  544. PACKAGE_VERSION='2.99.916'
  545. PACKAGE_STRING='xf86-video-intel 2.99.916'
  546. PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
  547. PACKAGE_URL=''
  548. ac_unique_file="Makefile.am"
  549. # Factoring default headers for most tests.
  550. ac_includes_default="\
  551. #include <stdio.h>
  552. #ifdef HAVE_SYS_TYPES_H
  553. # include <sys/types.h>
  554. #endif
  555. #ifdef HAVE_SYS_STAT_H
  556. # include <sys/stat.h>
  557. #endif
  558. #ifdef STDC_HEADERS
  559. # include <stdlib.h>
  560. # include <stddef.h>
  561. #else
  562. # ifdef HAVE_STDLIB_H
  563. # include <stdlib.h>
  564. # endif
  565. #endif
  566. #ifdef HAVE_STRING_H
  567. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  568. # include <memory.h>
  569. # endif
  570. # include <string.h>
  571. #endif
  572. #ifdef HAVE_STRINGS_H
  573. # include <strings.h>
  574. #endif
  575. #ifdef HAVE_INTTYPES_H
  576. # include <inttypes.h>
  577. #endif
  578. #ifdef HAVE_STDINT_H
  579. # include <stdint.h>
  580. #endif
  581. #ifdef HAVE_UNISTD_H
  582. # include <unistd.h>
  583. #endif"
  584. ac_config_libobj_dir=libobj
  585. ac_subst_vars='am__EXEEXT_FALSE
  586. am__EXEEXT_TRUE
  587. LTLIBOBJS
  588. LIBEXEC_PATH
  589. PREFIX_PATH
  590. moduledir
  591. DRIVER_NAME
  592. LIBOBJS
  593. VALGRIND_FALSE
  594. VALGRIND_TRUE
  595. VALGRIND_LIBS
  596. VALGRIND_CFLAGS
  597. FULL_DEBUG_FALSE
  598. FULL_DEBUG_TRUE
  599. DEBUG_FALSE
  600. DEBUG_TRUE
  601. CLOCK_GETTIME_LIBS
  602. USE_ASYNC_SWAP_FALSE
  603. USE_ASYNC_SWAP_TRUE
  604. USE_CREATE2_FALSE
  605. USE_CREATE2_TRUE
  606. USE_RENDERNODE_FALSE
  607. USE_RENDERNODE_TRUE
  608. XVMC_FALSE
  609. XVMC_TRUE
  610. XVMCLIB_LIBS
  611. XVMCLIB_CFLAGS
  612. SNA_FALSE
  613. SNA_TRUE
  614. GLAMOR_FALSE
  615. GLAMOR_TRUE
  616. UXA_FALSE
  617. UXA_TRUE
  618. PRESENT_FALSE
  619. PRESENT_TRUE
  620. PRESENT_LIBS
  621. PRESENT_CFLAGS
  622. DRI3_FALSE
  623. DRI3_TRUE
  624. DRI2_FALSE
  625. DRI2_TRUE
  626. DRI3_LIBS
  627. DRI3_CFLAGS
  628. DRI_DRIVER_PATH
  629. DRI2_LIBS
  630. DRI2_CFLAGS
  631. DRI1_FALSE
  632. DRI1_TRUE
  633. DRI1_LIBS
  634. DRI1_CFLAGS
  635. UMS_FALSE
  636. UMS_TRUE
  637. KMS_FALSE
  638. KMS_TRUE
  639. XAA_FALSE
  640. XAA_TRUE
  641. DGA_FALSE
  642. DGA_TRUE
  643. XORG_LIBS
  644. XORG_CFLAGS
  645. LIBGLAMOR_EGL_LIBS
  646. LIBGLAMOR_EGL_CFLAGS
  647. LIBGLAMOR_LIBS
  648. LIBGLAMOR_CFLAGS
  649. DRMINTEL_LIBS
  650. DRMINTEL_CFLAGS
  651. PCIACCESS_LIBS
  652. PCIACCESS_CFLAGS
  653. DRM_LIBS
  654. DRM_CFLAGS
  655. BUILD_TOOLS_FALSE
  656. BUILD_TOOLS_TRUE
  657. IVO_LIBS
  658. IVO_CFLAGS
  659. IVO_EXTRA_LIBS
  660. IVO_EXTRA_CFLAGS
  661. X11_SHM_FALSE
  662. X11_SHM_TRUE
  663. X11_DRI3_FALSE
  664. X11_DRI3_TRUE
  665. X11_DRI3_LIBS
  666. X11_DRI3_CFLAGS
  667. HAVE_X11_FALSE
  668. HAVE_X11_TRUE
  669. X11_LIBS
  670. X11_CFLAGS
  671. UDEV_LIBS
  672. UDEV_CFLAGS
  673. HAVE_GEN4ASM_FALSE
  674. HAVE_GEN4ASM_TRUE
  675. INTEL_GEN4ASM
  676. GEN4ASM_LIBS
  677. GEN4ASM_CFLAGS
  678. HAVE_DOT_GIT_FALSE
  679. HAVE_DOT_GIT_TRUE
  680. BUILD_BACKLIGHT_HELPER_FALSE
  681. BUILD_BACKLIGHT_HELPER_TRUE
  682. OTOOL64
  683. OTOOL
  684. LIPO
  685. NMEDIT
  686. DSYMUTIL
  687. MANIFEST_TOOL
  688. RANLIB
  689. ac_ct_AR
  690. AR
  691. DLLTOOL
  692. OBJDUMP
  693. LN_S
  694. NM
  695. ac_ct_DUMPBIN
  696. DUMPBIN
  697. LD
  698. FGREP
  699. LIBTOOL
  700. NOWARNFLAGS
  701. AM_BACKSLASH
  702. AM_DEFAULT_VERBOSITY
  703. AM_DEFAULT_V
  704. AM_V
  705. MAN_SUBSTS
  706. XORG_MAN_PAGE
  707. ADMIN_MAN_DIR
  708. DRIVER_MAN_DIR
  709. MISC_MAN_DIR
  710. FILE_MAN_DIR
  711. LIB_MAN_DIR
  712. APP_MAN_DIR
  713. ADMIN_MAN_SUFFIX
  714. DRIVER_MAN_SUFFIX
  715. MISC_MAN_SUFFIX
  716. FILE_MAN_SUFFIX
  717. LIB_MAN_SUFFIX
  718. APP_MAN_SUFFIX
  719. SED
  720. host_os
  721. host_vendor
  722. host_cpu
  723. host
  724. build_os
  725. build_vendor
  726. build_cpu
  727. build
  728. INSTALL_CMD
  729. PKG_CONFIG_LIBDIR
  730. PKG_CONFIG_PATH
  731. PKG_CONFIG
  732. CHANGELOG_CMD
  733. STRICT_CFLAGS
  734. CWARNFLAGS
  735. BASE_CFLAGS
  736. EGREP
  737. GREP
  738. CPP
  739. am__fastdepCC_FALSE
  740. am__fastdepCC_TRUE
  741. CCDEPMODE
  742. am__nodep
  743. AMDEPBACKSLASH
  744. AMDEP_FALSE
  745. AMDEP_TRUE
  746. am__quote
  747. am__include
  748. DEPDIR
  749. OBJEXT
  750. EXEEXT
  751. ac_ct_CC
  752. CPPFLAGS
  753. LDFLAGS
  754. CFLAGS
  755. CC
  756. am__untar
  757. am__tar
  758. AMTAR
  759. am__leading_dot
  760. SET_MAKE
  761. AWK
  762. mkdir_p
  763. MKDIR_P
  764. INSTALL_STRIP_PROGRAM
  765. STRIP
  766. install_sh
  767. MAKEINFO
  768. AUTOHEADER
  769. AUTOMAKE
  770. AUTOCONF
  771. ACLOCAL
  772. VERSION
  773. PACKAGE
  774. CYGPATH_W
  775. am__isrc
  776. INSTALL_DATA
  777. INSTALL_SCRIPT
  778. INSTALL_PROGRAM
  779. target_alias
  780. host_alias
  781. build_alias
  782. LIBS
  783. ECHO_T
  784. ECHO_N
  785. ECHO_C
  786. DEFS
  787. mandir
  788. localedir
  789. libdir
  790. psdir
  791. pdfdir
  792. dvidir
  793. htmldir
  794. infodir
  795. docdir
  796. oldincludedir
  797. includedir
  798. localstatedir
  799. sharedstatedir
  800. sysconfdir
  801. datadir
  802. datarootdir
  803. libexecdir
  804. sbindir
  805. bindir
  806. program_transform_name
  807. prefix
  808. exec_prefix
  809. PACKAGE_URL
  810. PACKAGE_BUGREPORT
  811. PACKAGE_STRING
  812. PACKAGE_VERSION
  813. PACKAGE_TARNAME
  814. PACKAGE_NAME
  815. PATH_SEPARATOR
  816. SHELL'
  817. ac_subst_files=''
  818. ac_user_opts='
  819. enable_option_checking
  820. enable_dependency_tracking
  821. enable_selective_werror
  822. enable_strict_compilation
  823. enable_silent_rules
  824. enable_static
  825. enable_shared
  826. with_pic
  827. enable_fast_install
  828. with_gnu_ld
  829. with_sysroot
  830. enable_libtool_lock
  831. enable_largefile
  832. enable_backlight
  833. enable_backlight_helper
  834. with_builderstring
  835. enable_gen4asm
  836. with_gen4asm
  837. enable_udev
  838. enable_tools
  839. with_xorg_module_dir
  840. enable_dri
  841. enable_dri1
  842. enable_dri2
  843. enable_dri3
  844. enable_xvmc
  845. enable_kms
  846. enable_ums
  847. enable_kms_only
  848. enable_ums_only
  849. enable_sna
  850. enable_uxa
  851. enable_glamor
  852. enable_xaa
  853. enable_dga
  854. with_default_accel
  855. enable_tear_free
  856. enable_rendernode
  857. enable_create2
  858. enable_async_swap
  859. enable_debug
  860. enable_valgrind
  861. '
  862. ac_precious_vars='build_alias
  863. host_alias
  864. target_alias
  865. CC
  866. CFLAGS
  867. LDFLAGS
  868. LIBS
  869. CPPFLAGS
  870. CPP
  871. PKG_CONFIG
  872. PKG_CONFIG_PATH
  873. PKG_CONFIG_LIBDIR
  874. GEN4ASM_CFLAGS
  875. GEN4ASM_LIBS
  876. UDEV_CFLAGS
  877. UDEV_LIBS
  878. X11_CFLAGS
  879. X11_LIBS
  880. X11_DRI3_CFLAGS
  881. X11_DRI3_LIBS
  882. IVO_EXTRA_CFLAGS
  883. IVO_EXTRA_LIBS
  884. IVO_CFLAGS
  885. IVO_LIBS
  886. DRM_CFLAGS
  887. DRM_LIBS
  888. PCIACCESS_CFLAGS
  889. PCIACCESS_LIBS
  890. DRMINTEL_CFLAGS
  891. DRMINTEL_LIBS
  892. LIBGLAMOR_CFLAGS
  893. LIBGLAMOR_LIBS
  894. LIBGLAMOR_EGL_CFLAGS
  895. LIBGLAMOR_EGL_LIBS
  896. XORG_CFLAGS
  897. XORG_LIBS
  898. DRI1_CFLAGS
  899. DRI1_LIBS
  900. DRI2_CFLAGS
  901. DRI2_LIBS
  902. DRI3_CFLAGS
  903. DRI3_LIBS
  904. PRESENT_CFLAGS
  905. PRESENT_LIBS
  906. XVMCLIB_CFLAGS
  907. XVMCLIB_LIBS
  908. VALGRIND_CFLAGS
  909. VALGRIND_LIBS'
  910. # Initialize some variables set by options.
  911. ac_init_help=
  912. ac_init_version=false
  913. ac_unrecognized_opts=
  914. ac_unrecognized_sep=
  915. # The variables have the same names as the options, with
  916. # dashes changed to underlines.
  917. cache_file=/dev/null
  918. exec_prefix=NONE
  919. no_create=
  920. no_recursion=
  921. prefix=NONE
  922. program_prefix=NONE
  923. program_suffix=NONE
  924. program_transform_name=s,x,x,
  925. silent=
  926. site=
  927. srcdir=
  928. verbose=
  929. x_includes=NONE
  930. x_libraries=NONE
  931. # Installation directory options.
  932. # These are left unexpanded so users can "make install exec_prefix=/foo"
  933. # and all the variables that are supposed to be based on exec_prefix
  934. # by default will actually change.
  935. # Use braces instead of parens because sh, perl, etc. also accept them.
  936. # (The list follows the same order as the GNU Coding Standards.)
  937. bindir='${exec_prefix}/bin'
  938. sbindir='${exec_prefix}/sbin'
  939. libexecdir='${exec_prefix}/libexec'
  940. datarootdir='${prefix}/share'
  941. datadir='${datarootdir}'
  942. sysconfdir='${prefix}/etc'
  943. sharedstatedir='${prefix}/com'
  944. localstatedir='${prefix}/var'
  945. includedir='${prefix}/include'
  946. oldincludedir='/usr/include'
  947. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  948. infodir='${datarootdir}/info'
  949. htmldir='${docdir}'
  950. dvidir='${docdir}'
  951. pdfdir='${docdir}'
  952. psdir='${docdir}'
  953. libdir='${exec_prefix}/lib'
  954. localedir='${datarootdir}/locale'
  955. mandir='${datarootdir}/man'
  956. ac_prev=
  957. ac_dashdash=
  958. for ac_option
  959. do
  960. # If the previous option needs an argument, assign it.
  961. if test -n "$ac_prev"; then
  962. eval $ac_prev=\$ac_option
  963. ac_prev=
  964. continue
  965. fi
  966. case $ac_option in
  967. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  968. *=) ac_optarg= ;;
  969. *) ac_optarg=yes ;;
  970. esac
  971. # Accept the important Cygnus configure options, so we can diagnose typos.
  972. case $ac_dashdash$ac_option in
  973. --)
  974. ac_dashdash=yes ;;
  975. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  976. ac_prev=bindir ;;
  977. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  978. bindir=$ac_optarg ;;
  979. -build | --build | --buil | --bui | --bu)
  980. ac_prev=build_alias ;;
  981. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  982. build_alias=$ac_optarg ;;
  983. -cache-file | --cache-file | --cache-fil | --cache-fi \
  984. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  985. ac_prev=cache_file ;;
  986. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  987. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  988. cache_file=$ac_optarg ;;
  989. --config-cache | -C)
  990. cache_file=config.cache ;;
  991. -datadir | --datadir | --datadi | --datad)
  992. ac_prev=datadir ;;
  993. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  994. datadir=$ac_optarg ;;
  995. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  996. | --dataroo | --dataro | --datar)
  997. ac_prev=datarootdir ;;
  998. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  999. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1000. datarootdir=$ac_optarg ;;
  1001. -disable-* | --disable-*)
  1002. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1003. # Reject names that are not valid shell variable names.
  1004. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1005. as_fn_error $? "invalid feature name: $ac_useropt"
  1006. ac_useropt_orig=$ac_useropt
  1007. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1008. case $ac_user_opts in
  1009. *"
  1010. "enable_$ac_useropt"
  1011. "*) ;;
  1012. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1013. ac_unrecognized_sep=', ';;
  1014. esac
  1015. eval enable_$ac_useropt=no ;;
  1016. -docdir | --docdir | --docdi | --doc | --do)
  1017. ac_prev=docdir ;;
  1018. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1019. docdir=$ac_optarg ;;
  1020. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1021. ac_prev=dvidir ;;
  1022. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1023. dvidir=$ac_optarg ;;
  1024. -enable-* | --enable-*)
  1025. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1026. # Reject names that are not valid shell variable names.
  1027. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1028. as_fn_error $? "invalid feature name: $ac_useropt"
  1029. ac_useropt_orig=$ac_useropt
  1030. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1031. case $ac_user_opts in
  1032. *"
  1033. "enable_$ac_useropt"
  1034. "*) ;;
  1035. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1036. ac_unrecognized_sep=', ';;
  1037. esac
  1038. eval enable_$ac_useropt=\$ac_optarg ;;
  1039. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1040. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1041. | --exec | --exe | --ex)
  1042. ac_prev=exec_prefix ;;
  1043. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1044. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1045. | --exec=* | --exe=* | --ex=*)
  1046. exec_prefix=$ac_optarg ;;
  1047. -gas | --gas | --ga | --g)
  1048. # Obsolete; use --with-gas.
  1049. with_gas=yes ;;
  1050. -help | --help | --hel | --he | -h)
  1051. ac_init_help=long ;;
  1052. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1053. ac_init_help=recursive ;;
  1054. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1055. ac_init_help=short ;;
  1056. -host | --host | --hos | --ho)
  1057. ac_prev=host_alias ;;
  1058. -host=* | --host=* | --hos=* | --ho=*)
  1059. host_alias=$ac_optarg ;;
  1060. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1061. ac_prev=htmldir ;;
  1062. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1063. | --ht=*)
  1064. htmldir=$ac_optarg ;;
  1065. -includedir | --includedir | --includedi | --included | --include \
  1066. | --includ | --inclu | --incl | --inc)
  1067. ac_prev=includedir ;;
  1068. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1069. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1070. includedir=$ac_optarg ;;
  1071. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1072. ac_prev=infodir ;;
  1073. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1074. infodir=$ac_optarg ;;
  1075. -libdir | --libdir | --libdi | --libd)
  1076. ac_prev=libdir ;;
  1077. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1078. libdir=$ac_optarg ;;
  1079. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1080. | --libexe | --libex | --libe)
  1081. ac_prev=libexecdir ;;
  1082. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1083. | --libexe=* | --libex=* | --libe=*)
  1084. libexecdir=$ac_optarg ;;
  1085. -localedir | --localedir | --localedi | --localed | --locale)
  1086. ac_prev=localedir ;;
  1087. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1088. localedir=$ac_optarg ;;
  1089. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1090. | --localstate | --localstat | --localsta | --localst | --locals)
  1091. ac_prev=localstatedir ;;
  1092. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1093. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1094. localstatedir=$ac_optarg ;;
  1095. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1096. ac_prev=mandir ;;
  1097. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1098. mandir=$ac_optarg ;;
  1099. -nfp | --nfp | --nf)
  1100. # Obsolete; use --without-fp.
  1101. with_fp=no ;;
  1102. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1103. | --no-cr | --no-c | -n)
  1104. no_create=yes ;;
  1105. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1106. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1107. no_recursion=yes ;;
  1108. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1109. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1110. | --oldin | --oldi | --old | --ol | --o)
  1111. ac_prev=oldincludedir ;;
  1112. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1113. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1114. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1115. oldincludedir=$ac_optarg ;;
  1116. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1117. ac_prev=prefix ;;
  1118. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1119. prefix=$ac_optarg ;;
  1120. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1121. | --program-pre | --program-pr | --program-p)
  1122. ac_prev=program_prefix ;;
  1123. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1124. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1125. program_prefix=$ac_optarg ;;
  1126. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1127. | --program-suf | --program-su | --program-s)
  1128. ac_prev=program_suffix ;;
  1129. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1130. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1131. program_suffix=$ac_optarg ;;
  1132. -program-transform-name | --program-transform-name \
  1133. | --program-transform-nam | --program-transform-na \
  1134. | --program-transform-n | --program-transform- \
  1135. | --program-transform | --program-transfor \
  1136. | --program-transfo | --program-transf \
  1137. | --program-trans | --program-tran \
  1138. | --progr-tra | --program-tr | --program-t)
  1139. ac_prev=program_transform_name ;;
  1140. -program-transform-name=* | --program-transform-name=* \
  1141. | --program-transform-nam=* | --program-transform-na=* \
  1142. | --program-transform-n=* | --program-transform-=* \
  1143. | --program-transform=* | --program-transfor=* \
  1144. | --program-transfo=* | --program-transf=* \
  1145. | --program-trans=* | --program-tran=* \
  1146. | --progr-tra=* | --program-tr=* | --program-t=*)
  1147. program_transform_name=$ac_optarg ;;
  1148. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1149. ac_prev=pdfdir ;;
  1150. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1151. pdfdir=$ac_optarg ;;
  1152. -psdir | --psdir | --psdi | --psd | --ps)
  1153. ac_prev=psdir ;;
  1154. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1155. psdir=$ac_optarg ;;
  1156. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1157. | -silent | --silent | --silen | --sile | --sil)
  1158. silent=yes ;;
  1159. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1160. ac_prev=sbindir ;;
  1161. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1162. | --sbi=* | --sb=*)
  1163. sbindir=$ac_optarg ;;
  1164. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1165. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1166. | --sharedst | --shareds | --shared | --share | --shar \
  1167. | --sha | --sh)
  1168. ac_prev=sharedstatedir ;;
  1169. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1170. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1171. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1172. | --sha=* | --sh=*)
  1173. sharedstatedir=$ac_optarg ;;
  1174. -site | --site | --sit)
  1175. ac_prev=site ;;
  1176. -site=* | --site=* | --sit=*)
  1177. site=$ac_optarg ;;
  1178. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1179. ac_prev=srcdir ;;
  1180. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1181. srcdir=$ac_optarg ;;
  1182. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1183. | --syscon | --sysco | --sysc | --sys | --sy)
  1184. ac_prev=sysconfdir ;;
  1185. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1186. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1187. sysconfdir=$ac_optarg ;;
  1188. -target | --target | --targe | --targ | --tar | --ta | --t)
  1189. ac_prev=target_alias ;;
  1190. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1191. target_alias=$ac_optarg ;;
  1192. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1193. verbose=yes ;;
  1194. -version | --version | --versio | --versi | --vers | -V)
  1195. ac_init_version=: ;;
  1196. -with-* | --with-*)
  1197. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1198. # Reject names that are not valid shell variable names.
  1199. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1200. as_fn_error $? "invalid package name: $ac_useropt"
  1201. ac_useropt_orig=$ac_useropt
  1202. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1203. case $ac_user_opts in
  1204. *"
  1205. "with_$ac_useropt"
  1206. "*) ;;
  1207. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1208. ac_unrecognized_sep=', ';;
  1209. esac
  1210. eval with_$ac_useropt=\$ac_optarg ;;
  1211. -without-* | --without-*)
  1212. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1213. # Reject names that are not valid shell variable names.
  1214. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1215. as_fn_error $? "invalid package name: $ac_useropt"
  1216. ac_useropt_orig=$ac_useropt
  1217. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1218. case $ac_user_opts in
  1219. *"
  1220. "with_$ac_useropt"
  1221. "*) ;;
  1222. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1223. ac_unrecognized_sep=', ';;
  1224. esac
  1225. eval with_$ac_useropt=no ;;
  1226. --x)
  1227. # Obsolete; use --with-x.
  1228. with_x=yes ;;
  1229. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1230. | --x-incl | --x-inc | --x-in | --x-i)
  1231. ac_prev=x_includes ;;
  1232. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1233. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1234. x_includes=$ac_optarg ;;
  1235. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1236. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1237. ac_prev=x_libraries ;;
  1238. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1239. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1240. x_libraries=$ac_optarg ;;
  1241. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1242. Try \`$0 --help' for more information"
  1243. ;;
  1244. *=*)
  1245. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1246. # Reject names that are not valid shell variable names.
  1247. case $ac_envvar in #(
  1248. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1249. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1250. esac
  1251. eval $ac_envvar=\$ac_optarg
  1252. export $ac_envvar ;;
  1253. *)
  1254. # FIXME: should be removed in autoconf 3.0.
  1255. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1256. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1257. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1258. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1259. ;;
  1260. esac
  1261. done
  1262. if test -n "$ac_prev"; then
  1263. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1264. as_fn_error $? "missing argument to $ac_option"
  1265. fi
  1266. if test -n "$ac_unrecognized_opts"; then
  1267. case $enable_option_checking in
  1268. no) ;;
  1269. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1270. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1271. esac
  1272. fi
  1273. # Check all directory arguments for consistency.
  1274. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1275. datadir sysconfdir sharedstatedir localstatedir includedir \
  1276. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1277. libdir localedir mandir
  1278. do
  1279. eval ac_val=\$$ac_var
  1280. # Remove trailing slashes.
  1281. case $ac_val in
  1282. */ )
  1283. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1284. eval $ac_var=\$ac_val;;
  1285. esac
  1286. # Be sure to have absolute directory names.
  1287. case $ac_val in
  1288. [\\/$]* | ?:[\\/]* ) continue;;
  1289. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1290. esac
  1291. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1292. done
  1293. # There might be people who depend on the old broken behavior: `$host'
  1294. # used to hold the argument of --host etc.
  1295. # FIXME: To remove some day.
  1296. build=$build_alias
  1297. host=$host_alias
  1298. target=$target_alias
  1299. # FIXME: To remove some day.
  1300. if test "x$host_alias" != x; then
  1301. if test "x$build_alias" = x; then
  1302. cross_compiling=maybe
  1303. elif test "x$build_alias" != "x$host_alias"; then
  1304. cross_compiling=yes
  1305. fi
  1306. fi
  1307. ac_tool_prefix=
  1308. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1309. test "$silent" = yes && exec 6>/dev/null
  1310. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1311. ac_ls_di=`ls -di .` &&
  1312. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1313. as_fn_error $? "working directory cannot be determined"
  1314. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1315. as_fn_error $? "pwd does not report name of working directory"
  1316. # Find the source files, if location was not specified.
  1317. if test -z "$srcdir"; then
  1318. ac_srcdir_defaulted=yes
  1319. # Try the directory containing this script, then the parent directory.
  1320. ac_confdir=`$as_dirname -- "$as_myself" ||
  1321. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1322. X"$as_myself" : 'X\(//\)[^/]' \| \
  1323. X"$as_myself" : 'X\(//\)$' \| \
  1324. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1325. $as_echo X"$as_myself" |
  1326. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1327. s//\1/
  1328. q
  1329. }
  1330. /^X\(\/\/\)[^/].*/{
  1331. s//\1/
  1332. q
  1333. }
  1334. /^X\(\/\/\)$/{
  1335. s//\1/
  1336. q
  1337. }
  1338. /^X\(\/\).*/{
  1339. s//\1/
  1340. q
  1341. }
  1342. s/.*/./; q'`
  1343. srcdir=$ac_confdir
  1344. if test ! -r "$srcdir/$ac_unique_file"; then
  1345. srcdir=..
  1346. fi
  1347. else
  1348. ac_srcdir_defaulted=no
  1349. fi
  1350. if test ! -r "$srcdir/$ac_unique_file"; then
  1351. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1352. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1353. fi
  1354. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1355. ac_abs_confdir=`(
  1356. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1357. pwd)`
  1358. # When building in place, set srcdir=.
  1359. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1360. srcdir=.
  1361. fi
  1362. # Remove unnecessary trailing slashes from srcdir.
  1363. # Double slashes in file names in object file debugging info
  1364. # mess up M-x gdb in Emacs.
  1365. case $srcdir in
  1366. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1367. esac
  1368. for ac_var in $ac_precious_vars; do
  1369. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1370. eval ac_env_${ac_var}_value=\$${ac_var}
  1371. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1372. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1373. done
  1374. #
  1375. # Report the --help message.
  1376. #
  1377. if test "$ac_init_help" = "long"; then
  1378. # Omit some internal or obsolete options to make the list less imposing.
  1379. # This message is too long to be a string in the A/UX 3.1 sh.
  1380. cat <<_ACEOF
  1381. \`configure' configures xf86-video-intel 2.99.916 to adapt to many kinds of systems.
  1382. Usage: $0 [OPTION]... [VAR=VALUE]...
  1383. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1384. VAR=VALUE. See below for descriptions of some of the useful variables.
  1385. Defaults for the options are specified in brackets.
  1386. Configuration:
  1387. -h, --help display this help and exit
  1388. --help=short display options specific to this package
  1389. --help=recursive display the short help of all the included packages
  1390. -V, --version display version information and exit
  1391. -q, --quiet, --silent do not print \`checking ...' messages
  1392. --cache-file=FILE cache test results in FILE [disabled]
  1393. -C, --config-cache alias for \`--cache-file=config.cache'
  1394. -n, --no-create do not create output files
  1395. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1396. Installation directories:
  1397. --prefix=PREFIX install architecture-independent files in PREFIX
  1398. [$ac_default_prefix]
  1399. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1400. [PREFIX]
  1401. By default, \`make install' will install all the files in
  1402. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1403. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1404. for instance \`--prefix=\$HOME'.
  1405. For better control, use the options below.
  1406. Fine tuning of the installation directories:
  1407. --bindir=DIR user executables [EPREFIX/bin]
  1408. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1409. --libexecdir=DIR program executables [EPREFIX/libexec]
  1410. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1411. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1412. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1413. --libdir=DIR object code libraries [EPREFIX/lib]
  1414. --includedir=DIR C header files [PREFIX/include]
  1415. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1416. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1417. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1418. --infodir=DIR info documentation [DATAROOTDIR/info]
  1419. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1420. --mandir=DIR man documentation [DATAROOTDIR/man]
  1421. --docdir=DIR documentation root
  1422. [DATAROOTDIR/doc/xf86-video-intel]
  1423. --htmldir=DIR html documentation [DOCDIR]
  1424. --dvidir=DIR dvi documentation [DOCDIR]
  1425. --pdfdir=DIR pdf documentation [DOCDIR]
  1426. --psdir=DIR ps documentation [DOCDIR]
  1427. _ACEOF
  1428. cat <<\_ACEOF
  1429. Program names:
  1430. --program-prefix=PREFIX prepend PREFIX to installed program names
  1431. --program-suffix=SUFFIX append SUFFIX to installed program names
  1432. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1433. System types:
  1434. --build=BUILD configure for building on BUILD [guessed]
  1435. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1436. _ACEOF
  1437. fi
  1438. if test -n "$ac_init_help"; then
  1439. case $ac_init_help in
  1440. short | recursive ) echo "Configuration of xf86-video-intel 2.99.916:";;
  1441. esac
  1442. cat <<\_ACEOF
  1443. Optional Features:
  1444. --disable-option-checking ignore unrecognized --enable/--with options
  1445. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1446. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1447. --enable-dependency-tracking
  1448. do not reject slow dependency extractors
  1449. --disable-dependency-tracking
  1450. speeds up one-time build
  1451. --disable-selective-werror
  1452. Turn off selective compiler errors. (default:
  1453. enabled)
  1454. --enable-strict-compilation
  1455. Enable all warnings from compiler and make them
  1456. errors (default: disabled)
  1457. --enable-silent-rules less verbose build output (undo: "make V=1")
  1458. --disable-silent-rules verbose build output (undo: "make V=0")
  1459. --enable-static[=PKGS] build static libraries [default=no]
  1460. --enable-shared[=PKGS] build shared libraries [default=yes]
  1461. --enable-fast-install[=PKGS]
  1462. optimize for fast installation [default=yes]
  1463. --disable-libtool-lock avoid locking (might break parallel builds)
  1464. --disable-largefile omit support for large files
  1465. --disable-backlight Enable control over the backlight [default=yes]
  1466. --disable-backlight-helper
  1467. Enable building the backlight helper executable for
  1468. running X under a normal user [default=auto]
  1469. --enable-gen4asm Enable rebuilding the gen4 assembly files
  1470. [default=no]
  1471. --disable-udev Disable udev-based monitor hotplug detection
  1472. [default=auto]
  1473. --disable-tools Enable building and installing the miscellaneous
  1474. tools [default=auto]
  1475. --disable-dri Disable DRI support [[default=auto]]
  1476. --disable-dri1 Disable DRI1 support [[default=yes]]
  1477. --disable-dri2 Disable DRI2 support [[default=yes]]
  1478. --disable-dri3 Disable DRI3 support [[default=yes]]
  1479. --disable-xvmc Disable XvMC support [[default=yes]]
  1480. --enable-kms Assume KMS support [[default=yes]]
  1481. --enable-ums Assume UMS support [[default=auto]]
  1482. --enable-kms-only Only assume KMS support (no UMS) [[default=no]]
  1483. --enable-ums-only Only assume UMS support (no KMS) [[default=no]]
  1484. --enable-sna Enable SandyBridge\'s New Acceleration (SNA)
  1485. [default=auto]
  1486. --enable-uxa Enable Unified Acceleration Architecture (UXA)
  1487. [default=auto]
  1488. --enable-glamor Enable glamor, a new GL-based acceleration
  1489. [default=no]
  1490. --enable-xaa Enable legacy X Acceleration Architecture (XAA) for
  1491. i810 chipsets [default=auto]
  1492. --enable-dga Enable legacy Direct Graphics Access (DGA) for i810
  1493. chipsets [default=auto]
  1494. --enable-tear-free Enable use of TearFree by default [default=no]
  1495. --enable-rendernode Enable use of render nodes (experimental)
  1496. [default=no]
  1497. --enable-create2 Enable use of create2 ioctl (experimental)
  1498. [default=no]
  1499. --enable-async-swap Enable use of asynchronous swaps (experimental)
  1500. [default=no]
  1501. --enable-debug Enables internal debugging [default=no]
  1502. --enable-valgrind Enables valgrindified ioctls for debugging
  1503. [default=no]
  1504. Optional Packages:
  1505. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1506. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1507. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1508. both]
  1509. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1510. --with-sysroot=DIR Search for dependent libraries within DIR
  1511. (or the compiler's sysroot if not specified).
  1512. --with-builderstring=BUILDERSTRING
  1513. Additional builder string (default: use git
  1514. describe)
  1515. --with-gen4asm=PATH Path to intel-gen4asm binary
  1516. --with-xorg-module-dir=DIR
  1517. Default xorg module directory
  1518. [[default=$libdir/xorg/modules]]
  1519. --with-default-accel Select the default acceleration method out of
  1520. glamor, none, sna, or uxa [default is sna if
  1521. enabled, otherwise uxa]
  1522. Some influential environment variables:
  1523. CC C compiler command
  1524. CFLAGS C compiler flags
  1525. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1526. nonstandard directory <lib dir>
  1527. LIBS libraries to pass to the linker, e.g. -l<library>
  1528. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1529. you have headers in a nonstandard directory <include dir>
  1530. CPP C preprocessor
  1531. PKG_CONFIG path to pkg-config utility
  1532. PKG_CONFIG_PATH
  1533. directories to add to pkg-config's search path
  1534. PKG_CONFIG_LIBDIR
  1535. path overriding pkg-config's built-in search path
  1536. GEN4ASM_CFLAGS
  1537. C compiler flags for GEN4ASM, overriding pkg-config
  1538. GEN4ASM_LIBS
  1539. linker flags for GEN4ASM, overriding pkg-config
  1540. UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
  1541. UDEV_LIBS linker flags for UDEV, overriding pkg-config
  1542. X11_CFLAGS C compiler flags for X11, overriding pkg-config
  1543. X11_LIBS linker flags for X11, overriding pkg-config
  1544. X11_DRI3_CFLAGS
  1545. C compiler flags for X11_DRI3, overriding pkg-config
  1546. X11_DRI3_LIBS
  1547. linker flags for X11_DRI3, overriding pkg-config
  1548. IVO_EXTRA_CFLAGS
  1549. C compiler flags for IVO_EXTRA, overriding pkg-config
  1550. IVO_EXTRA_LIBS
  1551. linker flags for IVO_EXTRA, overriding pkg-config
  1552. IVO_CFLAGS C compiler flags for IVO, overriding pkg-config
  1553. IVO_LIBS linker flags for IVO, overriding pkg-config
  1554. DRM_CFLAGS C compiler flags for DRM, overriding pkg-config
  1555. DRM_LIBS linker flags for DRM, overriding pkg-config
  1556. PCIACCESS_CFLAGS
  1557. C compiler flags for PCIACCESS, overriding pkg-config
  1558. PCIACCESS_LIBS
  1559. linker flags for PCIACCESS, overriding pkg-config
  1560. DRMINTEL_CFLAGS
  1561. C compiler flags for DRMINTEL, overriding pkg-config
  1562. DRMINTEL_LIBS
  1563. linker flags for DRMINTEL, overriding pkg-config
  1564. LIBGLAMOR_CFLAGS
  1565. C compiler flags for LIBGLAMOR, overriding pkg-config
  1566. LIBGLAMOR_LIBS
  1567. linker flags for LIBGLAMOR, overriding pkg-config
  1568. LIBGLAMOR_EGL_CFLAGS
  1569. C compiler flags for LIBGLAMOR_EGL, overriding pkg-config
  1570. LIBGLAMOR_EGL_LIBS
  1571. linker flags for LIBGLAMOR_EGL, overriding pkg-config
  1572. XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
  1573. XORG_LIBS linker flags for XORG, overriding pkg-config
  1574. DRI1_CFLAGS C compiler flags for DRI1, overriding pkg-config
  1575. DRI1_LIBS linker flags for DRI1, overriding pkg-config
  1576. DRI2_CFLAGS C compiler flags for DRI2, overriding pkg-config
  1577. DRI2_LIBS linker flags for DRI2, overriding pkg-config
  1578. DRI3_CFLAGS C compiler flags for DRI3, overriding pkg-config
  1579. DRI3_LIBS linker flags for DRI3, overriding pkg-config
  1580. PRESENT_CFLAGS
  1581. C compiler flags for PRESENT, overriding pkg-config
  1582. PRESENT_LIBS
  1583. linker flags for PRESENT, overriding pkg-config
  1584. XVMCLIB_CFLAGS
  1585. C compiler flags for XVMCLIB, overriding pkg-config
  1586. XVMCLIB_LIBS
  1587. linker flags for XVMCLIB, overriding pkg-config
  1588. VALGRIND_CFLAGS
  1589. C compiler flags for VALGRIND, overriding pkg-config
  1590. VALGRIND_LIBS
  1591. linker flags for VALGRIND, overriding pkg-config
  1592. Use these variables to override the choices made by `configure' or to help
  1593. it to find libraries and programs with nonstandard names/locations.
  1594. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  1595. _ACEOF
  1596. ac_status=$?
  1597. fi
  1598. if test "$ac_init_help" = "recursive"; then
  1599. # If there are subdirs, report their specific --help.
  1600. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1601. test -d "$ac_dir" ||
  1602. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1603. continue
  1604. ac_builddir=.
  1605. case "$ac_dir" in
  1606. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1607. *)
  1608. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1609. # A ".." for each directory in $ac_dir_suffix.
  1610. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1611. case $ac_top_builddir_sub in
  1612. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1613. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1614. esac ;;
  1615. esac
  1616. ac_abs_top_builddir=$ac_pwd
  1617. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1618. # for backward compatibility:
  1619. ac_top_builddir=$ac_top_build_prefix
  1620. case $srcdir in
  1621. .) # We are building in place.
  1622. ac_srcdir=.
  1623. ac_top_srcdir=$ac_top_builddir_sub
  1624. ac_abs_top_srcdir=$ac_pwd ;;
  1625. [\\/]* | ?:[\\/]* ) # Absolute name.
  1626. ac_srcdir=$srcdir$ac_dir_suffix;
  1627. ac_top_srcdir=$srcdir
  1628. ac_abs_top_srcdir=$srcdir ;;
  1629. *) # Relative name.
  1630. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1631. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1632. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1633. esac
  1634. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1635. cd "$ac_dir" || { ac_status=$?; continue; }
  1636. # Check for guested configure.
  1637. if test -f "$ac_srcdir/configure.gnu"; then
  1638. echo &&
  1639. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1640. elif test -f "$ac_srcdir/configure"; then
  1641. echo &&
  1642. $SHELL "$ac_srcdir/configure" --help=recursive
  1643. else
  1644. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1645. fi || ac_status=$?
  1646. cd "$ac_pwd" || { ac_status=$?; break; }
  1647. done
  1648. fi
  1649. test -n "$ac_init_help" && exit $ac_status
  1650. if $ac_init_version; then
  1651. cat <<\_ACEOF
  1652. xf86-video-intel configure 2.99.916
  1653. generated by GNU Autoconf 2.69
  1654. Copyright (C) 2012 Free Software Foundation, Inc.
  1655. This configure script is free software; the Free Software Foundation
  1656. gives unlimited permission to copy, distribute and modify it.
  1657. _ACEOF
  1658. exit
  1659. fi
  1660. ## ------------------------ ##
  1661. ## Autoconf initialization. ##
  1662. ## ------------------------ ##
  1663. # ac_fn_c_try_compile LINENO
  1664. # --------------------------
  1665. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1666. ac_fn_c_try_compile ()
  1667. {
  1668. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1669. rm -f conftest.$ac_objext
  1670. if { { ac_try="$ac_compile"
  1671. case "(($ac_try" in
  1672. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1673. *) ac_try_echo=$ac_try;;
  1674. esac
  1675. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1676. $as_echo "$ac_try_echo"; } >&5
  1677. (eval "$ac_compile") 2>conftest.err
  1678. ac_status=$?
  1679. if test -s conftest.err; then
  1680. grep -v '^ *+' conftest.err >conftest.er1
  1681. cat conftest.er1 >&5
  1682. mv -f conftest.er1 conftest.err
  1683. fi
  1684. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1685. test $ac_status = 0; } && {
  1686. test -z "$ac_c_werror_flag" ||
  1687. test ! -s conftest.err
  1688. } && test -s conftest.$ac_objext; then :
  1689. ac_retval=0
  1690. else
  1691. $as_echo "$as_me: failed program was:" >&5
  1692. sed 's/^/| /' conftest.$ac_ext >&5
  1693. ac_retval=1
  1694. fi
  1695. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1696. as_fn_set_status $ac_retval
  1697. } # ac_fn_c_try_compile
  1698. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1699. # ---------------------------------------------
  1700. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1701. # accordingly.
  1702. ac_fn_c_check_decl ()
  1703. {
  1704. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1705. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1706. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1708. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1709. if eval \${$3+:} false; then :
  1710. $as_echo_n "(cached) " >&6
  1711. else
  1712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1713. /* end confdefs.h. */
  1714. $4
  1715. int
  1716. main ()
  1717. {
  1718. #ifndef $as_decl_name
  1719. #ifdef __cplusplus
  1720. (void) $as_decl_use;
  1721. #else
  1722. (void) $as_decl_name;
  1723. #endif
  1724. #endif
  1725. ;
  1726. return 0;
  1727. }
  1728. _ACEOF
  1729. if ac_fn_c_try_compile "$LINENO"; then :
  1730. eval "$3=yes"
  1731. else
  1732. eval "$3=no"
  1733. fi
  1734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1735. fi
  1736. eval ac_res=\$$3
  1737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1738. $as_echo "$ac_res" >&6; }
  1739. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1740. } # ac_fn_c_check_decl
  1741. # ac_fn_c_try_cpp LINENO
  1742. # ----------------------
  1743. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1744. ac_fn_c_try_cpp ()
  1745. {
  1746. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1747. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1748. case "(($ac_try" in
  1749. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1750. *) ac_try_echo=$ac_try;;
  1751. esac
  1752. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1753. $as_echo "$ac_try_echo"; } >&5
  1754. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1755. ac_status=$?
  1756. if test -s conftest.err; then
  1757. grep -v '^ *+' conftest.err >conftest.er1
  1758. cat conftest.er1 >&5
  1759. mv -f conftest.er1 conftest.err
  1760. fi
  1761. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1762. test $ac_status = 0; } > conftest.i && {
  1763. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1764. test ! -s conftest.err
  1765. }; then :
  1766. ac_retval=0
  1767. else
  1768. $as_echo "$as_me: failed program was:" >&5
  1769. sed 's/^/| /' conftest.$ac_ext >&5
  1770. ac_retval=1
  1771. fi
  1772. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1773. as_fn_set_status $ac_retval
  1774. } # ac_fn_c_try_cpp
  1775. # ac_fn_c_try_run LINENO
  1776. # ----------------------
  1777. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1778. # that executables *can* be run.
  1779. ac_fn_c_try_run ()
  1780. {
  1781. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1782. if { { ac_try="$ac_link"
  1783. case "(($ac_try" in
  1784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1785. *) ac_try_echo=$ac_try;;
  1786. esac
  1787. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1788. $as_echo "$ac_try_echo"; } >&5
  1789. (eval "$ac_link") 2>&5
  1790. ac_status=$?
  1791. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1792. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1793. { { case "(($ac_try" in
  1794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1795. *) ac_try_echo=$ac_try;;
  1796. esac
  1797. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1798. $as_echo "$ac_try_echo"; } >&5
  1799. (eval "$ac_try") 2>&5
  1800. ac_status=$?
  1801. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1802. test $ac_status = 0; }; }; then :
  1803. ac_retval=0
  1804. else
  1805. $as_echo "$as_me: program exited with status $ac_status" >&5
  1806. $as_echo "$as_me: failed program was:" >&5
  1807. sed 's/^/| /' conftest.$ac_ext >&5
  1808. ac_retval=$ac_status
  1809. fi
  1810. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1811. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1812. as_fn_set_status $ac_retval
  1813. } # ac_fn_c_try_run
  1814. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1815. # -------------------------------------------------------
  1816. # Tests whether HEADER exists and can be compiled using the include files in
  1817. # INCLUDES, setting the cache variable VAR accordingly.
  1818. ac_fn_c_check_header_compile ()
  1819. {
  1820. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1822. $as_echo_n "checking for $2... " >&6; }
  1823. if eval \${$3+:} false; then :
  1824. $as_echo_n "(cached) " >&6
  1825. else
  1826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1827. /* end confdefs.h. */
  1828. $4
  1829. #include <$2>
  1830. _ACEOF
  1831. if ac_fn_c_try_compile "$LINENO"; then :
  1832. eval "$3=yes"
  1833. else
  1834. eval "$3=no"
  1835. fi
  1836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1837. fi
  1838. eval ac_res=\$$3
  1839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1840. $as_echo "$ac_res" >&6; }
  1841. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1842. } # ac_fn_c_check_header_compile
  1843. # ac_fn_c_try_link LINENO
  1844. # -----------------------
  1845. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1846. ac_fn_c_try_link ()
  1847. {
  1848. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1849. rm -f conftest.$ac_objext conftest$ac_exeext
  1850. if { { ac_try="$ac_link"
  1851. case "(($ac_try" in
  1852. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1853. *) ac_try_echo=$ac_try;;
  1854. esac
  1855. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1856. $as_echo "$ac_try_echo"; } >&5
  1857. (eval "$ac_link") 2>conftest.err
  1858. ac_status=$?
  1859. if test -s conftest.err; then
  1860. grep -v '^ *+' conftest.err >conftest.er1
  1861. cat conftest.er1 >&5
  1862. mv -f conftest.er1 conftest.err
  1863. fi
  1864. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1865. test $ac_status = 0; } && {
  1866. test -z "$ac_c_werror_flag" ||
  1867. test ! -s conftest.err
  1868. } && test -s conftest$ac_exeext && {
  1869. test "$cross_compiling" = yes ||
  1870. test -x conftest$ac_exeext
  1871. }; then :
  1872. ac_retval=0
  1873. else
  1874. $as_echo "$as_me: failed program was:" >&5
  1875. sed 's/^/| /' conftest.$ac_ext >&5
  1876. ac_retval=1
  1877. fi
  1878. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1879. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1880. # interfere with the next link command; also delete a directory that is
  1881. # left behind by Apple's compiler. We do this before executing the actions.
  1882. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1883. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1884. as_fn_set_status $ac_retval
  1885. } # ac_fn_c_try_link
  1886. # ac_fn_c_check_func LINENO FUNC VAR
  1887. # ----------------------------------
  1888. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1889. ac_fn_c_check_func ()
  1890. {
  1891. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1893. $as_echo_n "checking for $2... " >&6; }
  1894. if eval \${$3+:} false; then :
  1895. $as_echo_n "(cached) " >&6
  1896. else
  1897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1898. /* end confdefs.h. */
  1899. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1900. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1901. #define $2 innocuous_$2
  1902. /* System header to define __stub macros and hopefully few prototypes,
  1903. which can conflict with char $2 (); below.
  1904. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1905. <limits.h> exists even on freestanding compilers. */
  1906. #ifdef __STDC__
  1907. # include <limits.h>
  1908. #else
  1909. # include <assert.h>
  1910. #endif
  1911. #undef $2
  1912. /* Override any GCC internal prototype to avoid an error.
  1913. Use char because int might match the return type of a GCC
  1914. builtin and then its argument prototype would still apply. */
  1915. #ifdef __cplusplus
  1916. extern "C"
  1917. #endif
  1918. char $2 ();
  1919. /* The GNU C library defines this for functions which it implements
  1920. to always fail with ENOSYS. Some functions are actually named
  1921. something starting with __ and the normal name is an alias. */
  1922. #if defined __stub_$2 || defined __stub___$2
  1923. choke me
  1924. #endif
  1925. int
  1926. main ()
  1927. {
  1928. return $2 ();
  1929. ;
  1930. return 0;
  1931. }
  1932. _ACEOF
  1933. if ac_fn_c_try_link "$LINENO"; then :
  1934. eval "$3=yes"
  1935. else
  1936. eval "$3=no"
  1937. fi
  1938. rm -f core conftest.err conftest.$ac_objext \
  1939. conftest$ac_exeext conftest.$ac_ext
  1940. fi
  1941. eval ac_res=\$$3
  1942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1943. $as_echo "$ac_res" >&6; }
  1944. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1945. } # ac_fn_c_check_func
  1946. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1947. # -------------------------------------------------------
  1948. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1949. # the include files in INCLUDES and setting the cache variable VAR
  1950. # accordingly.
  1951. ac_fn_c_check_header_mongrel ()
  1952. {
  1953. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1954. if eval \${$3+:} false; then :
  1955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1956. $as_echo_n "checking for $2... " >&6; }
  1957. if eval \${$3+:} false; then :
  1958. $as_echo_n "(cached) " >&6
  1959. fi
  1960. eval ac_res=\$$3
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1962. $as_echo "$ac_res" >&6; }
  1963. else
  1964. # Is the header compilable?
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1966. $as_echo_n "checking $2 usability... " >&6; }
  1967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1968. /* end confdefs.h. */
  1969. $4
  1970. #include <$2>
  1971. _ACEOF
  1972. if ac_fn_c_try_compile "$LINENO"; then :
  1973. ac_header_compiler=yes
  1974. else
  1975. ac_header_compiler=no
  1976. fi
  1977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1979. $as_echo "$ac_header_compiler" >&6; }
  1980. # Is the header present?
  1981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1982. $as_echo_n "checking $2 presence... " >&6; }
  1983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1984. /* end confdefs.h. */
  1985. #include <$2>
  1986. _ACEOF
  1987. if ac_fn_c_try_cpp "$LINENO"; then :
  1988. ac_header_preproc=yes
  1989. else
  1990. ac_header_preproc=no
  1991. fi
  1992. rm -f conftest.err conftest.i conftest.$ac_ext
  1993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1994. $as_echo "$ac_header_preproc" >&6; }
  1995. # So? What about this header?
  1996. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1997. yes:no: )
  1998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1999. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2000. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2001. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2002. ;;
  2003. no:yes:* )
  2004. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2005. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2006. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2007. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2008. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2009. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2010. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2011. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2012. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2013. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2014. ( $as_echo "## ---------------------------------------------------------------------- ##
  2015. ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
  2016. ## ---------------------------------------------------------------------- ##"
  2017. ) | sed "s/^/$as_me: WARNING: /" >&2
  2018. ;;
  2019. esac
  2020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2021. $as_echo_n "checking for $2... " >&6; }
  2022. if eval \${$3+:} false; then :
  2023. $as_echo_n "(cached) " >&6
  2024. else
  2025. eval "$3=\$ac_header_compiler"
  2026. fi
  2027. eval ac_res=\$$3
  2028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2029. $as_echo "$ac_res" >&6; }
  2030. fi
  2031. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2032. } # ac_fn_c_check_header_mongrel
  2033. cat >config.log <<_ACEOF
  2034. This file contains any messages produced by compilers while
  2035. running configure, to aid debugging if configure makes a mistake.
  2036. It was created by xf86-video-intel $as_me 2.99.916, which was
  2037. generated by GNU Autoconf 2.69. Invocation command line was
  2038. $ $0 $@
  2039. _ACEOF
  2040. exec 5>>config.log
  2041. {
  2042. cat <<_ASUNAME
  2043. ## --------- ##
  2044. ## Platform. ##
  2045. ## --------- ##
  2046. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2047. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2048. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2049. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2050. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2051. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2052. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2053. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2054. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2055. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2056. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2057. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2058. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2059. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2060. _ASUNAME
  2061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2062. for as_dir in $PATH
  2063. do
  2064. IFS=$as_save_IFS
  2065. test -z "$as_dir" && as_dir=.
  2066. $as_echo "PATH: $as_dir"
  2067. done
  2068. IFS=$as_save_IFS
  2069. } >&5
  2070. cat >&5 <<_ACEOF
  2071. ## ----------- ##
  2072. ## Core tests. ##
  2073. ## ----------- ##
  2074. _ACEOF
  2075. # Keep a trace of the command line.
  2076. # Strip out --no-create and --no-recursion so they do not pile up.
  2077. # Strip out --silent because we don't want to record it for future runs.
  2078. # Also quote any args containing shell meta-characters.
  2079. # Make two passes to allow for proper duplicate-argument suppression.
  2080. ac_configure_args=
  2081. ac_configure_args0=
  2082. ac_configure_args1=
  2083. ac_must_keep_next=false
  2084. for ac_pass in 1 2
  2085. do
  2086. for ac_arg
  2087. do
  2088. case $ac_arg in
  2089. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2090. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2091. | -silent | --silent | --silen | --sile | --sil)
  2092. continue ;;
  2093. *\'*)
  2094. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2095. esac
  2096. case $ac_pass in
  2097. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2098. 2)
  2099. as_fn_append ac_configure_args1 " '$ac_arg'"
  2100. if test $ac_must_keep_next = true; then
  2101. ac_must_keep_next=false # Got value, back to normal.
  2102. else
  2103. case $ac_arg in
  2104. *=* | --config-cache | -C | -disable-* | --disable-* \
  2105. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2106. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2107. | -with-* | --with-* | -without-* | --without-* | --x)
  2108. case "$ac_configure_args0 " in
  2109. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2110. esac
  2111. ;;
  2112. -* ) ac_must_keep_next=true ;;
  2113. esac
  2114. fi
  2115. as_fn_append ac_configure_args " '$ac_arg'"
  2116. ;;
  2117. esac
  2118. done
  2119. done
  2120. { ac_configure_args0=; unset ac_configure_args0;}
  2121. { ac_configure_args1=; unset ac_configure_args1;}
  2122. # When interrupted or exit'd, cleanup temporary files, and complete
  2123. # config.log. We remove comments because anyway the quotes in there
  2124. # would cause problems or look ugly.
  2125. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2126. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2127. trap 'exit_status=$?
  2128. # Save into config.log some information that might help in debugging.
  2129. {
  2130. echo
  2131. $as_echo "## ---------------- ##
  2132. ## Cache variables. ##
  2133. ## ---------------- ##"
  2134. echo
  2135. # The following way of writing the cache mishandles newlines in values,
  2136. (
  2137. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2138. eval ac_val=\$$ac_var
  2139. case $ac_val in #(
  2140. *${as_nl}*)
  2141. case $ac_var in #(
  2142. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2143. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2144. esac
  2145. case $ac_var in #(
  2146. _ | IFS | as_nl) ;; #(
  2147. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2148. *) { eval $ac_var=; unset $ac_var;} ;;
  2149. esac ;;
  2150. esac
  2151. done
  2152. (set) 2>&1 |
  2153. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2154. *${as_nl}ac_space=\ *)
  2155. sed -n \
  2156. "s/'\''/'\''\\\\'\'''\''/g;
  2157. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2158. ;; #(
  2159. *)
  2160. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2161. ;;
  2162. esac |
  2163. sort
  2164. )
  2165. echo
  2166. $as_echo "## ----------------- ##
  2167. ## Output variables. ##
  2168. ## ----------------- ##"
  2169. echo
  2170. for ac_var in $ac_subst_vars
  2171. do
  2172. eval ac_val=\$$ac_var
  2173. case $ac_val in
  2174. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2175. esac
  2176. $as_echo "$ac_var='\''$ac_val'\''"
  2177. done | sort
  2178. echo
  2179. if test -n "$ac_subst_files"; then
  2180. $as_echo "## ------------------- ##
  2181. ## File substitutions. ##
  2182. ## ------------------- ##"
  2183. echo
  2184. for ac_var in $ac_subst_files
  2185. do
  2186. eval ac_val=\$$ac_var
  2187. case $ac_val in
  2188. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2189. esac
  2190. $as_echo "$ac_var='\''$ac_val'\''"
  2191. done | sort
  2192. echo
  2193. fi
  2194. if test -s confdefs.h; then
  2195. $as_echo "## ----------- ##
  2196. ## confdefs.h. ##
  2197. ## ----------- ##"
  2198. echo
  2199. cat confdefs.h
  2200. echo
  2201. fi
  2202. test "$ac_signal" != 0 &&
  2203. $as_echo "$as_me: caught signal $ac_signal"
  2204. $as_echo "$as_me: exit $exit_status"
  2205. } >&5
  2206. rm -f core *.core core.conftest.* &&
  2207. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2208. exit $exit_status
  2209. ' 0
  2210. for ac_signal in 1 2 13 15; do
  2211. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2212. done
  2213. ac_signal=0
  2214. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2215. rm -f -r conftest* confdefs.h
  2216. $as_echo "/* confdefs.h */" > confdefs.h
  2217. # Predefined preprocessor variables.
  2218. cat >>confdefs.h <<_ACEOF
  2219. #define PACKAGE_NAME "$PACKAGE_NAME"
  2220. _ACEOF
  2221. cat >>confdefs.h <<_ACEOF
  2222. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2223. _ACEOF
  2224. cat >>confdefs.h <<_ACEOF
  2225. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2226. _ACEOF
  2227. cat >>confdefs.h <<_ACEOF
  2228. #define PACKAGE_STRING "$PACKAGE_STRING"
  2229. _ACEOF
  2230. cat >>confdefs.h <<_ACEOF
  2231. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2232. _ACEOF
  2233. cat >>confdefs.h <<_ACEOF
  2234. #define PACKAGE_URL "$PACKAGE_URL"
  2235. _ACEOF
  2236. # Let the site file select an alternate cache file if it wants to.
  2237. # Prefer an explicitly selected file to automatically selected ones.
  2238. ac_site_file1=NONE
  2239. ac_site_file2=NONE
  2240. if test -n "$CONFIG_SITE"; then
  2241. # We do not want a PATH search for config.site.
  2242. case $CONFIG_SITE in #((
  2243. -*) ac_site_file1=./$CONFIG_SITE;;
  2244. */*) ac_site_file1=$CONFIG_SITE;;
  2245. *) ac_site_file1=./$CONFIG_SITE;;
  2246. esac
  2247. elif test "x$prefix" != xNONE; then
  2248. ac_site_file1=$prefix/share/config.site
  2249. ac_site_file2=$prefix/etc/config.site
  2250. else
  2251. ac_site_file1=$ac_default_prefix/share/config.site
  2252. ac_site_file2=$ac_default_prefix/etc/config.site
  2253. fi
  2254. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2255. do
  2256. test "x$ac_site_file" = xNONE && continue
  2257. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2258. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2259. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2260. sed 's/^/| /' "$ac_site_file" >&5
  2261. . "$ac_site_file" \
  2262. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2263. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2264. as_fn_error $? "failed to load site script $ac_site_file
  2265. See \`config.log' for more details" "$LINENO" 5; }
  2266. fi
  2267. done
  2268. if test -r "$cache_file"; then
  2269. # Some versions of bash will fail to source /dev/null (special files
  2270. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2271. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2272. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2273. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2274. case $cache_file in
  2275. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2276. *) . "./$cache_file";;
  2277. esac
  2278. fi
  2279. else
  2280. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2281. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2282. >$cache_file
  2283. fi
  2284. # Check that the precious variables saved in the cache have kept the same
  2285. # value.
  2286. ac_cache_corrupted=false
  2287. for ac_var in $ac_precious_vars; do
  2288. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2289. eval ac_new_set=\$ac_env_${ac_var}_set
  2290. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2291. eval ac_new_val=\$ac_env_${ac_var}_value
  2292. case $ac_old_set,$ac_new_set in
  2293. set,)
  2294. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2295. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2296. ac_cache_corrupted=: ;;
  2297. ,set)
  2298. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2299. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2300. ac_cache_corrupted=: ;;
  2301. ,);;
  2302. *)
  2303. if test "x$ac_old_val" != "x$ac_new_val"; then
  2304. # differences in whitespace do not lead to failure.
  2305. ac_old_val_w=`echo x $ac_old_val`
  2306. ac_new_val_w=`echo x $ac_new_val`
  2307. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2308. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2309. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2310. ac_cache_corrupted=:
  2311. else
  2312. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2313. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2314. eval $ac_var=\$ac_old_val
  2315. fi
  2316. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2317. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2318. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2319. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2320. fi;;
  2321. esac
  2322. # Pass precious variables to config.status.
  2323. if test "$ac_new_set" = set; then
  2324. case $ac_new_val in
  2325. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2326. *) ac_arg=$ac_var=$ac_new_val ;;
  2327. esac
  2328. case " $ac_configure_args " in
  2329. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2330. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2331. esac
  2332. fi
  2333. done
  2334. if $ac_cache_corrupted; then
  2335. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2336. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2337. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2338. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2339. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2340. fi
  2341. ## -------------------- ##
  2342. ## Main body of script. ##
  2343. ## -------------------- ##
  2344. ac_ext=c
  2345. ac_cpp='$CPP $CPPFLAGS'
  2346. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2347. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2348. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2349. ac_config_headers="$ac_config_headers config.h"
  2350. ac_aux_dir=
  2351. for ac_dir in . "$srcdir"/.; do
  2352. if test -f "$ac_dir/install-sh"; then
  2353. ac_aux_dir=$ac_dir
  2354. ac_install_sh="$ac_aux_dir/install-sh -c"
  2355. break
  2356. elif test -f "$ac_dir/install.sh"; then
  2357. ac_aux_dir=$ac_dir
  2358. ac_install_sh="$ac_aux_dir/install.sh -c"
  2359. break
  2360. elif test -f "$ac_dir/shtool"; then
  2361. ac_aux_dir=$ac_dir
  2362. ac_install_sh="$ac_aux_dir/shtool install -c"
  2363. break
  2364. fi
  2365. done
  2366. if test -z "$ac_aux_dir"; then
  2367. as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
  2368. fi
  2369. # These three variables are undocumented and unsupported,
  2370. # and are intended to be withdrawn in a future Autoconf release.
  2371. # They can cause serious problems if a builder's source tree is in a directory
  2372. # whose full name contains unusual characters.
  2373. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2374. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2375. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2376. # Initialize Automake
  2377. am__api_version='1.12'
  2378. # Find a good install program. We prefer a C program (faster),
  2379. # so one script is as good as another. But avoid the broken or
  2380. # incompatible versions:
  2381. # SysV /etc/install, /usr/sbin/install
  2382. # SunOS /usr/etc/install
  2383. # IRIX /sbin/install
  2384. # AIX /bin/install
  2385. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2386. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2387. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2388. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2389. # OS/2's system install, which has a completely different semantic
  2390. # ./install, which can be erroneously created by make from ./install.sh.
  2391. # Reject install programs that cannot install multiple files.
  2392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2393. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2394. if test -z "$INSTALL"; then
  2395. if ${ac_cv_path_install+:} false; then :
  2396. $as_echo_n "(cached) " >&6
  2397. else
  2398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2399. for as_dir in $PATH
  2400. do
  2401. IFS=$as_save_IFS
  2402. test -z "$as_dir" && as_dir=.
  2403. # Account for people who put trailing slashes in PATH elements.
  2404. case $as_dir/ in #((
  2405. ./ | .// | /[cC]/* | \
  2406. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2407. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2408. /usr/ucb/* ) ;;
  2409. *)
  2410. # OSF1 and SCO ODT 3.0 have their own names for install.
  2411. # Don't use installbsd from OSF since it installs stuff as root
  2412. # by default.
  2413. for ac_prog in ginstall scoinst install; do
  2414. for ac_exec_ext in '' $ac_executable_extensions; do
  2415. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2416. if test $ac_prog = install &&
  2417. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2418. # AIX install. It has an incompatible calling convention.
  2419. :
  2420. elif test $ac_prog = install &&
  2421. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2422. # program-specific install script used by HP pwplus--don't use.
  2423. :
  2424. else
  2425. rm -rf conftest.one conftest.two conftest.dir
  2426. echo one > conftest.one
  2427. echo two > conftest.two
  2428. mkdir conftest.dir
  2429. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2430. test -s conftest.one && test -s conftest.two &&
  2431. test -s conftest.dir/conftest.one &&
  2432. test -s conftest.dir/conftest.two
  2433. then
  2434. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2435. break 3
  2436. fi
  2437. fi
  2438. fi
  2439. done
  2440. done
  2441. ;;
  2442. esac
  2443. done
  2444. IFS=$as_save_IFS
  2445. rm -rf conftest.one conftest.two conftest.dir
  2446. fi
  2447. if test "${ac_cv_path_install+set}" = set; then
  2448. INSTALL=$ac_cv_path_install
  2449. else
  2450. # As a last resort, use the slow shell script. Don't cache a
  2451. # value for INSTALL within a source directory, because that will
  2452. # break other packages using the cache if that directory is
  2453. # removed, or if the value is a relative name.
  2454. INSTALL=$ac_install_sh
  2455. fi
  2456. fi
  2457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2458. $as_echo "$INSTALL" >&6; }
  2459. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2460. # It thinks the first close brace ends the variable substitution.
  2461. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2462. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2463. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2465. $as_echo_n "checking whether build environment is sane... " >&6; }
  2466. # Reject unsafe characters in $srcdir or the absolute working directory
  2467. # name. Accept space and tab only in the latter.
  2468. am_lf='
  2469. '
  2470. case `pwd` in
  2471. *[\\\"\#\$\&\'\`$am_lf]*)
  2472. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2473. esac
  2474. case $srcdir in
  2475. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2476. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2477. esac
  2478. # Do 'set' in a subshell so we don't clobber the current shell's
  2479. # arguments. Must try -L first in case configure is actually a
  2480. # symlink; some systems play weird games with the mod time of symlinks
  2481. # (eg FreeBSD returns the mod time of the symlink's containing
  2482. # directory).
  2483. if (
  2484. am_has_slept=no
  2485. for am_try in 1 2; do
  2486. echo "timestamp, slept: $am_has_slept" > conftest.file
  2487. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2488. if test "$*" = "X"; then
  2489. # -L didn't work.
  2490. set X `ls -t "$srcdir/configure" conftest.file`
  2491. fi
  2492. if test "$*" != "X $srcdir/configure conftest.file" \
  2493. && test "$*" != "X conftest.file $srcdir/configure"; then
  2494. # If neither matched, then we have a broken ls. This can happen
  2495. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2496. # broken ls alias from the environment. This has actually
  2497. # happened. Such a system could not be considered "sane".
  2498. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2499. alias in your environment" "$LINENO" 5
  2500. fi
  2501. if test "$2" = conftest.file || test $am_try -eq 2; then
  2502. break
  2503. fi
  2504. # Just in case.
  2505. sleep 1
  2506. am_has_slept=yes
  2507. done
  2508. test "$2" = conftest.file
  2509. )
  2510. then
  2511. # Ok.
  2512. :
  2513. else
  2514. as_fn_error $? "newly created file is older than distributed files!
  2515. Check your system clock" "$LINENO" 5
  2516. fi
  2517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2518. $as_echo "yes" >&6; }
  2519. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2520. # generated files are strictly newer.
  2521. am_sleep_pid=
  2522. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2523. ( sleep 1 ) &
  2524. am_sleep_pid=$!
  2525. fi
  2526. rm -f conftest.file
  2527. test "$program_prefix" != NONE &&
  2528. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2529. # Use a double $ so make ignores it.
  2530. test "$program_suffix" != NONE &&
  2531. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2532. # Double any \ or $.
  2533. # By default was `s,x,x', remove it if useless.
  2534. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2535. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2536. # expand $ac_aux_dir to an absolute path
  2537. am_aux_dir=`cd $ac_aux_dir && pwd`
  2538. if test x"${MISSING+set}" != xset; then
  2539. case $am_aux_dir in
  2540. *\ * | *\ *)
  2541. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2542. *)
  2543. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2544. esac
  2545. fi
  2546. # Use eval to expand $SHELL
  2547. if eval "$MISSING --run true"; then
  2548. am_missing_run="$MISSING --run "
  2549. else
  2550. am_missing_run=
  2551. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2552. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2553. fi
  2554. if test x"${install_sh}" != xset; then
  2555. case $am_aux_dir in
  2556. *\ * | *\ *)
  2557. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2558. *)
  2559. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2560. esac
  2561. fi
  2562. # Installed binaries are usually stripped using 'strip' when the user
  2563. # run "make install-strip". However 'strip' might not be the right
  2564. # tool to use in cross-compilation environments, therefore Automake
  2565. # will honor the 'STRIP' environment variable to overrule this program.
  2566. if test "$cross_compiling" != no; then
  2567. if test -n "$ac_tool_prefix"; then
  2568. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2569. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2571. $as_echo_n "checking for $ac_word... " >&6; }
  2572. if ${ac_cv_prog_STRIP+:} false; then :
  2573. $as_echo_n "(cached) " >&6
  2574. else
  2575. if test -n "$STRIP"; then
  2576. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2577. else
  2578. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2579. for as_dir in $PATH
  2580. do
  2581. IFS=$as_save_IFS
  2582. test -z "$as_dir" && as_dir=.
  2583. for ac_exec_ext in '' $ac_executable_extensions; do
  2584. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2585. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2586. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2587. break 2
  2588. fi
  2589. done
  2590. done
  2591. IFS=$as_save_IFS
  2592. fi
  2593. fi
  2594. STRIP=$ac_cv_prog_STRIP
  2595. if test -n "$STRIP"; then
  2596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2597. $as_echo "$STRIP" >&6; }
  2598. else
  2599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2600. $as_echo "no" >&6; }
  2601. fi
  2602. fi
  2603. if test -z "$ac_cv_prog_STRIP"; then
  2604. ac_ct_STRIP=$STRIP
  2605. # Extract the first word of "strip", so it can be a program name with args.
  2606. set dummy strip; ac_word=$2
  2607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2608. $as_echo_n "checking for $ac_word... " >&6; }
  2609. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2610. $as_echo_n "(cached) " >&6
  2611. else
  2612. if test -n "$ac_ct_STRIP"; then
  2613. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2614. else
  2615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2616. for as_dir in $PATH
  2617. do
  2618. IFS=$as_save_IFS
  2619. test -z "$as_dir" && as_dir=.
  2620. for ac_exec_ext in '' $ac_executable_extensions; do
  2621. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2622. ac_cv_prog_ac_ct_STRIP="strip"
  2623. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2624. break 2
  2625. fi
  2626. done
  2627. done
  2628. IFS=$as_save_IFS
  2629. fi
  2630. fi
  2631. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2632. if test -n "$ac_ct_STRIP"; then
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2634. $as_echo "$ac_ct_STRIP" >&6; }
  2635. else
  2636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2637. $as_echo "no" >&6; }
  2638. fi
  2639. if test "x$ac_ct_STRIP" = x; then
  2640. STRIP=":"
  2641. else
  2642. case $cross_compiling:$ac_tool_warned in
  2643. yes:)
  2644. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2645. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2646. ac_tool_warned=yes ;;
  2647. esac
  2648. STRIP=$ac_ct_STRIP
  2649. fi
  2650. else
  2651. STRIP="$ac_cv_prog_STRIP"
  2652. fi
  2653. fi
  2654. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2656. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2657. if test -z "$MKDIR_P"; then
  2658. if ${ac_cv_path_mkdir+:} false; then :
  2659. $as_echo_n "(cached) " >&6
  2660. else
  2661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2662. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2663. do
  2664. IFS=$as_save_IFS
  2665. test -z "$as_dir" && as_dir=.
  2666. for ac_prog in mkdir gmkdir; do
  2667. for ac_exec_ext in '' $ac_executable_extensions; do
  2668. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2669. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2670. 'mkdir (GNU coreutils) '* | \
  2671. 'mkdir (coreutils) '* | \
  2672. 'mkdir (fileutils) '4.1*)
  2673. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2674. break 3;;
  2675. esac
  2676. done
  2677. done
  2678. done
  2679. IFS=$as_save_IFS
  2680. fi
  2681. test -d ./--version && rmdir ./--version
  2682. if test "${ac_cv_path_mkdir+set}" = set; then
  2683. MKDIR_P="$ac_cv_path_mkdir -p"
  2684. else
  2685. # As a last resort, use the slow shell script. Don't cache a
  2686. # value for MKDIR_P within a source directory, because that will
  2687. # break other packages using the cache if that directory is
  2688. # removed, or if the value is a relative name.
  2689. MKDIR_P="$ac_install_sh -d"
  2690. fi
  2691. fi
  2692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2693. $as_echo "$MKDIR_P" >&6; }
  2694. for ac_prog in gawk mawk nawk awk
  2695. do
  2696. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2697. set dummy $ac_prog; ac_word=$2
  2698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2699. $as_echo_n "checking for $ac_word... " >&6; }
  2700. if ${ac_cv_prog_AWK+:} false; then :
  2701. $as_echo_n "(cached) " >&6
  2702. else
  2703. if test -n "$AWK"; then
  2704. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2705. else
  2706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2707. for as_dir in $PATH
  2708. do
  2709. IFS=$as_save_IFS
  2710. test -z "$as_dir" && as_dir=.
  2711. for ac_exec_ext in '' $ac_executable_extensions; do
  2712. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2713. ac_cv_prog_AWK="$ac_prog"
  2714. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2715. break 2
  2716. fi
  2717. done
  2718. done
  2719. IFS=$as_save_IFS
  2720. fi
  2721. fi
  2722. AWK=$ac_cv_prog_AWK
  2723. if test -n "$AWK"; then
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2725. $as_echo "$AWK" >&6; }
  2726. else
  2727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2728. $as_echo "no" >&6; }
  2729. fi
  2730. test -n "$AWK" && break
  2731. done
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2733. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2734. set x ${MAKE-make}
  2735. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2736. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2737. $as_echo_n "(cached) " >&6
  2738. else
  2739. cat >conftest.make <<\_ACEOF
  2740. SHELL = /bin/sh
  2741. all:
  2742. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2743. _ACEOF
  2744. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2745. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2746. *@@@%%%=?*=@@@%%%*)
  2747. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2748. *)
  2749. eval ac_cv_prog_make_${ac_make}_set=no;;
  2750. esac
  2751. rm -f conftest.make
  2752. fi
  2753. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2755. $as_echo "yes" >&6; }
  2756. SET_MAKE=
  2757. else
  2758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2759. $as_echo "no" >&6; }
  2760. SET_MAKE="MAKE=${MAKE-make}"
  2761. fi
  2762. rm -rf .tst 2>/dev/null
  2763. mkdir .tst 2>/dev/null
  2764. if test -d .tst; then
  2765. am__leading_dot=.
  2766. else
  2767. am__leading_dot=_
  2768. fi
  2769. rmdir .tst 2>/dev/null
  2770. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2771. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2772. # is not polluted with repeated "-I."
  2773. am__isrc=' -I$(srcdir)'
  2774. # test to see if srcdir already configured
  2775. if test -f $srcdir/config.status; then
  2776. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2777. fi
  2778. fi
  2779. # test whether we have cygpath
  2780. if test -z "$CYGPATH_W"; then
  2781. if (cygpath --version) >/dev/null 2>/dev/null; then
  2782. CYGPATH_W='cygpath -w'
  2783. else
  2784. CYGPATH_W=echo
  2785. fi
  2786. fi
  2787. # Define the identity of the package.
  2788. PACKAGE='xf86-video-intel'
  2789. VERSION='2.99.916'
  2790. cat >>confdefs.h <<_ACEOF
  2791. #define PACKAGE "$PACKAGE"
  2792. _ACEOF
  2793. cat >>confdefs.h <<_ACEOF
  2794. #define VERSION "$VERSION"
  2795. _ACEOF
  2796. # Some tools Automake needs.
  2797. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2798. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2799. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2800. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2801. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2802. # For better backward compatibility. To be removed once Automake 1.9.x
  2803. # dies out for good. For more background, see:
  2804. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2805. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2806. mkdir_p='$(MKDIR_P)'
  2807. # We need awk for the "check" target. The system "awk" is bad on
  2808. # some platforms.
  2809. # Always define AMTAR for backward compatibility. Yes, it's still used
  2810. # in the wild :-( We should find a proper way to deprecate it ...
  2811. AMTAR='$${TAR-tar}'
  2812. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2813. # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
  2814. DEPDIR="${am__leading_dot}deps"
  2815. ac_config_commands="$ac_config_commands depfiles"
  2816. am_make=${MAKE-make}
  2817. cat > confinc << 'END'
  2818. am__doit:
  2819. @echo this is the am__doit target
  2820. .PHONY: am__doit
  2821. END
  2822. # If we don't find an include directive, just comment out the code.
  2823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2824. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2825. am__include="#"
  2826. am__quote=
  2827. _am_result=none
  2828. # First try GNU make style include.
  2829. echo "include confinc" > confmf
  2830. # Ignore all kinds of additional output from 'make'.
  2831. case `$am_make -s -f confmf 2> /dev/null` in #(
  2832. *the\ am__doit\ target*)
  2833. am__include=include
  2834. am__quote=
  2835. _am_result=GNU
  2836. ;;
  2837. esac
  2838. # Now try BSD make style include.
  2839. if test "$am__include" = "#"; then
  2840. echo '.include "confinc"' > confmf
  2841. case `$am_make -s -f confmf 2> /dev/null` in #(
  2842. *the\ am__doit\ target*)
  2843. am__include=.include
  2844. am__quote="\""
  2845. _am_result=BSD
  2846. ;;
  2847. esac
  2848. fi
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2850. $as_echo "$_am_result" >&6; }
  2851. rm -f confinc confmf
  2852. # Check whether --enable-dependency-tracking was given.
  2853. if test "${enable_dependency_tracking+set}" = set; then :
  2854. enableval=$enable_dependency_tracking;
  2855. fi
  2856. if test "x$enable_dependency_tracking" != xno; then
  2857. am_depcomp="$ac_aux_dir/depcomp"
  2858. AMDEPBACKSLASH='\'
  2859. am__nodep='_no'
  2860. fi
  2861. if test "x$enable_dependency_tracking" != xno; then
  2862. AMDEP_TRUE=
  2863. AMDEP_FALSE='#'
  2864. else
  2865. AMDEP_TRUE='#'
  2866. AMDEP_FALSE=
  2867. fi
  2868. ac_ext=c
  2869. ac_cpp='$CPP $CPPFLAGS'
  2870. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2871. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2872. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2873. if test -n "$ac_tool_prefix"; then
  2874. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2875. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2877. $as_echo_n "checking for $ac_word... " >&6; }
  2878. if ${ac_cv_prog_CC+:} false; then :
  2879. $as_echo_n "(cached) " >&6
  2880. else
  2881. if test -n "$CC"; then
  2882. ac_cv_prog_CC="$CC" # Let the user override the test.
  2883. else
  2884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2885. for as_dir in $PATH
  2886. do
  2887. IFS=$as_save_IFS
  2888. test -z "$as_dir" && as_dir=.
  2889. for ac_exec_ext in '' $ac_executable_extensions; do
  2890. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2891. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2892. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2893. break 2
  2894. fi
  2895. done
  2896. done
  2897. IFS=$as_save_IFS
  2898. fi
  2899. fi
  2900. CC=$ac_cv_prog_CC
  2901. if test -n "$CC"; then
  2902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2903. $as_echo "$CC" >&6; }
  2904. else
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2906. $as_echo "no" >&6; }
  2907. fi
  2908. fi
  2909. if test -z "$ac_cv_prog_CC"; then
  2910. ac_ct_CC=$CC
  2911. # Extract the first word of "gcc", so it can be a program name with args.
  2912. set dummy gcc; ac_word=$2
  2913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2914. $as_echo_n "checking for $ac_word... " >&6; }
  2915. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2916. $as_echo_n "(cached) " >&6
  2917. else
  2918. if test -n "$ac_ct_CC"; then
  2919. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2920. else
  2921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2922. for as_dir in $PATH
  2923. do
  2924. IFS=$as_save_IFS
  2925. test -z "$as_dir" && as_dir=.
  2926. for ac_exec_ext in '' $ac_executable_extensions; do
  2927. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2928. ac_cv_prog_ac_ct_CC="gcc"
  2929. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2930. break 2
  2931. fi
  2932. done
  2933. done
  2934. IFS=$as_save_IFS
  2935. fi
  2936. fi
  2937. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2938. if test -n "$ac_ct_CC"; then
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2940. $as_echo "$ac_ct_CC" >&6; }
  2941. else
  2942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2943. $as_echo "no" >&6; }
  2944. fi
  2945. if test "x$ac_ct_CC" = x; then
  2946. CC=""
  2947. else
  2948. case $cross_compiling:$ac_tool_warned in
  2949. yes:)
  2950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2951. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2952. ac_tool_warned=yes ;;
  2953. esac
  2954. CC=$ac_ct_CC
  2955. fi
  2956. else
  2957. CC="$ac_cv_prog_CC"
  2958. fi
  2959. if test -z "$CC"; then
  2960. if test -n "$ac_tool_prefix"; then
  2961. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2962. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2964. $as_echo_n "checking for $ac_word... " >&6; }
  2965. if ${ac_cv_prog_CC+:} false; then :
  2966. $as_echo_n "(cached) " >&6
  2967. else
  2968. if test -n "$CC"; then
  2969. ac_cv_prog_CC="$CC" # Let the user override the test.
  2970. else
  2971. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2972. for as_dir in $PATH
  2973. do
  2974. IFS=$as_save_IFS
  2975. test -z "$as_dir" && as_dir=.
  2976. for ac_exec_ext in '' $ac_executable_extensions; do
  2977. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2978. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2979. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2980. break 2
  2981. fi
  2982. done
  2983. done
  2984. IFS=$as_save_IFS
  2985. fi
  2986. fi
  2987. CC=$ac_cv_prog_CC
  2988. if test -n "$CC"; then
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2990. $as_echo "$CC" >&6; }
  2991. else
  2992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2993. $as_echo "no" >&6; }
  2994. fi
  2995. fi
  2996. fi
  2997. if test -z "$CC"; then
  2998. # Extract the first word of "cc", so it can be a program name with args.
  2999. set dummy cc; ac_word=$2
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3001. $as_echo_n "checking for $ac_word... " >&6; }
  3002. if ${ac_cv_prog_CC+:} false; then :
  3003. $as_echo_n "(cached) " >&6
  3004. else
  3005. if test -n "$CC"; then
  3006. ac_cv_prog_CC="$CC" # Let the user override the test.
  3007. else
  3008. ac_prog_rejected=no
  3009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3010. for as_dir in $PATH
  3011. do
  3012. IFS=$as_save_IFS
  3013. test -z "$as_dir" && as_dir=.
  3014. for ac_exec_ext in '' $ac_executable_extensions; do
  3015. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3016. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3017. ac_prog_rejected=yes
  3018. continue
  3019. fi
  3020. ac_cv_prog_CC="cc"
  3021. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3022. break 2
  3023. fi
  3024. done
  3025. done
  3026. IFS=$as_save_IFS
  3027. if test $ac_prog_rejected = yes; then
  3028. # We found a bogon in the path, so make sure we never use it.
  3029. set dummy $ac_cv_prog_CC
  3030. shift
  3031. if test $# != 0; then
  3032. # We chose a different compiler from the bogus one.
  3033. # However, it has the same basename, so the bogon will be chosen
  3034. # first if we set CC to just the basename; use the full file name.
  3035. shift
  3036. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3037. fi
  3038. fi
  3039. fi
  3040. fi
  3041. CC=$ac_cv_prog_CC
  3042. if test -n "$CC"; then
  3043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3044. $as_echo "$CC" >&6; }
  3045. else
  3046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3047. $as_echo "no" >&6; }
  3048. fi
  3049. fi
  3050. if test -z "$CC"; then
  3051. if test -n "$ac_tool_prefix"; then
  3052. for ac_prog in cl.exe
  3053. do
  3054. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3055. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3057. $as_echo_n "checking for $ac_word... " >&6; }
  3058. if ${ac_cv_prog_CC+:} false; then :
  3059. $as_echo_n "(cached) " >&6
  3060. else
  3061. if test -n "$CC"; then
  3062. ac_cv_prog_CC="$CC" # Let the user override the test.
  3063. else
  3064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3065. for as_dir in $PATH
  3066. do
  3067. IFS=$as_save_IFS
  3068. test -z "$as_dir" && as_dir=.
  3069. for ac_exec_ext in '' $ac_executable_extensions; do
  3070. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3071. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3072. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3073. break 2
  3074. fi
  3075. done
  3076. done
  3077. IFS=$as_save_IFS
  3078. fi
  3079. fi
  3080. CC=$ac_cv_prog_CC
  3081. if test -n "$CC"; then
  3082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3083. $as_echo "$CC" >&6; }
  3084. else
  3085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3086. $as_echo "no" >&6; }
  3087. fi
  3088. test -n "$CC" && break
  3089. done
  3090. fi
  3091. if test -z "$CC"; then
  3092. ac_ct_CC=$CC
  3093. for ac_prog in cl.exe
  3094. do
  3095. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3096. set dummy $ac_prog; ac_word=$2
  3097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3098. $as_echo_n "checking for $ac_word... " >&6; }
  3099. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3100. $as_echo_n "(cached) " >&6
  3101. else
  3102. if test -n "$ac_ct_CC"; then
  3103. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3104. else
  3105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3106. for as_dir in $PATH
  3107. do
  3108. IFS=$as_save_IFS
  3109. test -z "$as_dir" && as_dir=.
  3110. for ac_exec_ext in '' $ac_executable_extensions; do
  3111. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3112. ac_cv_prog_ac_ct_CC="$ac_prog"
  3113. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3114. break 2
  3115. fi
  3116. done
  3117. done
  3118. IFS=$as_save_IFS
  3119. fi
  3120. fi
  3121. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3122. if test -n "$ac_ct_CC"; then
  3123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3124. $as_echo "$ac_ct_CC" >&6; }
  3125. else
  3126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3127. $as_echo "no" >&6; }
  3128. fi
  3129. test -n "$ac_ct_CC" && break
  3130. done
  3131. if test "x$ac_ct_CC" = x; then
  3132. CC=""
  3133. else
  3134. case $cross_compiling:$ac_tool_warned in
  3135. yes:)
  3136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3137. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3138. ac_tool_warned=yes ;;
  3139. esac
  3140. CC=$ac_ct_CC
  3141. fi
  3142. fi
  3143. fi
  3144. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3145. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3146. as_fn_error $? "no acceptable C compiler found in \$PATH
  3147. See \`config.log' for more details" "$LINENO" 5; }
  3148. # Provide some information about the compiler.
  3149. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3150. set X $ac_compile
  3151. ac_compiler=$2
  3152. for ac_option in --version -v -V -qversion; do
  3153. { { ac_try="$ac_compiler $ac_option >&5"
  3154. case "(($ac_try" in
  3155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3156. *) ac_try_echo=$ac_try;;
  3157. esac
  3158. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3159. $as_echo "$ac_try_echo"; } >&5
  3160. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3161. ac_status=$?
  3162. if test -s conftest.err; then
  3163. sed '10a\
  3164. ... rest of stderr output deleted ...
  3165. 10q' conftest.err >conftest.er1
  3166. cat conftest.er1 >&5
  3167. fi
  3168. rm -f conftest.er1 conftest.err
  3169. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3170. test $ac_status = 0; }
  3171. done
  3172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3173. /* end confdefs.h. */
  3174. int
  3175. main ()
  3176. {
  3177. ;
  3178. return 0;
  3179. }
  3180. _ACEOF
  3181. ac_clean_files_save=$ac_clean_files
  3182. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3183. # Try to create an executable without -o first, disregard a.out.
  3184. # It will help us diagnose broken compilers, and finding out an intuition
  3185. # of exeext.
  3186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3187. $as_echo_n "checking whether the C compiler works... " >&6; }
  3188. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3189. # The possible output files:
  3190. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3191. ac_rmfiles=
  3192. for ac_file in $ac_files
  3193. do
  3194. case $ac_file in
  3195. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3196. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3197. esac
  3198. done
  3199. rm -f $ac_rmfiles
  3200. if { { ac_try="$ac_link_default"
  3201. case "(($ac_try" in
  3202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3203. *) ac_try_echo=$ac_try;;
  3204. esac
  3205. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3206. $as_echo "$ac_try_echo"; } >&5
  3207. (eval "$ac_link_default") 2>&5
  3208. ac_status=$?
  3209. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3210. test $ac_status = 0; }; then :
  3211. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3212. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3213. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3214. # so that the user can short-circuit this test for compilers unknown to
  3215. # Autoconf.
  3216. for ac_file in $ac_files ''
  3217. do
  3218. test -f "$ac_file" || continue
  3219. case $ac_file in
  3220. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3221. ;;
  3222. [ab].out )
  3223. # We found the default executable, but exeext='' is most
  3224. # certainly right.
  3225. break;;
  3226. *.* )
  3227. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3228. then :; else
  3229. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3230. fi
  3231. # We set ac_cv_exeext here because the later test for it is not
  3232. # safe: cross compilers may not add the suffix if given an `-o'
  3233. # argument, so we may need to know it at that point already.
  3234. # Even if this section looks crufty: it has the advantage of
  3235. # actually working.
  3236. break;;
  3237. * )
  3238. break;;
  3239. esac
  3240. done
  3241. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3242. else
  3243. ac_file=''
  3244. fi
  3245. if test -z "$ac_file"; then :
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3247. $as_echo "no" >&6; }
  3248. $as_echo "$as_me: failed program was:" >&5
  3249. sed 's/^/| /' conftest.$ac_ext >&5
  3250. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3251. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3252. as_fn_error 77 "C compiler cannot create executables
  3253. See \`config.log' for more details" "$LINENO" 5; }
  3254. else
  3255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3256. $as_echo "yes" >&6; }
  3257. fi
  3258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3259. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3261. $as_echo "$ac_file" >&6; }
  3262. ac_exeext=$ac_cv_exeext
  3263. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3264. ac_clean_files=$ac_clean_files_save
  3265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3266. $as_echo_n "checking for suffix of executables... " >&6; }
  3267. if { { ac_try="$ac_link"
  3268. case "(($ac_try" in
  3269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3270. *) ac_try_echo=$ac_try;;
  3271. esac
  3272. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3273. $as_echo "$ac_try_echo"; } >&5
  3274. (eval "$ac_link") 2>&5
  3275. ac_status=$?
  3276. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3277. test $ac_status = 0; }; then :
  3278. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3279. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3280. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3281. # `rm'.
  3282. for ac_file in conftest.exe conftest conftest.*; do
  3283. test -f "$ac_file" || continue
  3284. case $ac_file in
  3285. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3286. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3287. break;;
  3288. * ) break;;
  3289. esac
  3290. done
  3291. else
  3292. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3293. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3294. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3295. See \`config.log' for more details" "$LINENO" 5; }
  3296. fi
  3297. rm -f conftest conftest$ac_cv_exeext
  3298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3299. $as_echo "$ac_cv_exeext" >&6; }
  3300. rm -f conftest.$ac_ext
  3301. EXEEXT=$ac_cv_exeext
  3302. ac_exeext=$EXEEXT
  3303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3304. /* end confdefs.h. */
  3305. #include <stdio.h>
  3306. int
  3307. main ()
  3308. {
  3309. FILE *f = fopen ("conftest.out", "w");
  3310. return ferror (f) || fclose (f) != 0;
  3311. ;
  3312. return 0;
  3313. }
  3314. _ACEOF
  3315. ac_clean_files="$ac_clean_files conftest.out"
  3316. # Check that the compiler produces executables we can run. If not, either
  3317. # the compiler is broken, or we cross compile.
  3318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3319. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3320. if test "$cross_compiling" != yes; then
  3321. { { ac_try="$ac_link"
  3322. case "(($ac_try" in
  3323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3324. *) ac_try_echo=$ac_try;;
  3325. esac
  3326. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3327. $as_echo "$ac_try_echo"; } >&5
  3328. (eval "$ac_link") 2>&5
  3329. ac_status=$?
  3330. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3331. test $ac_status = 0; }
  3332. if { ac_try='./conftest$ac_cv_exeext'
  3333. { { case "(($ac_try" in
  3334. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3335. *) ac_try_echo=$ac_try;;
  3336. esac
  3337. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3338. $as_echo "$ac_try_echo"; } >&5
  3339. (eval "$ac_try") 2>&5
  3340. ac_status=$?
  3341. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3342. test $ac_status = 0; }; }; then
  3343. cross_compiling=no
  3344. else
  3345. if test "$cross_compiling" = maybe; then
  3346. cross_compiling=yes
  3347. else
  3348. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3349. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3350. as_fn_error $? "cannot run C compiled programs.
  3351. If you meant to cross compile, use \`--host'.
  3352. See \`config.log' for more details" "$LINENO" 5; }
  3353. fi
  3354. fi
  3355. fi
  3356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3357. $as_echo "$cross_compiling" >&6; }
  3358. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3359. ac_clean_files=$ac_clean_files_save
  3360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3361. $as_echo_n "checking for suffix of object files... " >&6; }
  3362. if ${ac_cv_objext+:} false; then :
  3363. $as_echo_n "(cached) " >&6
  3364. else
  3365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3366. /* end confdefs.h. */
  3367. int
  3368. main ()
  3369. {
  3370. ;
  3371. return 0;
  3372. }
  3373. _ACEOF
  3374. rm -f conftest.o conftest.obj
  3375. if { { ac_try="$ac_compile"
  3376. case "(($ac_try" in
  3377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3378. *) ac_try_echo=$ac_try;;
  3379. esac
  3380. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3381. $as_echo "$ac_try_echo"; } >&5
  3382. (eval "$ac_compile") 2>&5
  3383. ac_status=$?
  3384. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3385. test $ac_status = 0; }; then :
  3386. for ac_file in conftest.o conftest.obj conftest.*; do
  3387. test -f "$ac_file" || continue;
  3388. case $ac_file in
  3389. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3390. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3391. break;;
  3392. esac
  3393. done
  3394. else
  3395. $as_echo "$as_me: failed program was:" >&5
  3396. sed 's/^/| /' conftest.$ac_ext >&5
  3397. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3398. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3399. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3400. See \`config.log' for more details" "$LINENO" 5; }
  3401. fi
  3402. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3403. fi
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3405. $as_echo "$ac_cv_objext" >&6; }
  3406. OBJEXT=$ac_cv_objext
  3407. ac_objext=$OBJEXT
  3408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3409. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3410. if ${ac_cv_c_compiler_gnu+:} false; then :
  3411. $as_echo_n "(cached) " >&6
  3412. else
  3413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3414. /* end confdefs.h. */
  3415. int
  3416. main ()
  3417. {
  3418. #ifndef __GNUC__
  3419. choke me
  3420. #endif
  3421. ;
  3422. return 0;
  3423. }
  3424. _ACEOF
  3425. if ac_fn_c_try_compile "$LINENO"; then :
  3426. ac_compiler_gnu=yes
  3427. else
  3428. ac_compiler_gnu=no
  3429. fi
  3430. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3431. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3432. fi
  3433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3434. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3435. if test $ac_compiler_gnu = yes; then
  3436. GCC=yes
  3437. else
  3438. GCC=
  3439. fi
  3440. ac_test_CFLAGS=${CFLAGS+set}
  3441. ac_save_CFLAGS=$CFLAGS
  3442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3443. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3444. if ${ac_cv_prog_cc_g+:} false; then :
  3445. $as_echo_n "(cached) " >&6
  3446. else
  3447. ac_save_c_werror_flag=$ac_c_werror_flag
  3448. ac_c_werror_flag=yes
  3449. ac_cv_prog_cc_g=no
  3450. CFLAGS="-g"
  3451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3452. /* end confdefs.h. */
  3453. int
  3454. main ()
  3455. {
  3456. ;
  3457. return 0;
  3458. }
  3459. _ACEOF
  3460. if ac_fn_c_try_compile "$LINENO"; then :
  3461. ac_cv_prog_cc_g=yes
  3462. else
  3463. CFLAGS=""
  3464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3465. /* end confdefs.h. */
  3466. int
  3467. main ()
  3468. {
  3469. ;
  3470. return 0;
  3471. }
  3472. _ACEOF
  3473. if ac_fn_c_try_compile "$LINENO"; then :
  3474. else
  3475. ac_c_werror_flag=$ac_save_c_werror_flag
  3476. CFLAGS="-g"
  3477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3478. /* end confdefs.h. */
  3479. int
  3480. main ()
  3481. {
  3482. ;
  3483. return 0;
  3484. }
  3485. _ACEOF
  3486. if ac_fn_c_try_compile "$LINENO"; then :
  3487. ac_cv_prog_cc_g=yes
  3488. fi
  3489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3490. fi
  3491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3492. fi
  3493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3494. ac_c_werror_flag=$ac_save_c_werror_flag
  3495. fi
  3496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3497. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3498. if test "$ac_test_CFLAGS" = set; then
  3499. CFLAGS=$ac_save_CFLAGS
  3500. elif test $ac_cv_prog_cc_g = yes; then
  3501. if test "$GCC" = yes; then
  3502. CFLAGS="-g -O2"
  3503. else
  3504. CFLAGS="-g"
  3505. fi
  3506. else
  3507. if test "$GCC" = yes; then
  3508. CFLAGS="-O2"
  3509. else
  3510. CFLAGS=
  3511. fi
  3512. fi
  3513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3514. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3515. if ${ac_cv_prog_cc_c89+:} false; then :
  3516. $as_echo_n "(cached) " >&6
  3517. else
  3518. ac_cv_prog_cc_c89=no
  3519. ac_save_CC=$CC
  3520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3521. /* end confdefs.h. */
  3522. #include <stdarg.h>
  3523. #include <stdio.h>
  3524. struct stat;
  3525. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3526. struct buf { int x; };
  3527. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3528. static char *e (p, i)
  3529. char **p;
  3530. int i;
  3531. {
  3532. return p[i];
  3533. }
  3534. static char *f (char * (*g) (char **, int), char **p, ...)
  3535. {
  3536. char *s;
  3537. va_list v;
  3538. va_start (v,p);
  3539. s = g (p, va_arg (v,int));
  3540. va_end (v);
  3541. return s;
  3542. }
  3543. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3544. function prototypes and stuff, but not '\xHH' hex character constants.
  3545. These don't provoke an error unfortunately, instead are silently treated
  3546. as 'x'. The following induces an error, until -std is added to get
  3547. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3548. array size at least. It's necessary to write '\x00'==0 to get something
  3549. that's true only with -std. */
  3550. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3551. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3552. inside strings and character constants. */
  3553. #define FOO(x) 'x'
  3554. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3555. int test (int i, double x);
  3556. struct s1 {int (*f) (int a);};
  3557. struct s2 {int (*f) (double a);};
  3558. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3559. int argc;
  3560. char **argv;
  3561. int
  3562. main ()
  3563. {
  3564. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3565. ;
  3566. return 0;
  3567. }
  3568. _ACEOF
  3569. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3570. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3571. do
  3572. CC="$ac_save_CC $ac_arg"
  3573. if ac_fn_c_try_compile "$LINENO"; then :
  3574. ac_cv_prog_cc_c89=$ac_arg
  3575. fi
  3576. rm -f core conftest.err conftest.$ac_objext
  3577. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3578. done
  3579. rm -f conftest.$ac_ext
  3580. CC=$ac_save_CC
  3581. fi
  3582. # AC_CACHE_VAL
  3583. case "x$ac_cv_prog_cc_c89" in
  3584. x)
  3585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3586. $as_echo "none needed" >&6; } ;;
  3587. xno)
  3588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3589. $as_echo "unsupported" >&6; } ;;
  3590. *)
  3591. CC="$CC $ac_cv_prog_cc_c89"
  3592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3593. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3594. esac
  3595. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3596. fi
  3597. ac_ext=c
  3598. ac_cpp='$CPP $CPPFLAGS'
  3599. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3600. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3601. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3602. depcc="$CC" am_compiler_list=
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3604. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3605. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3606. $as_echo_n "(cached) " >&6
  3607. else
  3608. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3609. # We make a subdir and do the tests there. Otherwise we can end up
  3610. # making bogus files that we don't know about and never remove. For
  3611. # instance it was reported that on HP-UX the gcc test will end up
  3612. # making a dummy file named 'D' -- because '-MD' means "put the output
  3613. # in D".
  3614. rm -rf conftest.dir
  3615. mkdir conftest.dir
  3616. # Copy depcomp to subdir because otherwise we won't find it if we're
  3617. # using a relative directory.
  3618. cp "$am_depcomp" conftest.dir
  3619. cd conftest.dir
  3620. # We will build objects and dependencies in a subdirectory because
  3621. # it helps to detect inapplicable dependency modes. For instance
  3622. # both Tru64's cc and ICC support -MD to output dependencies as a
  3623. # side effect of compilation, but ICC will put the dependencies in
  3624. # the current directory while Tru64 will put them in the object
  3625. # directory.
  3626. mkdir sub
  3627. am_cv_CC_dependencies_compiler_type=none
  3628. if test "$am_compiler_list" = ""; then
  3629. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3630. fi
  3631. am__universal=false
  3632. case " $depcc " in #(
  3633. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3634. esac
  3635. for depmode in $am_compiler_list; do
  3636. # Setup a source with many dependencies, because some compilers
  3637. # like to wrap large dependency lists on column 80 (with \), and
  3638. # we should not choose a depcomp mode which is confused by this.
  3639. #
  3640. # We need to recreate these files for each test, as the compiler may
  3641. # overwrite some of them when testing with obscure command lines.
  3642. # This happens at least with the AIX C compiler.
  3643. : > sub/conftest.c
  3644. for i in 1 2 3 4 5 6; do
  3645. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3646. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3647. # Solaris 10 /bin/sh.
  3648. echo '/* dummy */' > sub/conftst$i.h
  3649. done
  3650. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3651. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3652. # mode. It turns out that the SunPro C++ compiler does not properly
  3653. # handle '-M -o', and we need to detect this. Also, some Intel
  3654. # versions had trouble with output in subdirs.
  3655. am__obj=sub/conftest.${OBJEXT-o}
  3656. am__minus_obj="-o $am__obj"
  3657. case $depmode in
  3658. gcc)
  3659. # This depmode causes a compiler race in universal mode.
  3660. test "$am__universal" = false || continue
  3661. ;;
  3662. nosideeffect)
  3663. # After this tag, mechanisms are not by side-effect, so they'll
  3664. # only be used when explicitly requested.
  3665. if test "x$enable_dependency_tracking" = xyes; then
  3666. continue
  3667. else
  3668. break
  3669. fi
  3670. ;;
  3671. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3672. # This compiler won't grok '-c -o', but also, the minuso test has
  3673. # not run yet. These depmodes are late enough in the game, and
  3674. # so weak that their functioning should not be impacted.
  3675. am__obj=conftest.${OBJEXT-o}
  3676. am__minus_obj=
  3677. ;;
  3678. none) break ;;
  3679. esac
  3680. if depmode=$depmode \
  3681. source=sub/conftest.c object=$am__obj \
  3682. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3683. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3684. >/dev/null 2>conftest.err &&
  3685. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3686. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3687. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3688. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3689. # icc doesn't choke on unknown options, it will just issue warnings
  3690. # or remarks (even with -Werror). So we grep stderr for any message
  3691. # that says an option was ignored or not supported.
  3692. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3693. # icc: Command line warning: ignoring option '-M'; no argument required
  3694. # The diagnosis changed in icc 8.0:
  3695. # icc: Command line remark: option '-MP' not supported
  3696. if (grep 'ignoring option' conftest.err ||
  3697. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3698. am_cv_CC_dependencies_compiler_type=$depmode
  3699. break
  3700. fi
  3701. fi
  3702. done
  3703. cd ..
  3704. rm -rf conftest.dir
  3705. else
  3706. am_cv_CC_dependencies_compiler_type=none
  3707. fi
  3708. fi
  3709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3710. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3711. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3712. if
  3713. test "x$enable_dependency_tracking" != xno \
  3714. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3715. am__fastdepCC_TRUE=
  3716. am__fastdepCC_FALSE='#'
  3717. else
  3718. am__fastdepCC_TRUE='#'
  3719. am__fastdepCC_FALSE=
  3720. fi
  3721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3722. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3723. if ${ac_cv_prog_cc_c99+:} false; then :
  3724. $as_echo_n "(cached) " >&6
  3725. else
  3726. ac_cv_prog_cc_c99=no
  3727. ac_save_CC=$CC
  3728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3729. /* end confdefs.h. */
  3730. #include <stdarg.h>
  3731. #include <stdbool.h>
  3732. #include <stdlib.h>
  3733. #include <wchar.h>
  3734. #include <stdio.h>
  3735. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3736. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3737. #define showlist(...) puts (#__VA_ARGS__)
  3738. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3739. static void
  3740. test_varargs_macros (void)
  3741. {
  3742. int x = 1234;
  3743. int y = 5678;
  3744. debug ("Flag");
  3745. debug ("X = %d\n", x);
  3746. showlist (The first, second, and third items.);
  3747. report (x>y, "x is %d but y is %d", x, y);
  3748. }
  3749. // Check long long types.
  3750. #define BIG64 18446744073709551615ull
  3751. #define BIG32 4294967295ul
  3752. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3753. #if !BIG_OK
  3754. your preprocessor is broken;
  3755. #endif
  3756. #if BIG_OK
  3757. #else
  3758. your preprocessor is broken;
  3759. #endif
  3760. static long long int bignum = -9223372036854775807LL;
  3761. static unsigned long long int ubignum = BIG64;
  3762. struct incomplete_array
  3763. {
  3764. int datasize;
  3765. double data[];
  3766. };
  3767. struct named_init {
  3768. int number;
  3769. const wchar_t *name;
  3770. double average;
  3771. };
  3772. typedef const char *ccp;
  3773. static inline int
  3774. test_restrict (ccp restrict text)
  3775. {
  3776. // See if C++-style comments work.
  3777. // Iterate through items via the restricted pointer.
  3778. // Also check for declarations in for loops.
  3779. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3780. continue;
  3781. return 0;
  3782. }
  3783. // Check varargs and va_copy.
  3784. static void
  3785. test_varargs (const char *format, ...)
  3786. {
  3787. va_list args;
  3788. va_start (args, format);
  3789. va_list args_copy;
  3790. va_copy (args_copy, args);
  3791. const char *str;
  3792. int number;
  3793. float fnumber;
  3794. while (*format)
  3795. {
  3796. switch (*format++)
  3797. {
  3798. case 's': // string
  3799. str = va_arg (args_copy, const char *);
  3800. break;
  3801. case 'd': // int
  3802. number = va_arg (args_copy, int);
  3803. break;
  3804. case 'f': // float
  3805. fnumber = va_arg (args_copy, double);
  3806. break;
  3807. default:
  3808. break;
  3809. }
  3810. }
  3811. va_end (args_copy);
  3812. va_end (args);
  3813. }
  3814. int
  3815. main ()
  3816. {
  3817. // Check bool.
  3818. _Bool success = false;
  3819. // Check restrict.
  3820. if (test_restrict ("String literal") == 0)
  3821. success = true;
  3822. char *restrict newvar = "Another string";
  3823. // Check varargs.
  3824. test_varargs ("s, d' f .", "string", 65, 34.234);
  3825. test_varargs_macros ();
  3826. // Check flexible array members.
  3827. struct incomplete_array *ia =
  3828. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3829. ia->datasize = 10;
  3830. for (int i = 0; i < ia->datasize; ++i)
  3831. ia->data[i] = i * 1.234;
  3832. // Check named initializers.
  3833. struct named_init ni = {
  3834. .number = 34,
  3835. .name = L"Test wide string",
  3836. .average = 543.34343,
  3837. };
  3838. ni.number = 58;
  3839. int dynamic_array[ni.number];
  3840. dynamic_array[ni.number - 1] = 543;
  3841. // work around unused variable warnings
  3842. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3843. || dynamic_array[ni.number - 1] != 543);
  3844. ;
  3845. return 0;
  3846. }
  3847. _ACEOF
  3848. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  3849. do
  3850. CC="$ac_save_CC $ac_arg"
  3851. if ac_fn_c_try_compile "$LINENO"; then :
  3852. ac_cv_prog_cc_c99=$ac_arg
  3853. fi
  3854. rm -f core conftest.err conftest.$ac_objext
  3855. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3856. done
  3857. rm -f conftest.$ac_ext
  3858. CC=$ac_save_CC
  3859. fi
  3860. # AC_CACHE_VAL
  3861. case "x$ac_cv_prog_cc_c99" in
  3862. x)
  3863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3864. $as_echo "none needed" >&6; } ;;
  3865. xno)
  3866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3867. $as_echo "unsupported" >&6; } ;;
  3868. *)
  3869. CC="$CC $ac_cv_prog_cc_c99"
  3870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3871. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3872. esac
  3873. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3874. fi
  3875. ac_ext=c
  3876. ac_cpp='$CPP $CPPFLAGS'
  3877. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3878. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3879. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3881. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3882. # On Suns, sometimes $CPP names a directory.
  3883. if test -n "$CPP" && test -d "$CPP"; then
  3884. CPP=
  3885. fi
  3886. if test -z "$CPP"; then
  3887. if ${ac_cv_prog_CPP+:} false; then :
  3888. $as_echo_n "(cached) " >&6
  3889. else
  3890. # Double quotes because CPP needs to be expanded
  3891. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3892. do
  3893. ac_preproc_ok=false
  3894. for ac_c_preproc_warn_flag in '' yes
  3895. do
  3896. # Use a header file that comes with gcc, so configuring glibc
  3897. # with a fresh cross-compiler works.
  3898. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3899. # <limits.h> exists even on freestanding compilers.
  3900. # On the NeXT, cc -E runs the code through the compiler's parser,
  3901. # not just through cpp. "Syntax error" is here to catch this case.
  3902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3903. /* end confdefs.h. */
  3904. #ifdef __STDC__
  3905. # include <limits.h>
  3906. #else
  3907. # include <assert.h>
  3908. #endif
  3909. Syntax error
  3910. _ACEOF
  3911. if ac_fn_c_try_cpp "$LINENO"; then :
  3912. else
  3913. # Broken: fails on valid input.
  3914. continue
  3915. fi
  3916. rm -f conftest.err conftest.i conftest.$ac_ext
  3917. # OK, works on sane cases. Now check whether nonexistent headers
  3918. # can be detected and how.
  3919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3920. /* end confdefs.h. */
  3921. #include <ac_nonexistent.h>
  3922. _ACEOF
  3923. if ac_fn_c_try_cpp "$LINENO"; then :
  3924. # Broken: success on invalid input.
  3925. continue
  3926. else
  3927. # Passes both tests.
  3928. ac_preproc_ok=:
  3929. break
  3930. fi
  3931. rm -f conftest.err conftest.i conftest.$ac_ext
  3932. done
  3933. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3934. rm -f conftest.i conftest.err conftest.$ac_ext
  3935. if $ac_preproc_ok; then :
  3936. break
  3937. fi
  3938. done
  3939. ac_cv_prog_CPP=$CPP
  3940. fi
  3941. CPP=$ac_cv_prog_CPP
  3942. else
  3943. ac_cv_prog_CPP=$CPP
  3944. fi
  3945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3946. $as_echo "$CPP" >&6; }
  3947. ac_preproc_ok=false
  3948. for ac_c_preproc_warn_flag in '' yes
  3949. do
  3950. # Use a header file that comes with gcc, so configuring glibc
  3951. # with a fresh cross-compiler works.
  3952. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3953. # <limits.h> exists even on freestanding compilers.
  3954. # On the NeXT, cc -E runs the code through the compiler's parser,
  3955. # not just through cpp. "Syntax error" is here to catch this case.
  3956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3957. /* end confdefs.h. */
  3958. #ifdef __STDC__
  3959. # include <limits.h>
  3960. #else
  3961. # include <assert.h>
  3962. #endif
  3963. Syntax error
  3964. _ACEOF
  3965. if ac_fn_c_try_cpp "$LINENO"; then :
  3966. else
  3967. # Broken: fails on valid input.
  3968. continue
  3969. fi
  3970. rm -f conftest.err conftest.i conftest.$ac_ext
  3971. # OK, works on sane cases. Now check whether nonexistent headers
  3972. # can be detected and how.
  3973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3974. /* end confdefs.h. */
  3975. #include <ac_nonexistent.h>
  3976. _ACEOF
  3977. if ac_fn_c_try_cpp "$LINENO"; then :
  3978. # Broken: success on invalid input.
  3979. continue
  3980. else
  3981. # Passes both tests.
  3982. ac_preproc_ok=:
  3983. break
  3984. fi
  3985. rm -f conftest.err conftest.i conftest.$ac_ext
  3986. done
  3987. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3988. rm -f conftest.i conftest.err conftest.$ac_ext
  3989. if $ac_preproc_ok; then :
  3990. else
  3991. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3992. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3993. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3994. See \`config.log' for more details" "$LINENO" 5; }
  3995. fi
  3996. ac_ext=c
  3997. ac_cpp='$CPP $CPPFLAGS'
  3998. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3999. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4000. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4002. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4003. if ${ac_cv_path_GREP+:} false; then :
  4004. $as_echo_n "(cached) " >&6
  4005. else
  4006. if test -z "$GREP"; then
  4007. ac_path_GREP_found=false
  4008. # Loop through the user's path and test for each of PROGNAME-LIST
  4009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4010. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4011. do
  4012. IFS=$as_save_IFS
  4013. test -z "$as_dir" && as_dir=.
  4014. for ac_prog in grep ggrep; do
  4015. for ac_exec_ext in '' $ac_executable_extensions; do
  4016. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4017. as_fn_executable_p "$ac_path_GREP" || continue
  4018. # Check for GNU ac_path_GREP and select it if it is found.
  4019. # Check for GNU $ac_path_GREP
  4020. case `"$ac_path_GREP" --version 2>&1` in
  4021. *GNU*)
  4022. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4023. *)
  4024. ac_count=0
  4025. $as_echo_n 0123456789 >"conftest.in"
  4026. while :
  4027. do
  4028. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4029. mv "conftest.tmp" "conftest.in"
  4030. cp "conftest.in" "conftest.nl"
  4031. $as_echo 'GREP' >> "conftest.nl"
  4032. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4033. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4034. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4035. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4036. # Best one so far, save it but keep looking for a better one
  4037. ac_cv_path_GREP="$ac_path_GREP"
  4038. ac_path_GREP_max=$ac_count
  4039. fi
  4040. # 10*(2^10) chars as input seems more than enough
  4041. test $ac_count -gt 10 && break
  4042. done
  4043. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4044. esac
  4045. $ac_path_GREP_found && break 3
  4046. done
  4047. done
  4048. done
  4049. IFS=$as_save_IFS
  4050. if test -z "$ac_cv_path_GREP"; then
  4051. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4052. fi
  4053. else
  4054. ac_cv_path_GREP=$GREP
  4055. fi
  4056. fi
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4058. $as_echo "$ac_cv_path_GREP" >&6; }
  4059. GREP="$ac_cv_path_GREP"
  4060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4061. $as_echo_n "checking for egrep... " >&6; }
  4062. if ${ac_cv_path_EGREP+:} false; then :
  4063. $as_echo_n "(cached) " >&6
  4064. else
  4065. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4066. then ac_cv_path_EGREP="$GREP -E"
  4067. else
  4068. if test -z "$EGREP"; then
  4069. ac_path_EGREP_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$PATH_SEPARATOR/usr/xpg4/bin
  4073. do
  4074. IFS=$as_save_IFS
  4075. test -z "$as_dir" && as_dir=.
  4076. for ac_prog in egrep; do
  4077. for ac_exec_ext in '' $ac_executable_extensions; do
  4078. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4079. as_fn_executable_p "$ac_path_EGREP" || continue
  4080. # Check for GNU ac_path_EGREP and select it if it is found.
  4081. # Check for GNU $ac_path_EGREP
  4082. case `"$ac_path_EGREP" --version 2>&1` in
  4083. *GNU*)
  4084. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_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 'EGREP' >> "conftest.nl"
  4094. "$ac_path_EGREP" 'EGREP$' < "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_EGREP_max-0}; then
  4098. # Best one so far, save it but keep looking for a better one
  4099. ac_cv_path_EGREP="$ac_path_EGREP"
  4100. ac_path_EGREP_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_EGREP_found && break 3
  4108. done
  4109. done
  4110. done
  4111. IFS=$as_save_IFS
  4112. if test -z "$ac_cv_path_EGREP"; then
  4113. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4114. fi
  4115. else
  4116. ac_cv_path_EGREP=$EGREP
  4117. fi
  4118. fi
  4119. fi
  4120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4121. $as_echo "$ac_cv_path_EGREP" >&6; }
  4122. EGREP="$ac_cv_path_EGREP"
  4123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4124. $as_echo_n "checking for ANSI C header files... " >&6; }
  4125. if ${ac_cv_header_stdc+:} false; then :
  4126. $as_echo_n "(cached) " >&6
  4127. else
  4128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4129. /* end confdefs.h. */
  4130. #include <stdlib.h>
  4131. #include <stdarg.h>
  4132. #include <string.h>
  4133. #include <float.h>
  4134. int
  4135. main ()
  4136. {
  4137. ;
  4138. return 0;
  4139. }
  4140. _ACEOF
  4141. if ac_fn_c_try_compile "$LINENO"; then :
  4142. ac_cv_header_stdc=yes
  4143. else
  4144. ac_cv_header_stdc=no
  4145. fi
  4146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4147. if test $ac_cv_header_stdc = yes; then
  4148. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4150. /* end confdefs.h. */
  4151. #include <string.h>
  4152. _ACEOF
  4153. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4154. $EGREP "memchr" >/dev/null 2>&1; then :
  4155. else
  4156. ac_cv_header_stdc=no
  4157. fi
  4158. rm -f conftest*
  4159. fi
  4160. if test $ac_cv_header_stdc = yes; then
  4161. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4163. /* end confdefs.h. */
  4164. #include <stdlib.h>
  4165. _ACEOF
  4166. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4167. $EGREP "free" >/dev/null 2>&1; then :
  4168. else
  4169. ac_cv_header_stdc=no
  4170. fi
  4171. rm -f conftest*
  4172. fi
  4173. if test $ac_cv_header_stdc = yes; then
  4174. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4175. if test "$cross_compiling" = yes; then :
  4176. :
  4177. else
  4178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4179. /* end confdefs.h. */
  4180. #include <ctype.h>
  4181. #include <stdlib.h>
  4182. #if ((' ' & 0x0FF) == 0x020)
  4183. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4184. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4185. #else
  4186. # define ISLOWER(c) \
  4187. (('a' <= (c) && (c) <= 'i') \
  4188. || ('j' <= (c) && (c) <= 'r') \
  4189. || ('s' <= (c) && (c) <= 'z'))
  4190. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4191. #endif
  4192. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4193. int
  4194. main ()
  4195. {
  4196. int i;
  4197. for (i = 0; i < 256; i++)
  4198. if (XOR (islower (i), ISLOWER (i))
  4199. || toupper (i) != TOUPPER (i))
  4200. return 2;
  4201. return 0;
  4202. }
  4203. _ACEOF
  4204. if ac_fn_c_try_run "$LINENO"; then :
  4205. else
  4206. ac_cv_header_stdc=no
  4207. fi
  4208. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4209. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4210. fi
  4211. fi
  4212. fi
  4213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4214. $as_echo "$ac_cv_header_stdc" >&6; }
  4215. if test $ac_cv_header_stdc = yes; then
  4216. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4217. fi
  4218. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4219. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4220. inttypes.h stdint.h unistd.h
  4221. do :
  4222. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4223. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4224. "
  4225. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4226. cat >>confdefs.h <<_ACEOF
  4227. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4228. _ACEOF
  4229. fi
  4230. done
  4231. ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
  4232. if test "x$ac_cv_have_decl___clang__" = xyes; then :
  4233. CLANGCC="yes"
  4234. else
  4235. CLANGCC="no"
  4236. fi
  4237. ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
  4238. if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
  4239. INTELCC="yes"
  4240. else
  4241. INTELCC="no"
  4242. fi
  4243. ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
  4244. if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
  4245. SUNCC="yes"
  4246. else
  4247. SUNCC="no"
  4248. fi
  4249. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  4250. if test -n "$ac_tool_prefix"; then
  4251. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  4252. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4254. $as_echo_n "checking for $ac_word... " >&6; }
  4255. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  4256. $as_echo_n "(cached) " >&6
  4257. else
  4258. case $PKG_CONFIG in
  4259. [\\/]* | ?:[\\/]*)
  4260. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  4261. ;;
  4262. *)
  4263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4264. for as_dir in $PATH
  4265. do
  4266. IFS=$as_save_IFS
  4267. test -z "$as_dir" && as_dir=.
  4268. for ac_exec_ext in '' $ac_executable_extensions; do
  4269. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4270. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4271. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4272. break 2
  4273. fi
  4274. done
  4275. done
  4276. IFS=$as_save_IFS
  4277. ;;
  4278. esac
  4279. fi
  4280. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  4281. if test -n "$PKG_CONFIG"; then
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  4283. $as_echo "$PKG_CONFIG" >&6; }
  4284. else
  4285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4286. $as_echo "no" >&6; }
  4287. fi
  4288. fi
  4289. if test -z "$ac_cv_path_PKG_CONFIG"; then
  4290. ac_pt_PKG_CONFIG=$PKG_CONFIG
  4291. # Extract the first word of "pkg-config", so it can be a program name with args.
  4292. set dummy pkg-config; ac_word=$2
  4293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4294. $as_echo_n "checking for $ac_word... " >&6; }
  4295. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  4296. $as_echo_n "(cached) " >&6
  4297. else
  4298. case $ac_pt_PKG_CONFIG in
  4299. [\\/]* | ?:[\\/]*)
  4300. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  4301. ;;
  4302. *)
  4303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4304. for as_dir in $PATH
  4305. do
  4306. IFS=$as_save_IFS
  4307. test -z "$as_dir" && as_dir=.
  4308. for ac_exec_ext in '' $ac_executable_extensions; do
  4309. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4310. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4311. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4312. break 2
  4313. fi
  4314. done
  4315. done
  4316. IFS=$as_save_IFS
  4317. ;;
  4318. esac
  4319. fi
  4320. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  4321. if test -n "$ac_pt_PKG_CONFIG"; then
  4322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  4323. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  4324. else
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4326. $as_echo "no" >&6; }
  4327. fi
  4328. if test "x$ac_pt_PKG_CONFIG" = x; then
  4329. PKG_CONFIG=""
  4330. else
  4331. case $cross_compiling:$ac_tool_warned in
  4332. yes:)
  4333. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4334. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4335. ac_tool_warned=yes ;;
  4336. esac
  4337. PKG_CONFIG=$ac_pt_PKG_CONFIG
  4338. fi
  4339. else
  4340. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  4341. fi
  4342. fi
  4343. if test -n "$PKG_CONFIG"; then
  4344. _pkg_min_version=0.9.0
  4345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  4346. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  4347. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  4348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4349. $as_echo "yes" >&6; }
  4350. else
  4351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4352. $as_echo "no" >&6; }
  4353. PKG_CONFIG=""
  4354. fi
  4355. fi
  4356. # Make sure we can run config.sub.
  4357. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4358. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4360. $as_echo_n "checking build system type... " >&6; }
  4361. if ${ac_cv_build+:} false; then :
  4362. $as_echo_n "(cached) " >&6
  4363. else
  4364. ac_build_alias=$build_alias
  4365. test "x$ac_build_alias" = x &&
  4366. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4367. test "x$ac_build_alias" = x &&
  4368. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4369. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4370. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4371. fi
  4372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4373. $as_echo "$ac_cv_build" >&6; }
  4374. case $ac_cv_build in
  4375. *-*-*) ;;
  4376. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4377. esac
  4378. build=$ac_cv_build
  4379. ac_save_IFS=$IFS; IFS='-'
  4380. set x $ac_cv_build
  4381. shift
  4382. build_cpu=$1
  4383. build_vendor=$2
  4384. shift; shift
  4385. # Remember, the first character of IFS is used to create $*,
  4386. # except with old shells:
  4387. build_os=$*
  4388. IFS=$ac_save_IFS
  4389. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4391. $as_echo_n "checking host system type... " >&6; }
  4392. if ${ac_cv_host+:} false; then :
  4393. $as_echo_n "(cached) " >&6
  4394. else
  4395. if test "x$host_alias" = x; then
  4396. ac_cv_host=$ac_cv_build
  4397. else
  4398. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4399. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4400. fi
  4401. fi
  4402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4403. $as_echo "$ac_cv_host" >&6; }
  4404. case $ac_cv_host in
  4405. *-*-*) ;;
  4406. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4407. esac
  4408. host=$ac_cv_host
  4409. ac_save_IFS=$IFS; IFS='-'
  4410. set x $ac_cv_host
  4411. shift
  4412. host_cpu=$1
  4413. host_vendor=$2
  4414. shift; shift
  4415. # Remember, the first character of IFS is used to create $*,
  4416. # except with old shells:
  4417. host_os=$*
  4418. IFS=$ac_save_IFS
  4419. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4421. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4422. if ${ac_cv_path_SED+:} false; then :
  4423. $as_echo_n "(cached) " >&6
  4424. else
  4425. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4426. for ac_i in 1 2 3 4 5 6 7; do
  4427. ac_script="$ac_script$as_nl$ac_script"
  4428. done
  4429. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4430. { ac_script=; unset ac_script;}
  4431. if test -z "$SED"; then
  4432. ac_path_SED_found=false
  4433. # Loop through the user's path and test for each of PROGNAME-LIST
  4434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4435. for as_dir in $PATH
  4436. do
  4437. IFS=$as_save_IFS
  4438. test -z "$as_dir" && as_dir=.
  4439. for ac_prog in sed gsed; do
  4440. for ac_exec_ext in '' $ac_executable_extensions; do
  4441. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4442. as_fn_executable_p "$ac_path_SED" || continue
  4443. # Check for GNU ac_path_SED and select it if it is found.
  4444. # Check for GNU $ac_path_SED
  4445. case `"$ac_path_SED" --version 2>&1` in
  4446. *GNU*)
  4447. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4448. *)
  4449. ac_count=0
  4450. $as_echo_n 0123456789 >"conftest.in"
  4451. while :
  4452. do
  4453. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4454. mv "conftest.tmp" "conftest.in"
  4455. cp "conftest.in" "conftest.nl"
  4456. $as_echo '' >> "conftest.nl"
  4457. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4458. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4459. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4460. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4461. # Best one so far, save it but keep looking for a better one
  4462. ac_cv_path_SED="$ac_path_SED"
  4463. ac_path_SED_max=$ac_count
  4464. fi
  4465. # 10*(2^10) chars as input seems more than enough
  4466. test $ac_count -gt 10 && break
  4467. done
  4468. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4469. esac
  4470. $ac_path_SED_found && break 3
  4471. done
  4472. done
  4473. done
  4474. IFS=$as_save_IFS
  4475. if test -z "$ac_cv_path_SED"; then
  4476. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4477. fi
  4478. else
  4479. ac_cv_path_SED=$SED
  4480. fi
  4481. fi
  4482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4483. $as_echo "$ac_cv_path_SED" >&6; }
  4484. SED="$ac_cv_path_SED"
  4485. rm -f conftest.sed
  4486. # Check whether --enable-selective-werror was given.
  4487. if test "${enable_selective_werror+set}" = set; then :
  4488. enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
  4489. else
  4490. SELECTIVE_WERROR=yes
  4491. fi
  4492. # -v is too short to test reliably with XORG_TESTSET_CFLAG
  4493. if test "x$SUNCC" = "xyes"; then
  4494. BASE_CFLAGS="-v"
  4495. else
  4496. BASE_CFLAGS=""
  4497. fi
  4498. # This chunk of warnings were those that existed in the legacy CWARNFLAGS
  4499. xorg_testset_save_CFLAGS="$CFLAGS"
  4500. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4501. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4503. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4504. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4505. $as_echo_n "(cached) " >&6
  4506. else
  4507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4508. /* end confdefs.h. */
  4509. int i;
  4510. _ACEOF
  4511. if ac_fn_c_try_compile "$LINENO"; then :
  4512. xorg_cv_cc_flag_unknown_warning_option=yes
  4513. else
  4514. xorg_cv_cc_flag_unknown_warning_option=no
  4515. fi
  4516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4517. fi
  4518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4519. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4520. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4521. CFLAGS="$xorg_testset_save_CFLAGS"
  4522. fi
  4523. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4524. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4525. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4526. fi
  4527. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4529. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4530. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4531. $as_echo_n "(cached) " >&6
  4532. else
  4533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4534. /* end confdefs.h. */
  4535. int i;
  4536. _ACEOF
  4537. if ac_fn_c_try_compile "$LINENO"; then :
  4538. xorg_cv_cc_flag_unused_command_line_argument=yes
  4539. else
  4540. xorg_cv_cc_flag_unused_command_line_argument=no
  4541. fi
  4542. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4543. fi
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4545. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4546. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4547. CFLAGS="$xorg_testset_save_CFLAGS"
  4548. fi
  4549. found="no"
  4550. if test $found = "no" ; then
  4551. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4552. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4553. fi
  4554. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4555. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4556. fi
  4557. CFLAGS="$CFLAGS -Wall"
  4558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
  4559. $as_echo_n "checking if $CC supports -Wall... " >&6; }
  4560. cacheid=xorg_cv_cc_flag__Wall
  4561. if eval \${$cacheid+:} false; then :
  4562. $as_echo_n "(cached) " >&6
  4563. else
  4564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4565. /* end confdefs.h. */
  4566. int i;
  4567. int
  4568. main ()
  4569. {
  4570. ;
  4571. return 0;
  4572. }
  4573. _ACEOF
  4574. if ac_fn_c_try_link "$LINENO"; then :
  4575. eval $cacheid=yes
  4576. else
  4577. eval $cacheid=no
  4578. fi
  4579. rm -f core conftest.err conftest.$ac_objext \
  4580. conftest$ac_exeext conftest.$ac_ext
  4581. fi
  4582. CFLAGS="$xorg_testset_save_CFLAGS"
  4583. eval supported=\$$cacheid
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4585. $as_echo "$supported" >&6; }
  4586. if test "$supported" = "yes" ; then
  4587. BASE_CFLAGS="$BASE_CFLAGS -Wall"
  4588. found="yes"
  4589. fi
  4590. fi
  4591. xorg_testset_save_CFLAGS="$CFLAGS"
  4592. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4593. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4595. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4596. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4597. $as_echo_n "(cached) " >&6
  4598. else
  4599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4600. /* end confdefs.h. */
  4601. int i;
  4602. _ACEOF
  4603. if ac_fn_c_try_compile "$LINENO"; then :
  4604. xorg_cv_cc_flag_unknown_warning_option=yes
  4605. else
  4606. xorg_cv_cc_flag_unknown_warning_option=no
  4607. fi
  4608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4609. fi
  4610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4611. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4612. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4613. CFLAGS="$xorg_testset_save_CFLAGS"
  4614. fi
  4615. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4616. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4617. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4618. fi
  4619. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4621. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4622. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4623. $as_echo_n "(cached) " >&6
  4624. else
  4625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4626. /* end confdefs.h. */
  4627. int i;
  4628. _ACEOF
  4629. if ac_fn_c_try_compile "$LINENO"; then :
  4630. xorg_cv_cc_flag_unused_command_line_argument=yes
  4631. else
  4632. xorg_cv_cc_flag_unused_command_line_argument=no
  4633. fi
  4634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4635. fi
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4637. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4638. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4639. CFLAGS="$xorg_testset_save_CFLAGS"
  4640. fi
  4641. found="no"
  4642. if test $found = "no" ; then
  4643. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4644. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4645. fi
  4646. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4647. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4648. fi
  4649. CFLAGS="$CFLAGS -Wpointer-arith"
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
  4651. $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
  4652. cacheid=xorg_cv_cc_flag__Wpointer_arith
  4653. if eval \${$cacheid+:} false; then :
  4654. $as_echo_n "(cached) " >&6
  4655. else
  4656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4657. /* end confdefs.h. */
  4658. int i;
  4659. int
  4660. main ()
  4661. {
  4662. ;
  4663. return 0;
  4664. }
  4665. _ACEOF
  4666. if ac_fn_c_try_link "$LINENO"; then :
  4667. eval $cacheid=yes
  4668. else
  4669. eval $cacheid=no
  4670. fi
  4671. rm -f core conftest.err conftest.$ac_objext \
  4672. conftest$ac_exeext conftest.$ac_ext
  4673. fi
  4674. CFLAGS="$xorg_testset_save_CFLAGS"
  4675. eval supported=\$$cacheid
  4676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4677. $as_echo "$supported" >&6; }
  4678. if test "$supported" = "yes" ; then
  4679. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
  4680. found="yes"
  4681. fi
  4682. fi
  4683. xorg_testset_save_CFLAGS="$CFLAGS"
  4684. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4685. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4687. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4688. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4689. $as_echo_n "(cached) " >&6
  4690. else
  4691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4692. /* end confdefs.h. */
  4693. int i;
  4694. _ACEOF
  4695. if ac_fn_c_try_compile "$LINENO"; then :
  4696. xorg_cv_cc_flag_unknown_warning_option=yes
  4697. else
  4698. xorg_cv_cc_flag_unknown_warning_option=no
  4699. fi
  4700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4701. fi
  4702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4703. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4704. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4705. CFLAGS="$xorg_testset_save_CFLAGS"
  4706. fi
  4707. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4708. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4709. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4710. fi
  4711. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4713. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4714. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4715. $as_echo_n "(cached) " >&6
  4716. else
  4717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4718. /* end confdefs.h. */
  4719. int i;
  4720. _ACEOF
  4721. if ac_fn_c_try_compile "$LINENO"; then :
  4722. xorg_cv_cc_flag_unused_command_line_argument=yes
  4723. else
  4724. xorg_cv_cc_flag_unused_command_line_argument=no
  4725. fi
  4726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4727. fi
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4729. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4730. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4731. CFLAGS="$xorg_testset_save_CFLAGS"
  4732. fi
  4733. found="no"
  4734. if test $found = "no" ; then
  4735. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4736. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4737. fi
  4738. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4739. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4740. fi
  4741. CFLAGS="$CFLAGS -Wmissing-declarations"
  4742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
  4743. $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
  4744. cacheid=xorg_cv_cc_flag__Wmissing_declarations
  4745. if eval \${$cacheid+:} false; then :
  4746. $as_echo_n "(cached) " >&6
  4747. else
  4748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4749. /* end confdefs.h. */
  4750. int i;
  4751. int
  4752. main ()
  4753. {
  4754. ;
  4755. return 0;
  4756. }
  4757. _ACEOF
  4758. if ac_fn_c_try_link "$LINENO"; then :
  4759. eval $cacheid=yes
  4760. else
  4761. eval $cacheid=no
  4762. fi
  4763. rm -f core conftest.err conftest.$ac_objext \
  4764. conftest$ac_exeext conftest.$ac_ext
  4765. fi
  4766. CFLAGS="$xorg_testset_save_CFLAGS"
  4767. eval supported=\$$cacheid
  4768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4769. $as_echo "$supported" >&6; }
  4770. if test "$supported" = "yes" ; then
  4771. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
  4772. found="yes"
  4773. fi
  4774. fi
  4775. xorg_testset_save_CFLAGS="$CFLAGS"
  4776. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4777. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4779. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4780. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4781. $as_echo_n "(cached) " >&6
  4782. else
  4783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4784. /* end confdefs.h. */
  4785. int i;
  4786. _ACEOF
  4787. if ac_fn_c_try_compile "$LINENO"; then :
  4788. xorg_cv_cc_flag_unknown_warning_option=yes
  4789. else
  4790. xorg_cv_cc_flag_unknown_warning_option=no
  4791. fi
  4792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4793. fi
  4794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4795. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4796. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4797. CFLAGS="$xorg_testset_save_CFLAGS"
  4798. fi
  4799. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4800. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4801. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4802. fi
  4803. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4805. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4806. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4807. $as_echo_n "(cached) " >&6
  4808. else
  4809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4810. /* end confdefs.h. */
  4811. int i;
  4812. _ACEOF
  4813. if ac_fn_c_try_compile "$LINENO"; then :
  4814. xorg_cv_cc_flag_unused_command_line_argument=yes
  4815. else
  4816. xorg_cv_cc_flag_unused_command_line_argument=no
  4817. fi
  4818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4819. fi
  4820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4821. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4822. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4823. CFLAGS="$xorg_testset_save_CFLAGS"
  4824. fi
  4825. found="no"
  4826. if test $found = "no" ; then
  4827. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4828. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4829. fi
  4830. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4831. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4832. fi
  4833. CFLAGS="$CFLAGS -Wformat=2"
  4834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
  4835. $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
  4836. cacheid=xorg_cv_cc_flag__Wformat_2
  4837. if eval \${$cacheid+:} false; then :
  4838. $as_echo_n "(cached) " >&6
  4839. else
  4840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4841. /* end confdefs.h. */
  4842. int i;
  4843. int
  4844. main ()
  4845. {
  4846. ;
  4847. return 0;
  4848. }
  4849. _ACEOF
  4850. if ac_fn_c_try_link "$LINENO"; then :
  4851. eval $cacheid=yes
  4852. else
  4853. eval $cacheid=no
  4854. fi
  4855. rm -f core conftest.err conftest.$ac_objext \
  4856. conftest$ac_exeext conftest.$ac_ext
  4857. fi
  4858. CFLAGS="$xorg_testset_save_CFLAGS"
  4859. eval supported=\$$cacheid
  4860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4861. $as_echo "$supported" >&6; }
  4862. if test "$supported" = "yes" ; then
  4863. BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
  4864. found="yes"
  4865. fi
  4866. fi
  4867. if test $found = "no" ; then
  4868. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4869. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4870. fi
  4871. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4872. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4873. fi
  4874. CFLAGS="$CFLAGS -Wformat"
  4875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
  4876. $as_echo_n "checking if $CC supports -Wformat... " >&6; }
  4877. cacheid=xorg_cv_cc_flag__Wformat
  4878. if eval \${$cacheid+:} false; then :
  4879. $as_echo_n "(cached) " >&6
  4880. else
  4881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4882. /* end confdefs.h. */
  4883. int i;
  4884. int
  4885. main ()
  4886. {
  4887. ;
  4888. return 0;
  4889. }
  4890. _ACEOF
  4891. if ac_fn_c_try_link "$LINENO"; then :
  4892. eval $cacheid=yes
  4893. else
  4894. eval $cacheid=no
  4895. fi
  4896. rm -f core conftest.err conftest.$ac_objext \
  4897. conftest$ac_exeext conftest.$ac_ext
  4898. fi
  4899. CFLAGS="$xorg_testset_save_CFLAGS"
  4900. eval supported=\$$cacheid
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4902. $as_echo "$supported" >&6; }
  4903. if test "$supported" = "yes" ; then
  4904. BASE_CFLAGS="$BASE_CFLAGS -Wformat"
  4905. found="yes"
  4906. fi
  4907. fi
  4908. xorg_testset_save_CFLAGS="$CFLAGS"
  4909. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4910. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4912. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4913. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4914. $as_echo_n "(cached) " >&6
  4915. else
  4916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4917. /* end confdefs.h. */
  4918. int i;
  4919. _ACEOF
  4920. if ac_fn_c_try_compile "$LINENO"; then :
  4921. xorg_cv_cc_flag_unknown_warning_option=yes
  4922. else
  4923. xorg_cv_cc_flag_unknown_warning_option=no
  4924. fi
  4925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4926. fi
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4928. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4929. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4930. CFLAGS="$xorg_testset_save_CFLAGS"
  4931. fi
  4932. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4933. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4934. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4935. fi
  4936. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4938. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4939. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4940. $as_echo_n "(cached) " >&6
  4941. else
  4942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4943. /* end confdefs.h. */
  4944. int i;
  4945. _ACEOF
  4946. if ac_fn_c_try_compile "$LINENO"; then :
  4947. xorg_cv_cc_flag_unused_command_line_argument=yes
  4948. else
  4949. xorg_cv_cc_flag_unused_command_line_argument=no
  4950. fi
  4951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4952. fi
  4953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4954. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4955. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4956. CFLAGS="$xorg_testset_save_CFLAGS"
  4957. fi
  4958. found="no"
  4959. if test $found = "no" ; then
  4960. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4961. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4962. fi
  4963. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4964. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4965. fi
  4966. CFLAGS="$CFLAGS -Wstrict-prototypes"
  4967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
  4968. $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
  4969. cacheid=xorg_cv_cc_flag__Wstrict_prototypes
  4970. if eval \${$cacheid+:} false; then :
  4971. $as_echo_n "(cached) " >&6
  4972. else
  4973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4974. /* end confdefs.h. */
  4975. int i;
  4976. int
  4977. main ()
  4978. {
  4979. ;
  4980. return 0;
  4981. }
  4982. _ACEOF
  4983. if ac_fn_c_try_link "$LINENO"; then :
  4984. eval $cacheid=yes
  4985. else
  4986. eval $cacheid=no
  4987. fi
  4988. rm -f core conftest.err conftest.$ac_objext \
  4989. conftest$ac_exeext conftest.$ac_ext
  4990. fi
  4991. CFLAGS="$xorg_testset_save_CFLAGS"
  4992. eval supported=\$$cacheid
  4993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4994. $as_echo "$supported" >&6; }
  4995. if test "$supported" = "yes" ; then
  4996. BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
  4997. found="yes"
  4998. fi
  4999. fi
  5000. xorg_testset_save_CFLAGS="$CFLAGS"
  5001. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5002. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5004. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5005. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5006. $as_echo_n "(cached) " >&6
  5007. else
  5008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5009. /* end confdefs.h. */
  5010. int i;
  5011. _ACEOF
  5012. if ac_fn_c_try_compile "$LINENO"; then :
  5013. xorg_cv_cc_flag_unknown_warning_option=yes
  5014. else
  5015. xorg_cv_cc_flag_unknown_warning_option=no
  5016. fi
  5017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5018. fi
  5019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5020. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5021. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5022. CFLAGS="$xorg_testset_save_CFLAGS"
  5023. fi
  5024. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5025. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5026. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5027. fi
  5028. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5030. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5031. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5032. $as_echo_n "(cached) " >&6
  5033. else
  5034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5035. /* end confdefs.h. */
  5036. int i;
  5037. _ACEOF
  5038. if ac_fn_c_try_compile "$LINENO"; then :
  5039. xorg_cv_cc_flag_unused_command_line_argument=yes
  5040. else
  5041. xorg_cv_cc_flag_unused_command_line_argument=no
  5042. fi
  5043. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5044. fi
  5045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5046. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5047. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5048. CFLAGS="$xorg_testset_save_CFLAGS"
  5049. fi
  5050. found="no"
  5051. if test $found = "no" ; then
  5052. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5053. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5054. fi
  5055. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5056. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5057. fi
  5058. CFLAGS="$CFLAGS -Wmissing-prototypes"
  5059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
  5060. $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
  5061. cacheid=xorg_cv_cc_flag__Wmissing_prototypes
  5062. if eval \${$cacheid+:} false; then :
  5063. $as_echo_n "(cached) " >&6
  5064. else
  5065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5066. /* end confdefs.h. */
  5067. int i;
  5068. int
  5069. main ()
  5070. {
  5071. ;
  5072. return 0;
  5073. }
  5074. _ACEOF
  5075. if ac_fn_c_try_link "$LINENO"; then :
  5076. eval $cacheid=yes
  5077. else
  5078. eval $cacheid=no
  5079. fi
  5080. rm -f core conftest.err conftest.$ac_objext \
  5081. conftest$ac_exeext conftest.$ac_ext
  5082. fi
  5083. CFLAGS="$xorg_testset_save_CFLAGS"
  5084. eval supported=\$$cacheid
  5085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5086. $as_echo "$supported" >&6; }
  5087. if test "$supported" = "yes" ; then
  5088. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
  5089. found="yes"
  5090. fi
  5091. fi
  5092. xorg_testset_save_CFLAGS="$CFLAGS"
  5093. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5094. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5096. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5097. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5098. $as_echo_n "(cached) " >&6
  5099. else
  5100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5101. /* end confdefs.h. */
  5102. int i;
  5103. _ACEOF
  5104. if ac_fn_c_try_compile "$LINENO"; then :
  5105. xorg_cv_cc_flag_unknown_warning_option=yes
  5106. else
  5107. xorg_cv_cc_flag_unknown_warning_option=no
  5108. fi
  5109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5110. fi
  5111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5112. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5113. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5114. CFLAGS="$xorg_testset_save_CFLAGS"
  5115. fi
  5116. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5117. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5118. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5119. fi
  5120. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5122. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5123. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5124. $as_echo_n "(cached) " >&6
  5125. else
  5126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5127. /* end confdefs.h. */
  5128. int i;
  5129. _ACEOF
  5130. if ac_fn_c_try_compile "$LINENO"; then :
  5131. xorg_cv_cc_flag_unused_command_line_argument=yes
  5132. else
  5133. xorg_cv_cc_flag_unused_command_line_argument=no
  5134. fi
  5135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5136. fi
  5137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5138. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5139. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5140. CFLAGS="$xorg_testset_save_CFLAGS"
  5141. fi
  5142. found="no"
  5143. if test $found = "no" ; then
  5144. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5145. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5146. fi
  5147. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5148. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5149. fi
  5150. CFLAGS="$CFLAGS -Wnested-externs"
  5151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
  5152. $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
  5153. cacheid=xorg_cv_cc_flag__Wnested_externs
  5154. if eval \${$cacheid+:} false; then :
  5155. $as_echo_n "(cached) " >&6
  5156. else
  5157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5158. /* end confdefs.h. */
  5159. int i;
  5160. int
  5161. main ()
  5162. {
  5163. ;
  5164. return 0;
  5165. }
  5166. _ACEOF
  5167. if ac_fn_c_try_link "$LINENO"; then :
  5168. eval $cacheid=yes
  5169. else
  5170. eval $cacheid=no
  5171. fi
  5172. rm -f core conftest.err conftest.$ac_objext \
  5173. conftest$ac_exeext conftest.$ac_ext
  5174. fi
  5175. CFLAGS="$xorg_testset_save_CFLAGS"
  5176. eval supported=\$$cacheid
  5177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5178. $as_echo "$supported" >&6; }
  5179. if test "$supported" = "yes" ; then
  5180. BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
  5181. found="yes"
  5182. fi
  5183. fi
  5184. xorg_testset_save_CFLAGS="$CFLAGS"
  5185. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5186. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5188. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5189. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5190. $as_echo_n "(cached) " >&6
  5191. else
  5192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5193. /* end confdefs.h. */
  5194. int i;
  5195. _ACEOF
  5196. if ac_fn_c_try_compile "$LINENO"; then :
  5197. xorg_cv_cc_flag_unknown_warning_option=yes
  5198. else
  5199. xorg_cv_cc_flag_unknown_warning_option=no
  5200. fi
  5201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5202. fi
  5203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5204. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5205. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5206. CFLAGS="$xorg_testset_save_CFLAGS"
  5207. fi
  5208. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5209. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5210. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5211. fi
  5212. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5214. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5215. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5216. $as_echo_n "(cached) " >&6
  5217. else
  5218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5219. /* end confdefs.h. */
  5220. int i;
  5221. _ACEOF
  5222. if ac_fn_c_try_compile "$LINENO"; then :
  5223. xorg_cv_cc_flag_unused_command_line_argument=yes
  5224. else
  5225. xorg_cv_cc_flag_unused_command_line_argument=no
  5226. fi
  5227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5228. fi
  5229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5230. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5231. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5232. CFLAGS="$xorg_testset_save_CFLAGS"
  5233. fi
  5234. found="no"
  5235. if test $found = "no" ; then
  5236. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5237. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5238. fi
  5239. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5240. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5241. fi
  5242. CFLAGS="$CFLAGS -Wbad-function-cast"
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
  5244. $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
  5245. cacheid=xorg_cv_cc_flag__Wbad_function_cast
  5246. if eval \${$cacheid+:} false; then :
  5247. $as_echo_n "(cached) " >&6
  5248. else
  5249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5250. /* end confdefs.h. */
  5251. int i;
  5252. int
  5253. main ()
  5254. {
  5255. ;
  5256. return 0;
  5257. }
  5258. _ACEOF
  5259. if ac_fn_c_try_link "$LINENO"; then :
  5260. eval $cacheid=yes
  5261. else
  5262. eval $cacheid=no
  5263. fi
  5264. rm -f core conftest.err conftest.$ac_objext \
  5265. conftest$ac_exeext conftest.$ac_ext
  5266. fi
  5267. CFLAGS="$xorg_testset_save_CFLAGS"
  5268. eval supported=\$$cacheid
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5270. $as_echo "$supported" >&6; }
  5271. if test "$supported" = "yes" ; then
  5272. BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
  5273. found="yes"
  5274. fi
  5275. fi
  5276. xorg_testset_save_CFLAGS="$CFLAGS"
  5277. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5278. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5280. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5281. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5282. $as_echo_n "(cached) " >&6
  5283. else
  5284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5285. /* end confdefs.h. */
  5286. int i;
  5287. _ACEOF
  5288. if ac_fn_c_try_compile "$LINENO"; then :
  5289. xorg_cv_cc_flag_unknown_warning_option=yes
  5290. else
  5291. xorg_cv_cc_flag_unknown_warning_option=no
  5292. fi
  5293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5294. fi
  5295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5296. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5297. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5298. CFLAGS="$xorg_testset_save_CFLAGS"
  5299. fi
  5300. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5301. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5302. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5303. fi
  5304. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5306. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5307. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5308. $as_echo_n "(cached) " >&6
  5309. else
  5310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5311. /* end confdefs.h. */
  5312. int i;
  5313. _ACEOF
  5314. if ac_fn_c_try_compile "$LINENO"; then :
  5315. xorg_cv_cc_flag_unused_command_line_argument=yes
  5316. else
  5317. xorg_cv_cc_flag_unused_command_line_argument=no
  5318. fi
  5319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5320. fi
  5321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5322. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5323. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5324. CFLAGS="$xorg_testset_save_CFLAGS"
  5325. fi
  5326. found="no"
  5327. if test $found = "no" ; then
  5328. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5329. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5330. fi
  5331. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5332. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5333. fi
  5334. CFLAGS="$CFLAGS -Wold-style-definition"
  5335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
  5336. $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
  5337. cacheid=xorg_cv_cc_flag__Wold_style_definition
  5338. if eval \${$cacheid+:} false; then :
  5339. $as_echo_n "(cached) " >&6
  5340. else
  5341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5342. /* end confdefs.h. */
  5343. int i;
  5344. int
  5345. main ()
  5346. {
  5347. ;
  5348. return 0;
  5349. }
  5350. _ACEOF
  5351. if ac_fn_c_try_link "$LINENO"; then :
  5352. eval $cacheid=yes
  5353. else
  5354. eval $cacheid=no
  5355. fi
  5356. rm -f core conftest.err conftest.$ac_objext \
  5357. conftest$ac_exeext conftest.$ac_ext
  5358. fi
  5359. CFLAGS="$xorg_testset_save_CFLAGS"
  5360. eval supported=\$$cacheid
  5361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5362. $as_echo "$supported" >&6; }
  5363. if test "$supported" = "yes" ; then
  5364. BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
  5365. found="yes"
  5366. fi
  5367. fi
  5368. if test $found = "no" ; then
  5369. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5370. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5371. fi
  5372. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5373. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5374. fi
  5375. CFLAGS="$CFLAGS -fd"
  5376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
  5377. $as_echo_n "checking if $CC supports -fd... " >&6; }
  5378. cacheid=xorg_cv_cc_flag__fd
  5379. if eval \${$cacheid+:} false; then :
  5380. $as_echo_n "(cached) " >&6
  5381. else
  5382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5383. /* end confdefs.h. */
  5384. int i;
  5385. int
  5386. main ()
  5387. {
  5388. ;
  5389. return 0;
  5390. }
  5391. _ACEOF
  5392. if ac_fn_c_try_link "$LINENO"; then :
  5393. eval $cacheid=yes
  5394. else
  5395. eval $cacheid=no
  5396. fi
  5397. rm -f core conftest.err conftest.$ac_objext \
  5398. conftest$ac_exeext conftest.$ac_ext
  5399. fi
  5400. CFLAGS="$xorg_testset_save_CFLAGS"
  5401. eval supported=\$$cacheid
  5402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5403. $as_echo "$supported" >&6; }
  5404. if test "$supported" = "yes" ; then
  5405. BASE_CFLAGS="$BASE_CFLAGS -fd"
  5406. found="yes"
  5407. fi
  5408. fi
  5409. xorg_testset_save_CFLAGS="$CFLAGS"
  5410. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5411. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5413. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5414. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5415. $as_echo_n "(cached) " >&6
  5416. else
  5417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5418. /* end confdefs.h. */
  5419. int i;
  5420. _ACEOF
  5421. if ac_fn_c_try_compile "$LINENO"; then :
  5422. xorg_cv_cc_flag_unknown_warning_option=yes
  5423. else
  5424. xorg_cv_cc_flag_unknown_warning_option=no
  5425. fi
  5426. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5427. fi
  5428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5429. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5430. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5431. CFLAGS="$xorg_testset_save_CFLAGS"
  5432. fi
  5433. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5434. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5435. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5436. fi
  5437. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5439. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5440. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5441. $as_echo_n "(cached) " >&6
  5442. else
  5443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5444. /* end confdefs.h. */
  5445. int i;
  5446. _ACEOF
  5447. if ac_fn_c_try_compile "$LINENO"; then :
  5448. xorg_cv_cc_flag_unused_command_line_argument=yes
  5449. else
  5450. xorg_cv_cc_flag_unused_command_line_argument=no
  5451. fi
  5452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5453. fi
  5454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5455. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5456. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5457. CFLAGS="$xorg_testset_save_CFLAGS"
  5458. fi
  5459. found="no"
  5460. if test $found = "no" ; then
  5461. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5462. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5463. fi
  5464. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5465. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5466. fi
  5467. CFLAGS="$CFLAGS -Wdeclaration-after-statement"
  5468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
  5469. $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
  5470. cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
  5471. if eval \${$cacheid+:} false; then :
  5472. $as_echo_n "(cached) " >&6
  5473. else
  5474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5475. /* end confdefs.h. */
  5476. int i;
  5477. int
  5478. main ()
  5479. {
  5480. ;
  5481. return 0;
  5482. }
  5483. _ACEOF
  5484. if ac_fn_c_try_link "$LINENO"; then :
  5485. eval $cacheid=yes
  5486. else
  5487. eval $cacheid=no
  5488. fi
  5489. rm -f core conftest.err conftest.$ac_objext \
  5490. conftest$ac_exeext conftest.$ac_ext
  5491. fi
  5492. CFLAGS="$xorg_testset_save_CFLAGS"
  5493. eval supported=\$$cacheid
  5494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5495. $as_echo "$supported" >&6; }
  5496. if test "$supported" = "yes" ; then
  5497. BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
  5498. found="yes"
  5499. fi
  5500. fi
  5501. # This chunk adds additional warnings that could catch undesired effects.
  5502. xorg_testset_save_CFLAGS="$CFLAGS"
  5503. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5504. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5506. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5507. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5508. $as_echo_n "(cached) " >&6
  5509. else
  5510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5511. /* end confdefs.h. */
  5512. int i;
  5513. _ACEOF
  5514. if ac_fn_c_try_compile "$LINENO"; then :
  5515. xorg_cv_cc_flag_unknown_warning_option=yes
  5516. else
  5517. xorg_cv_cc_flag_unknown_warning_option=no
  5518. fi
  5519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5520. fi
  5521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5522. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5523. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5524. CFLAGS="$xorg_testset_save_CFLAGS"
  5525. fi
  5526. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5527. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5528. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5529. fi
  5530. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5532. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5533. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5534. $as_echo_n "(cached) " >&6
  5535. else
  5536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5537. /* end confdefs.h. */
  5538. int i;
  5539. _ACEOF
  5540. if ac_fn_c_try_compile "$LINENO"; then :
  5541. xorg_cv_cc_flag_unused_command_line_argument=yes
  5542. else
  5543. xorg_cv_cc_flag_unused_command_line_argument=no
  5544. fi
  5545. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5546. fi
  5547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5548. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5549. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5550. CFLAGS="$xorg_testset_save_CFLAGS"
  5551. fi
  5552. found="no"
  5553. if test $found = "no" ; then
  5554. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5555. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5556. fi
  5557. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5558. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5559. fi
  5560. CFLAGS="$CFLAGS -Wunused"
  5561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
  5562. $as_echo_n "checking if $CC supports -Wunused... " >&6; }
  5563. cacheid=xorg_cv_cc_flag__Wunused
  5564. if eval \${$cacheid+:} false; then :
  5565. $as_echo_n "(cached) " >&6
  5566. else
  5567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5568. /* end confdefs.h. */
  5569. int i;
  5570. int
  5571. main ()
  5572. {
  5573. ;
  5574. return 0;
  5575. }
  5576. _ACEOF
  5577. if ac_fn_c_try_link "$LINENO"; then :
  5578. eval $cacheid=yes
  5579. else
  5580. eval $cacheid=no
  5581. fi
  5582. rm -f core conftest.err conftest.$ac_objext \
  5583. conftest$ac_exeext conftest.$ac_ext
  5584. fi
  5585. CFLAGS="$xorg_testset_save_CFLAGS"
  5586. eval supported=\$$cacheid
  5587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5588. $as_echo "$supported" >&6; }
  5589. if test "$supported" = "yes" ; then
  5590. BASE_CFLAGS="$BASE_CFLAGS -Wunused"
  5591. found="yes"
  5592. fi
  5593. fi
  5594. xorg_testset_save_CFLAGS="$CFLAGS"
  5595. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5596. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5598. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5599. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5600. $as_echo_n "(cached) " >&6
  5601. else
  5602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5603. /* end confdefs.h. */
  5604. int i;
  5605. _ACEOF
  5606. if ac_fn_c_try_compile "$LINENO"; then :
  5607. xorg_cv_cc_flag_unknown_warning_option=yes
  5608. else
  5609. xorg_cv_cc_flag_unknown_warning_option=no
  5610. fi
  5611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5612. fi
  5613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5614. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5615. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5616. CFLAGS="$xorg_testset_save_CFLAGS"
  5617. fi
  5618. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5619. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5620. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5621. fi
  5622. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5624. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5625. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5626. $as_echo_n "(cached) " >&6
  5627. else
  5628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5629. /* end confdefs.h. */
  5630. int i;
  5631. _ACEOF
  5632. if ac_fn_c_try_compile "$LINENO"; then :
  5633. xorg_cv_cc_flag_unused_command_line_argument=yes
  5634. else
  5635. xorg_cv_cc_flag_unused_command_line_argument=no
  5636. fi
  5637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5638. fi
  5639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5640. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5641. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5642. CFLAGS="$xorg_testset_save_CFLAGS"
  5643. fi
  5644. found="no"
  5645. if test $found = "no" ; then
  5646. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5647. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5648. fi
  5649. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5650. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5651. fi
  5652. CFLAGS="$CFLAGS -Wuninitialized"
  5653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
  5654. $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
  5655. cacheid=xorg_cv_cc_flag__Wuninitialized
  5656. if eval \${$cacheid+:} false; then :
  5657. $as_echo_n "(cached) " >&6
  5658. else
  5659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5660. /* end confdefs.h. */
  5661. int i;
  5662. int
  5663. main ()
  5664. {
  5665. ;
  5666. return 0;
  5667. }
  5668. _ACEOF
  5669. if ac_fn_c_try_link "$LINENO"; then :
  5670. eval $cacheid=yes
  5671. else
  5672. eval $cacheid=no
  5673. fi
  5674. rm -f core conftest.err conftest.$ac_objext \
  5675. conftest$ac_exeext conftest.$ac_ext
  5676. fi
  5677. CFLAGS="$xorg_testset_save_CFLAGS"
  5678. eval supported=\$$cacheid
  5679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5680. $as_echo "$supported" >&6; }
  5681. if test "$supported" = "yes" ; then
  5682. BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
  5683. found="yes"
  5684. fi
  5685. fi
  5686. xorg_testset_save_CFLAGS="$CFLAGS"
  5687. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5688. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5690. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5691. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5692. $as_echo_n "(cached) " >&6
  5693. else
  5694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5695. /* end confdefs.h. */
  5696. int i;
  5697. _ACEOF
  5698. if ac_fn_c_try_compile "$LINENO"; then :
  5699. xorg_cv_cc_flag_unknown_warning_option=yes
  5700. else
  5701. xorg_cv_cc_flag_unknown_warning_option=no
  5702. fi
  5703. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5704. fi
  5705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5706. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5707. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5708. CFLAGS="$xorg_testset_save_CFLAGS"
  5709. fi
  5710. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5711. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5712. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5713. fi
  5714. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5716. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5717. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5718. $as_echo_n "(cached) " >&6
  5719. else
  5720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5721. /* end confdefs.h. */
  5722. int i;
  5723. _ACEOF
  5724. if ac_fn_c_try_compile "$LINENO"; then :
  5725. xorg_cv_cc_flag_unused_command_line_argument=yes
  5726. else
  5727. xorg_cv_cc_flag_unused_command_line_argument=no
  5728. fi
  5729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5730. fi
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5732. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5733. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5734. CFLAGS="$xorg_testset_save_CFLAGS"
  5735. fi
  5736. found="no"
  5737. if test $found = "no" ; then
  5738. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5739. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5740. fi
  5741. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5742. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5743. fi
  5744. CFLAGS="$CFLAGS -Wshadow"
  5745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
  5746. $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
  5747. cacheid=xorg_cv_cc_flag__Wshadow
  5748. if eval \${$cacheid+:} false; then :
  5749. $as_echo_n "(cached) " >&6
  5750. else
  5751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5752. /* end confdefs.h. */
  5753. int i;
  5754. int
  5755. main ()
  5756. {
  5757. ;
  5758. return 0;
  5759. }
  5760. _ACEOF
  5761. if ac_fn_c_try_link "$LINENO"; then :
  5762. eval $cacheid=yes
  5763. else
  5764. eval $cacheid=no
  5765. fi
  5766. rm -f core conftest.err conftest.$ac_objext \
  5767. conftest$ac_exeext conftest.$ac_ext
  5768. fi
  5769. CFLAGS="$xorg_testset_save_CFLAGS"
  5770. eval supported=\$$cacheid
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5772. $as_echo "$supported" >&6; }
  5773. if test "$supported" = "yes" ; then
  5774. BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
  5775. found="yes"
  5776. fi
  5777. fi
  5778. xorg_testset_save_CFLAGS="$CFLAGS"
  5779. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5780. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5782. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5783. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5784. $as_echo_n "(cached) " >&6
  5785. else
  5786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5787. /* end confdefs.h. */
  5788. int i;
  5789. _ACEOF
  5790. if ac_fn_c_try_compile "$LINENO"; then :
  5791. xorg_cv_cc_flag_unknown_warning_option=yes
  5792. else
  5793. xorg_cv_cc_flag_unknown_warning_option=no
  5794. fi
  5795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5796. fi
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5798. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5799. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5800. CFLAGS="$xorg_testset_save_CFLAGS"
  5801. fi
  5802. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5803. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5804. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5805. fi
  5806. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5808. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5809. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5810. $as_echo_n "(cached) " >&6
  5811. else
  5812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5813. /* end confdefs.h. */
  5814. int i;
  5815. _ACEOF
  5816. if ac_fn_c_try_compile "$LINENO"; then :
  5817. xorg_cv_cc_flag_unused_command_line_argument=yes
  5818. else
  5819. xorg_cv_cc_flag_unused_command_line_argument=no
  5820. fi
  5821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5822. fi
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5824. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5825. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5826. CFLAGS="$xorg_testset_save_CFLAGS"
  5827. fi
  5828. found="no"
  5829. if test $found = "no" ; then
  5830. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5831. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5832. fi
  5833. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5834. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5835. fi
  5836. CFLAGS="$CFLAGS -Wmissing-noreturn"
  5837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
  5838. $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
  5839. cacheid=xorg_cv_cc_flag__Wmissing_noreturn
  5840. if eval \${$cacheid+:} false; then :
  5841. $as_echo_n "(cached) " >&6
  5842. else
  5843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5844. /* end confdefs.h. */
  5845. int i;
  5846. int
  5847. main ()
  5848. {
  5849. ;
  5850. return 0;
  5851. }
  5852. _ACEOF
  5853. if ac_fn_c_try_link "$LINENO"; then :
  5854. eval $cacheid=yes
  5855. else
  5856. eval $cacheid=no
  5857. fi
  5858. rm -f core conftest.err conftest.$ac_objext \
  5859. conftest$ac_exeext conftest.$ac_ext
  5860. fi
  5861. CFLAGS="$xorg_testset_save_CFLAGS"
  5862. eval supported=\$$cacheid
  5863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5864. $as_echo "$supported" >&6; }
  5865. if test "$supported" = "yes" ; then
  5866. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
  5867. found="yes"
  5868. fi
  5869. fi
  5870. xorg_testset_save_CFLAGS="$CFLAGS"
  5871. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5872. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5874. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5875. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5876. $as_echo_n "(cached) " >&6
  5877. else
  5878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5879. /* end confdefs.h. */
  5880. int i;
  5881. _ACEOF
  5882. if ac_fn_c_try_compile "$LINENO"; then :
  5883. xorg_cv_cc_flag_unknown_warning_option=yes
  5884. else
  5885. xorg_cv_cc_flag_unknown_warning_option=no
  5886. fi
  5887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5888. fi
  5889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5890. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5891. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5892. CFLAGS="$xorg_testset_save_CFLAGS"
  5893. fi
  5894. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5895. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5896. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5897. fi
  5898. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5900. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5901. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5902. $as_echo_n "(cached) " >&6
  5903. else
  5904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5905. /* end confdefs.h. */
  5906. int i;
  5907. _ACEOF
  5908. if ac_fn_c_try_compile "$LINENO"; then :
  5909. xorg_cv_cc_flag_unused_command_line_argument=yes
  5910. else
  5911. xorg_cv_cc_flag_unused_command_line_argument=no
  5912. fi
  5913. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5914. fi
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5916. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5917. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5918. CFLAGS="$xorg_testset_save_CFLAGS"
  5919. fi
  5920. found="no"
  5921. if test $found = "no" ; then
  5922. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5923. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5924. fi
  5925. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5926. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5927. fi
  5928. CFLAGS="$CFLAGS -Wmissing-format-attribute"
  5929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
  5930. $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
  5931. cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
  5932. if eval \${$cacheid+:} false; then :
  5933. $as_echo_n "(cached) " >&6
  5934. else
  5935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5936. /* end confdefs.h. */
  5937. int i;
  5938. int
  5939. main ()
  5940. {
  5941. ;
  5942. return 0;
  5943. }
  5944. _ACEOF
  5945. if ac_fn_c_try_link "$LINENO"; then :
  5946. eval $cacheid=yes
  5947. else
  5948. eval $cacheid=no
  5949. fi
  5950. rm -f core conftest.err conftest.$ac_objext \
  5951. conftest$ac_exeext conftest.$ac_ext
  5952. fi
  5953. CFLAGS="$xorg_testset_save_CFLAGS"
  5954. eval supported=\$$cacheid
  5955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5956. $as_echo "$supported" >&6; }
  5957. if test "$supported" = "yes" ; then
  5958. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
  5959. found="yes"
  5960. fi
  5961. fi
  5962. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls])
  5963. xorg_testset_save_CFLAGS="$CFLAGS"
  5964. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5965. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5967. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5968. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5969. $as_echo_n "(cached) " >&6
  5970. else
  5971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5972. /* end confdefs.h. */
  5973. int i;
  5974. _ACEOF
  5975. if ac_fn_c_try_compile "$LINENO"; then :
  5976. xorg_cv_cc_flag_unknown_warning_option=yes
  5977. else
  5978. xorg_cv_cc_flag_unknown_warning_option=no
  5979. fi
  5980. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5981. fi
  5982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5983. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5984. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5985. CFLAGS="$xorg_testset_save_CFLAGS"
  5986. fi
  5987. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5988. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5989. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5990. fi
  5991. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5993. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5994. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5995. $as_echo_n "(cached) " >&6
  5996. else
  5997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5998. /* end confdefs.h. */
  5999. int i;
  6000. _ACEOF
  6001. if ac_fn_c_try_compile "$LINENO"; then :
  6002. xorg_cv_cc_flag_unused_command_line_argument=yes
  6003. else
  6004. xorg_cv_cc_flag_unused_command_line_argument=no
  6005. fi
  6006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6007. fi
  6008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6009. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6010. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6011. CFLAGS="$xorg_testset_save_CFLAGS"
  6012. fi
  6013. found="no"
  6014. if test $found = "no" ; then
  6015. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6016. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6017. fi
  6018. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6019. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6020. fi
  6021. CFLAGS="$CFLAGS -Wlogical-op"
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
  6023. $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
  6024. cacheid=xorg_cv_cc_flag__Wlogical_op
  6025. if eval \${$cacheid+:} false; then :
  6026. $as_echo_n "(cached) " >&6
  6027. else
  6028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6029. /* end confdefs.h. */
  6030. int i;
  6031. int
  6032. main ()
  6033. {
  6034. ;
  6035. return 0;
  6036. }
  6037. _ACEOF
  6038. if ac_fn_c_try_link "$LINENO"; then :
  6039. eval $cacheid=yes
  6040. else
  6041. eval $cacheid=no
  6042. fi
  6043. rm -f core conftest.err conftest.$ac_objext \
  6044. conftest$ac_exeext conftest.$ac_ext
  6045. fi
  6046. CFLAGS="$xorg_testset_save_CFLAGS"
  6047. eval supported=\$$cacheid
  6048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6049. $as_echo "$supported" >&6; }
  6050. if test "$supported" = "yes" ; then
  6051. BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
  6052. found="yes"
  6053. fi
  6054. fi
  6055. # These are currently disabled because they are noisy. They will be enabled
  6056. # in the future once the codebase is sufficiently modernized to silence
  6057. # them. For now, I don't want them to drown out the other warnings.
  6058. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
  6059. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
  6060. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
  6061. # Turn some warnings into errors, so we don't accidently get successful builds
  6062. # when there are problems that should be fixed.
  6063. if test "x$SELECTIVE_WERROR" = "xyes" ; then
  6064. xorg_testset_save_CFLAGS="$CFLAGS"
  6065. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6066. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6068. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6069. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6070. $as_echo_n "(cached) " >&6
  6071. else
  6072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6073. /* end confdefs.h. */
  6074. int i;
  6075. _ACEOF
  6076. if ac_fn_c_try_compile "$LINENO"; then :
  6077. xorg_cv_cc_flag_unknown_warning_option=yes
  6078. else
  6079. xorg_cv_cc_flag_unknown_warning_option=no
  6080. fi
  6081. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6082. fi
  6083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6084. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6085. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6086. CFLAGS="$xorg_testset_save_CFLAGS"
  6087. fi
  6088. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6089. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6090. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6091. fi
  6092. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6094. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6095. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6096. $as_echo_n "(cached) " >&6
  6097. else
  6098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6099. /* end confdefs.h. */
  6100. int i;
  6101. _ACEOF
  6102. if ac_fn_c_try_compile "$LINENO"; then :
  6103. xorg_cv_cc_flag_unused_command_line_argument=yes
  6104. else
  6105. xorg_cv_cc_flag_unused_command_line_argument=no
  6106. fi
  6107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6108. fi
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6110. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6111. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6112. CFLAGS="$xorg_testset_save_CFLAGS"
  6113. fi
  6114. found="no"
  6115. if test $found = "no" ; then
  6116. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6117. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6118. fi
  6119. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6120. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6121. fi
  6122. CFLAGS="$CFLAGS -Werror=implicit"
  6123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
  6124. $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
  6125. cacheid=xorg_cv_cc_flag__Werror_implicit
  6126. if eval \${$cacheid+:} false; then :
  6127. $as_echo_n "(cached) " >&6
  6128. else
  6129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6130. /* end confdefs.h. */
  6131. int i;
  6132. int
  6133. main ()
  6134. {
  6135. ;
  6136. return 0;
  6137. }
  6138. _ACEOF
  6139. if ac_fn_c_try_link "$LINENO"; then :
  6140. eval $cacheid=yes
  6141. else
  6142. eval $cacheid=no
  6143. fi
  6144. rm -f core conftest.err conftest.$ac_objext \
  6145. conftest$ac_exeext conftest.$ac_ext
  6146. fi
  6147. CFLAGS="$xorg_testset_save_CFLAGS"
  6148. eval supported=\$$cacheid
  6149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6150. $as_echo "$supported" >&6; }
  6151. if test "$supported" = "yes" ; then
  6152. BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
  6153. found="yes"
  6154. fi
  6155. fi
  6156. if test $found = "no" ; then
  6157. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6158. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6159. fi
  6160. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6161. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6162. fi
  6163. CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  6164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
  6165. $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
  6166. cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
  6167. if eval \${$cacheid+:} false; then :
  6168. $as_echo_n "(cached) " >&6
  6169. else
  6170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6171. /* end confdefs.h. */
  6172. int i;
  6173. int
  6174. main ()
  6175. {
  6176. ;
  6177. return 0;
  6178. }
  6179. _ACEOF
  6180. if ac_fn_c_try_link "$LINENO"; then :
  6181. eval $cacheid=yes
  6182. else
  6183. eval $cacheid=no
  6184. fi
  6185. rm -f core conftest.err conftest.$ac_objext \
  6186. conftest$ac_exeext conftest.$ac_ext
  6187. fi
  6188. CFLAGS="$xorg_testset_save_CFLAGS"
  6189. eval supported=\$$cacheid
  6190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6191. $as_echo "$supported" >&6; }
  6192. if test "$supported" = "yes" ; then
  6193. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  6194. found="yes"
  6195. fi
  6196. fi
  6197. xorg_testset_save_CFLAGS="$CFLAGS"
  6198. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6199. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6201. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6202. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6203. $as_echo_n "(cached) " >&6
  6204. else
  6205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6206. /* end confdefs.h. */
  6207. int i;
  6208. _ACEOF
  6209. if ac_fn_c_try_compile "$LINENO"; then :
  6210. xorg_cv_cc_flag_unknown_warning_option=yes
  6211. else
  6212. xorg_cv_cc_flag_unknown_warning_option=no
  6213. fi
  6214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6215. fi
  6216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6217. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6218. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6219. CFLAGS="$xorg_testset_save_CFLAGS"
  6220. fi
  6221. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6222. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6223. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6224. fi
  6225. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6227. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6228. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6229. $as_echo_n "(cached) " >&6
  6230. else
  6231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6232. /* end confdefs.h. */
  6233. int i;
  6234. _ACEOF
  6235. if ac_fn_c_try_compile "$LINENO"; then :
  6236. xorg_cv_cc_flag_unused_command_line_argument=yes
  6237. else
  6238. xorg_cv_cc_flag_unused_command_line_argument=no
  6239. fi
  6240. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6241. fi
  6242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6243. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6244. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6245. CFLAGS="$xorg_testset_save_CFLAGS"
  6246. fi
  6247. found="no"
  6248. if test $found = "no" ; then
  6249. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6250. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6251. fi
  6252. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6253. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6254. fi
  6255. CFLAGS="$CFLAGS -Werror=nonnull"
  6256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
  6257. $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
  6258. cacheid=xorg_cv_cc_flag__Werror_nonnull
  6259. if eval \${$cacheid+:} false; then :
  6260. $as_echo_n "(cached) " >&6
  6261. else
  6262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6263. /* end confdefs.h. */
  6264. int i;
  6265. int
  6266. main ()
  6267. {
  6268. ;
  6269. return 0;
  6270. }
  6271. _ACEOF
  6272. if ac_fn_c_try_link "$LINENO"; then :
  6273. eval $cacheid=yes
  6274. else
  6275. eval $cacheid=no
  6276. fi
  6277. rm -f core conftest.err conftest.$ac_objext \
  6278. conftest$ac_exeext conftest.$ac_ext
  6279. fi
  6280. CFLAGS="$xorg_testset_save_CFLAGS"
  6281. eval supported=\$$cacheid
  6282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6283. $as_echo "$supported" >&6; }
  6284. if test "$supported" = "yes" ; then
  6285. BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
  6286. found="yes"
  6287. fi
  6288. fi
  6289. xorg_testset_save_CFLAGS="$CFLAGS"
  6290. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6291. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6293. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6294. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6295. $as_echo_n "(cached) " >&6
  6296. else
  6297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6298. /* end confdefs.h. */
  6299. int i;
  6300. _ACEOF
  6301. if ac_fn_c_try_compile "$LINENO"; then :
  6302. xorg_cv_cc_flag_unknown_warning_option=yes
  6303. else
  6304. xorg_cv_cc_flag_unknown_warning_option=no
  6305. fi
  6306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6307. fi
  6308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6309. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6310. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6311. CFLAGS="$xorg_testset_save_CFLAGS"
  6312. fi
  6313. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6314. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6315. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6316. fi
  6317. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6319. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6320. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6321. $as_echo_n "(cached) " >&6
  6322. else
  6323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6324. /* end confdefs.h. */
  6325. int i;
  6326. _ACEOF
  6327. if ac_fn_c_try_compile "$LINENO"; then :
  6328. xorg_cv_cc_flag_unused_command_line_argument=yes
  6329. else
  6330. xorg_cv_cc_flag_unused_command_line_argument=no
  6331. fi
  6332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6333. fi
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6335. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6336. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6337. CFLAGS="$xorg_testset_save_CFLAGS"
  6338. fi
  6339. found="no"
  6340. if test $found = "no" ; then
  6341. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6342. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6343. fi
  6344. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6345. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6346. fi
  6347. CFLAGS="$CFLAGS -Werror=init-self"
  6348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
  6349. $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
  6350. cacheid=xorg_cv_cc_flag__Werror_init_self
  6351. if eval \${$cacheid+:} false; then :
  6352. $as_echo_n "(cached) " >&6
  6353. else
  6354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6355. /* end confdefs.h. */
  6356. int i;
  6357. int
  6358. main ()
  6359. {
  6360. ;
  6361. return 0;
  6362. }
  6363. _ACEOF
  6364. if ac_fn_c_try_link "$LINENO"; then :
  6365. eval $cacheid=yes
  6366. else
  6367. eval $cacheid=no
  6368. fi
  6369. rm -f core conftest.err conftest.$ac_objext \
  6370. conftest$ac_exeext conftest.$ac_ext
  6371. fi
  6372. CFLAGS="$xorg_testset_save_CFLAGS"
  6373. eval supported=\$$cacheid
  6374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6375. $as_echo "$supported" >&6; }
  6376. if test "$supported" = "yes" ; then
  6377. BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
  6378. found="yes"
  6379. fi
  6380. fi
  6381. xorg_testset_save_CFLAGS="$CFLAGS"
  6382. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6383. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6385. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6386. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6387. $as_echo_n "(cached) " >&6
  6388. else
  6389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6390. /* end confdefs.h. */
  6391. int i;
  6392. _ACEOF
  6393. if ac_fn_c_try_compile "$LINENO"; then :
  6394. xorg_cv_cc_flag_unknown_warning_option=yes
  6395. else
  6396. xorg_cv_cc_flag_unknown_warning_option=no
  6397. fi
  6398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6399. fi
  6400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6401. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6402. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6403. CFLAGS="$xorg_testset_save_CFLAGS"
  6404. fi
  6405. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6406. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6407. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6408. fi
  6409. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6411. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6412. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6413. $as_echo_n "(cached) " >&6
  6414. else
  6415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6416. /* end confdefs.h. */
  6417. int i;
  6418. _ACEOF
  6419. if ac_fn_c_try_compile "$LINENO"; then :
  6420. xorg_cv_cc_flag_unused_command_line_argument=yes
  6421. else
  6422. xorg_cv_cc_flag_unused_command_line_argument=no
  6423. fi
  6424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6425. fi
  6426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6427. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6428. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6429. CFLAGS="$xorg_testset_save_CFLAGS"
  6430. fi
  6431. found="no"
  6432. if test $found = "no" ; then
  6433. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6434. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6435. fi
  6436. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6437. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6438. fi
  6439. CFLAGS="$CFLAGS -Werror=main"
  6440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
  6441. $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
  6442. cacheid=xorg_cv_cc_flag__Werror_main
  6443. if eval \${$cacheid+:} false; then :
  6444. $as_echo_n "(cached) " >&6
  6445. else
  6446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6447. /* end confdefs.h. */
  6448. int i;
  6449. int
  6450. main ()
  6451. {
  6452. ;
  6453. return 0;
  6454. }
  6455. _ACEOF
  6456. if ac_fn_c_try_link "$LINENO"; then :
  6457. eval $cacheid=yes
  6458. else
  6459. eval $cacheid=no
  6460. fi
  6461. rm -f core conftest.err conftest.$ac_objext \
  6462. conftest$ac_exeext conftest.$ac_ext
  6463. fi
  6464. CFLAGS="$xorg_testset_save_CFLAGS"
  6465. eval supported=\$$cacheid
  6466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6467. $as_echo "$supported" >&6; }
  6468. if test "$supported" = "yes" ; then
  6469. BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
  6470. found="yes"
  6471. fi
  6472. fi
  6473. xorg_testset_save_CFLAGS="$CFLAGS"
  6474. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6475. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6477. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6478. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6479. $as_echo_n "(cached) " >&6
  6480. else
  6481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6482. /* end confdefs.h. */
  6483. int i;
  6484. _ACEOF
  6485. if ac_fn_c_try_compile "$LINENO"; then :
  6486. xorg_cv_cc_flag_unknown_warning_option=yes
  6487. else
  6488. xorg_cv_cc_flag_unknown_warning_option=no
  6489. fi
  6490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6491. fi
  6492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6493. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6494. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6495. CFLAGS="$xorg_testset_save_CFLAGS"
  6496. fi
  6497. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6498. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6499. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6500. fi
  6501. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6503. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6504. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6505. $as_echo_n "(cached) " >&6
  6506. else
  6507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6508. /* end confdefs.h. */
  6509. int i;
  6510. _ACEOF
  6511. if ac_fn_c_try_compile "$LINENO"; then :
  6512. xorg_cv_cc_flag_unused_command_line_argument=yes
  6513. else
  6514. xorg_cv_cc_flag_unused_command_line_argument=no
  6515. fi
  6516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6517. fi
  6518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6519. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6520. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6521. CFLAGS="$xorg_testset_save_CFLAGS"
  6522. fi
  6523. found="no"
  6524. if test $found = "no" ; then
  6525. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6526. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6527. fi
  6528. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6529. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6530. fi
  6531. CFLAGS="$CFLAGS -Werror=missing-braces"
  6532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
  6533. $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
  6534. cacheid=xorg_cv_cc_flag__Werror_missing_braces
  6535. if eval \${$cacheid+:} false; then :
  6536. $as_echo_n "(cached) " >&6
  6537. else
  6538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6539. /* end confdefs.h. */
  6540. int i;
  6541. int
  6542. main ()
  6543. {
  6544. ;
  6545. return 0;
  6546. }
  6547. _ACEOF
  6548. if ac_fn_c_try_link "$LINENO"; then :
  6549. eval $cacheid=yes
  6550. else
  6551. eval $cacheid=no
  6552. fi
  6553. rm -f core conftest.err conftest.$ac_objext \
  6554. conftest$ac_exeext conftest.$ac_ext
  6555. fi
  6556. CFLAGS="$xorg_testset_save_CFLAGS"
  6557. eval supported=\$$cacheid
  6558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6559. $as_echo "$supported" >&6; }
  6560. if test "$supported" = "yes" ; then
  6561. BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
  6562. found="yes"
  6563. fi
  6564. fi
  6565. xorg_testset_save_CFLAGS="$CFLAGS"
  6566. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6567. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6569. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6570. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6571. $as_echo_n "(cached) " >&6
  6572. else
  6573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6574. /* end confdefs.h. */
  6575. int i;
  6576. _ACEOF
  6577. if ac_fn_c_try_compile "$LINENO"; then :
  6578. xorg_cv_cc_flag_unknown_warning_option=yes
  6579. else
  6580. xorg_cv_cc_flag_unknown_warning_option=no
  6581. fi
  6582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6583. fi
  6584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6585. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6586. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6587. CFLAGS="$xorg_testset_save_CFLAGS"
  6588. fi
  6589. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6590. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6591. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6592. fi
  6593. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6595. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6596. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6597. $as_echo_n "(cached) " >&6
  6598. else
  6599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6600. /* end confdefs.h. */
  6601. int i;
  6602. _ACEOF
  6603. if ac_fn_c_try_compile "$LINENO"; then :
  6604. xorg_cv_cc_flag_unused_command_line_argument=yes
  6605. else
  6606. xorg_cv_cc_flag_unused_command_line_argument=no
  6607. fi
  6608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6609. fi
  6610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6611. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6612. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6613. CFLAGS="$xorg_testset_save_CFLAGS"
  6614. fi
  6615. found="no"
  6616. if test $found = "no" ; then
  6617. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6618. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6619. fi
  6620. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6621. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6622. fi
  6623. CFLAGS="$CFLAGS -Werror=sequence-point"
  6624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
  6625. $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
  6626. cacheid=xorg_cv_cc_flag__Werror_sequence_point
  6627. if eval \${$cacheid+:} false; then :
  6628. $as_echo_n "(cached) " >&6
  6629. else
  6630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6631. /* end confdefs.h. */
  6632. int i;
  6633. int
  6634. main ()
  6635. {
  6636. ;
  6637. return 0;
  6638. }
  6639. _ACEOF
  6640. if ac_fn_c_try_link "$LINENO"; then :
  6641. eval $cacheid=yes
  6642. else
  6643. eval $cacheid=no
  6644. fi
  6645. rm -f core conftest.err conftest.$ac_objext \
  6646. conftest$ac_exeext conftest.$ac_ext
  6647. fi
  6648. CFLAGS="$xorg_testset_save_CFLAGS"
  6649. eval supported=\$$cacheid
  6650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6651. $as_echo "$supported" >&6; }
  6652. if test "$supported" = "yes" ; then
  6653. BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
  6654. found="yes"
  6655. fi
  6656. fi
  6657. xorg_testset_save_CFLAGS="$CFLAGS"
  6658. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6659. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6661. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6662. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6663. $as_echo_n "(cached) " >&6
  6664. else
  6665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6666. /* end confdefs.h. */
  6667. int i;
  6668. _ACEOF
  6669. if ac_fn_c_try_compile "$LINENO"; then :
  6670. xorg_cv_cc_flag_unknown_warning_option=yes
  6671. else
  6672. xorg_cv_cc_flag_unknown_warning_option=no
  6673. fi
  6674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6675. fi
  6676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6677. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6678. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6679. CFLAGS="$xorg_testset_save_CFLAGS"
  6680. fi
  6681. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6682. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6683. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6684. fi
  6685. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6687. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6688. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6689. $as_echo_n "(cached) " >&6
  6690. else
  6691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6692. /* end confdefs.h. */
  6693. int i;
  6694. _ACEOF
  6695. if ac_fn_c_try_compile "$LINENO"; then :
  6696. xorg_cv_cc_flag_unused_command_line_argument=yes
  6697. else
  6698. xorg_cv_cc_flag_unused_command_line_argument=no
  6699. fi
  6700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6701. fi
  6702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6703. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6704. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6705. CFLAGS="$xorg_testset_save_CFLAGS"
  6706. fi
  6707. found="no"
  6708. if test $found = "no" ; then
  6709. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6710. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6711. fi
  6712. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6713. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6714. fi
  6715. CFLAGS="$CFLAGS -Werror=return-type"
  6716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
  6717. $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
  6718. cacheid=xorg_cv_cc_flag__Werror_return_type
  6719. if eval \${$cacheid+:} false; then :
  6720. $as_echo_n "(cached) " >&6
  6721. else
  6722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6723. /* end confdefs.h. */
  6724. int i;
  6725. int
  6726. main ()
  6727. {
  6728. ;
  6729. return 0;
  6730. }
  6731. _ACEOF
  6732. if ac_fn_c_try_link "$LINENO"; then :
  6733. eval $cacheid=yes
  6734. else
  6735. eval $cacheid=no
  6736. fi
  6737. rm -f core conftest.err conftest.$ac_objext \
  6738. conftest$ac_exeext conftest.$ac_ext
  6739. fi
  6740. CFLAGS="$xorg_testset_save_CFLAGS"
  6741. eval supported=\$$cacheid
  6742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6743. $as_echo "$supported" >&6; }
  6744. if test "$supported" = "yes" ; then
  6745. BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
  6746. found="yes"
  6747. fi
  6748. fi
  6749. if test $found = "no" ; then
  6750. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6751. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6752. fi
  6753. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6754. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6755. fi
  6756. CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
  6758. $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
  6759. cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
  6760. if eval \${$cacheid+:} false; then :
  6761. $as_echo_n "(cached) " >&6
  6762. else
  6763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6764. /* end confdefs.h. */
  6765. int i;
  6766. int
  6767. main ()
  6768. {
  6769. ;
  6770. return 0;
  6771. }
  6772. _ACEOF
  6773. if ac_fn_c_try_link "$LINENO"; then :
  6774. eval $cacheid=yes
  6775. else
  6776. eval $cacheid=no
  6777. fi
  6778. rm -f core conftest.err conftest.$ac_objext \
  6779. conftest$ac_exeext conftest.$ac_ext
  6780. fi
  6781. CFLAGS="$xorg_testset_save_CFLAGS"
  6782. eval supported=\$$cacheid
  6783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6784. $as_echo "$supported" >&6; }
  6785. if test "$supported" = "yes" ; then
  6786. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6787. found="yes"
  6788. fi
  6789. fi
  6790. xorg_testset_save_CFLAGS="$CFLAGS"
  6791. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6792. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6794. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6795. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6796. $as_echo_n "(cached) " >&6
  6797. else
  6798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6799. /* end confdefs.h. */
  6800. int i;
  6801. _ACEOF
  6802. if ac_fn_c_try_compile "$LINENO"; then :
  6803. xorg_cv_cc_flag_unknown_warning_option=yes
  6804. else
  6805. xorg_cv_cc_flag_unknown_warning_option=no
  6806. fi
  6807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6808. fi
  6809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6810. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6811. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6812. CFLAGS="$xorg_testset_save_CFLAGS"
  6813. fi
  6814. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6815. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6816. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6817. fi
  6818. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6820. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6821. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6822. $as_echo_n "(cached) " >&6
  6823. else
  6824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6825. /* end confdefs.h. */
  6826. int i;
  6827. _ACEOF
  6828. if ac_fn_c_try_compile "$LINENO"; then :
  6829. xorg_cv_cc_flag_unused_command_line_argument=yes
  6830. else
  6831. xorg_cv_cc_flag_unused_command_line_argument=no
  6832. fi
  6833. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6834. fi
  6835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6836. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6837. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6838. CFLAGS="$xorg_testset_save_CFLAGS"
  6839. fi
  6840. found="no"
  6841. if test $found = "no" ; then
  6842. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6843. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6844. fi
  6845. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6846. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6847. fi
  6848. CFLAGS="$CFLAGS -Werror=trigraphs"
  6849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
  6850. $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
  6851. cacheid=xorg_cv_cc_flag__Werror_trigraphs
  6852. if eval \${$cacheid+:} false; then :
  6853. $as_echo_n "(cached) " >&6
  6854. else
  6855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6856. /* end confdefs.h. */
  6857. int i;
  6858. int
  6859. main ()
  6860. {
  6861. ;
  6862. return 0;
  6863. }
  6864. _ACEOF
  6865. if ac_fn_c_try_link "$LINENO"; then :
  6866. eval $cacheid=yes
  6867. else
  6868. eval $cacheid=no
  6869. fi
  6870. rm -f core conftest.err conftest.$ac_objext \
  6871. conftest$ac_exeext conftest.$ac_ext
  6872. fi
  6873. CFLAGS="$xorg_testset_save_CFLAGS"
  6874. eval supported=\$$cacheid
  6875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6876. $as_echo "$supported" >&6; }
  6877. if test "$supported" = "yes" ; then
  6878. BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
  6879. found="yes"
  6880. fi
  6881. fi
  6882. xorg_testset_save_CFLAGS="$CFLAGS"
  6883. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6884. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6886. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6887. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6888. $as_echo_n "(cached) " >&6
  6889. else
  6890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6891. /* end confdefs.h. */
  6892. int i;
  6893. _ACEOF
  6894. if ac_fn_c_try_compile "$LINENO"; then :
  6895. xorg_cv_cc_flag_unknown_warning_option=yes
  6896. else
  6897. xorg_cv_cc_flag_unknown_warning_option=no
  6898. fi
  6899. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6900. fi
  6901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6902. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6903. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6904. CFLAGS="$xorg_testset_save_CFLAGS"
  6905. fi
  6906. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6907. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6908. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6909. fi
  6910. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6912. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6913. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6914. $as_echo_n "(cached) " >&6
  6915. else
  6916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6917. /* end confdefs.h. */
  6918. int i;
  6919. _ACEOF
  6920. if ac_fn_c_try_compile "$LINENO"; then :
  6921. xorg_cv_cc_flag_unused_command_line_argument=yes
  6922. else
  6923. xorg_cv_cc_flag_unused_command_line_argument=no
  6924. fi
  6925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6926. fi
  6927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6928. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6929. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6930. CFLAGS="$xorg_testset_save_CFLAGS"
  6931. fi
  6932. found="no"
  6933. if test $found = "no" ; then
  6934. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6935. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6936. fi
  6937. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6938. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6939. fi
  6940. CFLAGS="$CFLAGS -Werror=array-bounds"
  6941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
  6942. $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
  6943. cacheid=xorg_cv_cc_flag__Werror_array_bounds
  6944. if eval \${$cacheid+:} false; then :
  6945. $as_echo_n "(cached) " >&6
  6946. else
  6947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6948. /* end confdefs.h. */
  6949. int i;
  6950. int
  6951. main ()
  6952. {
  6953. ;
  6954. return 0;
  6955. }
  6956. _ACEOF
  6957. if ac_fn_c_try_link "$LINENO"; then :
  6958. eval $cacheid=yes
  6959. else
  6960. eval $cacheid=no
  6961. fi
  6962. rm -f core conftest.err conftest.$ac_objext \
  6963. conftest$ac_exeext conftest.$ac_ext
  6964. fi
  6965. CFLAGS="$xorg_testset_save_CFLAGS"
  6966. eval supported=\$$cacheid
  6967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6968. $as_echo "$supported" >&6; }
  6969. if test "$supported" = "yes" ; then
  6970. BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
  6971. found="yes"
  6972. fi
  6973. fi
  6974. xorg_testset_save_CFLAGS="$CFLAGS"
  6975. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6976. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6978. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6979. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6980. $as_echo_n "(cached) " >&6
  6981. else
  6982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6983. /* end confdefs.h. */
  6984. int i;
  6985. _ACEOF
  6986. if ac_fn_c_try_compile "$LINENO"; then :
  6987. xorg_cv_cc_flag_unknown_warning_option=yes
  6988. else
  6989. xorg_cv_cc_flag_unknown_warning_option=no
  6990. fi
  6991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6992. fi
  6993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6994. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6995. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6996. CFLAGS="$xorg_testset_save_CFLAGS"
  6997. fi
  6998. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6999. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7000. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7001. fi
  7002. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7004. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7005. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7006. $as_echo_n "(cached) " >&6
  7007. else
  7008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7009. /* end confdefs.h. */
  7010. int i;
  7011. _ACEOF
  7012. if ac_fn_c_try_compile "$LINENO"; then :
  7013. xorg_cv_cc_flag_unused_command_line_argument=yes
  7014. else
  7015. xorg_cv_cc_flag_unused_command_line_argument=no
  7016. fi
  7017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7018. fi
  7019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7020. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7021. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7022. CFLAGS="$xorg_testset_save_CFLAGS"
  7023. fi
  7024. found="no"
  7025. if test $found = "no" ; then
  7026. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7027. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7028. fi
  7029. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7030. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7031. fi
  7032. CFLAGS="$CFLAGS -Werror=write-strings"
  7033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
  7034. $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
  7035. cacheid=xorg_cv_cc_flag__Werror_write_strings
  7036. if eval \${$cacheid+:} false; then :
  7037. $as_echo_n "(cached) " >&6
  7038. else
  7039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7040. /* end confdefs.h. */
  7041. int i;
  7042. int
  7043. main ()
  7044. {
  7045. ;
  7046. return 0;
  7047. }
  7048. _ACEOF
  7049. if ac_fn_c_try_link "$LINENO"; then :
  7050. eval $cacheid=yes
  7051. else
  7052. eval $cacheid=no
  7053. fi
  7054. rm -f core conftest.err conftest.$ac_objext \
  7055. conftest$ac_exeext conftest.$ac_ext
  7056. fi
  7057. CFLAGS="$xorg_testset_save_CFLAGS"
  7058. eval supported=\$$cacheid
  7059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7060. $as_echo "$supported" >&6; }
  7061. if test "$supported" = "yes" ; then
  7062. BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
  7063. found="yes"
  7064. fi
  7065. fi
  7066. xorg_testset_save_CFLAGS="$CFLAGS"
  7067. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7068. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7070. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7071. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7072. $as_echo_n "(cached) " >&6
  7073. else
  7074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7075. /* end confdefs.h. */
  7076. int i;
  7077. _ACEOF
  7078. if ac_fn_c_try_compile "$LINENO"; then :
  7079. xorg_cv_cc_flag_unknown_warning_option=yes
  7080. else
  7081. xorg_cv_cc_flag_unknown_warning_option=no
  7082. fi
  7083. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7084. fi
  7085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7086. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7087. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7088. CFLAGS="$xorg_testset_save_CFLAGS"
  7089. fi
  7090. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7091. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7092. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7093. fi
  7094. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7096. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7097. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7098. $as_echo_n "(cached) " >&6
  7099. else
  7100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7101. /* end confdefs.h. */
  7102. int i;
  7103. _ACEOF
  7104. if ac_fn_c_try_compile "$LINENO"; then :
  7105. xorg_cv_cc_flag_unused_command_line_argument=yes
  7106. else
  7107. xorg_cv_cc_flag_unused_command_line_argument=no
  7108. fi
  7109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7110. fi
  7111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7112. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7113. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7114. CFLAGS="$xorg_testset_save_CFLAGS"
  7115. fi
  7116. found="no"
  7117. if test $found = "no" ; then
  7118. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7119. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7120. fi
  7121. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7122. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7123. fi
  7124. CFLAGS="$CFLAGS -Werror=address"
  7125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
  7126. $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
  7127. cacheid=xorg_cv_cc_flag__Werror_address
  7128. if eval \${$cacheid+:} false; then :
  7129. $as_echo_n "(cached) " >&6
  7130. else
  7131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7132. /* end confdefs.h. */
  7133. int i;
  7134. int
  7135. main ()
  7136. {
  7137. ;
  7138. return 0;
  7139. }
  7140. _ACEOF
  7141. if ac_fn_c_try_link "$LINENO"; then :
  7142. eval $cacheid=yes
  7143. else
  7144. eval $cacheid=no
  7145. fi
  7146. rm -f core conftest.err conftest.$ac_objext \
  7147. conftest$ac_exeext conftest.$ac_ext
  7148. fi
  7149. CFLAGS="$xorg_testset_save_CFLAGS"
  7150. eval supported=\$$cacheid
  7151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7152. $as_echo "$supported" >&6; }
  7153. if test "$supported" = "yes" ; then
  7154. BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
  7155. found="yes"
  7156. fi
  7157. fi
  7158. xorg_testset_save_CFLAGS="$CFLAGS"
  7159. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7160. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7162. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7163. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7164. $as_echo_n "(cached) " >&6
  7165. else
  7166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7167. /* end confdefs.h. */
  7168. int i;
  7169. _ACEOF
  7170. if ac_fn_c_try_compile "$LINENO"; then :
  7171. xorg_cv_cc_flag_unknown_warning_option=yes
  7172. else
  7173. xorg_cv_cc_flag_unknown_warning_option=no
  7174. fi
  7175. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7176. fi
  7177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7178. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7179. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7180. CFLAGS="$xorg_testset_save_CFLAGS"
  7181. fi
  7182. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7183. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7184. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7185. fi
  7186. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7188. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7189. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7190. $as_echo_n "(cached) " >&6
  7191. else
  7192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7193. /* end confdefs.h. */
  7194. int i;
  7195. _ACEOF
  7196. if ac_fn_c_try_compile "$LINENO"; then :
  7197. xorg_cv_cc_flag_unused_command_line_argument=yes
  7198. else
  7199. xorg_cv_cc_flag_unused_command_line_argument=no
  7200. fi
  7201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7202. fi
  7203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7204. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7205. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7206. CFLAGS="$xorg_testset_save_CFLAGS"
  7207. fi
  7208. found="no"
  7209. if test $found = "no" ; then
  7210. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7211. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7212. fi
  7213. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7214. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7215. fi
  7216. CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
  7217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
  7218. $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
  7219. cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
  7220. if eval \${$cacheid+:} false; then :
  7221. $as_echo_n "(cached) " >&6
  7222. else
  7223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7224. /* end confdefs.h. */
  7225. int i;
  7226. int
  7227. main ()
  7228. {
  7229. ;
  7230. return 0;
  7231. }
  7232. _ACEOF
  7233. if ac_fn_c_try_link "$LINENO"; then :
  7234. eval $cacheid=yes
  7235. else
  7236. eval $cacheid=no
  7237. fi
  7238. rm -f core conftest.err conftest.$ac_objext \
  7239. conftest$ac_exeext conftest.$ac_ext
  7240. fi
  7241. CFLAGS="$xorg_testset_save_CFLAGS"
  7242. eval supported=\$$cacheid
  7243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7244. $as_echo "$supported" >&6; }
  7245. if test "$supported" = "yes" ; then
  7246. BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
  7247. found="yes"
  7248. fi
  7249. fi
  7250. if test $found = "no" ; then
  7251. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7252. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7253. fi
  7254. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7255. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7256. fi
  7257. CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  7258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
  7259. $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
  7260. cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
  7261. if eval \${$cacheid+:} false; then :
  7262. $as_echo_n "(cached) " >&6
  7263. else
  7264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7265. /* end confdefs.h. */
  7266. int i;
  7267. int
  7268. main ()
  7269. {
  7270. ;
  7271. return 0;
  7272. }
  7273. _ACEOF
  7274. if ac_fn_c_try_link "$LINENO"; then :
  7275. eval $cacheid=yes
  7276. else
  7277. eval $cacheid=no
  7278. fi
  7279. rm -f core conftest.err conftest.$ac_objext \
  7280. conftest$ac_exeext conftest.$ac_ext
  7281. fi
  7282. CFLAGS="$xorg_testset_save_CFLAGS"
  7283. eval supported=\$$cacheid
  7284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7285. $as_echo "$supported" >&6; }
  7286. if test "$supported" = "yes" ; then
  7287. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  7288. found="yes"
  7289. fi
  7290. fi
  7291. xorg_testset_save_CFLAGS="$CFLAGS"
  7292. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7293. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7295. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7296. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7297. $as_echo_n "(cached) " >&6
  7298. else
  7299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7300. /* end confdefs.h. */
  7301. int i;
  7302. _ACEOF
  7303. if ac_fn_c_try_compile "$LINENO"; then :
  7304. xorg_cv_cc_flag_unknown_warning_option=yes
  7305. else
  7306. xorg_cv_cc_flag_unknown_warning_option=no
  7307. fi
  7308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7309. fi
  7310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7311. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7312. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7313. CFLAGS="$xorg_testset_save_CFLAGS"
  7314. fi
  7315. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7316. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7317. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7318. fi
  7319. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7321. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7322. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7323. $as_echo_n "(cached) " >&6
  7324. else
  7325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7326. /* end confdefs.h. */
  7327. int i;
  7328. _ACEOF
  7329. if ac_fn_c_try_compile "$LINENO"; then :
  7330. xorg_cv_cc_flag_unused_command_line_argument=yes
  7331. else
  7332. xorg_cv_cc_flag_unused_command_line_argument=no
  7333. fi
  7334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7335. fi
  7336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7337. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7338. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7339. CFLAGS="$xorg_testset_save_CFLAGS"
  7340. fi
  7341. found="no"
  7342. if test $found = "no" ; then
  7343. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7344. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7345. fi
  7346. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7347. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7348. fi
  7349. CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
  7350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
  7351. $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
  7352. cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
  7353. if eval \${$cacheid+:} false; then :
  7354. $as_echo_n "(cached) " >&6
  7355. else
  7356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7357. /* end confdefs.h. */
  7358. int i;
  7359. int
  7360. main ()
  7361. {
  7362. ;
  7363. return 0;
  7364. }
  7365. _ACEOF
  7366. if ac_fn_c_try_link "$LINENO"; then :
  7367. eval $cacheid=yes
  7368. else
  7369. eval $cacheid=no
  7370. fi
  7371. rm -f core conftest.err conftest.$ac_objext \
  7372. conftest$ac_exeext conftest.$ac_ext
  7373. fi
  7374. CFLAGS="$xorg_testset_save_CFLAGS"
  7375. eval supported=\$$cacheid
  7376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7377. $as_echo "$supported" >&6; }
  7378. if test "$supported" = "yes" ; then
  7379. BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
  7380. found="yes"
  7381. fi
  7382. fi
  7383. # Also -errwarn=E_BAD_PTR_INT_COMBINATION
  7384. else
  7385. { $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
  7386. $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;}
  7387. xorg_testset_save_CFLAGS="$CFLAGS"
  7388. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7389. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7391. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7392. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7393. $as_echo_n "(cached) " >&6
  7394. else
  7395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7396. /* end confdefs.h. */
  7397. int i;
  7398. _ACEOF
  7399. if ac_fn_c_try_compile "$LINENO"; then :
  7400. xorg_cv_cc_flag_unknown_warning_option=yes
  7401. else
  7402. xorg_cv_cc_flag_unknown_warning_option=no
  7403. fi
  7404. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7405. fi
  7406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7407. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7408. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7409. CFLAGS="$xorg_testset_save_CFLAGS"
  7410. fi
  7411. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7412. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7413. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7414. fi
  7415. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7417. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7418. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7419. $as_echo_n "(cached) " >&6
  7420. else
  7421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7422. /* end confdefs.h. */
  7423. int i;
  7424. _ACEOF
  7425. if ac_fn_c_try_compile "$LINENO"; then :
  7426. xorg_cv_cc_flag_unused_command_line_argument=yes
  7427. else
  7428. xorg_cv_cc_flag_unused_command_line_argument=no
  7429. fi
  7430. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7431. fi
  7432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7433. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7434. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7435. CFLAGS="$xorg_testset_save_CFLAGS"
  7436. fi
  7437. found="no"
  7438. if test $found = "no" ; then
  7439. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7440. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7441. fi
  7442. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7443. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7444. fi
  7445. CFLAGS="$CFLAGS -Wimplicit"
  7446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
  7447. $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
  7448. cacheid=xorg_cv_cc_flag__Wimplicit
  7449. if eval \${$cacheid+:} false; then :
  7450. $as_echo_n "(cached) " >&6
  7451. else
  7452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7453. /* end confdefs.h. */
  7454. int i;
  7455. int
  7456. main ()
  7457. {
  7458. ;
  7459. return 0;
  7460. }
  7461. _ACEOF
  7462. if ac_fn_c_try_link "$LINENO"; then :
  7463. eval $cacheid=yes
  7464. else
  7465. eval $cacheid=no
  7466. fi
  7467. rm -f core conftest.err conftest.$ac_objext \
  7468. conftest$ac_exeext conftest.$ac_ext
  7469. fi
  7470. CFLAGS="$xorg_testset_save_CFLAGS"
  7471. eval supported=\$$cacheid
  7472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7473. $as_echo "$supported" >&6; }
  7474. if test "$supported" = "yes" ; then
  7475. BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
  7476. found="yes"
  7477. fi
  7478. fi
  7479. xorg_testset_save_CFLAGS="$CFLAGS"
  7480. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7481. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7483. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7484. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7485. $as_echo_n "(cached) " >&6
  7486. else
  7487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7488. /* end confdefs.h. */
  7489. int i;
  7490. _ACEOF
  7491. if ac_fn_c_try_compile "$LINENO"; then :
  7492. xorg_cv_cc_flag_unknown_warning_option=yes
  7493. else
  7494. xorg_cv_cc_flag_unknown_warning_option=no
  7495. fi
  7496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7497. fi
  7498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7499. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7500. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7501. CFLAGS="$xorg_testset_save_CFLAGS"
  7502. fi
  7503. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7504. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7505. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7506. fi
  7507. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7509. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7510. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7511. $as_echo_n "(cached) " >&6
  7512. else
  7513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7514. /* end confdefs.h. */
  7515. int i;
  7516. _ACEOF
  7517. if ac_fn_c_try_compile "$LINENO"; then :
  7518. xorg_cv_cc_flag_unused_command_line_argument=yes
  7519. else
  7520. xorg_cv_cc_flag_unused_command_line_argument=no
  7521. fi
  7522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7523. fi
  7524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7525. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7526. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7527. CFLAGS="$xorg_testset_save_CFLAGS"
  7528. fi
  7529. found="no"
  7530. if test $found = "no" ; then
  7531. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7532. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7533. fi
  7534. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7535. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7536. fi
  7537. CFLAGS="$CFLAGS -Wnonnull"
  7538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
  7539. $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
  7540. cacheid=xorg_cv_cc_flag__Wnonnull
  7541. if eval \${$cacheid+:} false; then :
  7542. $as_echo_n "(cached) " >&6
  7543. else
  7544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7545. /* end confdefs.h. */
  7546. int i;
  7547. int
  7548. main ()
  7549. {
  7550. ;
  7551. return 0;
  7552. }
  7553. _ACEOF
  7554. if ac_fn_c_try_link "$LINENO"; then :
  7555. eval $cacheid=yes
  7556. else
  7557. eval $cacheid=no
  7558. fi
  7559. rm -f core conftest.err conftest.$ac_objext \
  7560. conftest$ac_exeext conftest.$ac_ext
  7561. fi
  7562. CFLAGS="$xorg_testset_save_CFLAGS"
  7563. eval supported=\$$cacheid
  7564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7565. $as_echo "$supported" >&6; }
  7566. if test "$supported" = "yes" ; then
  7567. BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
  7568. found="yes"
  7569. fi
  7570. fi
  7571. xorg_testset_save_CFLAGS="$CFLAGS"
  7572. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7573. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7575. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7576. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7577. $as_echo_n "(cached) " >&6
  7578. else
  7579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7580. /* end confdefs.h. */
  7581. int i;
  7582. _ACEOF
  7583. if ac_fn_c_try_compile "$LINENO"; then :
  7584. xorg_cv_cc_flag_unknown_warning_option=yes
  7585. else
  7586. xorg_cv_cc_flag_unknown_warning_option=no
  7587. fi
  7588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7589. fi
  7590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7591. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7592. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7593. CFLAGS="$xorg_testset_save_CFLAGS"
  7594. fi
  7595. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7596. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7597. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7598. fi
  7599. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7601. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7602. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7603. $as_echo_n "(cached) " >&6
  7604. else
  7605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7606. /* end confdefs.h. */
  7607. int i;
  7608. _ACEOF
  7609. if ac_fn_c_try_compile "$LINENO"; then :
  7610. xorg_cv_cc_flag_unused_command_line_argument=yes
  7611. else
  7612. xorg_cv_cc_flag_unused_command_line_argument=no
  7613. fi
  7614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7615. fi
  7616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7617. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7618. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7619. CFLAGS="$xorg_testset_save_CFLAGS"
  7620. fi
  7621. found="no"
  7622. if test $found = "no" ; then
  7623. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7624. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7625. fi
  7626. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7627. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7628. fi
  7629. CFLAGS="$CFLAGS -Winit-self"
  7630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
  7631. $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
  7632. cacheid=xorg_cv_cc_flag__Winit_self
  7633. if eval \${$cacheid+:} false; then :
  7634. $as_echo_n "(cached) " >&6
  7635. else
  7636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7637. /* end confdefs.h. */
  7638. int i;
  7639. int
  7640. main ()
  7641. {
  7642. ;
  7643. return 0;
  7644. }
  7645. _ACEOF
  7646. if ac_fn_c_try_link "$LINENO"; then :
  7647. eval $cacheid=yes
  7648. else
  7649. eval $cacheid=no
  7650. fi
  7651. rm -f core conftest.err conftest.$ac_objext \
  7652. conftest$ac_exeext conftest.$ac_ext
  7653. fi
  7654. CFLAGS="$xorg_testset_save_CFLAGS"
  7655. eval supported=\$$cacheid
  7656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7657. $as_echo "$supported" >&6; }
  7658. if test "$supported" = "yes" ; then
  7659. BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
  7660. found="yes"
  7661. fi
  7662. fi
  7663. xorg_testset_save_CFLAGS="$CFLAGS"
  7664. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7665. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7667. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7668. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7669. $as_echo_n "(cached) " >&6
  7670. else
  7671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7672. /* end confdefs.h. */
  7673. int i;
  7674. _ACEOF
  7675. if ac_fn_c_try_compile "$LINENO"; then :
  7676. xorg_cv_cc_flag_unknown_warning_option=yes
  7677. else
  7678. xorg_cv_cc_flag_unknown_warning_option=no
  7679. fi
  7680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7681. fi
  7682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7683. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7684. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7685. CFLAGS="$xorg_testset_save_CFLAGS"
  7686. fi
  7687. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7688. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7689. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7690. fi
  7691. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7693. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7694. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7695. $as_echo_n "(cached) " >&6
  7696. else
  7697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7698. /* end confdefs.h. */
  7699. int i;
  7700. _ACEOF
  7701. if ac_fn_c_try_compile "$LINENO"; then :
  7702. xorg_cv_cc_flag_unused_command_line_argument=yes
  7703. else
  7704. xorg_cv_cc_flag_unused_command_line_argument=no
  7705. fi
  7706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7707. fi
  7708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7709. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7710. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7711. CFLAGS="$xorg_testset_save_CFLAGS"
  7712. fi
  7713. found="no"
  7714. if test $found = "no" ; then
  7715. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7716. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7717. fi
  7718. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7719. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7720. fi
  7721. CFLAGS="$CFLAGS -Wmain"
  7722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
  7723. $as_echo_n "checking if $CC supports -Wmain... " >&6; }
  7724. cacheid=xorg_cv_cc_flag__Wmain
  7725. if eval \${$cacheid+:} false; then :
  7726. $as_echo_n "(cached) " >&6
  7727. else
  7728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7729. /* end confdefs.h. */
  7730. int i;
  7731. int
  7732. main ()
  7733. {
  7734. ;
  7735. return 0;
  7736. }
  7737. _ACEOF
  7738. if ac_fn_c_try_link "$LINENO"; then :
  7739. eval $cacheid=yes
  7740. else
  7741. eval $cacheid=no
  7742. fi
  7743. rm -f core conftest.err conftest.$ac_objext \
  7744. conftest$ac_exeext conftest.$ac_ext
  7745. fi
  7746. CFLAGS="$xorg_testset_save_CFLAGS"
  7747. eval supported=\$$cacheid
  7748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7749. $as_echo "$supported" >&6; }
  7750. if test "$supported" = "yes" ; then
  7751. BASE_CFLAGS="$BASE_CFLAGS -Wmain"
  7752. found="yes"
  7753. fi
  7754. fi
  7755. xorg_testset_save_CFLAGS="$CFLAGS"
  7756. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7757. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7759. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7760. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7761. $as_echo_n "(cached) " >&6
  7762. else
  7763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7764. /* end confdefs.h. */
  7765. int i;
  7766. _ACEOF
  7767. if ac_fn_c_try_compile "$LINENO"; then :
  7768. xorg_cv_cc_flag_unknown_warning_option=yes
  7769. else
  7770. xorg_cv_cc_flag_unknown_warning_option=no
  7771. fi
  7772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7773. fi
  7774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7775. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7776. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7777. CFLAGS="$xorg_testset_save_CFLAGS"
  7778. fi
  7779. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7780. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7781. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7782. fi
  7783. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7785. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7786. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7787. $as_echo_n "(cached) " >&6
  7788. else
  7789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7790. /* end confdefs.h. */
  7791. int i;
  7792. _ACEOF
  7793. if ac_fn_c_try_compile "$LINENO"; then :
  7794. xorg_cv_cc_flag_unused_command_line_argument=yes
  7795. else
  7796. xorg_cv_cc_flag_unused_command_line_argument=no
  7797. fi
  7798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7799. fi
  7800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7801. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7802. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7803. CFLAGS="$xorg_testset_save_CFLAGS"
  7804. fi
  7805. found="no"
  7806. if test $found = "no" ; then
  7807. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7808. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7809. fi
  7810. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7811. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7812. fi
  7813. CFLAGS="$CFLAGS -Wmissing-braces"
  7814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
  7815. $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
  7816. cacheid=xorg_cv_cc_flag__Wmissing_braces
  7817. if eval \${$cacheid+:} false; then :
  7818. $as_echo_n "(cached) " >&6
  7819. else
  7820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7821. /* end confdefs.h. */
  7822. int i;
  7823. int
  7824. main ()
  7825. {
  7826. ;
  7827. return 0;
  7828. }
  7829. _ACEOF
  7830. if ac_fn_c_try_link "$LINENO"; then :
  7831. eval $cacheid=yes
  7832. else
  7833. eval $cacheid=no
  7834. fi
  7835. rm -f core conftest.err conftest.$ac_objext \
  7836. conftest$ac_exeext conftest.$ac_ext
  7837. fi
  7838. CFLAGS="$xorg_testset_save_CFLAGS"
  7839. eval supported=\$$cacheid
  7840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7841. $as_echo "$supported" >&6; }
  7842. if test "$supported" = "yes" ; then
  7843. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
  7844. found="yes"
  7845. fi
  7846. fi
  7847. xorg_testset_save_CFLAGS="$CFLAGS"
  7848. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7849. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7851. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7852. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7853. $as_echo_n "(cached) " >&6
  7854. else
  7855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7856. /* end confdefs.h. */
  7857. int i;
  7858. _ACEOF
  7859. if ac_fn_c_try_compile "$LINENO"; then :
  7860. xorg_cv_cc_flag_unknown_warning_option=yes
  7861. else
  7862. xorg_cv_cc_flag_unknown_warning_option=no
  7863. fi
  7864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7865. fi
  7866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7867. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7868. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7869. CFLAGS="$xorg_testset_save_CFLAGS"
  7870. fi
  7871. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7872. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7873. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7874. fi
  7875. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7877. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7878. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7879. $as_echo_n "(cached) " >&6
  7880. else
  7881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7882. /* end confdefs.h. */
  7883. int i;
  7884. _ACEOF
  7885. if ac_fn_c_try_compile "$LINENO"; then :
  7886. xorg_cv_cc_flag_unused_command_line_argument=yes
  7887. else
  7888. xorg_cv_cc_flag_unused_command_line_argument=no
  7889. fi
  7890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7891. fi
  7892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7893. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7894. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7895. CFLAGS="$xorg_testset_save_CFLAGS"
  7896. fi
  7897. found="no"
  7898. if test $found = "no" ; then
  7899. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7900. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7901. fi
  7902. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7903. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7904. fi
  7905. CFLAGS="$CFLAGS -Wsequence-point"
  7906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
  7907. $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
  7908. cacheid=xorg_cv_cc_flag__Wsequence_point
  7909. if eval \${$cacheid+:} false; then :
  7910. $as_echo_n "(cached) " >&6
  7911. else
  7912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7913. /* end confdefs.h. */
  7914. int i;
  7915. int
  7916. main ()
  7917. {
  7918. ;
  7919. return 0;
  7920. }
  7921. _ACEOF
  7922. if ac_fn_c_try_link "$LINENO"; then :
  7923. eval $cacheid=yes
  7924. else
  7925. eval $cacheid=no
  7926. fi
  7927. rm -f core conftest.err conftest.$ac_objext \
  7928. conftest$ac_exeext conftest.$ac_ext
  7929. fi
  7930. CFLAGS="$xorg_testset_save_CFLAGS"
  7931. eval supported=\$$cacheid
  7932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7933. $as_echo "$supported" >&6; }
  7934. if test "$supported" = "yes" ; then
  7935. BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
  7936. found="yes"
  7937. fi
  7938. fi
  7939. xorg_testset_save_CFLAGS="$CFLAGS"
  7940. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7941. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7943. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7944. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7945. $as_echo_n "(cached) " >&6
  7946. else
  7947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7948. /* end confdefs.h. */
  7949. int i;
  7950. _ACEOF
  7951. if ac_fn_c_try_compile "$LINENO"; then :
  7952. xorg_cv_cc_flag_unknown_warning_option=yes
  7953. else
  7954. xorg_cv_cc_flag_unknown_warning_option=no
  7955. fi
  7956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7957. fi
  7958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7959. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7960. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7961. CFLAGS="$xorg_testset_save_CFLAGS"
  7962. fi
  7963. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7964. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7965. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7966. fi
  7967. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7969. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7970. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7971. $as_echo_n "(cached) " >&6
  7972. else
  7973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7974. /* end confdefs.h. */
  7975. int i;
  7976. _ACEOF
  7977. if ac_fn_c_try_compile "$LINENO"; then :
  7978. xorg_cv_cc_flag_unused_command_line_argument=yes
  7979. else
  7980. xorg_cv_cc_flag_unused_command_line_argument=no
  7981. fi
  7982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7983. fi
  7984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7985. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7986. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7987. CFLAGS="$xorg_testset_save_CFLAGS"
  7988. fi
  7989. found="no"
  7990. if test $found = "no" ; then
  7991. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7992. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7993. fi
  7994. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7995. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7996. fi
  7997. CFLAGS="$CFLAGS -Wreturn-type"
  7998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
  7999. $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
  8000. cacheid=xorg_cv_cc_flag__Wreturn_type
  8001. if eval \${$cacheid+:} false; then :
  8002. $as_echo_n "(cached) " >&6
  8003. else
  8004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8005. /* end confdefs.h. */
  8006. int i;
  8007. int
  8008. main ()
  8009. {
  8010. ;
  8011. return 0;
  8012. }
  8013. _ACEOF
  8014. if ac_fn_c_try_link "$LINENO"; then :
  8015. eval $cacheid=yes
  8016. else
  8017. eval $cacheid=no
  8018. fi
  8019. rm -f core conftest.err conftest.$ac_objext \
  8020. conftest$ac_exeext conftest.$ac_ext
  8021. fi
  8022. CFLAGS="$xorg_testset_save_CFLAGS"
  8023. eval supported=\$$cacheid
  8024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8025. $as_echo "$supported" >&6; }
  8026. if test "$supported" = "yes" ; then
  8027. BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
  8028. found="yes"
  8029. fi
  8030. fi
  8031. xorg_testset_save_CFLAGS="$CFLAGS"
  8032. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8033. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8035. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8036. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8037. $as_echo_n "(cached) " >&6
  8038. else
  8039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8040. /* end confdefs.h. */
  8041. int i;
  8042. _ACEOF
  8043. if ac_fn_c_try_compile "$LINENO"; then :
  8044. xorg_cv_cc_flag_unknown_warning_option=yes
  8045. else
  8046. xorg_cv_cc_flag_unknown_warning_option=no
  8047. fi
  8048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8049. fi
  8050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8051. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8052. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8053. CFLAGS="$xorg_testset_save_CFLAGS"
  8054. fi
  8055. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8056. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8057. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8058. fi
  8059. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8061. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8062. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8063. $as_echo_n "(cached) " >&6
  8064. else
  8065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8066. /* end confdefs.h. */
  8067. int i;
  8068. _ACEOF
  8069. if ac_fn_c_try_compile "$LINENO"; then :
  8070. xorg_cv_cc_flag_unused_command_line_argument=yes
  8071. else
  8072. xorg_cv_cc_flag_unused_command_line_argument=no
  8073. fi
  8074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8075. fi
  8076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8077. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8078. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8079. CFLAGS="$xorg_testset_save_CFLAGS"
  8080. fi
  8081. found="no"
  8082. if test $found = "no" ; then
  8083. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8084. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8085. fi
  8086. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8087. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8088. fi
  8089. CFLAGS="$CFLAGS -Wtrigraphs"
  8090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
  8091. $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
  8092. cacheid=xorg_cv_cc_flag__Wtrigraphs
  8093. if eval \${$cacheid+:} false; then :
  8094. $as_echo_n "(cached) " >&6
  8095. else
  8096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8097. /* end confdefs.h. */
  8098. int i;
  8099. int
  8100. main ()
  8101. {
  8102. ;
  8103. return 0;
  8104. }
  8105. _ACEOF
  8106. if ac_fn_c_try_link "$LINENO"; then :
  8107. eval $cacheid=yes
  8108. else
  8109. eval $cacheid=no
  8110. fi
  8111. rm -f core conftest.err conftest.$ac_objext \
  8112. conftest$ac_exeext conftest.$ac_ext
  8113. fi
  8114. CFLAGS="$xorg_testset_save_CFLAGS"
  8115. eval supported=\$$cacheid
  8116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8117. $as_echo "$supported" >&6; }
  8118. if test "$supported" = "yes" ; then
  8119. BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
  8120. found="yes"
  8121. fi
  8122. fi
  8123. xorg_testset_save_CFLAGS="$CFLAGS"
  8124. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8125. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8127. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8128. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8129. $as_echo_n "(cached) " >&6
  8130. else
  8131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8132. /* end confdefs.h. */
  8133. int i;
  8134. _ACEOF
  8135. if ac_fn_c_try_compile "$LINENO"; then :
  8136. xorg_cv_cc_flag_unknown_warning_option=yes
  8137. else
  8138. xorg_cv_cc_flag_unknown_warning_option=no
  8139. fi
  8140. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8141. fi
  8142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8143. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8144. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8145. CFLAGS="$xorg_testset_save_CFLAGS"
  8146. fi
  8147. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8148. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8149. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8150. fi
  8151. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8153. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8154. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8155. $as_echo_n "(cached) " >&6
  8156. else
  8157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8158. /* end confdefs.h. */
  8159. int i;
  8160. _ACEOF
  8161. if ac_fn_c_try_compile "$LINENO"; then :
  8162. xorg_cv_cc_flag_unused_command_line_argument=yes
  8163. else
  8164. xorg_cv_cc_flag_unused_command_line_argument=no
  8165. fi
  8166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8167. fi
  8168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8169. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8170. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8171. CFLAGS="$xorg_testset_save_CFLAGS"
  8172. fi
  8173. found="no"
  8174. if test $found = "no" ; then
  8175. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8176. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8177. fi
  8178. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8179. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8180. fi
  8181. CFLAGS="$CFLAGS -Warray-bounds"
  8182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
  8183. $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
  8184. cacheid=xorg_cv_cc_flag__Warray_bounds
  8185. if eval \${$cacheid+:} false; then :
  8186. $as_echo_n "(cached) " >&6
  8187. else
  8188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8189. /* end confdefs.h. */
  8190. int i;
  8191. int
  8192. main ()
  8193. {
  8194. ;
  8195. return 0;
  8196. }
  8197. _ACEOF
  8198. if ac_fn_c_try_link "$LINENO"; then :
  8199. eval $cacheid=yes
  8200. else
  8201. eval $cacheid=no
  8202. fi
  8203. rm -f core conftest.err conftest.$ac_objext \
  8204. conftest$ac_exeext conftest.$ac_ext
  8205. fi
  8206. CFLAGS="$xorg_testset_save_CFLAGS"
  8207. eval supported=\$$cacheid
  8208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8209. $as_echo "$supported" >&6; }
  8210. if test "$supported" = "yes" ; then
  8211. BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
  8212. found="yes"
  8213. fi
  8214. fi
  8215. xorg_testset_save_CFLAGS="$CFLAGS"
  8216. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8217. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8219. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8220. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8221. $as_echo_n "(cached) " >&6
  8222. else
  8223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8224. /* end confdefs.h. */
  8225. int i;
  8226. _ACEOF
  8227. if ac_fn_c_try_compile "$LINENO"; then :
  8228. xorg_cv_cc_flag_unknown_warning_option=yes
  8229. else
  8230. xorg_cv_cc_flag_unknown_warning_option=no
  8231. fi
  8232. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8233. fi
  8234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8235. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8236. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8237. CFLAGS="$xorg_testset_save_CFLAGS"
  8238. fi
  8239. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8240. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8241. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8242. fi
  8243. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8245. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8246. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8247. $as_echo_n "(cached) " >&6
  8248. else
  8249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8250. /* end confdefs.h. */
  8251. int i;
  8252. _ACEOF
  8253. if ac_fn_c_try_compile "$LINENO"; then :
  8254. xorg_cv_cc_flag_unused_command_line_argument=yes
  8255. else
  8256. xorg_cv_cc_flag_unused_command_line_argument=no
  8257. fi
  8258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8259. fi
  8260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8261. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8262. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8263. CFLAGS="$xorg_testset_save_CFLAGS"
  8264. fi
  8265. found="no"
  8266. if test $found = "no" ; then
  8267. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8268. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8269. fi
  8270. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8271. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8272. fi
  8273. CFLAGS="$CFLAGS -Wwrite-strings"
  8274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
  8275. $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
  8276. cacheid=xorg_cv_cc_flag__Wwrite_strings
  8277. if eval \${$cacheid+:} false; then :
  8278. $as_echo_n "(cached) " >&6
  8279. else
  8280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8281. /* end confdefs.h. */
  8282. int i;
  8283. int
  8284. main ()
  8285. {
  8286. ;
  8287. return 0;
  8288. }
  8289. _ACEOF
  8290. if ac_fn_c_try_link "$LINENO"; then :
  8291. eval $cacheid=yes
  8292. else
  8293. eval $cacheid=no
  8294. fi
  8295. rm -f core conftest.err conftest.$ac_objext \
  8296. conftest$ac_exeext conftest.$ac_ext
  8297. fi
  8298. CFLAGS="$xorg_testset_save_CFLAGS"
  8299. eval supported=\$$cacheid
  8300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8301. $as_echo "$supported" >&6; }
  8302. if test "$supported" = "yes" ; then
  8303. BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
  8304. found="yes"
  8305. fi
  8306. fi
  8307. xorg_testset_save_CFLAGS="$CFLAGS"
  8308. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8309. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8311. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8312. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8313. $as_echo_n "(cached) " >&6
  8314. else
  8315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8316. /* end confdefs.h. */
  8317. int i;
  8318. _ACEOF
  8319. if ac_fn_c_try_compile "$LINENO"; then :
  8320. xorg_cv_cc_flag_unknown_warning_option=yes
  8321. else
  8322. xorg_cv_cc_flag_unknown_warning_option=no
  8323. fi
  8324. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8325. fi
  8326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8327. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8328. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8329. CFLAGS="$xorg_testset_save_CFLAGS"
  8330. fi
  8331. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8332. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8333. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8334. fi
  8335. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8337. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8338. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8339. $as_echo_n "(cached) " >&6
  8340. else
  8341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8342. /* end confdefs.h. */
  8343. int i;
  8344. _ACEOF
  8345. if ac_fn_c_try_compile "$LINENO"; then :
  8346. xorg_cv_cc_flag_unused_command_line_argument=yes
  8347. else
  8348. xorg_cv_cc_flag_unused_command_line_argument=no
  8349. fi
  8350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8351. fi
  8352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8353. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8354. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8355. CFLAGS="$xorg_testset_save_CFLAGS"
  8356. fi
  8357. found="no"
  8358. if test $found = "no" ; then
  8359. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8360. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8361. fi
  8362. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8363. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8364. fi
  8365. CFLAGS="$CFLAGS -Waddress"
  8366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
  8367. $as_echo_n "checking if $CC supports -Waddress... " >&6; }
  8368. cacheid=xorg_cv_cc_flag__Waddress
  8369. if eval \${$cacheid+:} false; then :
  8370. $as_echo_n "(cached) " >&6
  8371. else
  8372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8373. /* end confdefs.h. */
  8374. int i;
  8375. int
  8376. main ()
  8377. {
  8378. ;
  8379. return 0;
  8380. }
  8381. _ACEOF
  8382. if ac_fn_c_try_link "$LINENO"; then :
  8383. eval $cacheid=yes
  8384. else
  8385. eval $cacheid=no
  8386. fi
  8387. rm -f core conftest.err conftest.$ac_objext \
  8388. conftest$ac_exeext conftest.$ac_ext
  8389. fi
  8390. CFLAGS="$xorg_testset_save_CFLAGS"
  8391. eval supported=\$$cacheid
  8392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8393. $as_echo "$supported" >&6; }
  8394. if test "$supported" = "yes" ; then
  8395. BASE_CFLAGS="$BASE_CFLAGS -Waddress"
  8396. found="yes"
  8397. fi
  8398. fi
  8399. xorg_testset_save_CFLAGS="$CFLAGS"
  8400. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8401. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8403. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8404. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8405. $as_echo_n "(cached) " >&6
  8406. else
  8407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8408. /* end confdefs.h. */
  8409. int i;
  8410. _ACEOF
  8411. if ac_fn_c_try_compile "$LINENO"; then :
  8412. xorg_cv_cc_flag_unknown_warning_option=yes
  8413. else
  8414. xorg_cv_cc_flag_unknown_warning_option=no
  8415. fi
  8416. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8417. fi
  8418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8419. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8420. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8421. CFLAGS="$xorg_testset_save_CFLAGS"
  8422. fi
  8423. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8424. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8425. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8426. fi
  8427. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8429. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8430. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8431. $as_echo_n "(cached) " >&6
  8432. else
  8433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8434. /* end confdefs.h. */
  8435. int i;
  8436. _ACEOF
  8437. if ac_fn_c_try_compile "$LINENO"; then :
  8438. xorg_cv_cc_flag_unused_command_line_argument=yes
  8439. else
  8440. xorg_cv_cc_flag_unused_command_line_argument=no
  8441. fi
  8442. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8443. fi
  8444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8445. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8446. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8447. CFLAGS="$xorg_testset_save_CFLAGS"
  8448. fi
  8449. found="no"
  8450. if test $found = "no" ; then
  8451. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8452. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8453. fi
  8454. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8455. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8456. fi
  8457. CFLAGS="$CFLAGS -Wint-to-pointer-cast"
  8458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
  8459. $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
  8460. cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
  8461. if eval \${$cacheid+:} false; then :
  8462. $as_echo_n "(cached) " >&6
  8463. else
  8464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8465. /* end confdefs.h. */
  8466. int i;
  8467. int
  8468. main ()
  8469. {
  8470. ;
  8471. return 0;
  8472. }
  8473. _ACEOF
  8474. if ac_fn_c_try_link "$LINENO"; then :
  8475. eval $cacheid=yes
  8476. else
  8477. eval $cacheid=no
  8478. fi
  8479. rm -f core conftest.err conftest.$ac_objext \
  8480. conftest$ac_exeext conftest.$ac_ext
  8481. fi
  8482. CFLAGS="$xorg_testset_save_CFLAGS"
  8483. eval supported=\$$cacheid
  8484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8485. $as_echo "$supported" >&6; }
  8486. if test "$supported" = "yes" ; then
  8487. BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
  8488. found="yes"
  8489. fi
  8490. fi
  8491. xorg_testset_save_CFLAGS="$CFLAGS"
  8492. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8493. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8495. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8496. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8497. $as_echo_n "(cached) " >&6
  8498. else
  8499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8500. /* end confdefs.h. */
  8501. int i;
  8502. _ACEOF
  8503. if ac_fn_c_try_compile "$LINENO"; then :
  8504. xorg_cv_cc_flag_unknown_warning_option=yes
  8505. else
  8506. xorg_cv_cc_flag_unknown_warning_option=no
  8507. fi
  8508. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8509. fi
  8510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8511. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8512. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8513. CFLAGS="$xorg_testset_save_CFLAGS"
  8514. fi
  8515. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8516. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8517. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8518. fi
  8519. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8521. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8522. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8523. $as_echo_n "(cached) " >&6
  8524. else
  8525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8526. /* end confdefs.h. */
  8527. int i;
  8528. _ACEOF
  8529. if ac_fn_c_try_compile "$LINENO"; then :
  8530. xorg_cv_cc_flag_unused_command_line_argument=yes
  8531. else
  8532. xorg_cv_cc_flag_unused_command_line_argument=no
  8533. fi
  8534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8535. fi
  8536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8537. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8538. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8539. CFLAGS="$xorg_testset_save_CFLAGS"
  8540. fi
  8541. found="no"
  8542. if test $found = "no" ; then
  8543. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8544. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8545. fi
  8546. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8547. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8548. fi
  8549. CFLAGS="$CFLAGS -Wpointer-to-int-cast"
  8550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
  8551. $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
  8552. cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
  8553. if eval \${$cacheid+:} false; then :
  8554. $as_echo_n "(cached) " >&6
  8555. else
  8556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8557. /* end confdefs.h. */
  8558. int i;
  8559. int
  8560. main ()
  8561. {
  8562. ;
  8563. return 0;
  8564. }
  8565. _ACEOF
  8566. if ac_fn_c_try_link "$LINENO"; then :
  8567. eval $cacheid=yes
  8568. else
  8569. eval $cacheid=no
  8570. fi
  8571. rm -f core conftest.err conftest.$ac_objext \
  8572. conftest$ac_exeext conftest.$ac_ext
  8573. fi
  8574. CFLAGS="$xorg_testset_save_CFLAGS"
  8575. eval supported=\$$cacheid
  8576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8577. $as_echo "$supported" >&6; }
  8578. if test "$supported" = "yes" ; then
  8579. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
  8580. found="yes"
  8581. fi
  8582. fi
  8583. fi
  8584. CWARNFLAGS="$BASE_CFLAGS"
  8585. if test "x$GCC" = xyes ; then
  8586. CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
  8587. fi
  8588. # Check whether --enable-strict-compilation was given.
  8589. if test "${enable_strict_compilation+set}" = set; then :
  8590. enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
  8591. else
  8592. STRICT_COMPILE=no
  8593. fi
  8594. STRICT_CFLAGS=""
  8595. xorg_testset_save_CFLAGS="$CFLAGS"
  8596. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8597. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8599. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8600. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8601. $as_echo_n "(cached) " >&6
  8602. else
  8603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8604. /* end confdefs.h. */
  8605. int i;
  8606. _ACEOF
  8607. if ac_fn_c_try_compile "$LINENO"; then :
  8608. xorg_cv_cc_flag_unknown_warning_option=yes
  8609. else
  8610. xorg_cv_cc_flag_unknown_warning_option=no
  8611. fi
  8612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8613. fi
  8614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8615. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8616. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8617. CFLAGS="$xorg_testset_save_CFLAGS"
  8618. fi
  8619. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8620. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8621. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8622. fi
  8623. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8625. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8626. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8627. $as_echo_n "(cached) " >&6
  8628. else
  8629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8630. /* end confdefs.h. */
  8631. int i;
  8632. _ACEOF
  8633. if ac_fn_c_try_compile "$LINENO"; then :
  8634. xorg_cv_cc_flag_unused_command_line_argument=yes
  8635. else
  8636. xorg_cv_cc_flag_unused_command_line_argument=no
  8637. fi
  8638. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8639. fi
  8640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8641. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8642. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8643. CFLAGS="$xorg_testset_save_CFLAGS"
  8644. fi
  8645. found="no"
  8646. if test $found = "no" ; then
  8647. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8648. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8649. fi
  8650. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8651. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8652. fi
  8653. CFLAGS="$CFLAGS -pedantic"
  8654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
  8655. $as_echo_n "checking if $CC supports -pedantic... " >&6; }
  8656. cacheid=xorg_cv_cc_flag__pedantic
  8657. if eval \${$cacheid+:} false; then :
  8658. $as_echo_n "(cached) " >&6
  8659. else
  8660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8661. /* end confdefs.h. */
  8662. int i;
  8663. int
  8664. main ()
  8665. {
  8666. ;
  8667. return 0;
  8668. }
  8669. _ACEOF
  8670. if ac_fn_c_try_link "$LINENO"; then :
  8671. eval $cacheid=yes
  8672. else
  8673. eval $cacheid=no
  8674. fi
  8675. rm -f core conftest.err conftest.$ac_objext \
  8676. conftest$ac_exeext conftest.$ac_ext
  8677. fi
  8678. CFLAGS="$xorg_testset_save_CFLAGS"
  8679. eval supported=\$$cacheid
  8680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8681. $as_echo "$supported" >&6; }
  8682. if test "$supported" = "yes" ; then
  8683. STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
  8684. found="yes"
  8685. fi
  8686. fi
  8687. xorg_testset_save_CFLAGS="$CFLAGS"
  8688. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8689. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8691. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8692. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8693. $as_echo_n "(cached) " >&6
  8694. else
  8695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8696. /* end confdefs.h. */
  8697. int i;
  8698. _ACEOF
  8699. if ac_fn_c_try_compile "$LINENO"; then :
  8700. xorg_cv_cc_flag_unknown_warning_option=yes
  8701. else
  8702. xorg_cv_cc_flag_unknown_warning_option=no
  8703. fi
  8704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8705. fi
  8706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8707. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8708. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8709. CFLAGS="$xorg_testset_save_CFLAGS"
  8710. fi
  8711. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8712. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8713. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8714. fi
  8715. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8717. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8718. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8719. $as_echo_n "(cached) " >&6
  8720. else
  8721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8722. /* end confdefs.h. */
  8723. int i;
  8724. _ACEOF
  8725. if ac_fn_c_try_compile "$LINENO"; then :
  8726. xorg_cv_cc_flag_unused_command_line_argument=yes
  8727. else
  8728. xorg_cv_cc_flag_unused_command_line_argument=no
  8729. fi
  8730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8731. fi
  8732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8733. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8734. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8735. CFLAGS="$xorg_testset_save_CFLAGS"
  8736. fi
  8737. found="no"
  8738. if test $found = "no" ; then
  8739. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8740. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8741. fi
  8742. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8743. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8744. fi
  8745. CFLAGS="$CFLAGS -Werror"
  8746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
  8747. $as_echo_n "checking if $CC supports -Werror... " >&6; }
  8748. cacheid=xorg_cv_cc_flag__Werror
  8749. if eval \${$cacheid+:} false; then :
  8750. $as_echo_n "(cached) " >&6
  8751. else
  8752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8753. /* end confdefs.h. */
  8754. int i;
  8755. int
  8756. main ()
  8757. {
  8758. ;
  8759. return 0;
  8760. }
  8761. _ACEOF
  8762. if ac_fn_c_try_link "$LINENO"; then :
  8763. eval $cacheid=yes
  8764. else
  8765. eval $cacheid=no
  8766. fi
  8767. rm -f core conftest.err conftest.$ac_objext \
  8768. conftest$ac_exeext conftest.$ac_ext
  8769. fi
  8770. CFLAGS="$xorg_testset_save_CFLAGS"
  8771. eval supported=\$$cacheid
  8772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8773. $as_echo "$supported" >&6; }
  8774. if test "$supported" = "yes" ; then
  8775. STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
  8776. found="yes"
  8777. fi
  8778. fi
  8779. if test $found = "no" ; then
  8780. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8781. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8782. fi
  8783. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8784. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8785. fi
  8786. CFLAGS="$CFLAGS -errwarn"
  8787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
  8788. $as_echo_n "checking if $CC supports -errwarn... " >&6; }
  8789. cacheid=xorg_cv_cc_flag__errwarn
  8790. if eval \${$cacheid+:} false; then :
  8791. $as_echo_n "(cached) " >&6
  8792. else
  8793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8794. /* end confdefs.h. */
  8795. int i;
  8796. int
  8797. main ()
  8798. {
  8799. ;
  8800. return 0;
  8801. }
  8802. _ACEOF
  8803. if ac_fn_c_try_link "$LINENO"; then :
  8804. eval $cacheid=yes
  8805. else
  8806. eval $cacheid=no
  8807. fi
  8808. rm -f core conftest.err conftest.$ac_objext \
  8809. conftest$ac_exeext conftest.$ac_ext
  8810. fi
  8811. CFLAGS="$xorg_testset_save_CFLAGS"
  8812. eval supported=\$$cacheid
  8813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8814. $as_echo "$supported" >&6; }
  8815. if test "$supported" = "yes" ; then
  8816. STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
  8817. found="yes"
  8818. fi
  8819. fi
  8820. # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
  8821. # activate it with -Werror, so we add it here explicitly.
  8822. xorg_testset_save_CFLAGS="$CFLAGS"
  8823. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8824. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8826. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8827. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8828. $as_echo_n "(cached) " >&6
  8829. else
  8830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8831. /* end confdefs.h. */
  8832. int i;
  8833. _ACEOF
  8834. if ac_fn_c_try_compile "$LINENO"; then :
  8835. xorg_cv_cc_flag_unknown_warning_option=yes
  8836. else
  8837. xorg_cv_cc_flag_unknown_warning_option=no
  8838. fi
  8839. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8840. fi
  8841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8842. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8843. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8844. CFLAGS="$xorg_testset_save_CFLAGS"
  8845. fi
  8846. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8847. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8848. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8849. fi
  8850. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8852. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8853. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8854. $as_echo_n "(cached) " >&6
  8855. else
  8856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8857. /* end confdefs.h. */
  8858. int i;
  8859. _ACEOF
  8860. if ac_fn_c_try_compile "$LINENO"; then :
  8861. xorg_cv_cc_flag_unused_command_line_argument=yes
  8862. else
  8863. xorg_cv_cc_flag_unused_command_line_argument=no
  8864. fi
  8865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8866. fi
  8867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8868. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8869. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8870. CFLAGS="$xorg_testset_save_CFLAGS"
  8871. fi
  8872. found="no"
  8873. if test $found = "no" ; then
  8874. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8875. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8876. fi
  8877. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8878. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8879. fi
  8880. CFLAGS="$CFLAGS -Werror=attributes"
  8881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
  8882. $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
  8883. cacheid=xorg_cv_cc_flag__Werror_attributes
  8884. if eval \${$cacheid+:} false; then :
  8885. $as_echo_n "(cached) " >&6
  8886. else
  8887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8888. /* end confdefs.h. */
  8889. int i;
  8890. int
  8891. main ()
  8892. {
  8893. ;
  8894. return 0;
  8895. }
  8896. _ACEOF
  8897. if ac_fn_c_try_link "$LINENO"; then :
  8898. eval $cacheid=yes
  8899. else
  8900. eval $cacheid=no
  8901. fi
  8902. rm -f core conftest.err conftest.$ac_objext \
  8903. conftest$ac_exeext conftest.$ac_ext
  8904. fi
  8905. CFLAGS="$xorg_testset_save_CFLAGS"
  8906. eval supported=\$$cacheid
  8907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8908. $as_echo "$supported" >&6; }
  8909. if test "$supported" = "yes" ; then
  8910. STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
  8911. found="yes"
  8912. fi
  8913. fi
  8914. if test "x$STRICT_COMPILE" = "xyes"; then
  8915. BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
  8916. CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
  8917. fi
  8918. cat >>confdefs.h <<_ACEOF
  8919. #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
  8920. _ACEOF
  8921. PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
  8922. if test "x$PVM" = "x"; then
  8923. PVM="0"
  8924. fi
  8925. cat >>confdefs.h <<_ACEOF
  8926. #define PACKAGE_VERSION_MINOR $PVM
  8927. _ACEOF
  8928. PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
  8929. if test "x$PVP" = "x"; then
  8930. PVP="0"
  8931. fi
  8932. cat >>confdefs.h <<_ACEOF
  8933. #define PACKAGE_VERSION_PATCHLEVEL $PVP
  8934. _ACEOF
  8935. CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
  8936. mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
  8937. || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
  8938. echo 'git directory not found: installing possibly empty changelog.' >&2)"
  8939. macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
  8940. INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
  8941. mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
  8942. || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
  8943. echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
  8944. if test x$APP_MAN_SUFFIX = x ; then
  8945. APP_MAN_SUFFIX=1
  8946. fi
  8947. if test x$APP_MAN_DIR = x ; then
  8948. APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
  8949. fi
  8950. if test x$LIB_MAN_SUFFIX = x ; then
  8951. LIB_MAN_SUFFIX=3
  8952. fi
  8953. if test x$LIB_MAN_DIR = x ; then
  8954. LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
  8955. fi
  8956. if test x$FILE_MAN_SUFFIX = x ; then
  8957. case $host_os in
  8958. solaris*) FILE_MAN_SUFFIX=4 ;;
  8959. *) FILE_MAN_SUFFIX=5 ;;
  8960. esac
  8961. fi
  8962. if test x$FILE_MAN_DIR = x ; then
  8963. FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
  8964. fi
  8965. if test x$MISC_MAN_SUFFIX = x ; then
  8966. case $host_os in
  8967. solaris*) MISC_MAN_SUFFIX=5 ;;
  8968. *) MISC_MAN_SUFFIX=7 ;;
  8969. esac
  8970. fi
  8971. if test x$MISC_MAN_DIR = x ; then
  8972. MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
  8973. fi
  8974. if test x$DRIVER_MAN_SUFFIX = x ; then
  8975. case $host_os in
  8976. solaris*) DRIVER_MAN_SUFFIX=7 ;;
  8977. *) DRIVER_MAN_SUFFIX=4 ;;
  8978. esac
  8979. fi
  8980. if test x$DRIVER_MAN_DIR = x ; then
  8981. DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
  8982. fi
  8983. if test x$ADMIN_MAN_SUFFIX = x ; then
  8984. case $host_os in
  8985. solaris*) ADMIN_MAN_SUFFIX=1m ;;
  8986. *) ADMIN_MAN_SUFFIX=8 ;;
  8987. esac
  8988. fi
  8989. if test x$ADMIN_MAN_DIR = x ; then
  8990. ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
  8991. fi
  8992. XORG_MAN_PAGE="X Version 11"
  8993. MAN_SUBSTS="\
  8994. -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8995. -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8996. -e 's|__xservername__|Xorg|g' \
  8997. -e 's|__xconfigfile__|xorg.conf|g' \
  8998. -e 's|__projectroot__|\$(prefix)|g' \
  8999. -e 's|__apploaddir__|\$(appdefaultdir)|g' \
  9000. -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
  9001. -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
  9002. -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
  9003. -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
  9004. -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
  9005. -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
  9006. # Check whether --enable-silent-rules was given.
  9007. if test "${enable_silent_rules+set}" = set; then :
  9008. enableval=$enable_silent_rules;
  9009. fi
  9010. case $enable_silent_rules in # (((
  9011. yes) AM_DEFAULT_VERBOSITY=0;;
  9012. no) AM_DEFAULT_VERBOSITY=1;;
  9013. *) AM_DEFAULT_VERBOSITY=0;;
  9014. esac
  9015. am_make=${MAKE-make}
  9016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  9017. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  9018. if ${am_cv_make_support_nested_variables+:} false; then :
  9019. $as_echo_n "(cached) " >&6
  9020. else
  9021. if $as_echo 'TRUE=$(BAR$(V))
  9022. BAR0=false
  9023. BAR1=true
  9024. V=1
  9025. am__doit:
  9026. @$(TRUE)
  9027. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  9028. am_cv_make_support_nested_variables=yes
  9029. else
  9030. am_cv_make_support_nested_variables=no
  9031. fi
  9032. fi
  9033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  9034. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  9035. if test $am_cv_make_support_nested_variables = yes; then
  9036. AM_V='$(V)'
  9037. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  9038. else
  9039. AM_V=$AM_DEFAULT_VERBOSITY
  9040. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  9041. fi
  9042. AM_BACKSLASH='\'
  9043. # And disable a few very noisy warnings
  9044. xorg_testset_save_CFLAGS="$CFLAGS"
  9045. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  9046. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  9048. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  9049. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  9050. $as_echo_n "(cached) " >&6
  9051. else
  9052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9053. /* end confdefs.h. */
  9054. int i;
  9055. _ACEOF
  9056. if ac_fn_c_try_compile "$LINENO"; then :
  9057. xorg_cv_cc_flag_unknown_warning_option=yes
  9058. else
  9059. xorg_cv_cc_flag_unknown_warning_option=no
  9060. fi
  9061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9062. fi
  9063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  9064. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  9065. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  9066. CFLAGS="$xorg_testset_save_CFLAGS"
  9067. fi
  9068. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  9069. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  9070. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9071. fi
  9072. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  9073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  9074. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  9075. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  9076. $as_echo_n "(cached) " >&6
  9077. else
  9078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9079. /* end confdefs.h. */
  9080. int i;
  9081. _ACEOF
  9082. if ac_fn_c_try_compile "$LINENO"; then :
  9083. xorg_cv_cc_flag_unused_command_line_argument=yes
  9084. else
  9085. xorg_cv_cc_flag_unused_command_line_argument=no
  9086. fi
  9087. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9088. fi
  9089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  9090. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  9091. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  9092. CFLAGS="$xorg_testset_save_CFLAGS"
  9093. fi
  9094. found="no"
  9095. if test $found = "no" ; then
  9096. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  9097. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9098. fi
  9099. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  9100. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  9101. fi
  9102. CFLAGS="$CFLAGS -Wno-cast-qual"
  9103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-cast-qual" >&5
  9104. $as_echo_n "checking if $CC supports -Wno-cast-qual... " >&6; }
  9105. cacheid=xorg_cv_cc_flag__Wno_cast_qual
  9106. if eval \${$cacheid+:} false; then :
  9107. $as_echo_n "(cached) " >&6
  9108. else
  9109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9110. /* end confdefs.h. */
  9111. int i;
  9112. int
  9113. main ()
  9114. {
  9115. ;
  9116. return 0;
  9117. }
  9118. _ACEOF
  9119. if ac_fn_c_try_link "$LINENO"; then :
  9120. eval $cacheid=yes
  9121. else
  9122. eval $cacheid=no
  9123. fi
  9124. rm -f core conftest.err conftest.$ac_objext \
  9125. conftest$ac_exeext conftest.$ac_ext
  9126. fi
  9127. CFLAGS="$xorg_testset_save_CFLAGS"
  9128. eval supported=\$$cacheid
  9129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  9130. $as_echo "$supported" >&6; }
  9131. if test "$supported" = "yes" ; then
  9132. NOWARNFLAGS="$NOWARNFLAGS -Wno-cast-qual"
  9133. found="yes"
  9134. fi
  9135. fi
  9136. xorg_testset_save_CFLAGS="$CFLAGS"
  9137. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  9138. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  9140. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  9141. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  9142. $as_echo_n "(cached) " >&6
  9143. else
  9144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9145. /* end confdefs.h. */
  9146. int i;
  9147. _ACEOF
  9148. if ac_fn_c_try_compile "$LINENO"; then :
  9149. xorg_cv_cc_flag_unknown_warning_option=yes
  9150. else
  9151. xorg_cv_cc_flag_unknown_warning_option=no
  9152. fi
  9153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9154. fi
  9155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  9156. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  9157. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  9158. CFLAGS="$xorg_testset_save_CFLAGS"
  9159. fi
  9160. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  9161. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  9162. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9163. fi
  9164. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  9165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  9166. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  9167. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  9168. $as_echo_n "(cached) " >&6
  9169. else
  9170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9171. /* end confdefs.h. */
  9172. int i;
  9173. _ACEOF
  9174. if ac_fn_c_try_compile "$LINENO"; then :
  9175. xorg_cv_cc_flag_unused_command_line_argument=yes
  9176. else
  9177. xorg_cv_cc_flag_unused_command_line_argument=no
  9178. fi
  9179. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9180. fi
  9181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  9182. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  9183. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  9184. CFLAGS="$xorg_testset_save_CFLAGS"
  9185. fi
  9186. found="no"
  9187. if test $found = "no" ; then
  9188. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  9189. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9190. fi
  9191. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  9192. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  9193. fi
  9194. CFLAGS="$CFLAGS -Wno-redundant-decls"
  9195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-redundant-decls" >&5
  9196. $as_echo_n "checking if $CC supports -Wno-redundant-decls... " >&6; }
  9197. cacheid=xorg_cv_cc_flag__Wno_redundant_decls
  9198. if eval \${$cacheid+:} false; then :
  9199. $as_echo_n "(cached) " >&6
  9200. else
  9201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9202. /* end confdefs.h. */
  9203. int i;
  9204. int
  9205. main ()
  9206. {
  9207. ;
  9208. return 0;
  9209. }
  9210. _ACEOF
  9211. if ac_fn_c_try_link "$LINENO"; then :
  9212. eval $cacheid=yes
  9213. else
  9214. eval $cacheid=no
  9215. fi
  9216. rm -f core conftest.err conftest.$ac_objext \
  9217. conftest$ac_exeext conftest.$ac_ext
  9218. fi
  9219. CFLAGS="$xorg_testset_save_CFLAGS"
  9220. eval supported=\$$cacheid
  9221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  9222. $as_echo "$supported" >&6; }
  9223. if test "$supported" = "yes" ; then
  9224. NOWARNFLAGS="$NOWARNFLAGS -Wno-redundant-decls"
  9225. found="yes"
  9226. fi
  9227. fi
  9228. xorg_testset_save_CFLAGS="$CFLAGS"
  9229. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  9230. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  9232. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  9233. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  9234. $as_echo_n "(cached) " >&6
  9235. else
  9236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9237. /* end confdefs.h. */
  9238. int i;
  9239. _ACEOF
  9240. if ac_fn_c_try_compile "$LINENO"; then :
  9241. xorg_cv_cc_flag_unknown_warning_option=yes
  9242. else
  9243. xorg_cv_cc_flag_unknown_warning_option=no
  9244. fi
  9245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9246. fi
  9247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  9248. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  9249. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  9250. CFLAGS="$xorg_testset_save_CFLAGS"
  9251. fi
  9252. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  9253. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  9254. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9255. fi
  9256. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  9257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  9258. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  9259. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  9260. $as_echo_n "(cached) " >&6
  9261. else
  9262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9263. /* end confdefs.h. */
  9264. int i;
  9265. _ACEOF
  9266. if ac_fn_c_try_compile "$LINENO"; then :
  9267. xorg_cv_cc_flag_unused_command_line_argument=yes
  9268. else
  9269. xorg_cv_cc_flag_unused_command_line_argument=no
  9270. fi
  9271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9272. fi
  9273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  9274. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  9275. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  9276. CFLAGS="$xorg_testset_save_CFLAGS"
  9277. fi
  9278. found="no"
  9279. if test $found = "no" ; then
  9280. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  9281. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9282. fi
  9283. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  9284. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  9285. fi
  9286. CFLAGS="$CFLAGS -Wno-maybe-uninitialized"
  9287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-maybe-uninitialized" >&5
  9288. $as_echo_n "checking if $CC supports -Wno-maybe-uninitialized... " >&6; }
  9289. cacheid=xorg_cv_cc_flag__Wno_maybe_uninitialized
  9290. if eval \${$cacheid+:} false; then :
  9291. $as_echo_n "(cached) " >&6
  9292. else
  9293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9294. /* end confdefs.h. */
  9295. int i;
  9296. int
  9297. main ()
  9298. {
  9299. ;
  9300. return 0;
  9301. }
  9302. _ACEOF
  9303. if ac_fn_c_try_link "$LINENO"; then :
  9304. eval $cacheid=yes
  9305. else
  9306. eval $cacheid=no
  9307. fi
  9308. rm -f core conftest.err conftest.$ac_objext \
  9309. conftest$ac_exeext conftest.$ac_ext
  9310. fi
  9311. CFLAGS="$xorg_testset_save_CFLAGS"
  9312. eval supported=\$$cacheid
  9313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  9314. $as_echo "$supported" >&6; }
  9315. if test "$supported" = "yes" ; then
  9316. NOWARNFLAGS="$NOWARNFLAGS -Wno-maybe-uninitialized"
  9317. found="yes"
  9318. fi
  9319. fi
  9320. # Require X.Org server macros (i.e. XORG_DRIVER_CHECK_EXT) to check for required modules
  9321. # Initialize libtool
  9322. # Check whether --enable-static was given.
  9323. if test "${enable_static+set}" = set; then :
  9324. enableval=$enable_static; p=${PACKAGE-default}
  9325. case $enableval in
  9326. yes) enable_static=yes ;;
  9327. no) enable_static=no ;;
  9328. *)
  9329. enable_static=no
  9330. # Look at the argument we got. We use all the common list separators.
  9331. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9332. for pkg in $enableval; do
  9333. IFS="$lt_save_ifs"
  9334. if test "X$pkg" = "X$p"; then
  9335. enable_static=yes
  9336. fi
  9337. done
  9338. IFS="$lt_save_ifs"
  9339. ;;
  9340. esac
  9341. else
  9342. enable_static=no
  9343. fi
  9344. case `pwd` in
  9345. *\ * | *\ *)
  9346. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  9347. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  9348. esac
  9349. macro_version='2.4.2'
  9350. macro_revision='1.3337'
  9351. ltmain="$ac_aux_dir/ltmain.sh"
  9352. # Backslashify metacharacters that are still active within
  9353. # double-quoted strings.
  9354. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  9355. # Same as above, but do not quote variable references.
  9356. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  9357. # Sed substitution to delay expansion of an escaped shell variable in a
  9358. # double_quote_subst'ed string.
  9359. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  9360. # Sed substitution to delay expansion of an escaped single quote.
  9361. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  9362. # Sed substitution to avoid accidental globbing in evaled expressions
  9363. no_glob_subst='s/\*/\\\*/g'
  9364. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9365. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  9366. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  9367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  9368. $as_echo_n "checking how to print strings... " >&6; }
  9369. # Test print first, because it will be a builtin if present.
  9370. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  9371. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  9372. ECHO='print -r --'
  9373. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  9374. ECHO='printf %s\n'
  9375. else
  9376. # Use this function as a fallback that always works.
  9377. func_fallback_echo ()
  9378. {
  9379. eval 'cat <<_LTECHO_EOF
  9380. $1
  9381. _LTECHO_EOF'
  9382. }
  9383. ECHO='func_fallback_echo'
  9384. fi
  9385. # func_echo_all arg...
  9386. # Invoke $ECHO with all args, space-separated.
  9387. func_echo_all ()
  9388. {
  9389. $ECHO ""
  9390. }
  9391. case "$ECHO" in
  9392. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  9393. $as_echo "printf" >&6; } ;;
  9394. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  9395. $as_echo "print -r" >&6; } ;;
  9396. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  9397. $as_echo "cat" >&6; } ;;
  9398. esac
  9399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  9400. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  9401. if ${ac_cv_path_SED+:} false; then :
  9402. $as_echo_n "(cached) " >&6
  9403. else
  9404. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  9405. for ac_i in 1 2 3 4 5 6 7; do
  9406. ac_script="$ac_script$as_nl$ac_script"
  9407. done
  9408. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  9409. { ac_script=; unset ac_script;}
  9410. if test -z "$SED"; then
  9411. ac_path_SED_found=false
  9412. # Loop through the user's path and test for each of PROGNAME-LIST
  9413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9414. for as_dir in $PATH
  9415. do
  9416. IFS=$as_save_IFS
  9417. test -z "$as_dir" && as_dir=.
  9418. for ac_prog in sed gsed; do
  9419. for ac_exec_ext in '' $ac_executable_extensions; do
  9420. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  9421. as_fn_executable_p "$ac_path_SED" || continue
  9422. # Check for GNU ac_path_SED and select it if it is found.
  9423. # Check for GNU $ac_path_SED
  9424. case `"$ac_path_SED" --version 2>&1` in
  9425. *GNU*)
  9426. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  9427. *)
  9428. ac_count=0
  9429. $as_echo_n 0123456789 >"conftest.in"
  9430. while :
  9431. do
  9432. cat "conftest.in" "conftest.in" >"conftest.tmp"
  9433. mv "conftest.tmp" "conftest.in"
  9434. cp "conftest.in" "conftest.nl"
  9435. $as_echo '' >> "conftest.nl"
  9436. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  9437. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  9438. as_fn_arith $ac_count + 1 && ac_count=$as_val
  9439. if test $ac_count -gt ${ac_path_SED_max-0}; then
  9440. # Best one so far, save it but keep looking for a better one
  9441. ac_cv_path_SED="$ac_path_SED"
  9442. ac_path_SED_max=$ac_count
  9443. fi
  9444. # 10*(2^10) chars as input seems more than enough
  9445. test $ac_count -gt 10 && break
  9446. done
  9447. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  9448. esac
  9449. $ac_path_SED_found && break 3
  9450. done
  9451. done
  9452. done
  9453. IFS=$as_save_IFS
  9454. if test -z "$ac_cv_path_SED"; then
  9455. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  9456. fi
  9457. else
  9458. ac_cv_path_SED=$SED
  9459. fi
  9460. fi
  9461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  9462. $as_echo "$ac_cv_path_SED" >&6; }
  9463. SED="$ac_cv_path_SED"
  9464. rm -f conftest.sed
  9465. test -z "$SED" && SED=sed
  9466. Xsed="$SED -e 1s/^X//"
  9467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  9468. $as_echo_n "checking for fgrep... " >&6; }
  9469. if ${ac_cv_path_FGREP+:} false; then :
  9470. $as_echo_n "(cached) " >&6
  9471. else
  9472. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  9473. then ac_cv_path_FGREP="$GREP -F"
  9474. else
  9475. if test -z "$FGREP"; then
  9476. ac_path_FGREP_found=false
  9477. # Loop through the user's path and test for each of PROGNAME-LIST
  9478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9479. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  9480. do
  9481. IFS=$as_save_IFS
  9482. test -z "$as_dir" && as_dir=.
  9483. for ac_prog in fgrep; do
  9484. for ac_exec_ext in '' $ac_executable_extensions; do
  9485. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  9486. as_fn_executable_p "$ac_path_FGREP" || continue
  9487. # Check for GNU ac_path_FGREP and select it if it is found.
  9488. # Check for GNU $ac_path_FGREP
  9489. case `"$ac_path_FGREP" --version 2>&1` in
  9490. *GNU*)
  9491. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  9492. *)
  9493. ac_count=0
  9494. $as_echo_n 0123456789 >"conftest.in"
  9495. while :
  9496. do
  9497. cat "conftest.in" "conftest.in" >"conftest.tmp"
  9498. mv "conftest.tmp" "conftest.in"
  9499. cp "conftest.in" "conftest.nl"
  9500. $as_echo 'FGREP' >> "conftest.nl"
  9501. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  9502. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  9503. as_fn_arith $ac_count + 1 && ac_count=$as_val
  9504. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  9505. # Best one so far, save it but keep looking for a better one
  9506. ac_cv_path_FGREP="$ac_path_FGREP"
  9507. ac_path_FGREP_max=$ac_count
  9508. fi
  9509. # 10*(2^10) chars as input seems more than enough
  9510. test $ac_count -gt 10 && break
  9511. done
  9512. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  9513. esac
  9514. $ac_path_FGREP_found && break 3
  9515. done
  9516. done
  9517. done
  9518. IFS=$as_save_IFS
  9519. if test -z "$ac_cv_path_FGREP"; then
  9520. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  9521. fi
  9522. else
  9523. ac_cv_path_FGREP=$FGREP
  9524. fi
  9525. fi
  9526. fi
  9527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  9528. $as_echo "$ac_cv_path_FGREP" >&6; }
  9529. FGREP="$ac_cv_path_FGREP"
  9530. test -z "$GREP" && GREP=grep
  9531. # Check whether --with-gnu-ld was given.
  9532. if test "${with_gnu_ld+set}" = set; then :
  9533. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9534. else
  9535. with_gnu_ld=no
  9536. fi
  9537. ac_prog=ld
  9538. if test "$GCC" = yes; then
  9539. # Check if gcc -print-prog-name=ld gives a path.
  9540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  9541. $as_echo_n "checking for ld used by $CC... " >&6; }
  9542. case $host in
  9543. *-*-mingw*)
  9544. # gcc leaves a trailing carriage return which upsets mingw
  9545. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9546. *)
  9547. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9548. esac
  9549. case $ac_prog in
  9550. # Accept absolute paths.
  9551. [\\/]* | ?:[\\/]*)
  9552. re_direlt='/[^/][^/]*/\.\./'
  9553. # Canonicalize the pathname of ld
  9554. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  9555. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  9556. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  9557. done
  9558. test -z "$LD" && LD="$ac_prog"
  9559. ;;
  9560. "")
  9561. # If it fails, then pretend we aren't using GCC.
  9562. ac_prog=ld
  9563. ;;
  9564. *)
  9565. # If it is relative, then search for the first ld in PATH.
  9566. with_gnu_ld=unknown
  9567. ;;
  9568. esac
  9569. elif test "$with_gnu_ld" = yes; then
  9570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  9571. $as_echo_n "checking for GNU ld... " >&6; }
  9572. else
  9573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  9574. $as_echo_n "checking for non-GNU ld... " >&6; }
  9575. fi
  9576. if ${lt_cv_path_LD+:} false; then :
  9577. $as_echo_n "(cached) " >&6
  9578. else
  9579. if test -z "$LD"; then
  9580. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9581. for ac_dir in $PATH; do
  9582. IFS="$lt_save_ifs"
  9583. test -z "$ac_dir" && ac_dir=.
  9584. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9585. lt_cv_path_LD="$ac_dir/$ac_prog"
  9586. # Check to see if the program is GNU ld. I'd rather use --version,
  9587. # but apparently some variants of GNU ld only accept -v.
  9588. # Break only if it was the GNU/non-GNU ld that we prefer.
  9589. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9590. *GNU* | *'with BFD'*)
  9591. test "$with_gnu_ld" != no && break
  9592. ;;
  9593. *)
  9594. test "$with_gnu_ld" != yes && break
  9595. ;;
  9596. esac
  9597. fi
  9598. done
  9599. IFS="$lt_save_ifs"
  9600. else
  9601. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9602. fi
  9603. fi
  9604. LD="$lt_cv_path_LD"
  9605. if test -n "$LD"; then
  9606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  9607. $as_echo "$LD" >&6; }
  9608. else
  9609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9610. $as_echo "no" >&6; }
  9611. fi
  9612. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  9613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  9614. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  9615. if ${lt_cv_prog_gnu_ld+:} false; then :
  9616. $as_echo_n "(cached) " >&6
  9617. else
  9618. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9619. case `$LD -v 2>&1 </dev/null` in
  9620. *GNU* | *'with BFD'*)
  9621. lt_cv_prog_gnu_ld=yes
  9622. ;;
  9623. *)
  9624. lt_cv_prog_gnu_ld=no
  9625. ;;
  9626. esac
  9627. fi
  9628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  9629. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  9630. with_gnu_ld=$lt_cv_prog_gnu_ld
  9631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  9632. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  9633. if ${lt_cv_path_NM+:} false; then :
  9634. $as_echo_n "(cached) " >&6
  9635. else
  9636. if test -n "$NM"; then
  9637. # Let the user override the test.
  9638. lt_cv_path_NM="$NM"
  9639. else
  9640. lt_nm_to_check="${ac_tool_prefix}nm"
  9641. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  9642. lt_nm_to_check="$lt_nm_to_check nm"
  9643. fi
  9644. for lt_tmp_nm in $lt_nm_to_check; do
  9645. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9646. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  9647. IFS="$lt_save_ifs"
  9648. test -z "$ac_dir" && ac_dir=.
  9649. tmp_nm="$ac_dir/$lt_tmp_nm"
  9650. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  9651. # Check to see if the nm accepts a BSD-compat flag.
  9652. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  9653. # nm: unknown option "B" ignored
  9654. # Tru64's nm complains that /dev/null is an invalid object file
  9655. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  9656. */dev/null* | *'Invalid file or object type'*)
  9657. lt_cv_path_NM="$tmp_nm -B"
  9658. break
  9659. ;;
  9660. *)
  9661. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  9662. */dev/null*)
  9663. lt_cv_path_NM="$tmp_nm -p"
  9664. break
  9665. ;;
  9666. *)
  9667. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  9668. continue # so that we can try to find one that supports BSD flags
  9669. ;;
  9670. esac
  9671. ;;
  9672. esac
  9673. fi
  9674. done
  9675. IFS="$lt_save_ifs"
  9676. done
  9677. : ${lt_cv_path_NM=no}
  9678. fi
  9679. fi
  9680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  9681. $as_echo "$lt_cv_path_NM" >&6; }
  9682. if test "$lt_cv_path_NM" != "no"; then
  9683. NM="$lt_cv_path_NM"
  9684. else
  9685. # Didn't find any BSD compatible name lister, look for dumpbin.
  9686. if test -n "$DUMPBIN"; then :
  9687. # Let the user override the test.
  9688. else
  9689. if test -n "$ac_tool_prefix"; then
  9690. for ac_prog in dumpbin "link -dump"
  9691. do
  9692. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9693. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9695. $as_echo_n "checking for $ac_word... " >&6; }
  9696. if ${ac_cv_prog_DUMPBIN+:} false; then :
  9697. $as_echo_n "(cached) " >&6
  9698. else
  9699. if test -n "$DUMPBIN"; then
  9700. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  9701. else
  9702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9703. for as_dir in $PATH
  9704. do
  9705. IFS=$as_save_IFS
  9706. test -z "$as_dir" && as_dir=.
  9707. for ac_exec_ext in '' $ac_executable_extensions; do
  9708. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9709. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  9710. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9711. break 2
  9712. fi
  9713. done
  9714. done
  9715. IFS=$as_save_IFS
  9716. fi
  9717. fi
  9718. DUMPBIN=$ac_cv_prog_DUMPBIN
  9719. if test -n "$DUMPBIN"; then
  9720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  9721. $as_echo "$DUMPBIN" >&6; }
  9722. else
  9723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9724. $as_echo "no" >&6; }
  9725. fi
  9726. test -n "$DUMPBIN" && break
  9727. done
  9728. fi
  9729. if test -z "$DUMPBIN"; then
  9730. ac_ct_DUMPBIN=$DUMPBIN
  9731. for ac_prog in dumpbin "link -dump"
  9732. do
  9733. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9734. set dummy $ac_prog; ac_word=$2
  9735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9736. $as_echo_n "checking for $ac_word... " >&6; }
  9737. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  9738. $as_echo_n "(cached) " >&6
  9739. else
  9740. if test -n "$ac_ct_DUMPBIN"; then
  9741. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  9742. else
  9743. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9744. for as_dir in $PATH
  9745. do
  9746. IFS=$as_save_IFS
  9747. test -z "$as_dir" && as_dir=.
  9748. for ac_exec_ext in '' $ac_executable_extensions; do
  9749. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9750. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  9751. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9752. break 2
  9753. fi
  9754. done
  9755. done
  9756. IFS=$as_save_IFS
  9757. fi
  9758. fi
  9759. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  9760. if test -n "$ac_ct_DUMPBIN"; then
  9761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  9762. $as_echo "$ac_ct_DUMPBIN" >&6; }
  9763. else
  9764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9765. $as_echo "no" >&6; }
  9766. fi
  9767. test -n "$ac_ct_DUMPBIN" && break
  9768. done
  9769. if test "x$ac_ct_DUMPBIN" = x; then
  9770. DUMPBIN=":"
  9771. else
  9772. case $cross_compiling:$ac_tool_warned in
  9773. yes:)
  9774. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9775. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9776. ac_tool_warned=yes ;;
  9777. esac
  9778. DUMPBIN=$ac_ct_DUMPBIN
  9779. fi
  9780. fi
  9781. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  9782. *COFF*)
  9783. DUMPBIN="$DUMPBIN -symbols"
  9784. ;;
  9785. *)
  9786. DUMPBIN=:
  9787. ;;
  9788. esac
  9789. fi
  9790. if test "$DUMPBIN" != ":"; then
  9791. NM="$DUMPBIN"
  9792. fi
  9793. fi
  9794. test -z "$NM" && NM=nm
  9795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  9796. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  9797. if ${lt_cv_nm_interface+:} false; then :
  9798. $as_echo_n "(cached) " >&6
  9799. else
  9800. lt_cv_nm_interface="BSD nm"
  9801. echo "int some_variable = 0;" > conftest.$ac_ext
  9802. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  9803. (eval "$ac_compile" 2>conftest.err)
  9804. cat conftest.err >&5
  9805. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  9806. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  9807. cat conftest.err >&5
  9808. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  9809. cat conftest.out >&5
  9810. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  9811. lt_cv_nm_interface="MS dumpbin"
  9812. fi
  9813. rm -f conftest*
  9814. fi
  9815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  9816. $as_echo "$lt_cv_nm_interface" >&6; }
  9817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  9818. $as_echo_n "checking whether ln -s works... " >&6; }
  9819. LN_S=$as_ln_s
  9820. if test "$LN_S" = "ln -s"; then
  9821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9822. $as_echo "yes" >&6; }
  9823. else
  9824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  9825. $as_echo "no, using $LN_S" >&6; }
  9826. fi
  9827. # find the maximum length of command line arguments
  9828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  9829. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  9830. if ${lt_cv_sys_max_cmd_len+:} false; then :
  9831. $as_echo_n "(cached) " >&6
  9832. else
  9833. i=0
  9834. teststring="ABCD"
  9835. case $build_os in
  9836. msdosdjgpp*)
  9837. # On DJGPP, this test can blow up pretty badly due to problems in libc
  9838. # (any single argument exceeding 2000 bytes causes a buffer overrun
  9839. # during glob expansion). Even if it were fixed, the result of this
  9840. # check would be larger than it should be.
  9841. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  9842. ;;
  9843. gnu*)
  9844. # Under GNU Hurd, this test is not required because there is
  9845. # no limit to the length of command line arguments.
  9846. # Libtool will interpret -1 as no limit whatsoever
  9847. lt_cv_sys_max_cmd_len=-1;
  9848. ;;
  9849. cygwin* | mingw* | cegcc*)
  9850. # On Win9x/ME, this test blows up -- it succeeds, but takes
  9851. # about 5 minutes as the teststring grows exponentially.
  9852. # Worse, since 9x/ME are not pre-emptively multitasking,
  9853. # you end up with a "frozen" computer, even though with patience
  9854. # the test eventually succeeds (with a max line length of 256k).
  9855. # Instead, let's just punt: use the minimum linelength reported by
  9856. # all of the supported platforms: 8192 (on NT/2K/XP).
  9857. lt_cv_sys_max_cmd_len=8192;
  9858. ;;
  9859. mint*)
  9860. # On MiNT this can take a long time and run out of memory.
  9861. lt_cv_sys_max_cmd_len=8192;
  9862. ;;
  9863. amigaos*)
  9864. # On AmigaOS with pdksh, this test takes hours, literally.
  9865. # So we just punt and use a minimum line length of 8192.
  9866. lt_cv_sys_max_cmd_len=8192;
  9867. ;;
  9868. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  9869. # This has been around since 386BSD, at least. Likely further.
  9870. if test -x /sbin/sysctl; then
  9871. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  9872. elif test -x /usr/sbin/sysctl; then
  9873. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  9874. else
  9875. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  9876. fi
  9877. # And add a safety zone
  9878. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  9879. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  9880. ;;
  9881. interix*)
  9882. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  9883. lt_cv_sys_max_cmd_len=196608
  9884. ;;
  9885. os2*)
  9886. # The test takes a long time on OS/2.
  9887. lt_cv_sys_max_cmd_len=8192
  9888. ;;
  9889. osf*)
  9890. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  9891. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  9892. # nice to cause kernel panics so lets avoid the loop below.
  9893. # First set a reasonable default.
  9894. lt_cv_sys_max_cmd_len=16384
  9895. #
  9896. if test -x /sbin/sysconfig; then
  9897. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  9898. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  9899. esac
  9900. fi
  9901. ;;
  9902. sco3.2v5*)
  9903. lt_cv_sys_max_cmd_len=102400
  9904. ;;
  9905. sysv5* | sco5v6* | sysv4.2uw2*)
  9906. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  9907. if test -n "$kargmax"; then
  9908. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  9909. else
  9910. lt_cv_sys_max_cmd_len=32768
  9911. fi
  9912. ;;
  9913. *)
  9914. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  9915. if test -n "$lt_cv_sys_max_cmd_len"; then
  9916. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  9917. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  9918. else
  9919. # Make teststring a little bigger before we do anything with it.
  9920. # a 1K string should be a reasonable start.
  9921. for i in 1 2 3 4 5 6 7 8 ; do
  9922. teststring=$teststring$teststring
  9923. done
  9924. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  9925. # If test is not a shell built-in, we'll probably end up computing a
  9926. # maximum length that is only half of the actual maximum length, but
  9927. # we can't tell.
  9928. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  9929. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  9930. test $i != 17 # 1/2 MB should be enough
  9931. do
  9932. i=`expr $i + 1`
  9933. teststring=$teststring$teststring
  9934. done
  9935. # Only check the string length outside the loop.
  9936. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  9937. teststring=
  9938. # Add a significant safety factor because C++ compilers can tack on
  9939. # massive amounts of additional arguments before passing them to the
  9940. # linker. It appears as though 1/2 is a usable value.
  9941. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  9942. fi
  9943. ;;
  9944. esac
  9945. fi
  9946. if test -n $lt_cv_sys_max_cmd_len ; then
  9947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  9948. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  9949. else
  9950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  9951. $as_echo "none" >&6; }
  9952. fi
  9953. max_cmd_len=$lt_cv_sys_max_cmd_len
  9954. : ${CP="cp -f"}
  9955. : ${MV="mv -f"}
  9956. : ${RM="rm -f"}
  9957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  9958. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  9959. # Try some XSI features
  9960. xsi_shell=no
  9961. ( _lt_dummy="a/b/c"
  9962. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  9963. = c,a/b,b/c, \
  9964. && eval 'test $(( 1 + 1 )) -eq 2 \
  9965. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  9966. && xsi_shell=yes
  9967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  9968. $as_echo "$xsi_shell" >&6; }
  9969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  9970. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  9971. lt_shell_append=no
  9972. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  9973. >/dev/null 2>&1 \
  9974. && lt_shell_append=yes
  9975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  9976. $as_echo "$lt_shell_append" >&6; }
  9977. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9978. lt_unset=unset
  9979. else
  9980. lt_unset=false
  9981. fi
  9982. # test EBCDIC or ASCII
  9983. case `echo X|tr X '\101'` in
  9984. A) # ASCII based system
  9985. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  9986. lt_SP2NL='tr \040 \012'
  9987. lt_NL2SP='tr \015\012 \040\040'
  9988. ;;
  9989. *) # EBCDIC based system
  9990. lt_SP2NL='tr \100 \n'
  9991. lt_NL2SP='tr \r\n \100\100'
  9992. ;;
  9993. esac
  9994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  9995. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  9996. if ${lt_cv_to_host_file_cmd+:} false; then :
  9997. $as_echo_n "(cached) " >&6
  9998. else
  9999. case $host in
  10000. *-*-mingw* )
  10001. case $build in
  10002. *-*-mingw* ) # actually msys
  10003. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  10004. ;;
  10005. *-*-cygwin* )
  10006. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  10007. ;;
  10008. * ) # otherwise, assume *nix
  10009. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  10010. ;;
  10011. esac
  10012. ;;
  10013. *-*-cygwin* )
  10014. case $build in
  10015. *-*-mingw* ) # actually msys
  10016. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  10017. ;;
  10018. *-*-cygwin* )
  10019. lt_cv_to_host_file_cmd=func_convert_file_noop
  10020. ;;
  10021. * ) # otherwise, assume *nix
  10022. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  10023. ;;
  10024. esac
  10025. ;;
  10026. * ) # unhandled hosts (and "normal" native builds)
  10027. lt_cv_to_host_file_cmd=func_convert_file_noop
  10028. ;;
  10029. esac
  10030. fi
  10031. to_host_file_cmd=$lt_cv_to_host_file_cmd
  10032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  10033. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  10034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  10035. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  10036. if ${lt_cv_to_tool_file_cmd+:} false; then :
  10037. $as_echo_n "(cached) " >&6
  10038. else
  10039. #assume ordinary cross tools, or native build.
  10040. lt_cv_to_tool_file_cmd=func_convert_file_noop
  10041. case $host in
  10042. *-*-mingw* )
  10043. case $build in
  10044. *-*-mingw* ) # actually msys
  10045. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  10046. ;;
  10047. esac
  10048. ;;
  10049. esac
  10050. fi
  10051. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  10052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  10053. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  10054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  10055. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  10056. if ${lt_cv_ld_reload_flag+:} false; then :
  10057. $as_echo_n "(cached) " >&6
  10058. else
  10059. lt_cv_ld_reload_flag='-r'
  10060. fi
  10061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  10062. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  10063. reload_flag=$lt_cv_ld_reload_flag
  10064. case $reload_flag in
  10065. "" | " "*) ;;
  10066. *) reload_flag=" $reload_flag" ;;
  10067. esac
  10068. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  10069. case $host_os in
  10070. cygwin* | mingw* | pw32* | cegcc*)
  10071. if test "$GCC" != yes; then
  10072. reload_cmds=false
  10073. fi
  10074. ;;
  10075. darwin*)
  10076. if test "$GCC" = yes; then
  10077. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  10078. else
  10079. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  10080. fi
  10081. ;;
  10082. esac
  10083. if test -n "$ac_tool_prefix"; then
  10084. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  10085. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  10086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10087. $as_echo_n "checking for $ac_word... " >&6; }
  10088. if ${ac_cv_prog_OBJDUMP+:} false; then :
  10089. $as_echo_n "(cached) " >&6
  10090. else
  10091. if test -n "$OBJDUMP"; then
  10092. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  10093. else
  10094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10095. for as_dir in $PATH
  10096. do
  10097. IFS=$as_save_IFS
  10098. test -z "$as_dir" && as_dir=.
  10099. for ac_exec_ext in '' $ac_executable_extensions; do
  10100. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10101. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  10102. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10103. break 2
  10104. fi
  10105. done
  10106. done
  10107. IFS=$as_save_IFS
  10108. fi
  10109. fi
  10110. OBJDUMP=$ac_cv_prog_OBJDUMP
  10111. if test -n "$OBJDUMP"; then
  10112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  10113. $as_echo "$OBJDUMP" >&6; }
  10114. else
  10115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10116. $as_echo "no" >&6; }
  10117. fi
  10118. fi
  10119. if test -z "$ac_cv_prog_OBJDUMP"; then
  10120. ac_ct_OBJDUMP=$OBJDUMP
  10121. # Extract the first word of "objdump", so it can be a program name with args.
  10122. set dummy objdump; ac_word=$2
  10123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10124. $as_echo_n "checking for $ac_word... " >&6; }
  10125. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  10126. $as_echo_n "(cached) " >&6
  10127. else
  10128. if test -n "$ac_ct_OBJDUMP"; then
  10129. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  10130. else
  10131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10132. for as_dir in $PATH
  10133. do
  10134. IFS=$as_save_IFS
  10135. test -z "$as_dir" && as_dir=.
  10136. for ac_exec_ext in '' $ac_executable_extensions; do
  10137. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10138. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  10139. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10140. break 2
  10141. fi
  10142. done
  10143. done
  10144. IFS=$as_save_IFS
  10145. fi
  10146. fi
  10147. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  10148. if test -n "$ac_ct_OBJDUMP"; then
  10149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  10150. $as_echo "$ac_ct_OBJDUMP" >&6; }
  10151. else
  10152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10153. $as_echo "no" >&6; }
  10154. fi
  10155. if test "x$ac_ct_OBJDUMP" = x; then
  10156. OBJDUMP="false"
  10157. else
  10158. case $cross_compiling:$ac_tool_warned in
  10159. yes:)
  10160. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10161. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10162. ac_tool_warned=yes ;;
  10163. esac
  10164. OBJDUMP=$ac_ct_OBJDUMP
  10165. fi
  10166. else
  10167. OBJDUMP="$ac_cv_prog_OBJDUMP"
  10168. fi
  10169. test -z "$OBJDUMP" && OBJDUMP=objdump
  10170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  10171. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  10172. if ${lt_cv_deplibs_check_method+:} false; then :
  10173. $as_echo_n "(cached) " >&6
  10174. else
  10175. lt_cv_file_magic_cmd='$MAGIC_CMD'
  10176. lt_cv_file_magic_test_file=
  10177. lt_cv_deplibs_check_method='unknown'
  10178. # Need to set the preceding variable on all platforms that support
  10179. # interlibrary dependencies.
  10180. # 'none' -- dependencies not supported.
  10181. # `unknown' -- same as none, but documents that we really don't know.
  10182. # 'pass_all' -- all dependencies passed with no checks.
  10183. # 'test_compile' -- check by making test program.
  10184. # 'file_magic [[regex]]' -- check by looking for files in library path
  10185. # which responds to the $file_magic_cmd with a given extended regex.
  10186. # If you have `file' or equivalent on your system and you're not sure
  10187. # whether `pass_all' will *always* work, you probably want this one.
  10188. case $host_os in
  10189. aix[4-9]*)
  10190. lt_cv_deplibs_check_method=pass_all
  10191. ;;
  10192. beos*)
  10193. lt_cv_deplibs_check_method=pass_all
  10194. ;;
  10195. bsdi[45]*)
  10196. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  10197. lt_cv_file_magic_cmd='/usr/bin/file -L'
  10198. lt_cv_file_magic_test_file=/shlib/libc.so
  10199. ;;
  10200. cygwin*)
  10201. # func_win32_libid is a shell function defined in ltmain.sh
  10202. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  10203. lt_cv_file_magic_cmd='func_win32_libid'
  10204. ;;
  10205. mingw* | pw32*)
  10206. # Base MSYS/MinGW do not provide the 'file' command needed by
  10207. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  10208. # unless we find 'file', for example because we are cross-compiling.
  10209. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  10210. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  10211. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  10212. lt_cv_file_magic_cmd='func_win32_libid'
  10213. else
  10214. # Keep this pattern in sync with the one in func_win32_libid.
  10215. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  10216. lt_cv_file_magic_cmd='$OBJDUMP -f'
  10217. fi
  10218. ;;
  10219. cegcc*)
  10220. # use the weaker test based on 'objdump'. See mingw*.
  10221. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  10222. lt_cv_file_magic_cmd='$OBJDUMP -f'
  10223. ;;
  10224. darwin* | rhapsody*)
  10225. lt_cv_deplibs_check_method=pass_all
  10226. ;;
  10227. freebsd* | dragonfly*)
  10228. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  10229. case $host_cpu in
  10230. i*86 )
  10231. # Not sure whether the presence of OpenBSD here was a mistake.
  10232. # Let's accept both of them until this is cleared up.
  10233. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  10234. lt_cv_file_magic_cmd=/usr/bin/file
  10235. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  10236. ;;
  10237. esac
  10238. else
  10239. lt_cv_deplibs_check_method=pass_all
  10240. fi
  10241. ;;
  10242. gnu*)
  10243. lt_cv_deplibs_check_method=pass_all
  10244. ;;
  10245. haiku*)
  10246. lt_cv_deplibs_check_method=pass_all
  10247. ;;
  10248. hpux10.20* | hpux11*)
  10249. lt_cv_file_magic_cmd=/usr/bin/file
  10250. case $host_cpu in
  10251. ia64*)
  10252. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  10253. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  10254. ;;
  10255. hppa*64*)
  10256. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  10257. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  10258. ;;
  10259. *)
  10260. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  10261. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  10262. ;;
  10263. esac
  10264. ;;
  10265. interix[3-9]*)
  10266. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  10267. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  10268. ;;
  10269. irix5* | irix6* | nonstopux*)
  10270. case $LD in
  10271. *-32|*"-32 ") libmagic=32-bit;;
  10272. *-n32|*"-n32 ") libmagic=N32;;
  10273. *-64|*"-64 ") libmagic=64-bit;;
  10274. *) libmagic=never-match;;
  10275. esac
  10276. lt_cv_deplibs_check_method=pass_all
  10277. ;;
  10278. # This must be glibc/ELF.
  10279. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10280. lt_cv_deplibs_check_method=pass_all
  10281. ;;
  10282. netbsd*)
  10283. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  10284. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  10285. else
  10286. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  10287. fi
  10288. ;;
  10289. newos6*)
  10290. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  10291. lt_cv_file_magic_cmd=/usr/bin/file
  10292. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  10293. ;;
  10294. *nto* | *qnx*)
  10295. lt_cv_deplibs_check_method=pass_all
  10296. ;;
  10297. openbsd*)
  10298. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10299. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  10300. else
  10301. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  10302. fi
  10303. ;;
  10304. osf3* | osf4* | osf5*)
  10305. lt_cv_deplibs_check_method=pass_all
  10306. ;;
  10307. rdos*)
  10308. lt_cv_deplibs_check_method=pass_all
  10309. ;;
  10310. solaris*)
  10311. lt_cv_deplibs_check_method=pass_all
  10312. ;;
  10313. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10314. lt_cv_deplibs_check_method=pass_all
  10315. ;;
  10316. sysv4 | sysv4.3*)
  10317. case $host_vendor in
  10318. motorola)
  10319. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  10320. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  10321. ;;
  10322. ncr)
  10323. lt_cv_deplibs_check_method=pass_all
  10324. ;;
  10325. sequent)
  10326. lt_cv_file_magic_cmd='/bin/file'
  10327. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  10328. ;;
  10329. sni)
  10330. lt_cv_file_magic_cmd='/bin/file'
  10331. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  10332. lt_cv_file_magic_test_file=/lib/libc.so
  10333. ;;
  10334. siemens)
  10335. lt_cv_deplibs_check_method=pass_all
  10336. ;;
  10337. pc)
  10338. lt_cv_deplibs_check_method=pass_all
  10339. ;;
  10340. esac
  10341. ;;
  10342. tpf*)
  10343. lt_cv_deplibs_check_method=pass_all
  10344. ;;
  10345. esac
  10346. fi
  10347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  10348. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  10349. file_magic_glob=
  10350. want_nocaseglob=no
  10351. if test "$build" = "$host"; then
  10352. case $host_os in
  10353. mingw* | pw32*)
  10354. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  10355. want_nocaseglob=yes
  10356. else
  10357. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  10358. fi
  10359. ;;
  10360. esac
  10361. fi
  10362. file_magic_cmd=$lt_cv_file_magic_cmd
  10363. deplibs_check_method=$lt_cv_deplibs_check_method
  10364. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  10365. if test -n "$ac_tool_prefix"; then
  10366. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  10367. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  10368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10369. $as_echo_n "checking for $ac_word... " >&6; }
  10370. if ${ac_cv_prog_DLLTOOL+:} false; then :
  10371. $as_echo_n "(cached) " >&6
  10372. else
  10373. if test -n "$DLLTOOL"; then
  10374. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  10375. else
  10376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10377. for as_dir in $PATH
  10378. do
  10379. IFS=$as_save_IFS
  10380. test -z "$as_dir" && as_dir=.
  10381. for ac_exec_ext in '' $ac_executable_extensions; do
  10382. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10383. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  10384. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10385. break 2
  10386. fi
  10387. done
  10388. done
  10389. IFS=$as_save_IFS
  10390. fi
  10391. fi
  10392. DLLTOOL=$ac_cv_prog_DLLTOOL
  10393. if test -n "$DLLTOOL"; then
  10394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  10395. $as_echo "$DLLTOOL" >&6; }
  10396. else
  10397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10398. $as_echo "no" >&6; }
  10399. fi
  10400. fi
  10401. if test -z "$ac_cv_prog_DLLTOOL"; then
  10402. ac_ct_DLLTOOL=$DLLTOOL
  10403. # Extract the first word of "dlltool", so it can be a program name with args.
  10404. set dummy dlltool; ac_word=$2
  10405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10406. $as_echo_n "checking for $ac_word... " >&6; }
  10407. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  10408. $as_echo_n "(cached) " >&6
  10409. else
  10410. if test -n "$ac_ct_DLLTOOL"; then
  10411. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  10412. else
  10413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10414. for as_dir in $PATH
  10415. do
  10416. IFS=$as_save_IFS
  10417. test -z "$as_dir" && as_dir=.
  10418. for ac_exec_ext in '' $ac_executable_extensions; do
  10419. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10420. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  10421. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10422. break 2
  10423. fi
  10424. done
  10425. done
  10426. IFS=$as_save_IFS
  10427. fi
  10428. fi
  10429. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  10430. if test -n "$ac_ct_DLLTOOL"; then
  10431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  10432. $as_echo "$ac_ct_DLLTOOL" >&6; }
  10433. else
  10434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10435. $as_echo "no" >&6; }
  10436. fi
  10437. if test "x$ac_ct_DLLTOOL" = x; then
  10438. DLLTOOL="false"
  10439. else
  10440. case $cross_compiling:$ac_tool_warned in
  10441. yes:)
  10442. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10443. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10444. ac_tool_warned=yes ;;
  10445. esac
  10446. DLLTOOL=$ac_ct_DLLTOOL
  10447. fi
  10448. else
  10449. DLLTOOL="$ac_cv_prog_DLLTOOL"
  10450. fi
  10451. test -z "$DLLTOOL" && DLLTOOL=dlltool
  10452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  10453. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  10454. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  10455. $as_echo_n "(cached) " >&6
  10456. else
  10457. lt_cv_sharedlib_from_linklib_cmd='unknown'
  10458. case $host_os in
  10459. cygwin* | mingw* | pw32* | cegcc*)
  10460. # two different shell functions defined in ltmain.sh
  10461. # decide which to use based on capabilities of $DLLTOOL
  10462. case `$DLLTOOL --help 2>&1` in
  10463. *--identify-strict*)
  10464. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  10465. ;;
  10466. *)
  10467. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  10468. ;;
  10469. esac
  10470. ;;
  10471. *)
  10472. # fallback: assume linklib IS sharedlib
  10473. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  10474. ;;
  10475. esac
  10476. fi
  10477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  10478. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  10479. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  10480. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  10481. if test -n "$ac_tool_prefix"; then
  10482. for ac_prog in ar
  10483. do
  10484. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10485. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10487. $as_echo_n "checking for $ac_word... " >&6; }
  10488. if ${ac_cv_prog_AR+:} false; then :
  10489. $as_echo_n "(cached) " >&6
  10490. else
  10491. if test -n "$AR"; then
  10492. ac_cv_prog_AR="$AR" # Let the user override the test.
  10493. else
  10494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10495. for as_dir in $PATH
  10496. do
  10497. IFS=$as_save_IFS
  10498. test -z "$as_dir" && as_dir=.
  10499. for ac_exec_ext in '' $ac_executable_extensions; do
  10500. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10501. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  10502. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10503. break 2
  10504. fi
  10505. done
  10506. done
  10507. IFS=$as_save_IFS
  10508. fi
  10509. fi
  10510. AR=$ac_cv_prog_AR
  10511. if test -n "$AR"; then
  10512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  10513. $as_echo "$AR" >&6; }
  10514. else
  10515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10516. $as_echo "no" >&6; }
  10517. fi
  10518. test -n "$AR" && break
  10519. done
  10520. fi
  10521. if test -z "$AR"; then
  10522. ac_ct_AR=$AR
  10523. for ac_prog in ar
  10524. do
  10525. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10526. set dummy $ac_prog; ac_word=$2
  10527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10528. $as_echo_n "checking for $ac_word... " >&6; }
  10529. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  10530. $as_echo_n "(cached) " >&6
  10531. else
  10532. if test -n "$ac_ct_AR"; then
  10533. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  10534. else
  10535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10536. for as_dir in $PATH
  10537. do
  10538. IFS=$as_save_IFS
  10539. test -z "$as_dir" && as_dir=.
  10540. for ac_exec_ext in '' $ac_executable_extensions; do
  10541. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10542. ac_cv_prog_ac_ct_AR="$ac_prog"
  10543. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10544. break 2
  10545. fi
  10546. done
  10547. done
  10548. IFS=$as_save_IFS
  10549. fi
  10550. fi
  10551. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  10552. if test -n "$ac_ct_AR"; then
  10553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  10554. $as_echo "$ac_ct_AR" >&6; }
  10555. else
  10556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10557. $as_echo "no" >&6; }
  10558. fi
  10559. test -n "$ac_ct_AR" && break
  10560. done
  10561. if test "x$ac_ct_AR" = x; then
  10562. AR="false"
  10563. else
  10564. case $cross_compiling:$ac_tool_warned in
  10565. yes:)
  10566. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10567. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10568. ac_tool_warned=yes ;;
  10569. esac
  10570. AR=$ac_ct_AR
  10571. fi
  10572. fi
  10573. : ${AR=ar}
  10574. : ${AR_FLAGS=cru}
  10575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  10576. $as_echo_n "checking for archiver @FILE support... " >&6; }
  10577. if ${lt_cv_ar_at_file+:} false; then :
  10578. $as_echo_n "(cached) " >&6
  10579. else
  10580. lt_cv_ar_at_file=no
  10581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10582. /* end confdefs.h. */
  10583. int
  10584. main ()
  10585. {
  10586. ;
  10587. return 0;
  10588. }
  10589. _ACEOF
  10590. if ac_fn_c_try_compile "$LINENO"; then :
  10591. echo conftest.$ac_objext > conftest.lst
  10592. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  10593. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  10594. (eval $lt_ar_try) 2>&5
  10595. ac_status=$?
  10596. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10597. test $ac_status = 0; }
  10598. if test "$ac_status" -eq 0; then
  10599. # Ensure the archiver fails upon bogus file names.
  10600. rm -f conftest.$ac_objext libconftest.a
  10601. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  10602. (eval $lt_ar_try) 2>&5
  10603. ac_status=$?
  10604. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10605. test $ac_status = 0; }
  10606. if test "$ac_status" -ne 0; then
  10607. lt_cv_ar_at_file=@
  10608. fi
  10609. fi
  10610. rm -f conftest.* libconftest.a
  10611. fi
  10612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10613. fi
  10614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  10615. $as_echo "$lt_cv_ar_at_file" >&6; }
  10616. if test "x$lt_cv_ar_at_file" = xno; then
  10617. archiver_list_spec=
  10618. else
  10619. archiver_list_spec=$lt_cv_ar_at_file
  10620. fi
  10621. if test -n "$ac_tool_prefix"; then
  10622. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  10623. set dummy ${ac_tool_prefix}strip; ac_word=$2
  10624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10625. $as_echo_n "checking for $ac_word... " >&6; }
  10626. if ${ac_cv_prog_STRIP+:} false; then :
  10627. $as_echo_n "(cached) " >&6
  10628. else
  10629. if test -n "$STRIP"; then
  10630. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  10631. else
  10632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10633. for as_dir in $PATH
  10634. do
  10635. IFS=$as_save_IFS
  10636. test -z "$as_dir" && as_dir=.
  10637. for ac_exec_ext in '' $ac_executable_extensions; do
  10638. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10639. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  10640. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10641. break 2
  10642. fi
  10643. done
  10644. done
  10645. IFS=$as_save_IFS
  10646. fi
  10647. fi
  10648. STRIP=$ac_cv_prog_STRIP
  10649. if test -n "$STRIP"; then
  10650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  10651. $as_echo "$STRIP" >&6; }
  10652. else
  10653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10654. $as_echo "no" >&6; }
  10655. fi
  10656. fi
  10657. if test -z "$ac_cv_prog_STRIP"; then
  10658. ac_ct_STRIP=$STRIP
  10659. # Extract the first word of "strip", so it can be a program name with args.
  10660. set dummy strip; ac_word=$2
  10661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10662. $as_echo_n "checking for $ac_word... " >&6; }
  10663. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  10664. $as_echo_n "(cached) " >&6
  10665. else
  10666. if test -n "$ac_ct_STRIP"; then
  10667. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  10668. else
  10669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10670. for as_dir in $PATH
  10671. do
  10672. IFS=$as_save_IFS
  10673. test -z "$as_dir" && as_dir=.
  10674. for ac_exec_ext in '' $ac_executable_extensions; do
  10675. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10676. ac_cv_prog_ac_ct_STRIP="strip"
  10677. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10678. break 2
  10679. fi
  10680. done
  10681. done
  10682. IFS=$as_save_IFS
  10683. fi
  10684. fi
  10685. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  10686. if test -n "$ac_ct_STRIP"; then
  10687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  10688. $as_echo "$ac_ct_STRIP" >&6; }
  10689. else
  10690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10691. $as_echo "no" >&6; }
  10692. fi
  10693. if test "x$ac_ct_STRIP" = x; then
  10694. STRIP=":"
  10695. else
  10696. case $cross_compiling:$ac_tool_warned in
  10697. yes:)
  10698. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10699. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10700. ac_tool_warned=yes ;;
  10701. esac
  10702. STRIP=$ac_ct_STRIP
  10703. fi
  10704. else
  10705. STRIP="$ac_cv_prog_STRIP"
  10706. fi
  10707. test -z "$STRIP" && STRIP=:
  10708. if test -n "$ac_tool_prefix"; then
  10709. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  10710. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  10711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10712. $as_echo_n "checking for $ac_word... " >&6; }
  10713. if ${ac_cv_prog_RANLIB+:} false; then :
  10714. $as_echo_n "(cached) " >&6
  10715. else
  10716. if test -n "$RANLIB"; then
  10717. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  10718. else
  10719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10720. for as_dir in $PATH
  10721. do
  10722. IFS=$as_save_IFS
  10723. test -z "$as_dir" && as_dir=.
  10724. for ac_exec_ext in '' $ac_executable_extensions; do
  10725. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10726. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  10727. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10728. break 2
  10729. fi
  10730. done
  10731. done
  10732. IFS=$as_save_IFS
  10733. fi
  10734. fi
  10735. RANLIB=$ac_cv_prog_RANLIB
  10736. if test -n "$RANLIB"; then
  10737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  10738. $as_echo "$RANLIB" >&6; }
  10739. else
  10740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10741. $as_echo "no" >&6; }
  10742. fi
  10743. fi
  10744. if test -z "$ac_cv_prog_RANLIB"; then
  10745. ac_ct_RANLIB=$RANLIB
  10746. # Extract the first word of "ranlib", so it can be a program name with args.
  10747. set dummy ranlib; ac_word=$2
  10748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10749. $as_echo_n "checking for $ac_word... " >&6; }
  10750. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  10751. $as_echo_n "(cached) " >&6
  10752. else
  10753. if test -n "$ac_ct_RANLIB"; then
  10754. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  10755. else
  10756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10757. for as_dir in $PATH
  10758. do
  10759. IFS=$as_save_IFS
  10760. test -z "$as_dir" && as_dir=.
  10761. for ac_exec_ext in '' $ac_executable_extensions; do
  10762. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10763. ac_cv_prog_ac_ct_RANLIB="ranlib"
  10764. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10765. break 2
  10766. fi
  10767. done
  10768. done
  10769. IFS=$as_save_IFS
  10770. fi
  10771. fi
  10772. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  10773. if test -n "$ac_ct_RANLIB"; then
  10774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  10775. $as_echo "$ac_ct_RANLIB" >&6; }
  10776. else
  10777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10778. $as_echo "no" >&6; }
  10779. fi
  10780. if test "x$ac_ct_RANLIB" = x; then
  10781. RANLIB=":"
  10782. else
  10783. case $cross_compiling:$ac_tool_warned in
  10784. yes:)
  10785. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10786. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10787. ac_tool_warned=yes ;;
  10788. esac
  10789. RANLIB=$ac_ct_RANLIB
  10790. fi
  10791. else
  10792. RANLIB="$ac_cv_prog_RANLIB"
  10793. fi
  10794. test -z "$RANLIB" && RANLIB=:
  10795. # Determine commands to create old-style static archives.
  10796. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  10797. old_postinstall_cmds='chmod 644 $oldlib'
  10798. old_postuninstall_cmds=
  10799. if test -n "$RANLIB"; then
  10800. case $host_os in
  10801. openbsd*)
  10802. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  10803. ;;
  10804. *)
  10805. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  10806. ;;
  10807. esac
  10808. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  10809. fi
  10810. case $host_os in
  10811. darwin*)
  10812. lock_old_archive_extraction=yes ;;
  10813. *)
  10814. lock_old_archive_extraction=no ;;
  10815. esac
  10816. # If no C compiler was specified, use CC.
  10817. LTCC=${LTCC-"$CC"}
  10818. # If no C compiler flags were specified, use CFLAGS.
  10819. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10820. # Allow CC to be a program name with arguments.
  10821. compiler=$CC
  10822. # Check for command to grab the raw symbol name followed by C symbol from nm.
  10823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  10824. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  10825. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  10826. $as_echo_n "(cached) " >&6
  10827. else
  10828. # These are sane defaults that work on at least a few old systems.
  10829. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  10830. # Character class describing NM global symbol codes.
  10831. symcode='[BCDEGRST]'
  10832. # Regexp to match symbols that can be accessed directly from C.
  10833. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  10834. # Define system-specific variables.
  10835. case $host_os in
  10836. aix*)
  10837. symcode='[BCDT]'
  10838. ;;
  10839. cygwin* | mingw* | pw32* | cegcc*)
  10840. symcode='[ABCDGISTW]'
  10841. ;;
  10842. hpux*)
  10843. if test "$host_cpu" = ia64; then
  10844. symcode='[ABCDEGRST]'
  10845. fi
  10846. ;;
  10847. irix* | nonstopux*)
  10848. symcode='[BCDEGRST]'
  10849. ;;
  10850. osf*)
  10851. symcode='[BCDEGQRST]'
  10852. ;;
  10853. solaris*)
  10854. symcode='[BDRT]'
  10855. ;;
  10856. sco3.2v5*)
  10857. symcode='[DT]'
  10858. ;;
  10859. sysv4.2uw2*)
  10860. symcode='[DT]'
  10861. ;;
  10862. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  10863. symcode='[ABDT]'
  10864. ;;
  10865. sysv4)
  10866. symcode='[DFNSTU]'
  10867. ;;
  10868. esac
  10869. # If we're using GNU nm, then use its standard symbol codes.
  10870. case `$NM -V 2>&1` in
  10871. *GNU* | *'with BFD'*)
  10872. symcode='[ABCDGIRSTW]' ;;
  10873. esac
  10874. # Transform an extracted symbol line into a proper C declaration.
  10875. # Some systems (esp. on ia64) link data and code symbols differently,
  10876. # so use this general approach.
  10877. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  10878. # Transform an extracted symbol line into symbol name and symbol address
  10879. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  10880. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  10881. # Handle CRLF in mingw tool chain
  10882. opt_cr=
  10883. case $build_os in
  10884. mingw*)
  10885. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  10886. ;;
  10887. esac
  10888. # Try without a prefix underscore, then with it.
  10889. for ac_symprfx in "" "_"; do
  10890. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  10891. symxfrm="\\1 $ac_symprfx\\2 \\2"
  10892. # Write the raw and C identifiers.
  10893. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  10894. # Fake it for dumpbin and say T for any non-static function
  10895. # and D for any global variable.
  10896. # Also find C++ and __fastcall symbols from MSVC++,
  10897. # which start with @ or ?.
  10898. lt_cv_sys_global_symbol_pipe="$AWK '"\
  10899. " {last_section=section; section=\$ 3};"\
  10900. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  10901. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  10902. " \$ 0!~/External *\|/{next};"\
  10903. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  10904. " {if(hide[section]) next};"\
  10905. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  10906. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  10907. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  10908. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  10909. " ' prfx=^$ac_symprfx"
  10910. else
  10911. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  10912. fi
  10913. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  10914. # Check to see that the pipe works correctly.
  10915. pipe_works=no
  10916. rm -f conftest*
  10917. cat > conftest.$ac_ext <<_LT_EOF
  10918. #ifdef __cplusplus
  10919. extern "C" {
  10920. #endif
  10921. char nm_test_var;
  10922. void nm_test_func(void);
  10923. void nm_test_func(void){}
  10924. #ifdef __cplusplus
  10925. }
  10926. #endif
  10927. int main(){nm_test_var='a';nm_test_func();return(0);}
  10928. _LT_EOF
  10929. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10930. (eval $ac_compile) 2>&5
  10931. ac_status=$?
  10932. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10933. test $ac_status = 0; }; then
  10934. # Now try to grab the symbols.
  10935. nlist=conftest.nm
  10936. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  10937. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  10938. ac_status=$?
  10939. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10940. test $ac_status = 0; } && test -s "$nlist"; then
  10941. # Try sorting and uniquifying the output.
  10942. if sort "$nlist" | uniq > "$nlist"T; then
  10943. mv -f "$nlist"T "$nlist"
  10944. else
  10945. rm -f "$nlist"T
  10946. fi
  10947. # Make sure that we snagged all the symbols we need.
  10948. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  10949. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  10950. cat <<_LT_EOF > conftest.$ac_ext
  10951. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  10952. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  10953. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  10954. relocations are performed -- see ld's documentation on pseudo-relocs. */
  10955. # define LT_DLSYM_CONST
  10956. #elif defined(__osf__)
  10957. /* This system does not cope well with relocations in const data. */
  10958. # define LT_DLSYM_CONST
  10959. #else
  10960. # define LT_DLSYM_CONST const
  10961. #endif
  10962. #ifdef __cplusplus
  10963. extern "C" {
  10964. #endif
  10965. _LT_EOF
  10966. # Now generate the symbol file.
  10967. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  10968. cat <<_LT_EOF >> conftest.$ac_ext
  10969. /* The mapping between symbol names and symbols. */
  10970. LT_DLSYM_CONST struct {
  10971. const char *name;
  10972. void *address;
  10973. }
  10974. lt__PROGRAM__LTX_preloaded_symbols[] =
  10975. {
  10976. { "@PROGRAM@", (void *) 0 },
  10977. _LT_EOF
  10978. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  10979. cat <<\_LT_EOF >> conftest.$ac_ext
  10980. {0, (void *) 0}
  10981. };
  10982. /* This works around a problem in FreeBSD linker */
  10983. #ifdef FREEBSD_WORKAROUND
  10984. static const void *lt_preloaded_setup() {
  10985. return lt__PROGRAM__LTX_preloaded_symbols;
  10986. }
  10987. #endif
  10988. #ifdef __cplusplus
  10989. }
  10990. #endif
  10991. _LT_EOF
  10992. # Now try linking the two files.
  10993. mv conftest.$ac_objext conftstm.$ac_objext
  10994. lt_globsym_save_LIBS=$LIBS
  10995. lt_globsym_save_CFLAGS=$CFLAGS
  10996. LIBS="conftstm.$ac_objext"
  10997. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  10998. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10999. (eval $ac_link) 2>&5
  11000. ac_status=$?
  11001. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11002. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  11003. pipe_works=yes
  11004. fi
  11005. LIBS=$lt_globsym_save_LIBS
  11006. CFLAGS=$lt_globsym_save_CFLAGS
  11007. else
  11008. echo "cannot find nm_test_func in $nlist" >&5
  11009. fi
  11010. else
  11011. echo "cannot find nm_test_var in $nlist" >&5
  11012. fi
  11013. else
  11014. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  11015. fi
  11016. else
  11017. echo "$progname: failed program was:" >&5
  11018. cat conftest.$ac_ext >&5
  11019. fi
  11020. rm -rf conftest* conftst*
  11021. # Do not use the global_symbol_pipe unless it works.
  11022. if test "$pipe_works" = yes; then
  11023. break
  11024. else
  11025. lt_cv_sys_global_symbol_pipe=
  11026. fi
  11027. done
  11028. fi
  11029. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  11030. lt_cv_sys_global_symbol_to_cdecl=
  11031. fi
  11032. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  11033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  11034. $as_echo "failed" >&6; }
  11035. else
  11036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  11037. $as_echo "ok" >&6; }
  11038. fi
  11039. # Response file support.
  11040. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  11041. nm_file_list_spec='@'
  11042. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  11043. nm_file_list_spec='@'
  11044. fi
  11045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  11046. $as_echo_n "checking for sysroot... " >&6; }
  11047. # Check whether --with-sysroot was given.
  11048. if test "${with_sysroot+set}" = set; then :
  11049. withval=$with_sysroot;
  11050. else
  11051. with_sysroot=no
  11052. fi
  11053. lt_sysroot=
  11054. case ${with_sysroot} in #(
  11055. yes)
  11056. if test "$GCC" = yes; then
  11057. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  11058. fi
  11059. ;; #(
  11060. /*)
  11061. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  11062. ;; #(
  11063. no|'')
  11064. ;; #(
  11065. *)
  11066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  11067. $as_echo "${with_sysroot}" >&6; }
  11068. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  11069. ;;
  11070. esac
  11071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  11072. $as_echo "${lt_sysroot:-no}" >&6; }
  11073. # Check whether --enable-libtool-lock was given.
  11074. if test "${enable_libtool_lock+set}" = set; then :
  11075. enableval=$enable_libtool_lock;
  11076. fi
  11077. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  11078. # Some flags need to be propagated to the compiler or linker for good
  11079. # libtool support.
  11080. case $host in
  11081. ia64-*-hpux*)
  11082. # Find out which ABI we are using.
  11083. echo 'int i;' > conftest.$ac_ext
  11084. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11085. (eval $ac_compile) 2>&5
  11086. ac_status=$?
  11087. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11088. test $ac_status = 0; }; then
  11089. case `/usr/bin/file conftest.$ac_objext` in
  11090. *ELF-32*)
  11091. HPUX_IA64_MODE="32"
  11092. ;;
  11093. *ELF-64*)
  11094. HPUX_IA64_MODE="64"
  11095. ;;
  11096. esac
  11097. fi
  11098. rm -rf conftest*
  11099. ;;
  11100. *-*-irix6*)
  11101. # Find out which ABI we are using.
  11102. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  11103. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11104. (eval $ac_compile) 2>&5
  11105. ac_status=$?
  11106. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11107. test $ac_status = 0; }; then
  11108. if test "$lt_cv_prog_gnu_ld" = yes; then
  11109. case `/usr/bin/file conftest.$ac_objext` in
  11110. *32-bit*)
  11111. LD="${LD-ld} -melf32bsmip"
  11112. ;;
  11113. *N32*)
  11114. LD="${LD-ld} -melf32bmipn32"
  11115. ;;
  11116. *64-bit*)
  11117. LD="${LD-ld} -melf64bmip"
  11118. ;;
  11119. esac
  11120. else
  11121. case `/usr/bin/file conftest.$ac_objext` in
  11122. *32-bit*)
  11123. LD="${LD-ld} -32"
  11124. ;;
  11125. *N32*)
  11126. LD="${LD-ld} -n32"
  11127. ;;
  11128. *64-bit*)
  11129. LD="${LD-ld} -64"
  11130. ;;
  11131. esac
  11132. fi
  11133. fi
  11134. rm -rf conftest*
  11135. ;;
  11136. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  11137. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  11138. # Find out which ABI we are using.
  11139. echo 'int i;' > conftest.$ac_ext
  11140. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11141. (eval $ac_compile) 2>&5
  11142. ac_status=$?
  11143. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11144. test $ac_status = 0; }; then
  11145. case `/usr/bin/file conftest.o` in
  11146. *32-bit*)
  11147. case $host in
  11148. x86_64-*kfreebsd*-gnu)
  11149. LD="${LD-ld} -m elf_i386_fbsd"
  11150. ;;
  11151. x86_64-*linux*)
  11152. LD="${LD-ld} -m elf_i386"
  11153. ;;
  11154. ppc64-*linux*|powerpc64-*linux*)
  11155. LD="${LD-ld} -m elf32ppclinux"
  11156. ;;
  11157. s390x-*linux*)
  11158. LD="${LD-ld} -m elf_s390"
  11159. ;;
  11160. sparc64-*linux*)
  11161. LD="${LD-ld} -m elf32_sparc"
  11162. ;;
  11163. esac
  11164. ;;
  11165. *64-bit*)
  11166. case $host in
  11167. x86_64-*kfreebsd*-gnu)
  11168. LD="${LD-ld} -m elf_x86_64_fbsd"
  11169. ;;
  11170. x86_64-*linux*)
  11171. LD="${LD-ld} -m elf_x86_64"
  11172. ;;
  11173. ppc*-*linux*|powerpc*-*linux*)
  11174. LD="${LD-ld} -m elf64ppc"
  11175. ;;
  11176. s390*-*linux*|s390*-*tpf*)
  11177. LD="${LD-ld} -m elf64_s390"
  11178. ;;
  11179. sparc*-*linux*)
  11180. LD="${LD-ld} -m elf64_sparc"
  11181. ;;
  11182. esac
  11183. ;;
  11184. esac
  11185. fi
  11186. rm -rf conftest*
  11187. ;;
  11188. *-*-sco3.2v5*)
  11189. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  11190. SAVE_CFLAGS="$CFLAGS"
  11191. CFLAGS="$CFLAGS -belf"
  11192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  11193. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  11194. if ${lt_cv_cc_needs_belf+:} false; then :
  11195. $as_echo_n "(cached) " >&6
  11196. else
  11197. ac_ext=c
  11198. ac_cpp='$CPP $CPPFLAGS'
  11199. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11200. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11201. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11203. /* end confdefs.h. */
  11204. int
  11205. main ()
  11206. {
  11207. ;
  11208. return 0;
  11209. }
  11210. _ACEOF
  11211. if ac_fn_c_try_link "$LINENO"; then :
  11212. lt_cv_cc_needs_belf=yes
  11213. else
  11214. lt_cv_cc_needs_belf=no
  11215. fi
  11216. rm -f core conftest.err conftest.$ac_objext \
  11217. conftest$ac_exeext conftest.$ac_ext
  11218. ac_ext=c
  11219. ac_cpp='$CPP $CPPFLAGS'
  11220. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11221. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11222. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11223. fi
  11224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  11225. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  11226. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  11227. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  11228. CFLAGS="$SAVE_CFLAGS"
  11229. fi
  11230. ;;
  11231. *-*solaris*)
  11232. # Find out which ABI we are using.
  11233. echo 'int i;' > conftest.$ac_ext
  11234. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11235. (eval $ac_compile) 2>&5
  11236. ac_status=$?
  11237. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11238. test $ac_status = 0; }; then
  11239. case `/usr/bin/file conftest.o` in
  11240. *64-bit*)
  11241. case $lt_cv_prog_gnu_ld in
  11242. yes*)
  11243. case $host in
  11244. i?86-*-solaris*)
  11245. LD="${LD-ld} -m elf_x86_64"
  11246. ;;
  11247. sparc*-*-solaris*)
  11248. LD="${LD-ld} -m elf64_sparc"
  11249. ;;
  11250. esac
  11251. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  11252. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  11253. LD="${LD-ld}_sol2"
  11254. fi
  11255. ;;
  11256. *)
  11257. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  11258. LD="${LD-ld} -64"
  11259. fi
  11260. ;;
  11261. esac
  11262. ;;
  11263. esac
  11264. fi
  11265. rm -rf conftest*
  11266. ;;
  11267. esac
  11268. need_locks="$enable_libtool_lock"
  11269. if test -n "$ac_tool_prefix"; then
  11270. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  11271. set dummy ${ac_tool_prefix}mt; ac_word=$2
  11272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11273. $as_echo_n "checking for $ac_word... " >&6; }
  11274. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  11275. $as_echo_n "(cached) " >&6
  11276. else
  11277. if test -n "$MANIFEST_TOOL"; then
  11278. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  11279. else
  11280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11281. for as_dir in $PATH
  11282. do
  11283. IFS=$as_save_IFS
  11284. test -z "$as_dir" && as_dir=.
  11285. for ac_exec_ext in '' $ac_executable_extensions; do
  11286. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11287. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  11288. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11289. break 2
  11290. fi
  11291. done
  11292. done
  11293. IFS=$as_save_IFS
  11294. fi
  11295. fi
  11296. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  11297. if test -n "$MANIFEST_TOOL"; then
  11298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  11299. $as_echo "$MANIFEST_TOOL" >&6; }
  11300. else
  11301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11302. $as_echo "no" >&6; }
  11303. fi
  11304. fi
  11305. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  11306. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  11307. # Extract the first word of "mt", so it can be a program name with args.
  11308. set dummy mt; ac_word=$2
  11309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11310. $as_echo_n "checking for $ac_word... " >&6; }
  11311. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  11312. $as_echo_n "(cached) " >&6
  11313. else
  11314. if test -n "$ac_ct_MANIFEST_TOOL"; then
  11315. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  11316. else
  11317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11318. for as_dir in $PATH
  11319. do
  11320. IFS=$as_save_IFS
  11321. test -z "$as_dir" && as_dir=.
  11322. for ac_exec_ext in '' $ac_executable_extensions; do
  11323. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11324. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  11325. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11326. break 2
  11327. fi
  11328. done
  11329. done
  11330. IFS=$as_save_IFS
  11331. fi
  11332. fi
  11333. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  11334. if test -n "$ac_ct_MANIFEST_TOOL"; then
  11335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  11336. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  11337. else
  11338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11339. $as_echo "no" >&6; }
  11340. fi
  11341. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  11342. MANIFEST_TOOL=":"
  11343. else
  11344. case $cross_compiling:$ac_tool_warned in
  11345. yes:)
  11346. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11347. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11348. ac_tool_warned=yes ;;
  11349. esac
  11350. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  11351. fi
  11352. else
  11353. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  11354. fi
  11355. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  11356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  11357. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  11358. if ${lt_cv_path_mainfest_tool+:} false; then :
  11359. $as_echo_n "(cached) " >&6
  11360. else
  11361. lt_cv_path_mainfest_tool=no
  11362. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  11363. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  11364. cat conftest.err >&5
  11365. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  11366. lt_cv_path_mainfest_tool=yes
  11367. fi
  11368. rm -f conftest*
  11369. fi
  11370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  11371. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  11372. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  11373. MANIFEST_TOOL=:
  11374. fi
  11375. case $host_os in
  11376. rhapsody* | darwin*)
  11377. if test -n "$ac_tool_prefix"; then
  11378. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  11379. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  11380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11381. $as_echo_n "checking for $ac_word... " >&6; }
  11382. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  11383. $as_echo_n "(cached) " >&6
  11384. else
  11385. if test -n "$DSYMUTIL"; then
  11386. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  11387. else
  11388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11389. for as_dir in $PATH
  11390. do
  11391. IFS=$as_save_IFS
  11392. test -z "$as_dir" && as_dir=.
  11393. for ac_exec_ext in '' $ac_executable_extensions; do
  11394. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11395. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  11396. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11397. break 2
  11398. fi
  11399. done
  11400. done
  11401. IFS=$as_save_IFS
  11402. fi
  11403. fi
  11404. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  11405. if test -n "$DSYMUTIL"; then
  11406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  11407. $as_echo "$DSYMUTIL" >&6; }
  11408. else
  11409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11410. $as_echo "no" >&6; }
  11411. fi
  11412. fi
  11413. if test -z "$ac_cv_prog_DSYMUTIL"; then
  11414. ac_ct_DSYMUTIL=$DSYMUTIL
  11415. # Extract the first word of "dsymutil", so it can be a program name with args.
  11416. set dummy dsymutil; ac_word=$2
  11417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11418. $as_echo_n "checking for $ac_word... " >&6; }
  11419. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  11420. $as_echo_n "(cached) " >&6
  11421. else
  11422. if test -n "$ac_ct_DSYMUTIL"; then
  11423. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  11424. else
  11425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11426. for as_dir in $PATH
  11427. do
  11428. IFS=$as_save_IFS
  11429. test -z "$as_dir" && as_dir=.
  11430. for ac_exec_ext in '' $ac_executable_extensions; do
  11431. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11432. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  11433. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11434. break 2
  11435. fi
  11436. done
  11437. done
  11438. IFS=$as_save_IFS
  11439. fi
  11440. fi
  11441. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  11442. if test -n "$ac_ct_DSYMUTIL"; then
  11443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  11444. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  11445. else
  11446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11447. $as_echo "no" >&6; }
  11448. fi
  11449. if test "x$ac_ct_DSYMUTIL" = x; then
  11450. DSYMUTIL=":"
  11451. else
  11452. case $cross_compiling:$ac_tool_warned in
  11453. yes:)
  11454. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11455. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11456. ac_tool_warned=yes ;;
  11457. esac
  11458. DSYMUTIL=$ac_ct_DSYMUTIL
  11459. fi
  11460. else
  11461. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  11462. fi
  11463. if test -n "$ac_tool_prefix"; then
  11464. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  11465. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  11466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11467. $as_echo_n "checking for $ac_word... " >&6; }
  11468. if ${ac_cv_prog_NMEDIT+:} false; then :
  11469. $as_echo_n "(cached) " >&6
  11470. else
  11471. if test -n "$NMEDIT"; then
  11472. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  11473. else
  11474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11475. for as_dir in $PATH
  11476. do
  11477. IFS=$as_save_IFS
  11478. test -z "$as_dir" && as_dir=.
  11479. for ac_exec_ext in '' $ac_executable_extensions; do
  11480. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11481. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  11482. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11483. break 2
  11484. fi
  11485. done
  11486. done
  11487. IFS=$as_save_IFS
  11488. fi
  11489. fi
  11490. NMEDIT=$ac_cv_prog_NMEDIT
  11491. if test -n "$NMEDIT"; then
  11492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  11493. $as_echo "$NMEDIT" >&6; }
  11494. else
  11495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11496. $as_echo "no" >&6; }
  11497. fi
  11498. fi
  11499. if test -z "$ac_cv_prog_NMEDIT"; then
  11500. ac_ct_NMEDIT=$NMEDIT
  11501. # Extract the first word of "nmedit", so it can be a program name with args.
  11502. set dummy nmedit; ac_word=$2
  11503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11504. $as_echo_n "checking for $ac_word... " >&6; }
  11505. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  11506. $as_echo_n "(cached) " >&6
  11507. else
  11508. if test -n "$ac_ct_NMEDIT"; then
  11509. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  11510. else
  11511. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11512. for as_dir in $PATH
  11513. do
  11514. IFS=$as_save_IFS
  11515. test -z "$as_dir" && as_dir=.
  11516. for ac_exec_ext in '' $ac_executable_extensions; do
  11517. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11518. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  11519. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11520. break 2
  11521. fi
  11522. done
  11523. done
  11524. IFS=$as_save_IFS
  11525. fi
  11526. fi
  11527. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  11528. if test -n "$ac_ct_NMEDIT"; then
  11529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  11530. $as_echo "$ac_ct_NMEDIT" >&6; }
  11531. else
  11532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11533. $as_echo "no" >&6; }
  11534. fi
  11535. if test "x$ac_ct_NMEDIT" = x; then
  11536. NMEDIT=":"
  11537. else
  11538. case $cross_compiling:$ac_tool_warned in
  11539. yes:)
  11540. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11541. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11542. ac_tool_warned=yes ;;
  11543. esac
  11544. NMEDIT=$ac_ct_NMEDIT
  11545. fi
  11546. else
  11547. NMEDIT="$ac_cv_prog_NMEDIT"
  11548. fi
  11549. if test -n "$ac_tool_prefix"; then
  11550. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  11551. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  11552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11553. $as_echo_n "checking for $ac_word... " >&6; }
  11554. if ${ac_cv_prog_LIPO+:} false; then :
  11555. $as_echo_n "(cached) " >&6
  11556. else
  11557. if test -n "$LIPO"; then
  11558. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  11559. else
  11560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11561. for as_dir in $PATH
  11562. do
  11563. IFS=$as_save_IFS
  11564. test -z "$as_dir" && as_dir=.
  11565. for ac_exec_ext in '' $ac_executable_extensions; do
  11566. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11567. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  11568. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11569. break 2
  11570. fi
  11571. done
  11572. done
  11573. IFS=$as_save_IFS
  11574. fi
  11575. fi
  11576. LIPO=$ac_cv_prog_LIPO
  11577. if test -n "$LIPO"; then
  11578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  11579. $as_echo "$LIPO" >&6; }
  11580. else
  11581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11582. $as_echo "no" >&6; }
  11583. fi
  11584. fi
  11585. if test -z "$ac_cv_prog_LIPO"; then
  11586. ac_ct_LIPO=$LIPO
  11587. # Extract the first word of "lipo", so it can be a program name with args.
  11588. set dummy lipo; ac_word=$2
  11589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11590. $as_echo_n "checking for $ac_word... " >&6; }
  11591. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  11592. $as_echo_n "(cached) " >&6
  11593. else
  11594. if test -n "$ac_ct_LIPO"; then
  11595. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  11596. else
  11597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11598. for as_dir in $PATH
  11599. do
  11600. IFS=$as_save_IFS
  11601. test -z "$as_dir" && as_dir=.
  11602. for ac_exec_ext in '' $ac_executable_extensions; do
  11603. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11604. ac_cv_prog_ac_ct_LIPO="lipo"
  11605. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11606. break 2
  11607. fi
  11608. done
  11609. done
  11610. IFS=$as_save_IFS
  11611. fi
  11612. fi
  11613. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  11614. if test -n "$ac_ct_LIPO"; then
  11615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  11616. $as_echo "$ac_ct_LIPO" >&6; }
  11617. else
  11618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11619. $as_echo "no" >&6; }
  11620. fi
  11621. if test "x$ac_ct_LIPO" = x; then
  11622. LIPO=":"
  11623. else
  11624. case $cross_compiling:$ac_tool_warned in
  11625. yes:)
  11626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11627. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11628. ac_tool_warned=yes ;;
  11629. esac
  11630. LIPO=$ac_ct_LIPO
  11631. fi
  11632. else
  11633. LIPO="$ac_cv_prog_LIPO"
  11634. fi
  11635. if test -n "$ac_tool_prefix"; then
  11636. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  11637. set dummy ${ac_tool_prefix}otool; ac_word=$2
  11638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11639. $as_echo_n "checking for $ac_word... " >&6; }
  11640. if ${ac_cv_prog_OTOOL+:} false; then :
  11641. $as_echo_n "(cached) " >&6
  11642. else
  11643. if test -n "$OTOOL"; then
  11644. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  11645. else
  11646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11647. for as_dir in $PATH
  11648. do
  11649. IFS=$as_save_IFS
  11650. test -z "$as_dir" && as_dir=.
  11651. for ac_exec_ext in '' $ac_executable_extensions; do
  11652. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11653. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  11654. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11655. break 2
  11656. fi
  11657. done
  11658. done
  11659. IFS=$as_save_IFS
  11660. fi
  11661. fi
  11662. OTOOL=$ac_cv_prog_OTOOL
  11663. if test -n "$OTOOL"; then
  11664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  11665. $as_echo "$OTOOL" >&6; }
  11666. else
  11667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11668. $as_echo "no" >&6; }
  11669. fi
  11670. fi
  11671. if test -z "$ac_cv_prog_OTOOL"; then
  11672. ac_ct_OTOOL=$OTOOL
  11673. # Extract the first word of "otool", so it can be a program name with args.
  11674. set dummy otool; ac_word=$2
  11675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11676. $as_echo_n "checking for $ac_word... " >&6; }
  11677. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  11678. $as_echo_n "(cached) " >&6
  11679. else
  11680. if test -n "$ac_ct_OTOOL"; then
  11681. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  11682. else
  11683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11684. for as_dir in $PATH
  11685. do
  11686. IFS=$as_save_IFS
  11687. test -z "$as_dir" && as_dir=.
  11688. for ac_exec_ext in '' $ac_executable_extensions; do
  11689. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11690. ac_cv_prog_ac_ct_OTOOL="otool"
  11691. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11692. break 2
  11693. fi
  11694. done
  11695. done
  11696. IFS=$as_save_IFS
  11697. fi
  11698. fi
  11699. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  11700. if test -n "$ac_ct_OTOOL"; then
  11701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  11702. $as_echo "$ac_ct_OTOOL" >&6; }
  11703. else
  11704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11705. $as_echo "no" >&6; }
  11706. fi
  11707. if test "x$ac_ct_OTOOL" = x; then
  11708. OTOOL=":"
  11709. else
  11710. case $cross_compiling:$ac_tool_warned in
  11711. yes:)
  11712. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11713. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11714. ac_tool_warned=yes ;;
  11715. esac
  11716. OTOOL=$ac_ct_OTOOL
  11717. fi
  11718. else
  11719. OTOOL="$ac_cv_prog_OTOOL"
  11720. fi
  11721. if test -n "$ac_tool_prefix"; then
  11722. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  11723. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  11724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11725. $as_echo_n "checking for $ac_word... " >&6; }
  11726. if ${ac_cv_prog_OTOOL64+:} false; then :
  11727. $as_echo_n "(cached) " >&6
  11728. else
  11729. if test -n "$OTOOL64"; then
  11730. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  11731. else
  11732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11733. for as_dir in $PATH
  11734. do
  11735. IFS=$as_save_IFS
  11736. test -z "$as_dir" && as_dir=.
  11737. for ac_exec_ext in '' $ac_executable_extensions; do
  11738. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11739. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  11740. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11741. break 2
  11742. fi
  11743. done
  11744. done
  11745. IFS=$as_save_IFS
  11746. fi
  11747. fi
  11748. OTOOL64=$ac_cv_prog_OTOOL64
  11749. if test -n "$OTOOL64"; then
  11750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  11751. $as_echo "$OTOOL64" >&6; }
  11752. else
  11753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11754. $as_echo "no" >&6; }
  11755. fi
  11756. fi
  11757. if test -z "$ac_cv_prog_OTOOL64"; then
  11758. ac_ct_OTOOL64=$OTOOL64
  11759. # Extract the first word of "otool64", so it can be a program name with args.
  11760. set dummy otool64; ac_word=$2
  11761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11762. $as_echo_n "checking for $ac_word... " >&6; }
  11763. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  11764. $as_echo_n "(cached) " >&6
  11765. else
  11766. if test -n "$ac_ct_OTOOL64"; then
  11767. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  11768. else
  11769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11770. for as_dir in $PATH
  11771. do
  11772. IFS=$as_save_IFS
  11773. test -z "$as_dir" && as_dir=.
  11774. for ac_exec_ext in '' $ac_executable_extensions; do
  11775. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11776. ac_cv_prog_ac_ct_OTOOL64="otool64"
  11777. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11778. break 2
  11779. fi
  11780. done
  11781. done
  11782. IFS=$as_save_IFS
  11783. fi
  11784. fi
  11785. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  11786. if test -n "$ac_ct_OTOOL64"; then
  11787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  11788. $as_echo "$ac_ct_OTOOL64" >&6; }
  11789. else
  11790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11791. $as_echo "no" >&6; }
  11792. fi
  11793. if test "x$ac_ct_OTOOL64" = x; then
  11794. OTOOL64=":"
  11795. else
  11796. case $cross_compiling:$ac_tool_warned in
  11797. yes:)
  11798. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11799. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11800. ac_tool_warned=yes ;;
  11801. esac
  11802. OTOOL64=$ac_ct_OTOOL64
  11803. fi
  11804. else
  11805. OTOOL64="$ac_cv_prog_OTOOL64"
  11806. fi
  11807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  11808. $as_echo_n "checking for -single_module linker flag... " >&6; }
  11809. if ${lt_cv_apple_cc_single_mod+:} false; then :
  11810. $as_echo_n "(cached) " >&6
  11811. else
  11812. lt_cv_apple_cc_single_mod=no
  11813. if test -z "${LT_MULTI_MODULE}"; then
  11814. # By default we will add the -single_module flag. You can override
  11815. # by either setting the environment variable LT_MULTI_MODULE
  11816. # non-empty at configure time, or by adding -multi_module to the
  11817. # link flags.
  11818. rm -rf libconftest.dylib*
  11819. echo "int foo(void){return 1;}" > conftest.c
  11820. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  11821. -dynamiclib -Wl,-single_module conftest.c" >&5
  11822. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  11823. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  11824. _lt_result=$?
  11825. # If there is a non-empty error log, and "single_module"
  11826. # appears in it, assume the flag caused a linker warning
  11827. if test -s conftest.err && $GREP single_module conftest.err; then
  11828. cat conftest.err >&5
  11829. # Otherwise, if the output was created with a 0 exit code from
  11830. # the compiler, it worked.
  11831. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  11832. lt_cv_apple_cc_single_mod=yes
  11833. else
  11834. cat conftest.err >&5
  11835. fi
  11836. rm -rf libconftest.dylib*
  11837. rm -f conftest.*
  11838. fi
  11839. fi
  11840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  11841. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  11842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  11843. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  11844. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  11845. $as_echo_n "(cached) " >&6
  11846. else
  11847. lt_cv_ld_exported_symbols_list=no
  11848. save_LDFLAGS=$LDFLAGS
  11849. echo "_main" > conftest.sym
  11850. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  11851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11852. /* end confdefs.h. */
  11853. int
  11854. main ()
  11855. {
  11856. ;
  11857. return 0;
  11858. }
  11859. _ACEOF
  11860. if ac_fn_c_try_link "$LINENO"; then :
  11861. lt_cv_ld_exported_symbols_list=yes
  11862. else
  11863. lt_cv_ld_exported_symbols_list=no
  11864. fi
  11865. rm -f core conftest.err conftest.$ac_objext \
  11866. conftest$ac_exeext conftest.$ac_ext
  11867. LDFLAGS="$save_LDFLAGS"
  11868. fi
  11869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  11870. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  11871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  11872. $as_echo_n "checking for -force_load linker flag... " >&6; }
  11873. if ${lt_cv_ld_force_load+:} false; then :
  11874. $as_echo_n "(cached) " >&6
  11875. else
  11876. lt_cv_ld_force_load=no
  11877. cat > conftest.c << _LT_EOF
  11878. int forced_loaded() { return 2;}
  11879. _LT_EOF
  11880. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  11881. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  11882. echo "$AR cru libconftest.a conftest.o" >&5
  11883. $AR cru libconftest.a conftest.o 2>&5
  11884. echo "$RANLIB libconftest.a" >&5
  11885. $RANLIB libconftest.a 2>&5
  11886. cat > conftest.c << _LT_EOF
  11887. int main() { return 0;}
  11888. _LT_EOF
  11889. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  11890. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  11891. _lt_result=$?
  11892. if test -s conftest.err && $GREP force_load conftest.err; then
  11893. cat conftest.err >&5
  11894. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  11895. lt_cv_ld_force_load=yes
  11896. else
  11897. cat conftest.err >&5
  11898. fi
  11899. rm -f conftest.err libconftest.a conftest conftest.c
  11900. rm -rf conftest.dSYM
  11901. fi
  11902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  11903. $as_echo "$lt_cv_ld_force_load" >&6; }
  11904. case $host_os in
  11905. rhapsody* | darwin1.[012])
  11906. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  11907. darwin1.*)
  11908. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  11909. darwin*) # darwin 5.x on
  11910. # if running on 10.5 or later, the deployment target defaults
  11911. # to the OS version, if on x86, and 10.4, the deployment
  11912. # target defaults to 10.4. Don't you love it?
  11913. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  11914. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  11915. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  11916. 10.[012]*)
  11917. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  11918. 10.*)
  11919. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  11920. esac
  11921. ;;
  11922. esac
  11923. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  11924. _lt_dar_single_mod='$single_module'
  11925. fi
  11926. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  11927. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  11928. else
  11929. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11930. fi
  11931. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  11932. _lt_dsymutil='~$DSYMUTIL $lib || :'
  11933. else
  11934. _lt_dsymutil=
  11935. fi
  11936. ;;
  11937. esac
  11938. for ac_header in dlfcn.h
  11939. do :
  11940. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  11941. "
  11942. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  11943. cat >>confdefs.h <<_ACEOF
  11944. #define HAVE_DLFCN_H 1
  11945. _ACEOF
  11946. fi
  11947. done
  11948. # Set options
  11949. enable_dlopen=no
  11950. enable_win32_dll=no
  11951. # Check whether --enable-shared was given.
  11952. if test "${enable_shared+set}" = set; then :
  11953. enableval=$enable_shared; p=${PACKAGE-default}
  11954. case $enableval in
  11955. yes) enable_shared=yes ;;
  11956. no) enable_shared=no ;;
  11957. *)
  11958. enable_shared=no
  11959. # Look at the argument we got. We use all the common list separators.
  11960. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11961. for pkg in $enableval; do
  11962. IFS="$lt_save_ifs"
  11963. if test "X$pkg" = "X$p"; then
  11964. enable_shared=yes
  11965. fi
  11966. done
  11967. IFS="$lt_save_ifs"
  11968. ;;
  11969. esac
  11970. else
  11971. enable_shared=yes
  11972. fi
  11973. # Check whether --with-pic was given.
  11974. if test "${with_pic+set}" = set; then :
  11975. withval=$with_pic; lt_p=${PACKAGE-default}
  11976. case $withval in
  11977. yes|no) pic_mode=$withval ;;
  11978. *)
  11979. pic_mode=default
  11980. # Look at the argument we got. We use all the common list separators.
  11981. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11982. for lt_pkg in $withval; do
  11983. IFS="$lt_save_ifs"
  11984. if test "X$lt_pkg" = "X$lt_p"; then
  11985. pic_mode=yes
  11986. fi
  11987. done
  11988. IFS="$lt_save_ifs"
  11989. ;;
  11990. esac
  11991. else
  11992. pic_mode=default
  11993. fi
  11994. test -z "$pic_mode" && pic_mode=default
  11995. # Check whether --enable-fast-install was given.
  11996. if test "${enable_fast_install+set}" = set; then :
  11997. enableval=$enable_fast_install; p=${PACKAGE-default}
  11998. case $enableval in
  11999. yes) enable_fast_install=yes ;;
  12000. no) enable_fast_install=no ;;
  12001. *)
  12002. enable_fast_install=no
  12003. # Look at the argument we got. We use all the common list separators.
  12004. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12005. for pkg in $enableval; do
  12006. IFS="$lt_save_ifs"
  12007. if test "X$pkg" = "X$p"; then
  12008. enable_fast_install=yes
  12009. fi
  12010. done
  12011. IFS="$lt_save_ifs"
  12012. ;;
  12013. esac
  12014. else
  12015. enable_fast_install=yes
  12016. fi
  12017. # This can be used to rebuild libtool when needed
  12018. LIBTOOL_DEPS="$ltmain"
  12019. # Always use our own libtool.
  12020. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  12021. test -z "$LN_S" && LN_S="ln -s"
  12022. if test -n "${ZSH_VERSION+set}" ; then
  12023. setopt NO_GLOB_SUBST
  12024. fi
  12025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  12026. $as_echo_n "checking for objdir... " >&6; }
  12027. if ${lt_cv_objdir+:} false; then :
  12028. $as_echo_n "(cached) " >&6
  12029. else
  12030. rm -f .libs 2>/dev/null
  12031. mkdir .libs 2>/dev/null
  12032. if test -d .libs; then
  12033. lt_cv_objdir=.libs
  12034. else
  12035. # MS-DOS does not allow filenames that begin with a dot.
  12036. lt_cv_objdir=_libs
  12037. fi
  12038. rmdir .libs 2>/dev/null
  12039. fi
  12040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  12041. $as_echo "$lt_cv_objdir" >&6; }
  12042. objdir=$lt_cv_objdir
  12043. cat >>confdefs.h <<_ACEOF
  12044. #define LT_OBJDIR "$lt_cv_objdir/"
  12045. _ACEOF
  12046. case $host_os in
  12047. aix3*)
  12048. # AIX sometimes has problems with the GCC collect2 program. For some
  12049. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12050. # vanish in a puff of smoke.
  12051. if test "X${COLLECT_NAMES+set}" != Xset; then
  12052. COLLECT_NAMES=
  12053. export COLLECT_NAMES
  12054. fi
  12055. ;;
  12056. esac
  12057. # Global variables:
  12058. ofile=libtool
  12059. can_build_shared=yes
  12060. # All known linkers require a `.a' archive for static linking (except MSVC,
  12061. # which needs '.lib').
  12062. libext=a
  12063. with_gnu_ld="$lt_cv_prog_gnu_ld"
  12064. old_CC="$CC"
  12065. old_CFLAGS="$CFLAGS"
  12066. # Set sane defaults for various variables
  12067. test -z "$CC" && CC=cc
  12068. test -z "$LTCC" && LTCC=$CC
  12069. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  12070. test -z "$LD" && LD=ld
  12071. test -z "$ac_objext" && ac_objext=o
  12072. for cc_temp in $compiler""; do
  12073. case $cc_temp in
  12074. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12075. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12076. \-*) ;;
  12077. *) break;;
  12078. esac
  12079. done
  12080. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  12081. # Only perform the check for file, if the check method requires it
  12082. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  12083. case $deplibs_check_method in
  12084. file_magic*)
  12085. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  12086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  12087. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  12088. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  12089. $as_echo_n "(cached) " >&6
  12090. else
  12091. case $MAGIC_CMD in
  12092. [\\/*] | ?:[\\/]*)
  12093. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  12094. ;;
  12095. *)
  12096. lt_save_MAGIC_CMD="$MAGIC_CMD"
  12097. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  12098. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  12099. for ac_dir in $ac_dummy; do
  12100. IFS="$lt_save_ifs"
  12101. test -z "$ac_dir" && ac_dir=.
  12102. if test -f $ac_dir/${ac_tool_prefix}file; then
  12103. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  12104. if test -n "$file_magic_test_file"; then
  12105. case $deplibs_check_method in
  12106. "file_magic "*)
  12107. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  12108. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  12109. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  12110. $EGREP "$file_magic_regex" > /dev/null; then
  12111. :
  12112. else
  12113. cat <<_LT_EOF 1>&2
  12114. *** Warning: the command libtool uses to detect shared libraries,
  12115. *** $file_magic_cmd, produces output that libtool cannot recognize.
  12116. *** The result is that libtool may fail to recognize shared libraries
  12117. *** as such. This will affect the creation of libtool libraries that
  12118. *** depend on shared libraries, but programs linked with such libtool
  12119. *** libraries will work regardless of this problem. Nevertheless, you
  12120. *** may want to report the problem to your system manager and/or to
  12121. *** bug-libtool@gnu.org
  12122. _LT_EOF
  12123. fi ;;
  12124. esac
  12125. fi
  12126. break
  12127. fi
  12128. done
  12129. IFS="$lt_save_ifs"
  12130. MAGIC_CMD="$lt_save_MAGIC_CMD"
  12131. ;;
  12132. esac
  12133. fi
  12134. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  12135. if test -n "$MAGIC_CMD"; then
  12136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  12137. $as_echo "$MAGIC_CMD" >&6; }
  12138. else
  12139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12140. $as_echo "no" >&6; }
  12141. fi
  12142. if test -z "$lt_cv_path_MAGIC_CMD"; then
  12143. if test -n "$ac_tool_prefix"; then
  12144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  12145. $as_echo_n "checking for file... " >&6; }
  12146. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  12147. $as_echo_n "(cached) " >&6
  12148. else
  12149. case $MAGIC_CMD in
  12150. [\\/*] | ?:[\\/]*)
  12151. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  12152. ;;
  12153. *)
  12154. lt_save_MAGIC_CMD="$MAGIC_CMD"
  12155. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  12156. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  12157. for ac_dir in $ac_dummy; do
  12158. IFS="$lt_save_ifs"
  12159. test -z "$ac_dir" && ac_dir=.
  12160. if test -f $ac_dir/file; then
  12161. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  12162. if test -n "$file_magic_test_file"; then
  12163. case $deplibs_check_method in
  12164. "file_magic "*)
  12165. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  12166. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  12167. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  12168. $EGREP "$file_magic_regex" > /dev/null; then
  12169. :
  12170. else
  12171. cat <<_LT_EOF 1>&2
  12172. *** Warning: the command libtool uses to detect shared libraries,
  12173. *** $file_magic_cmd, produces output that libtool cannot recognize.
  12174. *** The result is that libtool may fail to recognize shared libraries
  12175. *** as such. This will affect the creation of libtool libraries that
  12176. *** depend on shared libraries, but programs linked with such libtool
  12177. *** libraries will work regardless of this problem. Nevertheless, you
  12178. *** may want to report the problem to your system manager and/or to
  12179. *** bug-libtool@gnu.org
  12180. _LT_EOF
  12181. fi ;;
  12182. esac
  12183. fi
  12184. break
  12185. fi
  12186. done
  12187. IFS="$lt_save_ifs"
  12188. MAGIC_CMD="$lt_save_MAGIC_CMD"
  12189. ;;
  12190. esac
  12191. fi
  12192. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  12193. if test -n "$MAGIC_CMD"; then
  12194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  12195. $as_echo "$MAGIC_CMD" >&6; }
  12196. else
  12197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12198. $as_echo "no" >&6; }
  12199. fi
  12200. else
  12201. MAGIC_CMD=:
  12202. fi
  12203. fi
  12204. fi
  12205. ;;
  12206. esac
  12207. # Use C for the default configuration in the libtool script
  12208. lt_save_CC="$CC"
  12209. ac_ext=c
  12210. ac_cpp='$CPP $CPPFLAGS'
  12211. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12212. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12213. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12214. # Source file extension for C test sources.
  12215. ac_ext=c
  12216. # Object file extension for compiled C test sources.
  12217. objext=o
  12218. objext=$objext
  12219. # Code to be used in simple compile tests
  12220. lt_simple_compile_test_code="int some_variable = 0;"
  12221. # Code to be used in simple link tests
  12222. lt_simple_link_test_code='int main(){return(0);}'
  12223. # If no C compiler was specified, use CC.
  12224. LTCC=${LTCC-"$CC"}
  12225. # If no C compiler flags were specified, use CFLAGS.
  12226. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12227. # Allow CC to be a program name with arguments.
  12228. compiler=$CC
  12229. # Save the default compiler, since it gets overwritten when the other
  12230. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  12231. compiler_DEFAULT=$CC
  12232. # save warnings/boilerplate of simple test code
  12233. ac_outfile=conftest.$ac_objext
  12234. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12235. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12236. _lt_compiler_boilerplate=`cat conftest.err`
  12237. $RM conftest*
  12238. ac_outfile=conftest.$ac_objext
  12239. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12240. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12241. _lt_linker_boilerplate=`cat conftest.err`
  12242. $RM -r conftest*
  12243. ## CAVEAT EMPTOR:
  12244. ## There is no encapsulation within the following macros, do not change
  12245. ## the running order or otherwise move them around unless you know exactly
  12246. ## what you are doing...
  12247. if test -n "$compiler"; then
  12248. lt_prog_compiler_no_builtin_flag=
  12249. if test "$GCC" = yes; then
  12250. case $cc_basename in
  12251. nvcc*)
  12252. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  12253. *)
  12254. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  12255. esac
  12256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  12257. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  12258. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  12259. $as_echo_n "(cached) " >&6
  12260. else
  12261. lt_cv_prog_compiler_rtti_exceptions=no
  12262. ac_outfile=conftest.$ac_objext
  12263. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12264. lt_compiler_flag="-fno-rtti -fno-exceptions"
  12265. # Insert the option either (1) after the last *FLAGS variable, or
  12266. # (2) before a word containing "conftest.", or (3) at the end.
  12267. # Note that $ac_compile itself does not contain backslashes and begins
  12268. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12269. # The option is referenced via a variable to avoid confusing sed.
  12270. lt_compile=`echo "$ac_compile" | $SED \
  12271. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12272. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12273. -e 's:$: $lt_compiler_flag:'`
  12274. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12275. (eval "$lt_compile" 2>conftest.err)
  12276. ac_status=$?
  12277. cat conftest.err >&5
  12278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12279. if (exit $ac_status) && test -s "$ac_outfile"; then
  12280. # The compiler can only warn and ignore the option if not recognized
  12281. # So say no if there are warnings other than the usual output.
  12282. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12283. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12284. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12285. lt_cv_prog_compiler_rtti_exceptions=yes
  12286. fi
  12287. fi
  12288. $RM conftest*
  12289. fi
  12290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  12291. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  12292. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  12293. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  12294. else
  12295. :
  12296. fi
  12297. fi
  12298. lt_prog_compiler_wl=
  12299. lt_prog_compiler_pic=
  12300. lt_prog_compiler_static=
  12301. if test "$GCC" = yes; then
  12302. lt_prog_compiler_wl='-Wl,'
  12303. lt_prog_compiler_static='-static'
  12304. case $host_os in
  12305. aix*)
  12306. # All AIX code is PIC.
  12307. if test "$host_cpu" = ia64; then
  12308. # AIX 5 now supports IA64 processor
  12309. lt_prog_compiler_static='-Bstatic'
  12310. fi
  12311. ;;
  12312. amigaos*)
  12313. case $host_cpu in
  12314. powerpc)
  12315. # see comment about AmigaOS4 .so support
  12316. lt_prog_compiler_pic='-fPIC'
  12317. ;;
  12318. m68k)
  12319. # FIXME: we need at least 68020 code to build shared libraries, but
  12320. # adding the `-m68020' flag to GCC prevents building anything better,
  12321. # like `-m68040'.
  12322. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  12323. ;;
  12324. esac
  12325. ;;
  12326. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12327. # PIC is the default for these OSes.
  12328. ;;
  12329. mingw* | cygwin* | pw32* | os2* | cegcc*)
  12330. # This hack is so that the source file can tell whether it is being
  12331. # built for inclusion in a dll (and should export symbols for example).
  12332. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12333. # (--disable-auto-import) libraries
  12334. lt_prog_compiler_pic='-DDLL_EXPORT'
  12335. ;;
  12336. darwin* | rhapsody*)
  12337. # PIC is the default on this platform
  12338. # Common symbols not allowed in MH_DYLIB files
  12339. lt_prog_compiler_pic='-fno-common'
  12340. ;;
  12341. haiku*)
  12342. # PIC is the default for Haiku.
  12343. # The "-static" flag exists, but is broken.
  12344. lt_prog_compiler_static=
  12345. ;;
  12346. hpux*)
  12347. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12348. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12349. # sets the default TLS model and affects inlining.
  12350. case $host_cpu in
  12351. hppa*64*)
  12352. # +Z the default
  12353. ;;
  12354. *)
  12355. lt_prog_compiler_pic='-fPIC'
  12356. ;;
  12357. esac
  12358. ;;
  12359. interix[3-9]*)
  12360. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12361. # Instead, we relocate shared libraries at runtime.
  12362. ;;
  12363. msdosdjgpp*)
  12364. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12365. # on systems that don't support them.
  12366. lt_prog_compiler_can_build_shared=no
  12367. enable_shared=no
  12368. ;;
  12369. *nto* | *qnx*)
  12370. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12371. # it will coredump.
  12372. lt_prog_compiler_pic='-fPIC -shared'
  12373. ;;
  12374. sysv4*MP*)
  12375. if test -d /usr/nec; then
  12376. lt_prog_compiler_pic=-Kconform_pic
  12377. fi
  12378. ;;
  12379. *)
  12380. lt_prog_compiler_pic='-fPIC'
  12381. ;;
  12382. esac
  12383. case $cc_basename in
  12384. nvcc*) # Cuda Compiler Driver 2.2
  12385. lt_prog_compiler_wl='-Xlinker '
  12386. if test -n "$lt_prog_compiler_pic"; then
  12387. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  12388. fi
  12389. ;;
  12390. esac
  12391. else
  12392. # PORTME Check for flag to pass linker flags through the system compiler.
  12393. case $host_os in
  12394. aix*)
  12395. lt_prog_compiler_wl='-Wl,'
  12396. if test "$host_cpu" = ia64; then
  12397. # AIX 5 now supports IA64 processor
  12398. lt_prog_compiler_static='-Bstatic'
  12399. else
  12400. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  12401. fi
  12402. ;;
  12403. mingw* | cygwin* | pw32* | os2* | cegcc*)
  12404. # This hack is so that the source file can tell whether it is being
  12405. # built for inclusion in a dll (and should export symbols for example).
  12406. lt_prog_compiler_pic='-DDLL_EXPORT'
  12407. ;;
  12408. hpux9* | hpux10* | hpux11*)
  12409. lt_prog_compiler_wl='-Wl,'
  12410. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12411. # not for PA HP-UX.
  12412. case $host_cpu in
  12413. hppa*64*|ia64*)
  12414. # +Z the default
  12415. ;;
  12416. *)
  12417. lt_prog_compiler_pic='+Z'
  12418. ;;
  12419. esac
  12420. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12421. lt_prog_compiler_static='${wl}-a ${wl}archive'
  12422. ;;
  12423. irix5* | irix6* | nonstopux*)
  12424. lt_prog_compiler_wl='-Wl,'
  12425. # PIC (with -KPIC) is the default.
  12426. lt_prog_compiler_static='-non_shared'
  12427. ;;
  12428. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12429. case $cc_basename in
  12430. # old Intel for x86_64 which still supported -KPIC.
  12431. ecc*)
  12432. lt_prog_compiler_wl='-Wl,'
  12433. lt_prog_compiler_pic='-KPIC'
  12434. lt_prog_compiler_static='-static'
  12435. ;;
  12436. # icc used to be incompatible with GCC.
  12437. # ICC 10 doesn't accept -KPIC any more.
  12438. icc* | ifort*)
  12439. lt_prog_compiler_wl='-Wl,'
  12440. lt_prog_compiler_pic='-fPIC'
  12441. lt_prog_compiler_static='-static'
  12442. ;;
  12443. # Lahey Fortran 8.1.
  12444. lf95*)
  12445. lt_prog_compiler_wl='-Wl,'
  12446. lt_prog_compiler_pic='--shared'
  12447. lt_prog_compiler_static='--static'
  12448. ;;
  12449. nagfor*)
  12450. # NAG Fortran compiler
  12451. lt_prog_compiler_wl='-Wl,-Wl,,'
  12452. lt_prog_compiler_pic='-PIC'
  12453. lt_prog_compiler_static='-Bstatic'
  12454. ;;
  12455. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  12456. # Portland Group compilers (*not* the Pentium gcc compiler,
  12457. # which looks to be a dead project)
  12458. lt_prog_compiler_wl='-Wl,'
  12459. lt_prog_compiler_pic='-fpic'
  12460. lt_prog_compiler_static='-Bstatic'
  12461. ;;
  12462. ccc*)
  12463. lt_prog_compiler_wl='-Wl,'
  12464. # All Alpha code is PIC.
  12465. lt_prog_compiler_static='-non_shared'
  12466. ;;
  12467. xl* | bgxl* | bgf* | mpixl*)
  12468. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  12469. lt_prog_compiler_wl='-Wl,'
  12470. lt_prog_compiler_pic='-qpic'
  12471. lt_prog_compiler_static='-qstaticlink'
  12472. ;;
  12473. *)
  12474. case `$CC -V 2>&1 | sed 5q` in
  12475. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  12476. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  12477. lt_prog_compiler_pic='-KPIC'
  12478. lt_prog_compiler_static='-Bstatic'
  12479. lt_prog_compiler_wl=''
  12480. ;;
  12481. *Sun\ F* | *Sun*Fortran*)
  12482. lt_prog_compiler_pic='-KPIC'
  12483. lt_prog_compiler_static='-Bstatic'
  12484. lt_prog_compiler_wl='-Qoption ld '
  12485. ;;
  12486. *Sun\ C*)
  12487. # Sun C 5.9
  12488. lt_prog_compiler_pic='-KPIC'
  12489. lt_prog_compiler_static='-Bstatic'
  12490. lt_prog_compiler_wl='-Wl,'
  12491. ;;
  12492. *Intel*\ [CF]*Compiler*)
  12493. lt_prog_compiler_wl='-Wl,'
  12494. lt_prog_compiler_pic='-fPIC'
  12495. lt_prog_compiler_static='-static'
  12496. ;;
  12497. *Portland\ Group*)
  12498. lt_prog_compiler_wl='-Wl,'
  12499. lt_prog_compiler_pic='-fpic'
  12500. lt_prog_compiler_static='-Bstatic'
  12501. ;;
  12502. esac
  12503. ;;
  12504. esac
  12505. ;;
  12506. newsos6)
  12507. lt_prog_compiler_pic='-KPIC'
  12508. lt_prog_compiler_static='-Bstatic'
  12509. ;;
  12510. *nto* | *qnx*)
  12511. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12512. # it will coredump.
  12513. lt_prog_compiler_pic='-fPIC -shared'
  12514. ;;
  12515. osf3* | osf4* | osf5*)
  12516. lt_prog_compiler_wl='-Wl,'
  12517. # All OSF/1 code is PIC.
  12518. lt_prog_compiler_static='-non_shared'
  12519. ;;
  12520. rdos*)
  12521. lt_prog_compiler_static='-non_shared'
  12522. ;;
  12523. solaris*)
  12524. lt_prog_compiler_pic='-KPIC'
  12525. lt_prog_compiler_static='-Bstatic'
  12526. case $cc_basename in
  12527. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  12528. lt_prog_compiler_wl='-Qoption ld ';;
  12529. *)
  12530. lt_prog_compiler_wl='-Wl,';;
  12531. esac
  12532. ;;
  12533. sunos4*)
  12534. lt_prog_compiler_wl='-Qoption ld '
  12535. lt_prog_compiler_pic='-PIC'
  12536. lt_prog_compiler_static='-Bstatic'
  12537. ;;
  12538. sysv4 | sysv4.2uw2* | sysv4.3*)
  12539. lt_prog_compiler_wl='-Wl,'
  12540. lt_prog_compiler_pic='-KPIC'
  12541. lt_prog_compiler_static='-Bstatic'
  12542. ;;
  12543. sysv4*MP*)
  12544. if test -d /usr/nec ;then
  12545. lt_prog_compiler_pic='-Kconform_pic'
  12546. lt_prog_compiler_static='-Bstatic'
  12547. fi
  12548. ;;
  12549. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12550. lt_prog_compiler_wl='-Wl,'
  12551. lt_prog_compiler_pic='-KPIC'
  12552. lt_prog_compiler_static='-Bstatic'
  12553. ;;
  12554. unicos*)
  12555. lt_prog_compiler_wl='-Wl,'
  12556. lt_prog_compiler_can_build_shared=no
  12557. ;;
  12558. uts4*)
  12559. lt_prog_compiler_pic='-pic'
  12560. lt_prog_compiler_static='-Bstatic'
  12561. ;;
  12562. *)
  12563. lt_prog_compiler_can_build_shared=no
  12564. ;;
  12565. esac
  12566. fi
  12567. case $host_os in
  12568. # For platforms which do not support PIC, -DPIC is meaningless:
  12569. *djgpp*)
  12570. lt_prog_compiler_pic=
  12571. ;;
  12572. *)
  12573. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  12574. ;;
  12575. esac
  12576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12577. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12578. if ${lt_cv_prog_compiler_pic+:} false; then :
  12579. $as_echo_n "(cached) " >&6
  12580. else
  12581. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  12582. fi
  12583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  12584. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  12585. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  12586. #
  12587. # Check to make sure the PIC flag actually works.
  12588. #
  12589. if test -n "$lt_prog_compiler_pic"; then
  12590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  12591. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  12592. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  12593. $as_echo_n "(cached) " >&6
  12594. else
  12595. lt_cv_prog_compiler_pic_works=no
  12596. ac_outfile=conftest.$ac_objext
  12597. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12598. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  12599. # Insert the option either (1) after the last *FLAGS variable, or
  12600. # (2) before a word containing "conftest.", or (3) at the end.
  12601. # Note that $ac_compile itself does not contain backslashes and begins
  12602. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12603. # The option is referenced via a variable to avoid confusing sed.
  12604. lt_compile=`echo "$ac_compile" | $SED \
  12605. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12606. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12607. -e 's:$: $lt_compiler_flag:'`
  12608. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12609. (eval "$lt_compile" 2>conftest.err)
  12610. ac_status=$?
  12611. cat conftest.err >&5
  12612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12613. if (exit $ac_status) && test -s "$ac_outfile"; then
  12614. # The compiler can only warn and ignore the option if not recognized
  12615. # So say no if there are warnings other than the usual output.
  12616. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12617. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12618. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12619. lt_cv_prog_compiler_pic_works=yes
  12620. fi
  12621. fi
  12622. $RM conftest*
  12623. fi
  12624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  12625. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  12626. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  12627. case $lt_prog_compiler_pic in
  12628. "" | " "*) ;;
  12629. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  12630. esac
  12631. else
  12632. lt_prog_compiler_pic=
  12633. lt_prog_compiler_can_build_shared=no
  12634. fi
  12635. fi
  12636. #
  12637. # Check to make sure the static flag actually works.
  12638. #
  12639. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  12640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12641. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12642. if ${lt_cv_prog_compiler_static_works+:} false; then :
  12643. $as_echo_n "(cached) " >&6
  12644. else
  12645. lt_cv_prog_compiler_static_works=no
  12646. save_LDFLAGS="$LDFLAGS"
  12647. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12648. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12649. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12650. # The linker can only warn and ignore the option if not recognized
  12651. # So say no if there are warnings
  12652. if test -s conftest.err; then
  12653. # Append any errors to the config.log.
  12654. cat conftest.err 1>&5
  12655. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12656. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12657. if diff conftest.exp conftest.er2 >/dev/null; then
  12658. lt_cv_prog_compiler_static_works=yes
  12659. fi
  12660. else
  12661. lt_cv_prog_compiler_static_works=yes
  12662. fi
  12663. fi
  12664. $RM -r conftest*
  12665. LDFLAGS="$save_LDFLAGS"
  12666. fi
  12667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  12668. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  12669. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  12670. :
  12671. else
  12672. lt_prog_compiler_static=
  12673. fi
  12674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12675. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12676. if ${lt_cv_prog_compiler_c_o+:} false; then :
  12677. $as_echo_n "(cached) " >&6
  12678. else
  12679. lt_cv_prog_compiler_c_o=no
  12680. $RM -r conftest 2>/dev/null
  12681. mkdir conftest
  12682. cd conftest
  12683. mkdir out
  12684. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12685. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12686. # Insert the option either (1) after the last *FLAGS variable, or
  12687. # (2) before a word containing "conftest.", or (3) at the end.
  12688. # Note that $ac_compile itself does not contain backslashes and begins
  12689. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12690. lt_compile=`echo "$ac_compile" | $SED \
  12691. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12692. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12693. -e 's:$: $lt_compiler_flag:'`
  12694. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12695. (eval "$lt_compile" 2>out/conftest.err)
  12696. ac_status=$?
  12697. cat out/conftest.err >&5
  12698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12699. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12700. then
  12701. # The compiler can only warn and ignore the option if not recognized
  12702. # So say no if there are warnings
  12703. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12704. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12705. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12706. lt_cv_prog_compiler_c_o=yes
  12707. fi
  12708. fi
  12709. chmod u+w . 2>&5
  12710. $RM conftest*
  12711. # SGI C++ compiler will create directory out/ii_files/ for
  12712. # template instantiation
  12713. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12714. $RM out/* && rmdir out
  12715. cd ..
  12716. $RM -r conftest
  12717. $RM conftest*
  12718. fi
  12719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  12720. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  12721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12722. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12723. if ${lt_cv_prog_compiler_c_o+:} false; then :
  12724. $as_echo_n "(cached) " >&6
  12725. else
  12726. lt_cv_prog_compiler_c_o=no
  12727. $RM -r conftest 2>/dev/null
  12728. mkdir conftest
  12729. cd conftest
  12730. mkdir out
  12731. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12732. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12733. # Insert the option either (1) after the last *FLAGS variable, or
  12734. # (2) before a word containing "conftest.", or (3) at the end.
  12735. # Note that $ac_compile itself does not contain backslashes and begins
  12736. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12737. lt_compile=`echo "$ac_compile" | $SED \
  12738. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12739. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12740. -e 's:$: $lt_compiler_flag:'`
  12741. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12742. (eval "$lt_compile" 2>out/conftest.err)
  12743. ac_status=$?
  12744. cat out/conftest.err >&5
  12745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12746. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12747. then
  12748. # The compiler can only warn and ignore the option if not recognized
  12749. # So say no if there are warnings
  12750. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12751. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12752. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12753. lt_cv_prog_compiler_c_o=yes
  12754. fi
  12755. fi
  12756. chmod u+w . 2>&5
  12757. $RM conftest*
  12758. # SGI C++ compiler will create directory out/ii_files/ for
  12759. # template instantiation
  12760. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12761. $RM out/* && rmdir out
  12762. cd ..
  12763. $RM -r conftest
  12764. $RM conftest*
  12765. fi
  12766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  12767. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  12768. hard_links="nottested"
  12769. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  12770. # do not overwrite the value of need_locks provided by the user
  12771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12772. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12773. hard_links=yes
  12774. $RM conftest*
  12775. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12776. touch conftest.a
  12777. ln conftest.a conftest.b 2>&5 || hard_links=no
  12778. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12780. $as_echo "$hard_links" >&6; }
  12781. if test "$hard_links" = no; then
  12782. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12783. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12784. need_locks=warn
  12785. fi
  12786. else
  12787. need_locks=no
  12788. fi
  12789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12790. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12791. runpath_var=
  12792. allow_undefined_flag=
  12793. always_export_symbols=no
  12794. archive_cmds=
  12795. archive_expsym_cmds=
  12796. compiler_needs_object=no
  12797. enable_shared_with_static_runtimes=no
  12798. export_dynamic_flag_spec=
  12799. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12800. hardcode_automatic=no
  12801. hardcode_direct=no
  12802. hardcode_direct_absolute=no
  12803. hardcode_libdir_flag_spec=
  12804. hardcode_libdir_separator=
  12805. hardcode_minus_L=no
  12806. hardcode_shlibpath_var=unsupported
  12807. inherit_rpath=no
  12808. link_all_deplibs=unknown
  12809. module_cmds=
  12810. module_expsym_cmds=
  12811. old_archive_from_new_cmds=
  12812. old_archive_from_expsyms_cmds=
  12813. thread_safe_flag_spec=
  12814. whole_archive_flag_spec=
  12815. # include_expsyms should be a list of space-separated symbols to be *always*
  12816. # included in the symbol list
  12817. include_expsyms=
  12818. # exclude_expsyms can be an extended regexp of symbols to exclude
  12819. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12820. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12821. # as well as any symbol that contains `d'.
  12822. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12823. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12824. # platforms (ab)use it in PIC code, but their linkers get confused if
  12825. # the symbol is explicitly referenced. Since portable code cannot
  12826. # rely on this symbol name, it's probably fine to never include it in
  12827. # preloaded symbol tables.
  12828. # Exclude shared library initialization/finalization symbols.
  12829. extract_expsyms_cmds=
  12830. case $host_os in
  12831. cygwin* | mingw* | pw32* | cegcc*)
  12832. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12833. # When not using gcc, we currently assume that we are using
  12834. # Microsoft Visual C++.
  12835. if test "$GCC" != yes; then
  12836. with_gnu_ld=no
  12837. fi
  12838. ;;
  12839. interix*)
  12840. # we just hope/assume this is gcc and not c89 (= MSVC++)
  12841. with_gnu_ld=yes
  12842. ;;
  12843. openbsd*)
  12844. with_gnu_ld=no
  12845. ;;
  12846. esac
  12847. ld_shlibs=yes
  12848. # On some targets, GNU ld is compatible enough with the native linker
  12849. # that we're better off using the native interface for both.
  12850. lt_use_gnu_ld_interface=no
  12851. if test "$with_gnu_ld" = yes; then
  12852. case $host_os in
  12853. aix*)
  12854. # The AIX port of GNU ld has always aspired to compatibility
  12855. # with the native linker. However, as the warning in the GNU ld
  12856. # block says, versions before 2.19.5* couldn't really create working
  12857. # shared libraries, regardless of the interface used.
  12858. case `$LD -v 2>&1` in
  12859. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  12860. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  12861. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  12862. *)
  12863. lt_use_gnu_ld_interface=yes
  12864. ;;
  12865. esac
  12866. ;;
  12867. *)
  12868. lt_use_gnu_ld_interface=yes
  12869. ;;
  12870. esac
  12871. fi
  12872. if test "$lt_use_gnu_ld_interface" = yes; then
  12873. # If archive_cmds runs LD, not CC, wlarc should be empty
  12874. wlarc='${wl}'
  12875. # Set some defaults for GNU ld with shared library support. These
  12876. # are reset later if shared libraries are not supported. Putting them
  12877. # here allows them to be overridden if necessary.
  12878. runpath_var=LD_RUN_PATH
  12879. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  12880. export_dynamic_flag_spec='${wl}--export-dynamic'
  12881. # ancient GNU ld didn't support --whole-archive et. al.
  12882. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  12883. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12884. else
  12885. whole_archive_flag_spec=
  12886. fi
  12887. supports_anon_versioning=no
  12888. case `$LD -v 2>&1` in
  12889. *GNU\ gold*) supports_anon_versioning=yes ;;
  12890. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12891. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12892. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12893. *\ 2.11.*) ;; # other 2.11 versions
  12894. *) supports_anon_versioning=yes ;;
  12895. esac
  12896. # See if GNU ld supports shared libraries.
  12897. case $host_os in
  12898. aix[3-9]*)
  12899. # On AIX/PPC, the GNU linker is very broken
  12900. if test "$host_cpu" != ia64; then
  12901. ld_shlibs=no
  12902. cat <<_LT_EOF 1>&2
  12903. *** Warning: the GNU linker, at least up to release 2.19, is reported
  12904. *** to be unable to reliably create shared libraries on AIX.
  12905. *** Therefore, libtool is disabling shared libraries support. If you
  12906. *** really care for shared libraries, you may want to install binutils
  12907. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  12908. *** You will then need to restart the configuration process.
  12909. _LT_EOF
  12910. fi
  12911. ;;
  12912. amigaos*)
  12913. case $host_cpu in
  12914. powerpc)
  12915. # see comment about AmigaOS4 .so support
  12916. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12917. archive_expsym_cmds=''
  12918. ;;
  12919. m68k)
  12920. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  12921. hardcode_libdir_flag_spec='-L$libdir'
  12922. hardcode_minus_L=yes
  12923. ;;
  12924. esac
  12925. ;;
  12926. beos*)
  12927. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12928. allow_undefined_flag=unsupported
  12929. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12930. # support --undefined. This deserves some investigation. FIXME
  12931. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12932. else
  12933. ld_shlibs=no
  12934. fi
  12935. ;;
  12936. cygwin* | mingw* | pw32* | cegcc*)
  12937. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  12938. # as there is no search path for DLLs.
  12939. hardcode_libdir_flag_spec='-L$libdir'
  12940. export_dynamic_flag_spec='${wl}--export-all-symbols'
  12941. allow_undefined_flag=unsupported
  12942. always_export_symbols=no
  12943. enable_shared_with_static_runtimes=yes
  12944. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12945. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12946. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12947. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12948. # If the export-symbols file already is a .def file (1st line
  12949. # is EXPORTS), use it as is; otherwise, prepend...
  12950. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12951. cp $export_symbols $output_objdir/$soname.def;
  12952. else
  12953. echo EXPORTS > $output_objdir/$soname.def;
  12954. cat $export_symbols >> $output_objdir/$soname.def;
  12955. fi~
  12956. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12957. else
  12958. ld_shlibs=no
  12959. fi
  12960. ;;
  12961. haiku*)
  12962. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12963. link_all_deplibs=yes
  12964. ;;
  12965. interix[3-9]*)
  12966. hardcode_direct=no
  12967. hardcode_shlibpath_var=no
  12968. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  12969. export_dynamic_flag_spec='${wl}-E'
  12970. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12971. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12972. # default) and relocated if they conflict, which is a slow very memory
  12973. # consuming and fragmenting process. To avoid this, we pick a random,
  12974. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12975. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12976. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12977. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12978. ;;
  12979. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  12980. tmp_diet=no
  12981. if test "$host_os" = linux-dietlibc; then
  12982. case $cc_basename in
  12983. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  12984. esac
  12985. fi
  12986. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  12987. && test "$tmp_diet" = no
  12988. then
  12989. tmp_addflag=' $pic_flag'
  12990. tmp_sharedflag='-shared'
  12991. case $cc_basename,$host_cpu in
  12992. pgcc*) # Portland Group C compiler
  12993. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  12994. tmp_addflag=' $pic_flag'
  12995. ;;
  12996. pgf77* | pgf90* | pgf95* | pgfortran*)
  12997. # Portland Group f77 and f90 compilers
  12998. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  12999. tmp_addflag=' $pic_flag -Mnomain' ;;
  13000. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13001. tmp_addflag=' -i_dynamic' ;;
  13002. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13003. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13004. ifc* | ifort*) # Intel Fortran compiler
  13005. tmp_addflag=' -nofor_main' ;;
  13006. lf95*) # Lahey Fortran 8.1
  13007. whole_archive_flag_spec=
  13008. tmp_sharedflag='--shared' ;;
  13009. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  13010. tmp_sharedflag='-qmkshrobj'
  13011. tmp_addflag= ;;
  13012. nvcc*) # Cuda Compiler Driver 2.2
  13013. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  13014. compiler_needs_object=yes
  13015. ;;
  13016. esac
  13017. case `$CC -V 2>&1 | sed 5q` in
  13018. *Sun\ C*) # Sun C 5.9
  13019. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  13020. compiler_needs_object=yes
  13021. tmp_sharedflag='-G' ;;
  13022. *Sun\ F*) # Sun Fortran 8.3
  13023. tmp_sharedflag='-G' ;;
  13024. esac
  13025. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13026. if test "x$supports_anon_versioning" = xyes; then
  13027. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  13028. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13029. echo "local: *; };" >> $output_objdir/$libname.ver~
  13030. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13031. fi
  13032. case $cc_basename in
  13033. xlf* | bgf* | bgxlf* | mpixlf*)
  13034. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  13035. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  13036. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13037. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  13038. if test "x$supports_anon_versioning" = xyes; then
  13039. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  13040. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13041. echo "local: *; };" >> $output_objdir/$libname.ver~
  13042. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  13043. fi
  13044. ;;
  13045. esac
  13046. else
  13047. ld_shlibs=no
  13048. fi
  13049. ;;
  13050. netbsd*)
  13051. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13052. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13053. wlarc=
  13054. else
  13055. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13056. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13057. fi
  13058. ;;
  13059. solaris*)
  13060. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  13061. ld_shlibs=no
  13062. cat <<_LT_EOF 1>&2
  13063. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13064. *** create shared libraries on Solaris systems. Therefore, libtool
  13065. *** is disabling shared libraries support. We urge you to upgrade GNU
  13066. *** binutils to release 2.9.1 or newer. Another option is to modify
  13067. *** your PATH or compiler configuration so that the native linker is
  13068. *** used, and then restart.
  13069. _LT_EOF
  13070. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13071. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13072. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13073. else
  13074. ld_shlibs=no
  13075. fi
  13076. ;;
  13077. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  13078. case `$LD -v 2>&1` in
  13079. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  13080. ld_shlibs=no
  13081. cat <<_LT_EOF 1>&2
  13082. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  13083. *** reliably create shared libraries on SCO systems. Therefore, libtool
  13084. *** is disabling shared libraries support. We urge you to upgrade GNU
  13085. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  13086. *** your PATH or compiler configuration so that the native linker is
  13087. *** used, and then restart.
  13088. _LT_EOF
  13089. ;;
  13090. *)
  13091. # For security reasons, it is highly recommended that you always
  13092. # use absolute paths for naming shared libraries, and exclude the
  13093. # DT_RUNPATH tag from executables and libraries. But doing so
  13094. # requires that you compile everything twice, which is a pain.
  13095. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13096. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13097. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13098. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13099. else
  13100. ld_shlibs=no
  13101. fi
  13102. ;;
  13103. esac
  13104. ;;
  13105. sunos4*)
  13106. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13107. wlarc=
  13108. hardcode_direct=yes
  13109. hardcode_shlibpath_var=no
  13110. ;;
  13111. *)
  13112. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13113. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13114. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13115. else
  13116. ld_shlibs=no
  13117. fi
  13118. ;;
  13119. esac
  13120. if test "$ld_shlibs" = no; then
  13121. runpath_var=
  13122. hardcode_libdir_flag_spec=
  13123. export_dynamic_flag_spec=
  13124. whole_archive_flag_spec=
  13125. fi
  13126. else
  13127. # PORTME fill in a description of your system's linker (not GNU ld)
  13128. case $host_os in
  13129. aix3*)
  13130. allow_undefined_flag=unsupported
  13131. always_export_symbols=yes
  13132. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  13133. # Note: this linker hardcodes the directories in LIBPATH if there
  13134. # are no directories specified by -L.
  13135. hardcode_minus_L=yes
  13136. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  13137. # Neither direct hardcoding nor static linking is supported with a
  13138. # broken collect2.
  13139. hardcode_direct=unsupported
  13140. fi
  13141. ;;
  13142. aix[4-9]*)
  13143. if test "$host_cpu" = ia64; then
  13144. # On IA64, the linker does run time linking by default, so we don't
  13145. # have to do anything special.
  13146. aix_use_runtimelinking=no
  13147. exp_sym_flag='-Bexport'
  13148. no_entry_flag=""
  13149. else
  13150. # If we're using GNU nm, then we don't want the "-C" option.
  13151. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13152. # Also, AIX nm treats weak defined symbols like other global
  13153. # defined symbols, whereas GNU nm marks them as "W".
  13154. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13155. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  13156. else
  13157. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  13158. fi
  13159. aix_use_runtimelinking=no
  13160. # Test if we are trying to use run time linking or normal
  13161. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13162. # need to do runtime linking.
  13163. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  13164. for ld_flag in $LDFLAGS; do
  13165. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13166. aix_use_runtimelinking=yes
  13167. break
  13168. fi
  13169. done
  13170. ;;
  13171. esac
  13172. exp_sym_flag='-bexport'
  13173. no_entry_flag='-bnoentry'
  13174. fi
  13175. # When large executables or shared objects are built, AIX ld can
  13176. # have problems creating the table of contents. If linking a library
  13177. # or program results in "error TOC overflow" add -mminimal-toc to
  13178. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13179. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13180. archive_cmds=''
  13181. hardcode_direct=yes
  13182. hardcode_direct_absolute=yes
  13183. hardcode_libdir_separator=':'
  13184. link_all_deplibs=yes
  13185. file_list_spec='${wl}-f,'
  13186. if test "$GCC" = yes; then
  13187. case $host_os in aix4.[012]|aix4.[012].*)
  13188. # We only want to do this on AIX 4.2 and lower, the check
  13189. # below for broken collect2 doesn't work under 4.3+
  13190. collect2name=`${CC} -print-prog-name=collect2`
  13191. if test -f "$collect2name" &&
  13192. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  13193. then
  13194. # We have reworked collect2
  13195. :
  13196. else
  13197. # We have old collect2
  13198. hardcode_direct=unsupported
  13199. # It fails to find uninstalled libraries when the uninstalled
  13200. # path is not listed in the libpath. Setting hardcode_minus_L
  13201. # to unsupported forces relinking
  13202. hardcode_minus_L=yes
  13203. hardcode_libdir_flag_spec='-L$libdir'
  13204. hardcode_libdir_separator=
  13205. fi
  13206. ;;
  13207. esac
  13208. shared_flag='-shared'
  13209. if test "$aix_use_runtimelinking" = yes; then
  13210. shared_flag="$shared_flag "'${wl}-G'
  13211. fi
  13212. else
  13213. # not using gcc
  13214. if test "$host_cpu" = ia64; then
  13215. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13216. # chokes on -Wl,-G. The following line is correct:
  13217. shared_flag='-G'
  13218. else
  13219. if test "$aix_use_runtimelinking" = yes; then
  13220. shared_flag='${wl}-G'
  13221. else
  13222. shared_flag='${wl}-bM:SRE'
  13223. fi
  13224. fi
  13225. fi
  13226. export_dynamic_flag_spec='${wl}-bexpall'
  13227. # It seems that -bexpall does not export symbols beginning with
  13228. # underscore (_), so it is better to generate a list of symbols to export.
  13229. always_export_symbols=yes
  13230. if test "$aix_use_runtimelinking" = yes; then
  13231. # Warning - without using the other runtime loading flags (-brtl),
  13232. # -berok will link without error, but may produce a broken library.
  13233. allow_undefined_flag='-berok'
  13234. # Determine the default libpath from the value encoded in an
  13235. # empty executable.
  13236. if test "${lt_cv_aix_libpath+set}" = set; then
  13237. aix_libpath=$lt_cv_aix_libpath
  13238. else
  13239. if ${lt_cv_aix_libpath_+:} false; then :
  13240. $as_echo_n "(cached) " >&6
  13241. else
  13242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13243. /* end confdefs.h. */
  13244. int
  13245. main ()
  13246. {
  13247. ;
  13248. return 0;
  13249. }
  13250. _ACEOF
  13251. if ac_fn_c_try_link "$LINENO"; then :
  13252. lt_aix_libpath_sed='
  13253. /Import File Strings/,/^$/ {
  13254. /^0/ {
  13255. s/^0 *\([^ ]*\) *$/\1/
  13256. p
  13257. }
  13258. }'
  13259. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13260. # Check for a 64-bit object if we didn't find anything.
  13261. if test -z "$lt_cv_aix_libpath_"; then
  13262. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13263. fi
  13264. fi
  13265. rm -f core conftest.err conftest.$ac_objext \
  13266. conftest$ac_exeext conftest.$ac_ext
  13267. if test -z "$lt_cv_aix_libpath_"; then
  13268. lt_cv_aix_libpath_="/usr/lib:/lib"
  13269. fi
  13270. fi
  13271. aix_libpath=$lt_cv_aix_libpath_
  13272. fi
  13273. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  13274. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  13275. else
  13276. if test "$host_cpu" = ia64; then
  13277. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  13278. allow_undefined_flag="-z nodefs"
  13279. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  13280. else
  13281. # Determine the default libpath from the value encoded in an
  13282. # empty executable.
  13283. if test "${lt_cv_aix_libpath+set}" = set; then
  13284. aix_libpath=$lt_cv_aix_libpath
  13285. else
  13286. if ${lt_cv_aix_libpath_+:} false; then :
  13287. $as_echo_n "(cached) " >&6
  13288. else
  13289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13290. /* end confdefs.h. */
  13291. int
  13292. main ()
  13293. {
  13294. ;
  13295. return 0;
  13296. }
  13297. _ACEOF
  13298. if ac_fn_c_try_link "$LINENO"; then :
  13299. lt_aix_libpath_sed='
  13300. /Import File Strings/,/^$/ {
  13301. /^0/ {
  13302. s/^0 *\([^ ]*\) *$/\1/
  13303. p
  13304. }
  13305. }'
  13306. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13307. # Check for a 64-bit object if we didn't find anything.
  13308. if test -z "$lt_cv_aix_libpath_"; then
  13309. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13310. fi
  13311. fi
  13312. rm -f core conftest.err conftest.$ac_objext \
  13313. conftest$ac_exeext conftest.$ac_ext
  13314. if test -z "$lt_cv_aix_libpath_"; then
  13315. lt_cv_aix_libpath_="/usr/lib:/lib"
  13316. fi
  13317. fi
  13318. aix_libpath=$lt_cv_aix_libpath_
  13319. fi
  13320. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  13321. # Warning - without using the other run time loading flags,
  13322. # -berok will link without error, but may produce a broken library.
  13323. no_undefined_flag=' ${wl}-bernotok'
  13324. allow_undefined_flag=' ${wl}-berok'
  13325. if test "$with_gnu_ld" = yes; then
  13326. # We only use this code for GNU lds that support --whole-archive.
  13327. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  13328. else
  13329. # Exported symbols can be pulled into shared objects from archives
  13330. whole_archive_flag_spec='$convenience'
  13331. fi
  13332. archive_cmds_need_lc=yes
  13333. # This is similar to how AIX traditionally builds its shared libraries.
  13334. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  13335. fi
  13336. fi
  13337. ;;
  13338. amigaos*)
  13339. case $host_cpu in
  13340. powerpc)
  13341. # see comment about AmigaOS4 .so support
  13342. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13343. archive_expsym_cmds=''
  13344. ;;
  13345. m68k)
  13346. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  13347. hardcode_libdir_flag_spec='-L$libdir'
  13348. hardcode_minus_L=yes
  13349. ;;
  13350. esac
  13351. ;;
  13352. bsdi[45]*)
  13353. export_dynamic_flag_spec=-rdynamic
  13354. ;;
  13355. cygwin* | mingw* | pw32* | cegcc*)
  13356. # When not using gcc, we currently assume that we are using
  13357. # Microsoft Visual C++.
  13358. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13359. # no search path for DLLs.
  13360. case $cc_basename in
  13361. cl*)
  13362. # Native MSVC
  13363. hardcode_libdir_flag_spec=' '
  13364. allow_undefined_flag=unsupported
  13365. always_export_symbols=yes
  13366. file_list_spec='@'
  13367. # Tell ltmain to make .lib files, not .a files.
  13368. libext=lib
  13369. # Tell ltmain to make .dll files, not .so files.
  13370. shrext_cmds=".dll"
  13371. # FIXME: Setting linknames here is a bad hack.
  13372. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  13373. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13374. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  13375. else
  13376. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  13377. fi~
  13378. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13379. linknames='
  13380. # The linker will not automatically build a static lib if we build a DLL.
  13381. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  13382. enable_shared_with_static_runtimes=yes
  13383. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13384. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  13385. # Don't use ranlib
  13386. old_postinstall_cmds='chmod 644 $oldlib'
  13387. postlink_cmds='lt_outputfile="@OUTPUT@"~
  13388. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13389. case $lt_outputfile in
  13390. *.exe|*.EXE) ;;
  13391. *)
  13392. lt_outputfile="$lt_outputfile.exe"
  13393. lt_tool_outputfile="$lt_tool_outputfile.exe"
  13394. ;;
  13395. esac~
  13396. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  13397. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13398. $RM "$lt_outputfile.manifest";
  13399. fi'
  13400. ;;
  13401. *)
  13402. # Assume MSVC wrapper
  13403. hardcode_libdir_flag_spec=' '
  13404. allow_undefined_flag=unsupported
  13405. # Tell ltmain to make .lib files, not .a files.
  13406. libext=lib
  13407. # Tell ltmain to make .dll files, not .so files.
  13408. shrext_cmds=".dll"
  13409. # FIXME: Setting linknames here is a bad hack.
  13410. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  13411. # The linker will automatically build a .lib file if we build a DLL.
  13412. old_archive_from_new_cmds='true'
  13413. # FIXME: Should let the user specify the lib program.
  13414. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  13415. enable_shared_with_static_runtimes=yes
  13416. ;;
  13417. esac
  13418. ;;
  13419. darwin* | rhapsody*)
  13420. archive_cmds_need_lc=no
  13421. hardcode_direct=no
  13422. hardcode_automatic=yes
  13423. hardcode_shlibpath_var=unsupported
  13424. if test "$lt_cv_ld_force_load" = "yes"; then
  13425. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  13426. else
  13427. whole_archive_flag_spec=''
  13428. fi
  13429. link_all_deplibs=yes
  13430. allow_undefined_flag="$_lt_dar_allow_undefined"
  13431. case $cc_basename in
  13432. ifort*) _lt_dar_can_shared=yes ;;
  13433. *) _lt_dar_can_shared=$GCC ;;
  13434. esac
  13435. if test "$_lt_dar_can_shared" = "yes"; then
  13436. output_verbose_link_cmd=func_echo_all
  13437. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  13438. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  13439. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  13440. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  13441. else
  13442. ld_shlibs=no
  13443. fi
  13444. ;;
  13445. dgux*)
  13446. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13447. hardcode_libdir_flag_spec='-L$libdir'
  13448. hardcode_shlibpath_var=no
  13449. ;;
  13450. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13451. # support. Future versions do this automatically, but an explicit c++rt0.o
  13452. # does not break anything, and helps significantly (at the cost of a little
  13453. # extra space).
  13454. freebsd2.2*)
  13455. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13456. hardcode_libdir_flag_spec='-R$libdir'
  13457. hardcode_direct=yes
  13458. hardcode_shlibpath_var=no
  13459. ;;
  13460. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13461. freebsd2.*)
  13462. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13463. hardcode_direct=yes
  13464. hardcode_minus_L=yes
  13465. hardcode_shlibpath_var=no
  13466. ;;
  13467. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13468. freebsd* | dragonfly*)
  13469. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13470. hardcode_libdir_flag_spec='-R$libdir'
  13471. hardcode_direct=yes
  13472. hardcode_shlibpath_var=no
  13473. ;;
  13474. hpux9*)
  13475. if test "$GCC" = yes; then
  13476. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  13477. else
  13478. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  13479. fi
  13480. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  13481. hardcode_libdir_separator=:
  13482. hardcode_direct=yes
  13483. # hardcode_minus_L: Not really in the search PATH,
  13484. # but as the default location of the library.
  13485. hardcode_minus_L=yes
  13486. export_dynamic_flag_spec='${wl}-E'
  13487. ;;
  13488. hpux10*)
  13489. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  13490. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13491. else
  13492. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13493. fi
  13494. if test "$with_gnu_ld" = no; then
  13495. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  13496. hardcode_libdir_separator=:
  13497. hardcode_direct=yes
  13498. hardcode_direct_absolute=yes
  13499. export_dynamic_flag_spec='${wl}-E'
  13500. # hardcode_minus_L: Not really in the search PATH,
  13501. # but as the default location of the library.
  13502. hardcode_minus_L=yes
  13503. fi
  13504. ;;
  13505. hpux11*)
  13506. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  13507. case $host_cpu in
  13508. hppa*64*)
  13509. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13510. ;;
  13511. ia64*)
  13512. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13513. ;;
  13514. *)
  13515. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13516. ;;
  13517. esac
  13518. else
  13519. case $host_cpu in
  13520. hppa*64*)
  13521. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13522. ;;
  13523. ia64*)
  13524. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13525. ;;
  13526. *)
  13527. # Older versions of the 11.00 compiler do not understand -b yet
  13528. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  13529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  13530. $as_echo_n "checking if $CC understands -b... " >&6; }
  13531. if ${lt_cv_prog_compiler__b+:} false; then :
  13532. $as_echo_n "(cached) " >&6
  13533. else
  13534. lt_cv_prog_compiler__b=no
  13535. save_LDFLAGS="$LDFLAGS"
  13536. LDFLAGS="$LDFLAGS -b"
  13537. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13538. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13539. # The linker can only warn and ignore the option if not recognized
  13540. # So say no if there are warnings
  13541. if test -s conftest.err; then
  13542. # Append any errors to the config.log.
  13543. cat conftest.err 1>&5
  13544. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13545. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13546. if diff conftest.exp conftest.er2 >/dev/null; then
  13547. lt_cv_prog_compiler__b=yes
  13548. fi
  13549. else
  13550. lt_cv_prog_compiler__b=yes
  13551. fi
  13552. fi
  13553. $RM -r conftest*
  13554. LDFLAGS="$save_LDFLAGS"
  13555. fi
  13556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  13557. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  13558. if test x"$lt_cv_prog_compiler__b" = xyes; then
  13559. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13560. else
  13561. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13562. fi
  13563. ;;
  13564. esac
  13565. fi
  13566. if test "$with_gnu_ld" = no; then
  13567. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  13568. hardcode_libdir_separator=:
  13569. case $host_cpu in
  13570. hppa*64*|ia64*)
  13571. hardcode_direct=no
  13572. hardcode_shlibpath_var=no
  13573. ;;
  13574. *)
  13575. hardcode_direct=yes
  13576. hardcode_direct_absolute=yes
  13577. export_dynamic_flag_spec='${wl}-E'
  13578. # hardcode_minus_L: Not really in the search PATH,
  13579. # but as the default location of the library.
  13580. hardcode_minus_L=yes
  13581. ;;
  13582. esac
  13583. fi
  13584. ;;
  13585. irix5* | irix6* | nonstopux*)
  13586. if test "$GCC" = yes; then
  13587. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13588. # Try to use the -exported_symbol ld option, if it does not
  13589. # work, assume that -exports_file does not work either and
  13590. # implicitly export all symbols.
  13591. # This should be the same for all languages, so no per-tag cache variable.
  13592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  13593. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  13594. if ${lt_cv_irix_exported_symbol+:} false; then :
  13595. $as_echo_n "(cached) " >&6
  13596. else
  13597. save_LDFLAGS="$LDFLAGS"
  13598. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  13599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13600. /* end confdefs.h. */
  13601. int foo (void) { return 0; }
  13602. _ACEOF
  13603. if ac_fn_c_try_link "$LINENO"; then :
  13604. lt_cv_irix_exported_symbol=yes
  13605. else
  13606. lt_cv_irix_exported_symbol=no
  13607. fi
  13608. rm -f core conftest.err conftest.$ac_objext \
  13609. conftest$ac_exeext conftest.$ac_ext
  13610. LDFLAGS="$save_LDFLAGS"
  13611. fi
  13612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  13613. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  13614. if test "$lt_cv_irix_exported_symbol" = yes; then
  13615. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  13616. fi
  13617. else
  13618. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  13619. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  13620. fi
  13621. archive_cmds_need_lc='no'
  13622. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13623. hardcode_libdir_separator=:
  13624. inherit_rpath=yes
  13625. link_all_deplibs=yes
  13626. ;;
  13627. netbsd*)
  13628. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13629. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13630. else
  13631. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13632. fi
  13633. hardcode_libdir_flag_spec='-R$libdir'
  13634. hardcode_direct=yes
  13635. hardcode_shlibpath_var=no
  13636. ;;
  13637. newsos6)
  13638. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13639. hardcode_direct=yes
  13640. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13641. hardcode_libdir_separator=:
  13642. hardcode_shlibpath_var=no
  13643. ;;
  13644. *nto* | *qnx*)
  13645. ;;
  13646. openbsd*)
  13647. if test -f /usr/libexec/ld.so; then
  13648. hardcode_direct=yes
  13649. hardcode_shlibpath_var=no
  13650. hardcode_direct_absolute=yes
  13651. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13652. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13653. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  13654. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  13655. export_dynamic_flag_spec='${wl}-E'
  13656. else
  13657. case $host_os in
  13658. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13659. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13660. hardcode_libdir_flag_spec='-R$libdir'
  13661. ;;
  13662. *)
  13663. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13664. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  13665. ;;
  13666. esac
  13667. fi
  13668. else
  13669. ld_shlibs=no
  13670. fi
  13671. ;;
  13672. os2*)
  13673. hardcode_libdir_flag_spec='-L$libdir'
  13674. hardcode_minus_L=yes
  13675. allow_undefined_flag=unsupported
  13676. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  13677. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13678. ;;
  13679. osf3*)
  13680. if test "$GCC" = yes; then
  13681. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  13682. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13683. else
  13684. allow_undefined_flag=' -expect_unresolved \*'
  13685. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  13686. fi
  13687. archive_cmds_need_lc='no'
  13688. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13689. hardcode_libdir_separator=:
  13690. ;;
  13691. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13692. if test "$GCC" = yes; then
  13693. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  13694. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13695. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13696. else
  13697. allow_undefined_flag=' -expect_unresolved \*'
  13698. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  13699. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  13700. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  13701. # Both c and cxx compiler support -rpath directly
  13702. hardcode_libdir_flag_spec='-rpath $libdir'
  13703. fi
  13704. archive_cmds_need_lc='no'
  13705. hardcode_libdir_separator=:
  13706. ;;
  13707. solaris*)
  13708. no_undefined_flag=' -z defs'
  13709. if test "$GCC" = yes; then
  13710. wlarc='${wl}'
  13711. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13712. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13713. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  13714. else
  13715. case `$CC -V 2>&1` in
  13716. *"Compilers 5.0"*)
  13717. wlarc=''
  13718. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13719. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13720. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  13721. ;;
  13722. *)
  13723. wlarc='${wl}'
  13724. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13725. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13726. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  13727. ;;
  13728. esac
  13729. fi
  13730. hardcode_libdir_flag_spec='-R$libdir'
  13731. hardcode_shlibpath_var=no
  13732. case $host_os in
  13733. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13734. *)
  13735. # The compiler driver will combine and reorder linker options,
  13736. # but understands `-z linker_flag'. GCC discards it without `$wl',
  13737. # but is careful enough not to reorder.
  13738. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13739. if test "$GCC" = yes; then
  13740. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  13741. else
  13742. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  13743. fi
  13744. ;;
  13745. esac
  13746. link_all_deplibs=yes
  13747. ;;
  13748. sunos4*)
  13749. if test "x$host_vendor" = xsequent; then
  13750. # Use $CC to link under sequent, because it throws in some extra .o
  13751. # files that make .init and .fini sections work.
  13752. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13753. else
  13754. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13755. fi
  13756. hardcode_libdir_flag_spec='-L$libdir'
  13757. hardcode_direct=yes
  13758. hardcode_minus_L=yes
  13759. hardcode_shlibpath_var=no
  13760. ;;
  13761. sysv4)
  13762. case $host_vendor in
  13763. sni)
  13764. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13765. hardcode_direct=yes # is this really true???
  13766. ;;
  13767. siemens)
  13768. ## LD is ld it makes a PLAMLIB
  13769. ## CC just makes a GrossModule.
  13770. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13771. reload_cmds='$CC -r -o $output$reload_objs'
  13772. hardcode_direct=no
  13773. ;;
  13774. motorola)
  13775. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13776. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  13777. ;;
  13778. esac
  13779. runpath_var='LD_RUN_PATH'
  13780. hardcode_shlibpath_var=no
  13781. ;;
  13782. sysv4.3*)
  13783. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13784. hardcode_shlibpath_var=no
  13785. export_dynamic_flag_spec='-Bexport'
  13786. ;;
  13787. sysv4*MP*)
  13788. if test -d /usr/nec; then
  13789. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13790. hardcode_shlibpath_var=no
  13791. runpath_var=LD_RUN_PATH
  13792. hardcode_runpath_var=yes
  13793. ld_shlibs=yes
  13794. fi
  13795. ;;
  13796. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13797. no_undefined_flag='${wl}-z,text'
  13798. archive_cmds_need_lc=no
  13799. hardcode_shlibpath_var=no
  13800. runpath_var='LD_RUN_PATH'
  13801. if test "$GCC" = yes; then
  13802. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13803. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13804. else
  13805. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13806. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13807. fi
  13808. ;;
  13809. sysv5* | sco3.2v5* | sco5v6*)
  13810. # Note: We can NOT use -z defs as we might desire, because we do not
  13811. # link with -lc, and that would cause any symbols used from libc to
  13812. # always be unresolved, which means just about no library would
  13813. # ever link correctly. If we're not using GNU ld we use -z text
  13814. # though, which does catch some bad symbols but isn't as heavy-handed
  13815. # as -z defs.
  13816. no_undefined_flag='${wl}-z,text'
  13817. allow_undefined_flag='${wl}-z,nodefs'
  13818. archive_cmds_need_lc=no
  13819. hardcode_shlibpath_var=no
  13820. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  13821. hardcode_libdir_separator=':'
  13822. link_all_deplibs=yes
  13823. export_dynamic_flag_spec='${wl}-Bexport'
  13824. runpath_var='LD_RUN_PATH'
  13825. if test "$GCC" = yes; then
  13826. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13827. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13828. else
  13829. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13830. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13831. fi
  13832. ;;
  13833. uts4*)
  13834. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13835. hardcode_libdir_flag_spec='-L$libdir'
  13836. hardcode_shlibpath_var=no
  13837. ;;
  13838. *)
  13839. ld_shlibs=no
  13840. ;;
  13841. esac
  13842. if test x$host_vendor = xsni; then
  13843. case $host in
  13844. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  13845. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13846. ;;
  13847. esac
  13848. fi
  13849. fi
  13850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  13851. $as_echo "$ld_shlibs" >&6; }
  13852. test "$ld_shlibs" = no && can_build_shared=no
  13853. with_gnu_ld=$with_gnu_ld
  13854. #
  13855. # Do we need to explicitly link libc?
  13856. #
  13857. case "x$archive_cmds_need_lc" in
  13858. x|xyes)
  13859. # Assume -lc should be added
  13860. archive_cmds_need_lc=yes
  13861. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13862. case $archive_cmds in
  13863. *'~'*)
  13864. # FIXME: we may have to deal with multi-command sequences.
  13865. ;;
  13866. '$CC '*)
  13867. # Test whether the compiler implicitly links with -lc since on some
  13868. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13869. # to ld, don't add -lc before -lgcc.
  13870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13871. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13872. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  13873. $as_echo_n "(cached) " >&6
  13874. else
  13875. $RM conftest*
  13876. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13877. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13878. (eval $ac_compile) 2>&5
  13879. ac_status=$?
  13880. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13881. test $ac_status = 0; } 2>conftest.err; then
  13882. soname=conftest
  13883. lib=conftest
  13884. libobjs=conftest.$ac_objext
  13885. deplibs=
  13886. wl=$lt_prog_compiler_wl
  13887. pic_flag=$lt_prog_compiler_pic
  13888. compiler_flags=-v
  13889. linker_flags=-v
  13890. verstring=
  13891. output_objdir=.
  13892. libname=conftest
  13893. lt_save_allow_undefined_flag=$allow_undefined_flag
  13894. allow_undefined_flag=
  13895. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13896. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13897. ac_status=$?
  13898. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13899. test $ac_status = 0; }
  13900. then
  13901. lt_cv_archive_cmds_need_lc=no
  13902. else
  13903. lt_cv_archive_cmds_need_lc=yes
  13904. fi
  13905. allow_undefined_flag=$lt_save_allow_undefined_flag
  13906. else
  13907. cat conftest.err 1>&5
  13908. fi
  13909. $RM conftest*
  13910. fi
  13911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  13912. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  13913. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  13914. ;;
  13915. esac
  13916. fi
  13917. ;;
  13918. esac
  13919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13920. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13921. if test "$GCC" = yes; then
  13922. case $host_os in
  13923. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  13924. *) lt_awk_arg="/^libraries:/" ;;
  13925. esac
  13926. case $host_os in
  13927. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  13928. *) lt_sed_strip_eq="s,=/,/,g" ;;
  13929. esac
  13930. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  13931. case $lt_search_path_spec in
  13932. *\;*)
  13933. # if the path contains ";" then we assume it to be the separator
  13934. # otherwise default to the standard path separator (i.e. ":") - it is
  13935. # assumed that no part of a normal pathname contains ";" but that should
  13936. # okay in the real world where ";" in dirpaths is itself problematic.
  13937. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  13938. ;;
  13939. *)
  13940. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  13941. ;;
  13942. esac
  13943. # Ok, now we have the path, separated by spaces, we can step through it
  13944. # and add multilib dir if necessary.
  13945. lt_tmp_lt_search_path_spec=
  13946. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  13947. for lt_sys_path in $lt_search_path_spec; do
  13948. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  13949. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  13950. else
  13951. test -d "$lt_sys_path" && \
  13952. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  13953. fi
  13954. done
  13955. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  13956. BEGIN {RS=" "; FS="/|\n";} {
  13957. lt_foo="";
  13958. lt_count=0;
  13959. for (lt_i = NF; lt_i > 0; lt_i--) {
  13960. if ($lt_i != "" && $lt_i != ".") {
  13961. if ($lt_i == "..") {
  13962. lt_count++;
  13963. } else {
  13964. if (lt_count == 0) {
  13965. lt_foo="/" $lt_i lt_foo;
  13966. } else {
  13967. lt_count--;
  13968. }
  13969. }
  13970. }
  13971. }
  13972. if (lt_foo != "") { lt_freq[lt_foo]++; }
  13973. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  13974. }'`
  13975. # AWK program above erroneously prepends '/' to C:/dos/paths
  13976. # for these hosts.
  13977. case $host_os in
  13978. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  13979. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  13980. esac
  13981. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  13982. else
  13983. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13984. fi
  13985. library_names_spec=
  13986. libname_spec='lib$name'
  13987. soname_spec=
  13988. shrext_cmds=".so"
  13989. postinstall_cmds=
  13990. postuninstall_cmds=
  13991. finish_cmds=
  13992. finish_eval=
  13993. shlibpath_var=
  13994. shlibpath_overrides_runpath=unknown
  13995. version_type=none
  13996. dynamic_linker="$host_os ld.so"
  13997. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13998. need_lib_prefix=unknown
  13999. hardcode_into_libs=no
  14000. # when you set need_version to no, make sure it does not cause -set_version
  14001. # flags to be left without arguments
  14002. need_version=unknown
  14003. case $host_os in
  14004. aix3*)
  14005. version_type=linux # correct to gnu/linux during the next big refactor
  14006. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14007. shlibpath_var=LIBPATH
  14008. # AIX 3 has no versioning support, so we append a major version to the name.
  14009. soname_spec='${libname}${release}${shared_ext}$major'
  14010. ;;
  14011. aix[4-9]*)
  14012. version_type=linux # correct to gnu/linux during the next big refactor
  14013. need_lib_prefix=no
  14014. need_version=no
  14015. hardcode_into_libs=yes
  14016. if test "$host_cpu" = ia64; then
  14017. # AIX 5 supports IA64
  14018. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14019. shlibpath_var=LD_LIBRARY_PATH
  14020. else
  14021. # With GCC up to 2.95.x, collect2 would create an import file
  14022. # for dependence libraries. The import file would start with
  14023. # the line `#! .'. This would cause the generated library to
  14024. # depend on `.', always an invalid library. This was fixed in
  14025. # development snapshots of GCC prior to 3.0.
  14026. case $host_os in
  14027. aix4 | aix4.[01] | aix4.[01].*)
  14028. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14029. echo ' yes '
  14030. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  14031. :
  14032. else
  14033. can_build_shared=no
  14034. fi
  14035. ;;
  14036. esac
  14037. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14038. # soname into executable. Probably we can add versioning support to
  14039. # collect2, so additional links can be useful in future.
  14040. if test "$aix_use_runtimelinking" = yes; then
  14041. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14042. # instead of lib<name>.a to let people know that these are not
  14043. # typical AIX shared libraries.
  14044. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14045. else
  14046. # We preserve .a as extension for shared libraries through AIX4.2
  14047. # and later when we are not doing run time linking.
  14048. library_names_spec='${libname}${release}.a $libname.a'
  14049. soname_spec='${libname}${release}${shared_ext}$major'
  14050. fi
  14051. shlibpath_var=LIBPATH
  14052. fi
  14053. ;;
  14054. amigaos*)
  14055. case $host_cpu in
  14056. powerpc)
  14057. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14058. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14059. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14060. ;;
  14061. m68k)
  14062. library_names_spec='$libname.ixlibrary $libname.a'
  14063. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14064. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  14065. ;;
  14066. esac
  14067. ;;
  14068. beos*)
  14069. library_names_spec='${libname}${shared_ext}'
  14070. dynamic_linker="$host_os ld.so"
  14071. shlibpath_var=LIBRARY_PATH
  14072. ;;
  14073. bsdi[45]*)
  14074. version_type=linux # correct to gnu/linux during the next big refactor
  14075. need_version=no
  14076. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14077. soname_spec='${libname}${release}${shared_ext}$major'
  14078. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14079. shlibpath_var=LD_LIBRARY_PATH
  14080. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14081. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14082. # the default ld.so.conf also contains /usr/contrib/lib and
  14083. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14084. # libtool to hard-code these into programs
  14085. ;;
  14086. cygwin* | mingw* | pw32* | cegcc*)
  14087. version_type=windows
  14088. shrext_cmds=".dll"
  14089. need_version=no
  14090. need_lib_prefix=no
  14091. case $GCC,$cc_basename in
  14092. yes,*)
  14093. # gcc
  14094. library_names_spec='$libname.dll.a'
  14095. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14096. postinstall_cmds='base_file=`basename \${file}`~
  14097. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  14098. dldir=$destdir/`dirname \$dlpath`~
  14099. test -d \$dldir || mkdir -p \$dldir~
  14100. $install_prog $dir/$dlname \$dldir/$dlname~
  14101. chmod a+x \$dldir/$dlname~
  14102. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14103. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14104. fi'
  14105. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14106. dlpath=$dir/\$dldll~
  14107. $RM \$dlpath'
  14108. shlibpath_overrides_runpath=yes
  14109. case $host_os in
  14110. cygwin*)
  14111. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14112. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14113. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  14114. ;;
  14115. mingw* | cegcc*)
  14116. # MinGW DLLs use traditional 'lib' prefix
  14117. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14118. ;;
  14119. pw32*)
  14120. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14121. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14122. ;;
  14123. esac
  14124. dynamic_linker='Win32 ld.exe'
  14125. ;;
  14126. *,cl*)
  14127. # Native MSVC
  14128. libname_spec='$name'
  14129. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14130. library_names_spec='${libname}.dll.lib'
  14131. case $build_os in
  14132. mingw*)
  14133. sys_lib_search_path_spec=
  14134. lt_save_ifs=$IFS
  14135. IFS=';'
  14136. for lt_path in $LIB
  14137. do
  14138. IFS=$lt_save_ifs
  14139. # Let DOS variable expansion print the short 8.3 style file name.
  14140. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14141. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14142. done
  14143. IFS=$lt_save_ifs
  14144. # Convert to MSYS style.
  14145. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14146. ;;
  14147. cygwin*)
  14148. # Convert to unix form, then to dos form, then back to unix form
  14149. # but this time dos style (no spaces!) so that the unix form looks
  14150. # like /cygdrive/c/PROGRA~1:/cygdr...
  14151. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14152. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14153. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14154. ;;
  14155. *)
  14156. sys_lib_search_path_spec="$LIB"
  14157. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14158. # It is most probably a Windows format PATH.
  14159. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14160. else
  14161. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14162. fi
  14163. # FIXME: find the short name or the path components, as spaces are
  14164. # common. (e.g. "Program Files" -> "PROGRA~1")
  14165. ;;
  14166. esac
  14167. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14168. postinstall_cmds='base_file=`basename \${file}`~
  14169. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  14170. dldir=$destdir/`dirname \$dlpath`~
  14171. test -d \$dldir || mkdir -p \$dldir~
  14172. $install_prog $dir/$dlname \$dldir/$dlname'
  14173. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14174. dlpath=$dir/\$dldll~
  14175. $RM \$dlpath'
  14176. shlibpath_overrides_runpath=yes
  14177. dynamic_linker='Win32 link.exe'
  14178. ;;
  14179. *)
  14180. # Assume MSVC wrapper
  14181. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14182. dynamic_linker='Win32 ld.exe'
  14183. ;;
  14184. esac
  14185. # FIXME: first we should search . and the directory the executable is in
  14186. shlibpath_var=PATH
  14187. ;;
  14188. darwin* | rhapsody*)
  14189. dynamic_linker="$host_os dyld"
  14190. version_type=darwin
  14191. need_lib_prefix=no
  14192. need_version=no
  14193. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14194. soname_spec='${libname}${release}${major}$shared_ext'
  14195. shlibpath_overrides_runpath=yes
  14196. shlibpath_var=DYLD_LIBRARY_PATH
  14197. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14198. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  14199. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14200. ;;
  14201. dgux*)
  14202. version_type=linux # correct to gnu/linux during the next big refactor
  14203. need_lib_prefix=no
  14204. need_version=no
  14205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14206. soname_spec='${libname}${release}${shared_ext}$major'
  14207. shlibpath_var=LD_LIBRARY_PATH
  14208. ;;
  14209. freebsd* | dragonfly*)
  14210. # DragonFly does not have aout. When/if they implement a new
  14211. # versioning mechanism, adjust this.
  14212. if test -x /usr/bin/objformat; then
  14213. objformat=`/usr/bin/objformat`
  14214. else
  14215. case $host_os in
  14216. freebsd[23].*) objformat=aout ;;
  14217. *) objformat=elf ;;
  14218. esac
  14219. fi
  14220. version_type=freebsd-$objformat
  14221. case $version_type in
  14222. freebsd-elf*)
  14223. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14224. need_version=no
  14225. need_lib_prefix=no
  14226. ;;
  14227. freebsd-*)
  14228. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14229. need_version=yes
  14230. ;;
  14231. esac
  14232. shlibpath_var=LD_LIBRARY_PATH
  14233. case $host_os in
  14234. freebsd2.*)
  14235. shlibpath_overrides_runpath=yes
  14236. ;;
  14237. freebsd3.[01]* | freebsdelf3.[01]*)
  14238. shlibpath_overrides_runpath=yes
  14239. hardcode_into_libs=yes
  14240. ;;
  14241. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14242. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14243. shlibpath_overrides_runpath=no
  14244. hardcode_into_libs=yes
  14245. ;;
  14246. *) # from 4.6 on, and DragonFly
  14247. shlibpath_overrides_runpath=yes
  14248. hardcode_into_libs=yes
  14249. ;;
  14250. esac
  14251. ;;
  14252. gnu*)
  14253. version_type=linux # correct to gnu/linux during the next big refactor
  14254. need_lib_prefix=no
  14255. need_version=no
  14256. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14257. soname_spec='${libname}${release}${shared_ext}$major'
  14258. shlibpath_var=LD_LIBRARY_PATH
  14259. shlibpath_overrides_runpath=no
  14260. hardcode_into_libs=yes
  14261. ;;
  14262. haiku*)
  14263. version_type=linux # correct to gnu/linux during the next big refactor
  14264. need_lib_prefix=no
  14265. need_version=no
  14266. dynamic_linker="$host_os runtime_loader"
  14267. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14268. soname_spec='${libname}${release}${shared_ext}$major'
  14269. shlibpath_var=LIBRARY_PATH
  14270. shlibpath_overrides_runpath=yes
  14271. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14272. hardcode_into_libs=yes
  14273. ;;
  14274. hpux9* | hpux10* | hpux11*)
  14275. # Give a soname corresponding to the major version so that dld.sl refuses to
  14276. # link against other versions.
  14277. version_type=sunos
  14278. need_lib_prefix=no
  14279. need_version=no
  14280. case $host_cpu in
  14281. ia64*)
  14282. shrext_cmds='.so'
  14283. hardcode_into_libs=yes
  14284. dynamic_linker="$host_os dld.so"
  14285. shlibpath_var=LD_LIBRARY_PATH
  14286. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14288. soname_spec='${libname}${release}${shared_ext}$major'
  14289. if test "X$HPUX_IA64_MODE" = X32; then
  14290. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14291. else
  14292. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14293. fi
  14294. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14295. ;;
  14296. hppa*64*)
  14297. shrext_cmds='.sl'
  14298. hardcode_into_libs=yes
  14299. dynamic_linker="$host_os dld.sl"
  14300. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14301. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14302. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14303. soname_spec='${libname}${release}${shared_ext}$major'
  14304. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14305. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14306. ;;
  14307. *)
  14308. shrext_cmds='.sl'
  14309. dynamic_linker="$host_os dld.sl"
  14310. shlibpath_var=SHLIB_PATH
  14311. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14312. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14313. soname_spec='${libname}${release}${shared_ext}$major'
  14314. ;;
  14315. esac
  14316. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14317. postinstall_cmds='chmod 555 $lib'
  14318. # or fails outright, so override atomically:
  14319. install_override_mode=555
  14320. ;;
  14321. interix[3-9]*)
  14322. version_type=linux # correct to gnu/linux during the next big refactor
  14323. need_lib_prefix=no
  14324. need_version=no
  14325. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14326. soname_spec='${libname}${release}${shared_ext}$major'
  14327. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14328. shlibpath_var=LD_LIBRARY_PATH
  14329. shlibpath_overrides_runpath=no
  14330. hardcode_into_libs=yes
  14331. ;;
  14332. irix5* | irix6* | nonstopux*)
  14333. case $host_os in
  14334. nonstopux*) version_type=nonstopux ;;
  14335. *)
  14336. if test "$lt_cv_prog_gnu_ld" = yes; then
  14337. version_type=linux # correct to gnu/linux during the next big refactor
  14338. else
  14339. version_type=irix
  14340. fi ;;
  14341. esac
  14342. need_lib_prefix=no
  14343. need_version=no
  14344. soname_spec='${libname}${release}${shared_ext}$major'
  14345. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14346. case $host_os in
  14347. irix5* | nonstopux*)
  14348. libsuff= shlibsuff=
  14349. ;;
  14350. *)
  14351. case $LD in # libtool.m4 will add one of these switches to LD
  14352. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14353. libsuff= shlibsuff= libmagic=32-bit;;
  14354. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14355. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14356. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14357. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14358. *) libsuff= shlibsuff= libmagic=never-match;;
  14359. esac
  14360. ;;
  14361. esac
  14362. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14363. shlibpath_overrides_runpath=no
  14364. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14365. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14366. hardcode_into_libs=yes
  14367. ;;
  14368. # No shared lib support for Linux oldld, aout, or coff.
  14369. linux*oldld* | linux*aout* | linux*coff*)
  14370. dynamic_linker=no
  14371. ;;
  14372. # This must be glibc/ELF.
  14373. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  14374. version_type=linux # correct to gnu/linux during the next big refactor
  14375. need_lib_prefix=no
  14376. need_version=no
  14377. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14378. soname_spec='${libname}${release}${shared_ext}$major'
  14379. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14380. shlibpath_var=LD_LIBRARY_PATH
  14381. shlibpath_overrides_runpath=no
  14382. # Some binutils ld are patched to set DT_RUNPATH
  14383. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  14384. $as_echo_n "(cached) " >&6
  14385. else
  14386. lt_cv_shlibpath_overrides_runpath=no
  14387. save_LDFLAGS=$LDFLAGS
  14388. save_libdir=$libdir
  14389. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  14390. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  14391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14392. /* end confdefs.h. */
  14393. int
  14394. main ()
  14395. {
  14396. ;
  14397. return 0;
  14398. }
  14399. _ACEOF
  14400. if ac_fn_c_try_link "$LINENO"; then :
  14401. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  14402. lt_cv_shlibpath_overrides_runpath=yes
  14403. fi
  14404. fi
  14405. rm -f core conftest.err conftest.$ac_objext \
  14406. conftest$ac_exeext conftest.$ac_ext
  14407. LDFLAGS=$save_LDFLAGS
  14408. libdir=$save_libdir
  14409. fi
  14410. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14411. # This implies no fast_install, which is unacceptable.
  14412. # Some rework will be needed to allow for fast_install
  14413. # before this can be enabled.
  14414. hardcode_into_libs=yes
  14415. # Append ld.so.conf contents to the search path
  14416. if test -f /etc/ld.so.conf; then
  14417. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  14418. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14419. fi
  14420. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14421. # powerpc, because MkLinux only supported shared libraries with the
  14422. # GNU dynamic linker. Since this was broken with cross compilers,
  14423. # most powerpc-linux boxes support dynamic linking these days and
  14424. # people can always --disable-shared, the test was removed, and we
  14425. # assume the GNU/Linux dynamic linker is in use.
  14426. dynamic_linker='GNU/Linux ld.so'
  14427. ;;
  14428. netbsd*)
  14429. version_type=sunos
  14430. need_lib_prefix=no
  14431. need_version=no
  14432. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14434. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14435. dynamic_linker='NetBSD (a.out) ld.so'
  14436. else
  14437. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14438. soname_spec='${libname}${release}${shared_ext}$major'
  14439. dynamic_linker='NetBSD ld.elf_so'
  14440. fi
  14441. shlibpath_var=LD_LIBRARY_PATH
  14442. shlibpath_overrides_runpath=yes
  14443. hardcode_into_libs=yes
  14444. ;;
  14445. newsos6)
  14446. version_type=linux # correct to gnu/linux during the next big refactor
  14447. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14448. shlibpath_var=LD_LIBRARY_PATH
  14449. shlibpath_overrides_runpath=yes
  14450. ;;
  14451. *nto* | *qnx*)
  14452. version_type=qnx
  14453. need_lib_prefix=no
  14454. need_version=no
  14455. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14456. soname_spec='${libname}${release}${shared_ext}$major'
  14457. shlibpath_var=LD_LIBRARY_PATH
  14458. shlibpath_overrides_runpath=no
  14459. hardcode_into_libs=yes
  14460. dynamic_linker='ldqnx.so'
  14461. ;;
  14462. openbsd*)
  14463. version_type=sunos
  14464. sys_lib_dlsearch_path_spec="/usr/lib"
  14465. need_lib_prefix=no
  14466. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14467. case $host_os in
  14468. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14469. *) need_version=no ;;
  14470. esac
  14471. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14472. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14473. shlibpath_var=LD_LIBRARY_PATH
  14474. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14475. case $host_os in
  14476. openbsd2.[89] | openbsd2.[89].*)
  14477. shlibpath_overrides_runpath=no
  14478. ;;
  14479. *)
  14480. shlibpath_overrides_runpath=yes
  14481. ;;
  14482. esac
  14483. else
  14484. shlibpath_overrides_runpath=yes
  14485. fi
  14486. ;;
  14487. os2*)
  14488. libname_spec='$name'
  14489. shrext_cmds=".dll"
  14490. need_lib_prefix=no
  14491. library_names_spec='$libname${shared_ext} $libname.a'
  14492. dynamic_linker='OS/2 ld.exe'
  14493. shlibpath_var=LIBPATH
  14494. ;;
  14495. osf3* | osf4* | osf5*)
  14496. version_type=osf
  14497. need_lib_prefix=no
  14498. need_version=no
  14499. soname_spec='${libname}${release}${shared_ext}$major'
  14500. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14501. shlibpath_var=LD_LIBRARY_PATH
  14502. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14503. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14504. ;;
  14505. rdos*)
  14506. dynamic_linker=no
  14507. ;;
  14508. solaris*)
  14509. version_type=linux # correct to gnu/linux during the next big refactor
  14510. need_lib_prefix=no
  14511. need_version=no
  14512. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14513. soname_spec='${libname}${release}${shared_ext}$major'
  14514. shlibpath_var=LD_LIBRARY_PATH
  14515. shlibpath_overrides_runpath=yes
  14516. hardcode_into_libs=yes
  14517. # ldd complains unless libraries are executable
  14518. postinstall_cmds='chmod +x $lib'
  14519. ;;
  14520. sunos4*)
  14521. version_type=sunos
  14522. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14523. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14524. shlibpath_var=LD_LIBRARY_PATH
  14525. shlibpath_overrides_runpath=yes
  14526. if test "$with_gnu_ld" = yes; then
  14527. need_lib_prefix=no
  14528. fi
  14529. need_version=yes
  14530. ;;
  14531. sysv4 | sysv4.3*)
  14532. version_type=linux # correct to gnu/linux during the next big refactor
  14533. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14534. soname_spec='${libname}${release}${shared_ext}$major'
  14535. shlibpath_var=LD_LIBRARY_PATH
  14536. case $host_vendor in
  14537. sni)
  14538. shlibpath_overrides_runpath=no
  14539. need_lib_prefix=no
  14540. runpath_var=LD_RUN_PATH
  14541. ;;
  14542. siemens)
  14543. need_lib_prefix=no
  14544. ;;
  14545. motorola)
  14546. need_lib_prefix=no
  14547. need_version=no
  14548. shlibpath_overrides_runpath=no
  14549. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14550. ;;
  14551. esac
  14552. ;;
  14553. sysv4*MP*)
  14554. if test -d /usr/nec ;then
  14555. version_type=linux # correct to gnu/linux during the next big refactor
  14556. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14557. soname_spec='$libname${shared_ext}.$major'
  14558. shlibpath_var=LD_LIBRARY_PATH
  14559. fi
  14560. ;;
  14561. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14562. version_type=freebsd-elf
  14563. need_lib_prefix=no
  14564. need_version=no
  14565. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14566. soname_spec='${libname}${release}${shared_ext}$major'
  14567. shlibpath_var=LD_LIBRARY_PATH
  14568. shlibpath_overrides_runpath=yes
  14569. hardcode_into_libs=yes
  14570. if test "$with_gnu_ld" = yes; then
  14571. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14572. else
  14573. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14574. case $host_os in
  14575. sco3.2v5*)
  14576. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14577. ;;
  14578. esac
  14579. fi
  14580. sys_lib_dlsearch_path_spec='/usr/lib'
  14581. ;;
  14582. tpf*)
  14583. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14584. version_type=linux # correct to gnu/linux during the next big refactor
  14585. need_lib_prefix=no
  14586. need_version=no
  14587. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14588. shlibpath_var=LD_LIBRARY_PATH
  14589. shlibpath_overrides_runpath=no
  14590. hardcode_into_libs=yes
  14591. ;;
  14592. uts4*)
  14593. version_type=linux # correct to gnu/linux during the next big refactor
  14594. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14595. soname_spec='${libname}${release}${shared_ext}$major'
  14596. shlibpath_var=LD_LIBRARY_PATH
  14597. ;;
  14598. *)
  14599. dynamic_linker=no
  14600. ;;
  14601. esac
  14602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14603. $as_echo "$dynamic_linker" >&6; }
  14604. test "$dynamic_linker" = no && can_build_shared=no
  14605. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14606. if test "$GCC" = yes; then
  14607. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14608. fi
  14609. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  14610. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  14611. fi
  14612. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  14613. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  14614. fi
  14615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14616. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14617. hardcode_action=
  14618. if test -n "$hardcode_libdir_flag_spec" ||
  14619. test -n "$runpath_var" ||
  14620. test "X$hardcode_automatic" = "Xyes" ; then
  14621. # We can hardcode non-existent directories.
  14622. if test "$hardcode_direct" != no &&
  14623. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14624. # have to relink, otherwise we might link with an installed library
  14625. # when we should be linking with a yet-to-be-installed one
  14626. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  14627. test "$hardcode_minus_L" != no; then
  14628. # Linking always hardcodes the temporary library directory.
  14629. hardcode_action=relink
  14630. else
  14631. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14632. hardcode_action=immediate
  14633. fi
  14634. else
  14635. # We cannot hardcode anything, or else we can only hardcode existing
  14636. # directories.
  14637. hardcode_action=unsupported
  14638. fi
  14639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  14640. $as_echo "$hardcode_action" >&6; }
  14641. if test "$hardcode_action" = relink ||
  14642. test "$inherit_rpath" = yes; then
  14643. # Fast installation is not supported
  14644. enable_fast_install=no
  14645. elif test "$shlibpath_overrides_runpath" = yes ||
  14646. test "$enable_shared" = no; then
  14647. # Fast installation is not necessary
  14648. enable_fast_install=needless
  14649. fi
  14650. if test "x$enable_dlopen" != xyes; then
  14651. enable_dlopen=unknown
  14652. enable_dlopen_self=unknown
  14653. enable_dlopen_self_static=unknown
  14654. else
  14655. lt_cv_dlopen=no
  14656. lt_cv_dlopen_libs=
  14657. case $host_os in
  14658. beos*)
  14659. lt_cv_dlopen="load_add_on"
  14660. lt_cv_dlopen_libs=
  14661. lt_cv_dlopen_self=yes
  14662. ;;
  14663. mingw* | pw32* | cegcc*)
  14664. lt_cv_dlopen="LoadLibrary"
  14665. lt_cv_dlopen_libs=
  14666. ;;
  14667. cygwin*)
  14668. lt_cv_dlopen="dlopen"
  14669. lt_cv_dlopen_libs=
  14670. ;;
  14671. darwin*)
  14672. # if libdl is installed we need to link against it
  14673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  14674. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  14675. if ${ac_cv_lib_dl_dlopen+:} false; then :
  14676. $as_echo_n "(cached) " >&6
  14677. else
  14678. ac_check_lib_save_LIBS=$LIBS
  14679. LIBS="-ldl $LIBS"
  14680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14681. /* end confdefs.h. */
  14682. /* Override any GCC internal prototype to avoid an error.
  14683. Use char because int might match the return type of a GCC
  14684. builtin and then its argument prototype would still apply. */
  14685. #ifdef __cplusplus
  14686. extern "C"
  14687. #endif
  14688. char dlopen ();
  14689. int
  14690. main ()
  14691. {
  14692. return dlopen ();
  14693. ;
  14694. return 0;
  14695. }
  14696. _ACEOF
  14697. if ac_fn_c_try_link "$LINENO"; then :
  14698. ac_cv_lib_dl_dlopen=yes
  14699. else
  14700. ac_cv_lib_dl_dlopen=no
  14701. fi
  14702. rm -f core conftest.err conftest.$ac_objext \
  14703. conftest$ac_exeext conftest.$ac_ext
  14704. LIBS=$ac_check_lib_save_LIBS
  14705. fi
  14706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  14707. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  14708. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  14709. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  14710. else
  14711. lt_cv_dlopen="dyld"
  14712. lt_cv_dlopen_libs=
  14713. lt_cv_dlopen_self=yes
  14714. fi
  14715. ;;
  14716. *)
  14717. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  14718. if test "x$ac_cv_func_shl_load" = xyes; then :
  14719. lt_cv_dlopen="shl_load"
  14720. else
  14721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  14722. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  14723. if ${ac_cv_lib_dld_shl_load+:} false; then :
  14724. $as_echo_n "(cached) " >&6
  14725. else
  14726. ac_check_lib_save_LIBS=$LIBS
  14727. LIBS="-ldld $LIBS"
  14728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14729. /* end confdefs.h. */
  14730. /* Override any GCC internal prototype to avoid an error.
  14731. Use char because int might match the return type of a GCC
  14732. builtin and then its argument prototype would still apply. */
  14733. #ifdef __cplusplus
  14734. extern "C"
  14735. #endif
  14736. char shl_load ();
  14737. int
  14738. main ()
  14739. {
  14740. return shl_load ();
  14741. ;
  14742. return 0;
  14743. }
  14744. _ACEOF
  14745. if ac_fn_c_try_link "$LINENO"; then :
  14746. ac_cv_lib_dld_shl_load=yes
  14747. else
  14748. ac_cv_lib_dld_shl_load=no
  14749. fi
  14750. rm -f core conftest.err conftest.$ac_objext \
  14751. conftest$ac_exeext conftest.$ac_ext
  14752. LIBS=$ac_check_lib_save_LIBS
  14753. fi
  14754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  14755. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  14756. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  14757. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  14758. else
  14759. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  14760. if test "x$ac_cv_func_dlopen" = xyes; then :
  14761. lt_cv_dlopen="dlopen"
  14762. else
  14763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  14764. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  14765. if ${ac_cv_lib_dl_dlopen+:} false; then :
  14766. $as_echo_n "(cached) " >&6
  14767. else
  14768. ac_check_lib_save_LIBS=$LIBS
  14769. LIBS="-ldl $LIBS"
  14770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14771. /* end confdefs.h. */
  14772. /* Override any GCC internal prototype to avoid an error.
  14773. Use char because int might match the return type of a GCC
  14774. builtin and then its argument prototype would still apply. */
  14775. #ifdef __cplusplus
  14776. extern "C"
  14777. #endif
  14778. char dlopen ();
  14779. int
  14780. main ()
  14781. {
  14782. return dlopen ();
  14783. ;
  14784. return 0;
  14785. }
  14786. _ACEOF
  14787. if ac_fn_c_try_link "$LINENO"; then :
  14788. ac_cv_lib_dl_dlopen=yes
  14789. else
  14790. ac_cv_lib_dl_dlopen=no
  14791. fi
  14792. rm -f core conftest.err conftest.$ac_objext \
  14793. conftest$ac_exeext conftest.$ac_ext
  14794. LIBS=$ac_check_lib_save_LIBS
  14795. fi
  14796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  14797. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  14798. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  14799. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  14800. else
  14801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  14802. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  14803. if ${ac_cv_lib_svld_dlopen+:} false; then :
  14804. $as_echo_n "(cached) " >&6
  14805. else
  14806. ac_check_lib_save_LIBS=$LIBS
  14807. LIBS="-lsvld $LIBS"
  14808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14809. /* end confdefs.h. */
  14810. /* Override any GCC internal prototype to avoid an error.
  14811. Use char because int might match the return type of a GCC
  14812. builtin and then its argument prototype would still apply. */
  14813. #ifdef __cplusplus
  14814. extern "C"
  14815. #endif
  14816. char dlopen ();
  14817. int
  14818. main ()
  14819. {
  14820. return dlopen ();
  14821. ;
  14822. return 0;
  14823. }
  14824. _ACEOF
  14825. if ac_fn_c_try_link "$LINENO"; then :
  14826. ac_cv_lib_svld_dlopen=yes
  14827. else
  14828. ac_cv_lib_svld_dlopen=no
  14829. fi
  14830. rm -f core conftest.err conftest.$ac_objext \
  14831. conftest$ac_exeext conftest.$ac_ext
  14832. LIBS=$ac_check_lib_save_LIBS
  14833. fi
  14834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  14835. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  14836. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  14837. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  14838. else
  14839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  14840. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  14841. if ${ac_cv_lib_dld_dld_link+:} false; then :
  14842. $as_echo_n "(cached) " >&6
  14843. else
  14844. ac_check_lib_save_LIBS=$LIBS
  14845. LIBS="-ldld $LIBS"
  14846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14847. /* end confdefs.h. */
  14848. /* Override any GCC internal prototype to avoid an error.
  14849. Use char because int might match the return type of a GCC
  14850. builtin and then its argument prototype would still apply. */
  14851. #ifdef __cplusplus
  14852. extern "C"
  14853. #endif
  14854. char dld_link ();
  14855. int
  14856. main ()
  14857. {
  14858. return dld_link ();
  14859. ;
  14860. return 0;
  14861. }
  14862. _ACEOF
  14863. if ac_fn_c_try_link "$LINENO"; then :
  14864. ac_cv_lib_dld_dld_link=yes
  14865. else
  14866. ac_cv_lib_dld_dld_link=no
  14867. fi
  14868. rm -f core conftest.err conftest.$ac_objext \
  14869. conftest$ac_exeext conftest.$ac_ext
  14870. LIBS=$ac_check_lib_save_LIBS
  14871. fi
  14872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  14873. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  14874. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  14875. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  14876. fi
  14877. fi
  14878. fi
  14879. fi
  14880. fi
  14881. fi
  14882. ;;
  14883. esac
  14884. if test "x$lt_cv_dlopen" != xno; then
  14885. enable_dlopen=yes
  14886. else
  14887. enable_dlopen=no
  14888. fi
  14889. case $lt_cv_dlopen in
  14890. dlopen)
  14891. save_CPPFLAGS="$CPPFLAGS"
  14892. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  14893. save_LDFLAGS="$LDFLAGS"
  14894. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  14895. save_LIBS="$LIBS"
  14896. LIBS="$lt_cv_dlopen_libs $LIBS"
  14897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  14898. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  14899. if ${lt_cv_dlopen_self+:} false; then :
  14900. $as_echo_n "(cached) " >&6
  14901. else
  14902. if test "$cross_compiling" = yes; then :
  14903. lt_cv_dlopen_self=cross
  14904. else
  14905. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  14906. lt_status=$lt_dlunknown
  14907. cat > conftest.$ac_ext <<_LT_EOF
  14908. #line $LINENO "configure"
  14909. #include "confdefs.h"
  14910. #if HAVE_DLFCN_H
  14911. #include <dlfcn.h>
  14912. #endif
  14913. #include <stdio.h>
  14914. #ifdef RTLD_GLOBAL
  14915. # define LT_DLGLOBAL RTLD_GLOBAL
  14916. #else
  14917. # ifdef DL_GLOBAL
  14918. # define LT_DLGLOBAL DL_GLOBAL
  14919. # else
  14920. # define LT_DLGLOBAL 0
  14921. # endif
  14922. #endif
  14923. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  14924. find out it does not work in some platform. */
  14925. #ifndef LT_DLLAZY_OR_NOW
  14926. # ifdef RTLD_LAZY
  14927. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  14928. # else
  14929. # ifdef DL_LAZY
  14930. # define LT_DLLAZY_OR_NOW DL_LAZY
  14931. # else
  14932. # ifdef RTLD_NOW
  14933. # define LT_DLLAZY_OR_NOW RTLD_NOW
  14934. # else
  14935. # ifdef DL_NOW
  14936. # define LT_DLLAZY_OR_NOW DL_NOW
  14937. # else
  14938. # define LT_DLLAZY_OR_NOW 0
  14939. # endif
  14940. # endif
  14941. # endif
  14942. # endif
  14943. #endif
  14944. /* When -fvisbility=hidden is used, assume the code has been annotated
  14945. correspondingly for the symbols needed. */
  14946. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  14947. int fnord () __attribute__((visibility("default")));
  14948. #endif
  14949. int fnord () { return 42; }
  14950. int main ()
  14951. {
  14952. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  14953. int status = $lt_dlunknown;
  14954. if (self)
  14955. {
  14956. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  14957. else
  14958. {
  14959. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  14960. else puts (dlerror ());
  14961. }
  14962. /* dlclose (self); */
  14963. }
  14964. else
  14965. puts (dlerror ());
  14966. return status;
  14967. }
  14968. _LT_EOF
  14969. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  14970. (eval $ac_link) 2>&5
  14971. ac_status=$?
  14972. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14973. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  14974. (./conftest; exit; ) >&5 2>/dev/null
  14975. lt_status=$?
  14976. case x$lt_status in
  14977. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  14978. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  14979. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  14980. esac
  14981. else :
  14982. # compilation failed
  14983. lt_cv_dlopen_self=no
  14984. fi
  14985. fi
  14986. rm -fr conftest*
  14987. fi
  14988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  14989. $as_echo "$lt_cv_dlopen_self" >&6; }
  14990. if test "x$lt_cv_dlopen_self" = xyes; then
  14991. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  14992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  14993. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  14994. if ${lt_cv_dlopen_self_static+:} false; then :
  14995. $as_echo_n "(cached) " >&6
  14996. else
  14997. if test "$cross_compiling" = yes; then :
  14998. lt_cv_dlopen_self_static=cross
  14999. else
  15000. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  15001. lt_status=$lt_dlunknown
  15002. cat > conftest.$ac_ext <<_LT_EOF
  15003. #line $LINENO "configure"
  15004. #include "confdefs.h"
  15005. #if HAVE_DLFCN_H
  15006. #include <dlfcn.h>
  15007. #endif
  15008. #include <stdio.h>
  15009. #ifdef RTLD_GLOBAL
  15010. # define LT_DLGLOBAL RTLD_GLOBAL
  15011. #else
  15012. # ifdef DL_GLOBAL
  15013. # define LT_DLGLOBAL DL_GLOBAL
  15014. # else
  15015. # define LT_DLGLOBAL 0
  15016. # endif
  15017. #endif
  15018. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  15019. find out it does not work in some platform. */
  15020. #ifndef LT_DLLAZY_OR_NOW
  15021. # ifdef RTLD_LAZY
  15022. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  15023. # else
  15024. # ifdef DL_LAZY
  15025. # define LT_DLLAZY_OR_NOW DL_LAZY
  15026. # else
  15027. # ifdef RTLD_NOW
  15028. # define LT_DLLAZY_OR_NOW RTLD_NOW
  15029. # else
  15030. # ifdef DL_NOW
  15031. # define LT_DLLAZY_OR_NOW DL_NOW
  15032. # else
  15033. # define LT_DLLAZY_OR_NOW 0
  15034. # endif
  15035. # endif
  15036. # endif
  15037. # endif
  15038. #endif
  15039. /* When -fvisbility=hidden is used, assume the code has been annotated
  15040. correspondingly for the symbols needed. */
  15041. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  15042. int fnord () __attribute__((visibility("default")));
  15043. #endif
  15044. int fnord () { return 42; }
  15045. int main ()
  15046. {
  15047. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  15048. int status = $lt_dlunknown;
  15049. if (self)
  15050. {
  15051. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  15052. else
  15053. {
  15054. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  15055. else puts (dlerror ());
  15056. }
  15057. /* dlclose (self); */
  15058. }
  15059. else
  15060. puts (dlerror ());
  15061. return status;
  15062. }
  15063. _LT_EOF
  15064. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  15065. (eval $ac_link) 2>&5
  15066. ac_status=$?
  15067. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15068. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  15069. (./conftest; exit; ) >&5 2>/dev/null
  15070. lt_status=$?
  15071. case x$lt_status in
  15072. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  15073. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  15074. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  15075. esac
  15076. else :
  15077. # compilation failed
  15078. lt_cv_dlopen_self_static=no
  15079. fi
  15080. fi
  15081. rm -fr conftest*
  15082. fi
  15083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  15084. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  15085. fi
  15086. CPPFLAGS="$save_CPPFLAGS"
  15087. LDFLAGS="$save_LDFLAGS"
  15088. LIBS="$save_LIBS"
  15089. ;;
  15090. esac
  15091. case $lt_cv_dlopen_self in
  15092. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  15093. *) enable_dlopen_self=unknown ;;
  15094. esac
  15095. case $lt_cv_dlopen_self_static in
  15096. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  15097. *) enable_dlopen_self_static=unknown ;;
  15098. esac
  15099. fi
  15100. striplib=
  15101. old_striplib=
  15102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  15103. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  15104. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  15105. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  15106. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  15107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15108. $as_echo "yes" >&6; }
  15109. else
  15110. # FIXME - insert some real tests, host_os isn't really good enough
  15111. case $host_os in
  15112. darwin*)
  15113. if test -n "$STRIP" ; then
  15114. striplib="$STRIP -x"
  15115. old_striplib="$STRIP -S"
  15116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15117. $as_echo "yes" >&6; }
  15118. else
  15119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15120. $as_echo "no" >&6; }
  15121. fi
  15122. ;;
  15123. *)
  15124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15125. $as_echo "no" >&6; }
  15126. ;;
  15127. esac
  15128. fi
  15129. # Report which library types will actually be built
  15130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  15131. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  15132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  15133. $as_echo "$can_build_shared" >&6; }
  15134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  15135. $as_echo_n "checking whether to build shared libraries... " >&6; }
  15136. test "$can_build_shared" = "no" && enable_shared=no
  15137. # On AIX, shared libraries and static libraries use the same namespace, and
  15138. # are all built from PIC.
  15139. case $host_os in
  15140. aix3*)
  15141. test "$enable_shared" = yes && enable_static=no
  15142. if test -n "$RANLIB"; then
  15143. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  15144. postinstall_cmds='$RANLIB $lib'
  15145. fi
  15146. ;;
  15147. aix[4-9]*)
  15148. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  15149. test "$enable_shared" = yes && enable_static=no
  15150. fi
  15151. ;;
  15152. esac
  15153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  15154. $as_echo "$enable_shared" >&6; }
  15155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  15156. $as_echo_n "checking whether to build static libraries... " >&6; }
  15157. # Make sure either enable_shared or enable_static is yes.
  15158. test "$enable_shared" = yes || enable_static=yes
  15159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  15160. $as_echo "$enable_static" >&6; }
  15161. fi
  15162. ac_ext=c
  15163. ac_cpp='$CPP $CPPFLAGS'
  15164. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15165. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15166. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15167. CC="$lt_save_CC"
  15168. ac_config_commands="$ac_config_commands libtool"
  15169. # Only expand once:
  15170. # Check whether --enable-largefile was given.
  15171. if test "${enable_largefile+set}" = set; then :
  15172. enableval=$enable_largefile;
  15173. fi
  15174. if test "$enable_largefile" != no; then
  15175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15176. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  15177. if ${ac_cv_sys_largefile_CC+:} false; then :
  15178. $as_echo_n "(cached) " >&6
  15179. else
  15180. ac_cv_sys_largefile_CC=no
  15181. if test "$GCC" != yes; then
  15182. ac_save_CC=$CC
  15183. while :; do
  15184. # IRIX 6.2 and later do not support large files by default,
  15185. # so use the C compiler's -n32 option if that helps.
  15186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15187. /* end confdefs.h. */
  15188. #include <sys/types.h>
  15189. /* Check that off_t can represent 2**63 - 1 correctly.
  15190. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15191. since some C++ compilers masquerading as C compilers
  15192. incorrectly reject 9223372036854775807. */
  15193. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  15194. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15195. && LARGE_OFF_T % 2147483647 == 1)
  15196. ? 1 : -1];
  15197. int
  15198. main ()
  15199. {
  15200. ;
  15201. return 0;
  15202. }
  15203. _ACEOF
  15204. if ac_fn_c_try_compile "$LINENO"; then :
  15205. break
  15206. fi
  15207. rm -f core conftest.err conftest.$ac_objext
  15208. CC="$CC -n32"
  15209. if ac_fn_c_try_compile "$LINENO"; then :
  15210. ac_cv_sys_largefile_CC=' -n32'; break
  15211. fi
  15212. rm -f core conftest.err conftest.$ac_objext
  15213. break
  15214. done
  15215. CC=$ac_save_CC
  15216. rm -f conftest.$ac_ext
  15217. fi
  15218. fi
  15219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15220. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  15221. if test "$ac_cv_sys_largefile_CC" != no; then
  15222. CC=$CC$ac_cv_sys_largefile_CC
  15223. fi
  15224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15225. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15226. if ${ac_cv_sys_file_offset_bits+:} false; then :
  15227. $as_echo_n "(cached) " >&6
  15228. else
  15229. while :; do
  15230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15231. /* end confdefs.h. */
  15232. #include <sys/types.h>
  15233. /* Check that off_t can represent 2**63 - 1 correctly.
  15234. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15235. since some C++ compilers masquerading as C compilers
  15236. incorrectly reject 9223372036854775807. */
  15237. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  15238. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15239. && LARGE_OFF_T % 2147483647 == 1)
  15240. ? 1 : -1];
  15241. int
  15242. main ()
  15243. {
  15244. ;
  15245. return 0;
  15246. }
  15247. _ACEOF
  15248. if ac_fn_c_try_compile "$LINENO"; then :
  15249. ac_cv_sys_file_offset_bits=no; break
  15250. fi
  15251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15253. /* end confdefs.h. */
  15254. #define _FILE_OFFSET_BITS 64
  15255. #include <sys/types.h>
  15256. /* Check that off_t can represent 2**63 - 1 correctly.
  15257. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15258. since some C++ compilers masquerading as C compilers
  15259. incorrectly reject 9223372036854775807. */
  15260. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  15261. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15262. && LARGE_OFF_T % 2147483647 == 1)
  15263. ? 1 : -1];
  15264. int
  15265. main ()
  15266. {
  15267. ;
  15268. return 0;
  15269. }
  15270. _ACEOF
  15271. if ac_fn_c_try_compile "$LINENO"; then :
  15272. ac_cv_sys_file_offset_bits=64; break
  15273. fi
  15274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15275. ac_cv_sys_file_offset_bits=unknown
  15276. break
  15277. done
  15278. fi
  15279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15280. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  15281. case $ac_cv_sys_file_offset_bits in #(
  15282. no | unknown) ;;
  15283. *)
  15284. cat >>confdefs.h <<_ACEOF
  15285. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  15286. _ACEOF
  15287. ;;
  15288. esac
  15289. rm -rf conftest*
  15290. if test $ac_cv_sys_file_offset_bits = unknown; then
  15291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15292. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  15293. if ${ac_cv_sys_large_files+:} false; then :
  15294. $as_echo_n "(cached) " >&6
  15295. else
  15296. while :; do
  15297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15298. /* end confdefs.h. */
  15299. #include <sys/types.h>
  15300. /* Check that off_t can represent 2**63 - 1 correctly.
  15301. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15302. since some C++ compilers masquerading as C compilers
  15303. incorrectly reject 9223372036854775807. */
  15304. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  15305. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15306. && LARGE_OFF_T % 2147483647 == 1)
  15307. ? 1 : -1];
  15308. int
  15309. main ()
  15310. {
  15311. ;
  15312. return 0;
  15313. }
  15314. _ACEOF
  15315. if ac_fn_c_try_compile "$LINENO"; then :
  15316. ac_cv_sys_large_files=no; break
  15317. fi
  15318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15320. /* end confdefs.h. */
  15321. #define _LARGE_FILES 1
  15322. #include <sys/types.h>
  15323. /* Check that off_t can represent 2**63 - 1 correctly.
  15324. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15325. since some C++ compilers masquerading as C compilers
  15326. incorrectly reject 9223372036854775807. */
  15327. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  15328. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15329. && LARGE_OFF_T % 2147483647 == 1)
  15330. ? 1 : -1];
  15331. int
  15332. main ()
  15333. {
  15334. ;
  15335. return 0;
  15336. }
  15337. _ACEOF
  15338. if ac_fn_c_try_compile "$LINENO"; then :
  15339. ac_cv_sys_large_files=1; break
  15340. fi
  15341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15342. ac_cv_sys_large_files=unknown
  15343. break
  15344. done
  15345. fi
  15346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15347. $as_echo "$ac_cv_sys_large_files" >&6; }
  15348. case $ac_cv_sys_large_files in #(
  15349. no | unknown) ;;
  15350. *)
  15351. cat >>confdefs.h <<_ACEOF
  15352. #define _LARGE_FILES $ac_cv_sys_large_files
  15353. _ACEOF
  15354. ;;
  15355. esac
  15356. rm -rf conftest*
  15357. fi
  15358. fi
  15359. # Check for common libc routines redefined by os.h
  15360. for ac_func in strlcpy strlcat strndup
  15361. do :
  15362. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15363. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15364. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15365. cat >>confdefs.h <<_ACEOF
  15366. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15367. _ACEOF
  15368. fi
  15369. done
  15370. # Platform specific settings
  15371. case $host_os in
  15372. *linux*)
  15373. backlight_helper=yes
  15374. ;;
  15375. esac
  15376. # Check whether --enable-backlight was given.
  15377. if test "${enable_backlight+set}" = set; then :
  15378. enableval=$enable_backlight; backlight="$enableval"
  15379. else
  15380. backlight="yes"
  15381. fi
  15382. if test "x$backlight" = "xyes"; then
  15383. $as_echo "#define USE_BACKLIGHT 1" >>confdefs.h
  15384. fi
  15385. # Check whether --enable-backlight-helper was given.
  15386. if test "${enable_backlight_helper+set}" = set; then :
  15387. enableval=$enable_backlight_helper; backlight_helper="$enableval"
  15388. fi
  15389. if test "x$backlight" = "xyes" -a "x$backlight_helper" = "xyes"; then
  15390. BUILD_BACKLIGHT_HELPER_TRUE=
  15391. BUILD_BACKLIGHT_HELPER_FALSE='#'
  15392. else
  15393. BUILD_BACKLIGHT_HELPER_TRUE='#'
  15394. BUILD_BACKLIGHT_HELPER_FALSE=
  15395. fi
  15396. if test "x$backlight_helper" = "xyes"; then
  15397. tools_msg="$tools_msg xf86-video-intel-backlight-helper"
  15398. $as_echo "#define USE_BACKLIGHT_HELPER 1" >>confdefs.h
  15399. fi
  15400. # Are we in a git checkout?
  15401. dot_git=no
  15402. if test -e .git; then
  15403. $as_echo "#define HAVE_DOT_GIT 1" >>confdefs.h
  15404. dot_git=yes
  15405. fi
  15406. if test "x$dot_git" = "xyes"; then
  15407. HAVE_DOT_GIT_TRUE=
  15408. HAVE_DOT_GIT_FALSE='#'
  15409. else
  15410. HAVE_DOT_GIT_TRUE='#'
  15411. HAVE_DOT_GIT_FALSE=
  15412. fi
  15413. # If so, we include the git description in our logs for sanity checking.
  15414. #
  15415. # However, for people not running their own drivers this is just noise.
  15416. # So we copy the xserver's builderstring idiom to allow for this to be
  15417. # overridden and perhaps replaced with something more useful.
  15418. # Check whether --with-builderstring was given.
  15419. if test "${with_builderstring+set}" = set; then :
  15420. withval=$with_builderstring; BUILDERSTRING="$withval"
  15421. else
  15422. BUILDERSTRING="x-magic-git-describe"
  15423. fi
  15424. if test "x$BUILDERSTRING" = "xx-magic-git-describe" -a "x$dot_git" = "xyes"; then
  15425. $as_echo "#define USE_GIT_DESCRIBE 1" >>confdefs.h
  15426. else
  15427. if test "x$BUILDERSTRING" != x -a "x$BUILDERSTRING" != "xno" -a "x$BUILDERSTRING" != xx-magic-git-describe; then
  15428. cat >>confdefs.h <<_ACEOF
  15429. #define BUILDER_DESCRIPTION "$BUILDERSTRING"
  15430. _ACEOF
  15431. fi
  15432. fi
  15433. # Check whether --enable-gen4asm was given.
  15434. if test "${enable_gen4asm+set}" = set; then :
  15435. enableval=$enable_gen4asm; ASM="$enableval"
  15436. else
  15437. ASM="no"
  15438. fi
  15439. gen4asm=no
  15440. if test "x$ASM" != "xno"; then
  15441. # Check whether --with-gen4asm was given.
  15442. if test "${with_gen4asm+set}" = set; then :
  15443. withval=$with_gen4asm; path="$withval"
  15444. else
  15445. path=""
  15446. fi
  15447. if test -n "$path" ; then
  15448. gen4asm=yes
  15449. else
  15450. pkg_failed=no
  15451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEN4ASM" >&5
  15452. $as_echo_n "checking for GEN4ASM... " >&6; }
  15453. if test -n "$GEN4ASM_CFLAGS"; then
  15454. pkg_cv_GEN4ASM_CFLAGS="$GEN4ASM_CFLAGS"
  15455. elif test -n "$PKG_CONFIG"; then
  15456. if test -n "$PKG_CONFIG" && \
  15457. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.2\""; } >&5
  15458. ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.2") 2>&5
  15459. ac_status=$?
  15460. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15461. test $ac_status = 0; }; then
  15462. pkg_cv_GEN4ASM_CFLAGS=`$PKG_CONFIG --cflags "intel-gen4asm >= 1.2" 2>/dev/null`
  15463. test "x$?" != "x0" && pkg_failed=yes
  15464. else
  15465. pkg_failed=yes
  15466. fi
  15467. else
  15468. pkg_failed=untried
  15469. fi
  15470. if test -n "$GEN4ASM_LIBS"; then
  15471. pkg_cv_GEN4ASM_LIBS="$GEN4ASM_LIBS"
  15472. elif test -n "$PKG_CONFIG"; then
  15473. if test -n "$PKG_CONFIG" && \
  15474. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.2\""; } >&5
  15475. ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.2") 2>&5
  15476. ac_status=$?
  15477. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15478. test $ac_status = 0; }; then
  15479. pkg_cv_GEN4ASM_LIBS=`$PKG_CONFIG --libs "intel-gen4asm >= 1.2" 2>/dev/null`
  15480. test "x$?" != "x0" && pkg_failed=yes
  15481. else
  15482. pkg_failed=yes
  15483. fi
  15484. else
  15485. pkg_failed=untried
  15486. fi
  15487. if test $pkg_failed = yes; then
  15488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15489. $as_echo "no" >&6; }
  15490. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15491. _pkg_short_errors_supported=yes
  15492. else
  15493. _pkg_short_errors_supported=no
  15494. fi
  15495. if test $_pkg_short_errors_supported = yes; then
  15496. GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "intel-gen4asm >= 1.2" 2>&1`
  15497. else
  15498. GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "intel-gen4asm >= 1.2" 2>&1`
  15499. fi
  15500. # Put the nasty error message in config.log where it belongs
  15501. echo "$GEN4ASM_PKG_ERRORS" >&5
  15502. gen4asm=no
  15503. elif test $pkg_failed = untried; then
  15504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15505. $as_echo "no" >&6; }
  15506. gen4asm=no
  15507. else
  15508. GEN4ASM_CFLAGS=$pkg_cv_GEN4ASM_CFLAGS
  15509. GEN4ASM_LIBS=$pkg_cv_GEN4ASM_LIBS
  15510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15511. $as_echo "yes" >&6; }
  15512. gen4asm=yes
  15513. fi
  15514. if test "x$ASM" = "xyes" -a "x$gen4asm" != "xyes"; then
  15515. as_fn_error $? "intel-gen4asm support requested but not found" "$LINENO" 5
  15516. fi
  15517. fi
  15518. if test "x$gen4asm" = "xyes"; then
  15519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to use for intel-gen4asm" >&5
  15520. $as_echo_n "checking path to use for intel-gen4asm... " >&6; }
  15521. if test -n "$path" ; then
  15522. INTEL_GEN4ASM="$path"
  15523. else
  15524. INTEL_GEN4ASM="`pkg-config intel-gen4asm --variable=exec_prefix`/bin/intel-gen4asm"
  15525. fi
  15526. if ! test -e "$INTEL_GEN4ASM"; then
  15527. as_fn_error $? "intel-gen4asm enabled, but not found. Tried '$INTEL_GEN4ASM'." "$LINENO" 5
  15528. fi
  15529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTEL_GEN4ASM" >&5
  15530. $as_echo "$INTEL_GEN4ASM" >&6; }
  15531. fi
  15532. fi
  15533. if test "x$gen4asm" = "xyes"; then
  15534. HAVE_GEN4ASM_TRUE=
  15535. HAVE_GEN4ASM_FALSE='#'
  15536. else
  15537. HAVE_GEN4ASM_TRUE='#'
  15538. HAVE_GEN4ASM_FALSE=
  15539. fi
  15540. # Check for atomic intrinsics
  15541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native atomic primitives" >&5
  15542. $as_echo_n "checking for native atomic primitives... " >&6; }
  15543. if ${intel_cv_atomic_primitives+:} false; then :
  15544. $as_echo_n "(cached) " >&6
  15545. else
  15546. intel_cv_atomic_primitives="none"
  15547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15548. /* end confdefs.h. */
  15549. int atomic_add(int i) { return __sync_fetch_and_add (&i, 1); }
  15550. int atomic_cmpxchg(int i, int j, int k) { return __sync_val_compare_and_swap (&i, j, k); }
  15551. int
  15552. main ()
  15553. {
  15554. ;
  15555. return 0;
  15556. }
  15557. _ACEOF
  15558. if ac_fn_c_try_link "$LINENO"; then :
  15559. intel_cv_atomic_primitives="Intel"
  15560. fi
  15561. rm -f core conftest.err conftest.$ac_objext \
  15562. conftest$ac_exeext conftest.$ac_ext
  15563. if test "x$intel_cv_atomic_primitives" = "xnone"; then
  15564. ac_fn_c_check_header_mongrel "$LINENO" "atomic_ops.h" "ac_cv_header_atomic_ops_h" "$ac_includes_default"
  15565. if test "x$ac_cv_header_atomic_ops_h" = xyes; then :
  15566. intel_cv_atomic_primitives="libatomic-ops"
  15567. fi
  15568. fi
  15569. # atomic functions defined in <atomic.h> & libc on Solaris
  15570. if test "x$intel_cv_atomic_primitives" = "xnone"; then
  15571. ac_fn_c_check_func "$LINENO" "atomic_cas_uint" "ac_cv_func_atomic_cas_uint"
  15572. if test "x$ac_cv_func_atomic_cas_uint" = xyes; then :
  15573. intel_cv_atomic_primitives="Solaris"
  15574. fi
  15575. fi
  15576. fi
  15577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $intel_cv_atomic_primitives" >&5
  15578. $as_echo "$intel_cv_atomic_primitives" >&6; }
  15579. if test "x$intel_cv_atomic_primitives" = "xIntel"; then
  15580. $as_echo "#define HAVE_ATOMIC_PRIMITIVES 1" >>confdefs.h
  15581. fi
  15582. if test "x$intel_cv_atomic_primitives" = "xlibatomic-ops"; then
  15583. $as_echo "#define HAVE_LIB_ATOMIC_OPS 1" >>confdefs.h
  15584. fi
  15585. if test "x$intel_cv_atomic_primitives" = "xnone"; then
  15586. as_fn_error $? "xf86-video-intel depends upon atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package." "$LINENO" 5
  15587. fi
  15588. # Check whether --enable-udev was given.
  15589. if test "${enable_udev+set}" = set; then :
  15590. enableval=$enable_udev; UDEV="$enableval"
  15591. else
  15592. UDEV=auto
  15593. fi
  15594. if test "x$UDEV" != "xno"; then
  15595. pkg_failed=no
  15596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
  15597. $as_echo_n "checking for UDEV... " >&6; }
  15598. if test -n "$UDEV_CFLAGS"; then
  15599. pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
  15600. elif test -n "$PKG_CONFIG"; then
  15601. if test -n "$PKG_CONFIG" && \
  15602. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
  15603. ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
  15604. ac_status=$?
  15605. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15606. test $ac_status = 0; }; then
  15607. pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
  15608. test "x$?" != "x0" && pkg_failed=yes
  15609. else
  15610. pkg_failed=yes
  15611. fi
  15612. else
  15613. pkg_failed=untried
  15614. fi
  15615. if test -n "$UDEV_LIBS"; then
  15616. pkg_cv_UDEV_LIBS="$UDEV_LIBS"
  15617. elif test -n "$PKG_CONFIG"; then
  15618. if test -n "$PKG_CONFIG" && \
  15619. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
  15620. ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
  15621. ac_status=$?
  15622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15623. test $ac_status = 0; }; then
  15624. pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
  15625. test "x$?" != "x0" && pkg_failed=yes
  15626. else
  15627. pkg_failed=yes
  15628. fi
  15629. else
  15630. pkg_failed=untried
  15631. fi
  15632. if test $pkg_failed = yes; then
  15633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15634. $as_echo "no" >&6; }
  15635. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15636. _pkg_short_errors_supported=yes
  15637. else
  15638. _pkg_short_errors_supported=no
  15639. fi
  15640. if test $_pkg_short_errors_supported = yes; then
  15641. UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
  15642. else
  15643. UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
  15644. fi
  15645. # Put the nasty error message in config.log where it belongs
  15646. echo "$UDEV_PKG_ERRORS" >&5
  15647. udev="no"
  15648. elif test $pkg_failed = untried; then
  15649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15650. $as_echo "no" >&6; }
  15651. udev="no"
  15652. else
  15653. UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
  15654. UDEV_LIBS=$pkg_cv_UDEV_LIBS
  15655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15656. $as_echo "yes" >&6; }
  15657. udev="yes"
  15658. fi
  15659. if test "x$UDEV" = "xyes" -a "x$udev" != "xyes"; then
  15660. as_fn_error $? "udev support requested but not found (libudev)" "$LINENO" 5
  15661. fi
  15662. if test "x$udev" = "xyes"; then
  15663. $as_echo "#define HAVE_UDEV 1" >>confdefs.h
  15664. fi
  15665. fi
  15666. pkg_failed=no
  15667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
  15668. $as_echo_n "checking for X11... " >&6; }
  15669. if test -n "$X11_CFLAGS"; then
  15670. pkg_cv_X11_CFLAGS="$X11_CFLAGS"
  15671. elif test -n "$PKG_CONFIG"; then
  15672. if test -n "$PKG_CONFIG" && \
  15673. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng\""; } >&5
  15674. ($PKG_CONFIG --exists --print-errors "x11 xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng") 2>&5
  15675. ac_status=$?
  15676. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15677. test $ac_status = 0; }; then
  15678. pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11 xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng" 2>/dev/null`
  15679. test "x$?" != "x0" && pkg_failed=yes
  15680. else
  15681. pkg_failed=yes
  15682. fi
  15683. else
  15684. pkg_failed=untried
  15685. fi
  15686. if test -n "$X11_LIBS"; then
  15687. pkg_cv_X11_LIBS="$X11_LIBS"
  15688. elif test -n "$PKG_CONFIG"; then
  15689. if test -n "$PKG_CONFIG" && \
  15690. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng\""; } >&5
  15691. ($PKG_CONFIG --exists --print-errors "x11 xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng") 2>&5
  15692. ac_status=$?
  15693. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15694. test $ac_status = 0; }; then
  15695. pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11 xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng" 2>/dev/null`
  15696. test "x$?" != "x0" && pkg_failed=yes
  15697. else
  15698. pkg_failed=yes
  15699. fi
  15700. else
  15701. pkg_failed=untried
  15702. fi
  15703. if test $pkg_failed = yes; then
  15704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15705. $as_echo "no" >&6; }
  15706. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15707. _pkg_short_errors_supported=yes
  15708. else
  15709. _pkg_short_errors_supported=no
  15710. fi
  15711. if test $_pkg_short_errors_supported = yes; then
  15712. X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng" 2>&1`
  15713. else
  15714. X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng" 2>&1`
  15715. fi
  15716. # Put the nasty error message in config.log where it belongs
  15717. echo "$X11_PKG_ERRORS" >&5
  15718. x11="no"
  15719. elif test $pkg_failed = untried; then
  15720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15721. $as_echo "no" >&6; }
  15722. x11="no"
  15723. else
  15724. X11_CFLAGS=$pkg_cv_X11_CFLAGS
  15725. X11_LIBS=$pkg_cv_X11_LIBS
  15726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15727. $as_echo "yes" >&6; }
  15728. x11="yes"
  15729. fi
  15730. if test "x$x11" = "xyes"; then
  15731. HAVE_X11_TRUE=
  15732. HAVE_X11_FALSE='#'
  15733. else
  15734. HAVE_X11_TRUE='#'
  15735. HAVE_X11_FALSE=
  15736. fi
  15737. cpuid="yes"
  15738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15739. /* end confdefs.h. */
  15740. #include <cpuid.h>
  15741. #include <stddef.h>
  15742. int
  15743. main ()
  15744. {
  15745. int eax, ebx, ecx, edx;
  15746. if (__get_cpuid_max(0, NULL) < 4)
  15747. return 0;
  15748. __cpuid_count(4, 0, eax, ebx, ecx, edx);
  15749. ;
  15750. return 0;
  15751. }
  15752. _ACEOF
  15753. if ac_fn_c_try_link "$LINENO"; then :
  15754. cpuid="yes"
  15755. else
  15756. cpuid="no"
  15757. fi
  15758. rm -f core conftest.err conftest.$ac_objext \
  15759. conftest$ac_exeext conftest.$ac_ext
  15760. if test "x$cpuid" = "xyes"; then
  15761. $as_echo "#define HAVE_CPUID_H 1" >>confdefs.h
  15762. fi
  15763. shm=yes
  15764. for ac_header in sys/ipc.h sys/ipc.h
  15765. do :
  15766. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15767. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15768. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15769. cat >>confdefs.h <<_ACEOF
  15770. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15771. _ACEOF
  15772. else
  15773. shm="no"
  15774. fi
  15775. done
  15776. for ac_header in X11/extensions/XShm.h
  15777. do :
  15778. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XShm.h" "ac_cv_header_X11_extensions_XShm_h" "
  15779. #include <X11/Xlibint.h>
  15780. #include <X11/Xproto.h>
  15781. "
  15782. if test "x$ac_cv_header_X11_extensions_XShm_h" = xyes; then :
  15783. cat >>confdefs.h <<_ACEOF
  15784. #define HAVE_X11_EXTENSIONS_XSHM_H 1
  15785. _ACEOF
  15786. else
  15787. shm="no"
  15788. fi
  15789. done
  15790. for ac_header in X11/extensions/shmproto.h X11/extensions/shmstr.h
  15791. do :
  15792. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15793. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  15794. #include <X11/Xlibint.h>
  15795. #include <X11/Xproto.h>
  15796. "
  15797. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15798. cat >>confdefs.h <<_ACEOF
  15799. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15800. _ACEOF
  15801. fi
  15802. done
  15803. if test "x$ac_cv_header_X11_extensions_shmproto_h" != "xyes" -a "x$ac_cv_header_X11_extensions_shmstr_h" != "xyes"; then
  15804. shm="no"
  15805. fi
  15806. if test "x$shm" = "xyes"; then
  15807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shmctl IPC_RMID allows subsequent attaches" >&5
  15808. $as_echo_n "checking whether shmctl IPC_RMID allows subsequent attaches... " >&6; }
  15809. if test "$cross_compiling" = yes; then :
  15810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming no" >&5
  15811. $as_echo "assuming no" >&6; }
  15812. else
  15813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15814. /* end confdefs.h. */
  15815. #include <sys/types.h>
  15816. #include <sys/ipc.h>
  15817. #include <sys/shm.h>
  15818. int main()
  15819. {
  15820. char *shmaddr;
  15821. int id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
  15822. if (id == -1) return 2;
  15823. shmaddr = shmat (id, 0, 0);
  15824. shmctl (id, IPC_RMID, 0);
  15825. if ((char*) shmat (id, 0, 0) == (char*) -1) {
  15826. shmdt (shmaddr);
  15827. return 1;
  15828. }
  15829. shmdt (shmaddr);
  15830. shmdt (shmaddr);
  15831. return 0;
  15832. }
  15833. _ACEOF
  15834. if ac_fn_c_try_run "$LINENO"; then :
  15835. $as_echo "#define IPC_RMID_DEFERRED_RELEASE 1" >>confdefs.h
  15836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15837. $as_echo "yes" >&6; }
  15838. else
  15839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15840. $as_echo "no" >&6; }
  15841. fi
  15842. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15843. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15844. fi
  15845. $as_echo "#define HAVE_MIT_SHM 1" >>confdefs.h
  15846. fi
  15847. pkg_failed=no
  15848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11_DRI3" >&5
  15849. $as_echo_n "checking for X11_DRI3... " >&6; }
  15850. if test -n "$X11_DRI3_CFLAGS"; then
  15851. pkg_cv_X11_DRI3_CFLAGS="$X11_DRI3_CFLAGS"
  15852. elif test -n "$PKG_CONFIG"; then
  15853. if test -n "$PKG_CONFIG" && \
  15854. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-dri3 xcb-sync xcb-present x11-xcb xshmfence x11 xrender xext libdrm\""; } >&5
  15855. ($PKG_CONFIG --exists --print-errors "xcb-dri3 xcb-sync xcb-present x11-xcb xshmfence x11 xrender xext libdrm") 2>&5
  15856. ac_status=$?
  15857. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15858. test $ac_status = 0; }; then
  15859. pkg_cv_X11_DRI3_CFLAGS=`$PKG_CONFIG --cflags "xcb-dri3 xcb-sync xcb-present x11-xcb xshmfence x11 xrender xext libdrm" 2>/dev/null`
  15860. test "x$?" != "x0" && pkg_failed=yes
  15861. else
  15862. pkg_failed=yes
  15863. fi
  15864. else
  15865. pkg_failed=untried
  15866. fi
  15867. if test -n "$X11_DRI3_LIBS"; then
  15868. pkg_cv_X11_DRI3_LIBS="$X11_DRI3_LIBS"
  15869. elif test -n "$PKG_CONFIG"; then
  15870. if test -n "$PKG_CONFIG" && \
  15871. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-dri3 xcb-sync xcb-present x11-xcb xshmfence x11 xrender xext libdrm\""; } >&5
  15872. ($PKG_CONFIG --exists --print-errors "xcb-dri3 xcb-sync xcb-present x11-xcb xshmfence x11 xrender xext libdrm") 2>&5
  15873. ac_status=$?
  15874. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15875. test $ac_status = 0; }; then
  15876. pkg_cv_X11_DRI3_LIBS=`$PKG_CONFIG --libs "xcb-dri3 xcb-sync xcb-present x11-xcb xshmfence x11 xrender xext libdrm" 2>/dev/null`
  15877. test "x$?" != "x0" && pkg_failed=yes
  15878. else
  15879. pkg_failed=yes
  15880. fi
  15881. else
  15882. pkg_failed=untried
  15883. fi
  15884. if test $pkg_failed = yes; then
  15885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15886. $as_echo "no" >&6; }
  15887. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15888. _pkg_short_errors_supported=yes
  15889. else
  15890. _pkg_short_errors_supported=no
  15891. fi
  15892. if test $_pkg_short_errors_supported = yes; then
  15893. X11_DRI3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-dri3 xcb-sync xcb-present x11-xcb xshmfence x11 xrender xext libdrm" 2>&1`
  15894. else
  15895. X11_DRI3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-dri3 xcb-sync xcb-present x11-xcb xshmfence x11 xrender xext libdrm" 2>&1`
  15896. fi
  15897. # Put the nasty error message in config.log where it belongs
  15898. echo "$X11_DRI3_PKG_ERRORS" >&5
  15899. x11_dri3="no"
  15900. elif test $pkg_failed = untried; then
  15901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15902. $as_echo "no" >&6; }
  15903. x11_dri3="no"
  15904. else
  15905. X11_DRI3_CFLAGS=$pkg_cv_X11_DRI3_CFLAGS
  15906. X11_DRI3_LIBS=$pkg_cv_X11_DRI3_LIBS
  15907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15908. $as_echo "yes" >&6; }
  15909. x11_dri3="yes"
  15910. fi
  15911. if test "x$x11_dri3" = "xyes" -a "x$shm" = "xyes"; then
  15912. X11_DRI3_TRUE=
  15913. X11_DRI3_FALSE='#'
  15914. else
  15915. X11_DRI3_TRUE='#'
  15916. X11_DRI3_FALSE=
  15917. fi
  15918. if test "x$shm" = "xyes"; then
  15919. X11_SHM_TRUE=
  15920. X11_SHM_FALSE='#'
  15921. else
  15922. X11_SHM_TRUE='#'
  15923. X11_SHM_FALSE=
  15924. fi
  15925. # Check whether --enable-tools was given.
  15926. if test "${enable_tools+set}" = set; then :
  15927. enableval=$enable_tools; tools="$enableval"
  15928. else
  15929. tools="auto"
  15930. fi
  15931. if test "x$shm" != "xyes"; then
  15932. if test "x$tools" = "xyes"; then
  15933. as_fn_error $? "Incomplete requirements for extra tools, X11 MIT-SHM extension required" "$LINENO" 5
  15934. fi
  15935. tools="no"
  15936. fi
  15937. if test "x$tools" != "xno"; then
  15938. ivo_requires="xrandr xdamage xfixes xcursor xtst xrender xext x11 pixman-1"
  15939. extra_cflags=""
  15940. ignore="xinerama"
  15941. pkg_failed=no
  15942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IVO_EXTRA" >&5
  15943. $as_echo_n "checking for IVO_EXTRA... " >&6; }
  15944. if test -n "$IVO_EXTRA_CFLAGS"; then
  15945. pkg_cv_IVO_EXTRA_CFLAGS="$IVO_EXTRA_CFLAGS"
  15946. elif test -n "$PKG_CONFIG"; then
  15947. if test -n "$PKG_CONFIG" && \
  15948. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ignore\""; } >&5
  15949. ($PKG_CONFIG --exists --print-errors "$ignore") 2>&5
  15950. ac_status=$?
  15951. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15952. test $ac_status = 0; }; then
  15953. pkg_cv_IVO_EXTRA_CFLAGS=`$PKG_CONFIG --cflags "$ignore" 2>/dev/null`
  15954. test "x$?" != "x0" && pkg_failed=yes
  15955. else
  15956. pkg_failed=yes
  15957. fi
  15958. else
  15959. pkg_failed=untried
  15960. fi
  15961. if test -n "$IVO_EXTRA_LIBS"; then
  15962. pkg_cv_IVO_EXTRA_LIBS="$IVO_EXTRA_LIBS"
  15963. elif test -n "$PKG_CONFIG"; then
  15964. if test -n "$PKG_CONFIG" && \
  15965. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ignore\""; } >&5
  15966. ($PKG_CONFIG --exists --print-errors "$ignore") 2>&5
  15967. ac_status=$?
  15968. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15969. test $ac_status = 0; }; then
  15970. pkg_cv_IVO_EXTRA_LIBS=`$PKG_CONFIG --libs "$ignore" 2>/dev/null`
  15971. test "x$?" != "x0" && pkg_failed=yes
  15972. else
  15973. pkg_failed=yes
  15974. fi
  15975. else
  15976. pkg_failed=untried
  15977. fi
  15978. if test $pkg_failed = yes; then
  15979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15980. $as_echo "no" >&6; }
  15981. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15982. _pkg_short_errors_supported=yes
  15983. else
  15984. _pkg_short_errors_supported=no
  15985. fi
  15986. if test $_pkg_short_errors_supported = yes; then
  15987. IVO_EXTRA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$ignore" 2>&1`
  15988. else
  15989. IVO_EXTRA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$ignore" 2>&1`
  15990. fi
  15991. # Put the nasty error message in config.log where it belongs
  15992. echo "$IVO_EXTRA_PKG_ERRORS" >&5
  15993. ignore=""
  15994. elif test $pkg_failed = untried; then
  15995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15996. $as_echo "no" >&6; }
  15997. ignore=""
  15998. else
  15999. IVO_EXTRA_CFLAGS=$pkg_cv_IVO_EXTRA_CFLAGS
  16000. IVO_EXTRA_LIBS=$pkg_cv_IVO_EXTRA_LIBS
  16001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16002. $as_echo "yes" >&6; }
  16003. for ac_header in X11/extensions/Xinerama.h
  16004. do :
  16005. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlibint.h>
  16006. #include <X11/Xproto.h>
  16007. "
  16008. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  16009. cat >>confdefs.h <<_ACEOF
  16010. #define HAVE_X11_EXTENSIONS_XINERAMA_H 1
  16011. _ACEOF
  16012. ivo_requires="$ignore $ivo_requires"
  16013. fi
  16014. done
  16015. fi
  16016. ignore="xcb-dri3 xcb-sync x11-xcb xshmfence x11"
  16017. pkg_failed=no
  16018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IVO_EXTRA" >&5
  16019. $as_echo_n "checking for IVO_EXTRA... " >&6; }
  16020. if test -n "$IVO_EXTRA_CFLAGS"; then
  16021. pkg_cv_IVO_EXTRA_CFLAGS="$IVO_EXTRA_CFLAGS"
  16022. elif test -n "$PKG_CONFIG"; then
  16023. if test -n "$PKG_CONFIG" && \
  16024. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ignore\""; } >&5
  16025. ($PKG_CONFIG --exists --print-errors "$ignore") 2>&5
  16026. ac_status=$?
  16027. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16028. test $ac_status = 0; }; then
  16029. pkg_cv_IVO_EXTRA_CFLAGS=`$PKG_CONFIG --cflags "$ignore" 2>/dev/null`
  16030. test "x$?" != "x0" && pkg_failed=yes
  16031. else
  16032. pkg_failed=yes
  16033. fi
  16034. else
  16035. pkg_failed=untried
  16036. fi
  16037. if test -n "$IVO_EXTRA_LIBS"; then
  16038. pkg_cv_IVO_EXTRA_LIBS="$IVO_EXTRA_LIBS"
  16039. elif test -n "$PKG_CONFIG"; then
  16040. if test -n "$PKG_CONFIG" && \
  16041. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ignore\""; } >&5
  16042. ($PKG_CONFIG --exists --print-errors "$ignore") 2>&5
  16043. ac_status=$?
  16044. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16045. test $ac_status = 0; }; then
  16046. pkg_cv_IVO_EXTRA_LIBS=`$PKG_CONFIG --libs "$ignore" 2>/dev/null`
  16047. test "x$?" != "x0" && pkg_failed=yes
  16048. else
  16049. pkg_failed=yes
  16050. fi
  16051. else
  16052. pkg_failed=untried
  16053. fi
  16054. if test $pkg_failed = yes; then
  16055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16056. $as_echo "no" >&6; }
  16057. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16058. _pkg_short_errors_supported=yes
  16059. else
  16060. _pkg_short_errors_supported=no
  16061. fi
  16062. if test $_pkg_short_errors_supported = yes; then
  16063. IVO_EXTRA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$ignore" 2>&1`
  16064. else
  16065. IVO_EXTRA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$ignore" 2>&1`
  16066. fi
  16067. # Put the nasty error message in config.log where it belongs
  16068. echo "$IVO_EXTRA_PKG_ERRORS" >&5
  16069. ignore=""
  16070. elif test $pkg_failed = untried; then
  16071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16072. $as_echo "no" >&6; }
  16073. ignore=""
  16074. else
  16075. IVO_EXTRA_CFLAGS=$pkg_cv_IVO_EXTRA_CFLAGS
  16076. IVO_EXTRA_LIBS=$pkg_cv_IVO_EXTRA_LIBS
  16077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16078. $as_echo "yes" >&6; }
  16079. ivo_requires="$ivo_requires $ignore"; extra_cflags="-DDRI3"
  16080. fi
  16081. pkg_failed=no
  16082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IVO" >&5
  16083. $as_echo_n "checking for IVO... " >&6; }
  16084. if test -n "$IVO_CFLAGS"; then
  16085. pkg_cv_IVO_CFLAGS="$IVO_CFLAGS"
  16086. elif test -n "$PKG_CONFIG"; then
  16087. if test -n "$PKG_CONFIG" && \
  16088. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ivo_requires\""; } >&5
  16089. ($PKG_CONFIG --exists --print-errors "$ivo_requires") 2>&5
  16090. ac_status=$?
  16091. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16092. test $ac_status = 0; }; then
  16093. pkg_cv_IVO_CFLAGS=`$PKG_CONFIG --cflags "$ivo_requires" 2>/dev/null`
  16094. test "x$?" != "x0" && pkg_failed=yes
  16095. else
  16096. pkg_failed=yes
  16097. fi
  16098. else
  16099. pkg_failed=untried
  16100. fi
  16101. if test -n "$IVO_LIBS"; then
  16102. pkg_cv_IVO_LIBS="$IVO_LIBS"
  16103. elif test -n "$PKG_CONFIG"; then
  16104. if test -n "$PKG_CONFIG" && \
  16105. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ivo_requires\""; } >&5
  16106. ($PKG_CONFIG --exists --print-errors "$ivo_requires") 2>&5
  16107. ac_status=$?
  16108. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16109. test $ac_status = 0; }; then
  16110. pkg_cv_IVO_LIBS=`$PKG_CONFIG --libs "$ivo_requires" 2>/dev/null`
  16111. test "x$?" != "x0" && pkg_failed=yes
  16112. else
  16113. pkg_failed=yes
  16114. fi
  16115. else
  16116. pkg_failed=untried
  16117. fi
  16118. if test $pkg_failed = yes; then
  16119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16120. $as_echo "no" >&6; }
  16121. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16122. _pkg_short_errors_supported=yes
  16123. else
  16124. _pkg_short_errors_supported=no
  16125. fi
  16126. if test $_pkg_short_errors_supported = yes; then
  16127. IVO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$ivo_requires" 2>&1`
  16128. else
  16129. IVO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$ivo_requires" 2>&1`
  16130. fi
  16131. # Put the nasty error message in config.log where it belongs
  16132. echo "$IVO_PKG_ERRORS" >&5
  16133. ivo="no"
  16134. elif test $pkg_failed = untried; then
  16135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16136. $as_echo "no" >&6; }
  16137. ivo="no"
  16138. else
  16139. IVO_CFLAGS=$pkg_cv_IVO_CFLAGS
  16140. IVO_LIBS=$pkg_cv_IVO_LIBS
  16141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16142. $as_echo "yes" >&6; }
  16143. ivo="yes"
  16144. fi
  16145. ac_fn_c_check_header_mongrel "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default"
  16146. if test "x$ac_cv_header_sys_timerfd_h" = xyes; then :
  16147. else
  16148. ivo="no"
  16149. fi
  16150. if test "x$ivo" = "xno"; then
  16151. if test "x$tools" = "xyes"; then
  16152. as_fn_error $? "Incomplete requirements for intel-virtual-output, requires $ivo_requires" "$LINENO" 5
  16153. fi
  16154. tools="no"
  16155. fi
  16156. IVO_CFLAGS="$IVO_CFLAGS $extra_cflags"
  16157. fi
  16158. if test "x$tools" != "xno"; then
  16159. tools_msg="$tools_msg intel-virtual-output"
  16160. fi
  16161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build additional tools" >&5
  16162. $as_echo_n "checking whether to build additional tools... " >&6; }
  16163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tools" >&5
  16164. $as_echo "$tools" >&6; }
  16165. if test "x$tools" != "xno"; then
  16166. BUILD_TOOLS_TRUE=
  16167. BUILD_TOOLS_FALSE='#'
  16168. else
  16169. BUILD_TOOLS_TRUE='#'
  16170. BUILD_TOOLS_FALSE=
  16171. fi
  16172. # Define a configure option for an alternate module directory
  16173. # Check whether --with-xorg-module-dir was given.
  16174. if test "${with_xorg_module_dir+set}" = set; then :
  16175. withval=$with_xorg_module_dir; moduledir="$withval"
  16176. else
  16177. moduledir="$libdir/xorg/modules"
  16178. fi
  16179. # Check whether --enable-dri was given.
  16180. if test "${enable_dri+set}" = set; then :
  16181. enableval=$enable_dri; DRI=$enableval
  16182. else
  16183. DRI=auto
  16184. fi
  16185. # Check whether --enable-dri1 was given.
  16186. if test "${enable_dri1+set}" = set; then :
  16187. enableval=$enable_dri1; DRI1=$enableval
  16188. else
  16189. DRI1=yes
  16190. fi
  16191. # Check whether --enable-dri2 was given.
  16192. if test "${enable_dri2+set}" = set; then :
  16193. enableval=$enable_dri2; DRI2=$enableval
  16194. else
  16195. DRI2=yes
  16196. fi
  16197. # Check whether --enable-dri3 was given.
  16198. if test "${enable_dri3+set}" = set; then :
  16199. enableval=$enable_dri3; DRI3=$enableval
  16200. else
  16201. DRI3=yes
  16202. fi
  16203. # Check whether --enable-xvmc was given.
  16204. if test "${enable_xvmc+set}" = set; then :
  16205. enableval=$enable_xvmc; XVMC="$enableval"
  16206. else
  16207. XVMC="yes"
  16208. fi
  16209. # Check whether --enable-kms was given.
  16210. if test "${enable_kms+set}" = set; then :
  16211. enableval=$enable_kms; KMS="$enableval"
  16212. else
  16213. KMS="yes"
  16214. fi
  16215. # Check whether --enable-ums was given.
  16216. if test "${enable_ums+set}" = set; then :
  16217. enableval=$enable_ums; UMS="$enableval"
  16218. else
  16219. UMS="auto"
  16220. fi
  16221. # Check whether --enable-kms-only was given.
  16222. if test "${enable_kms_only+set}" = set; then :
  16223. enableval=$enable_kms_only; ONLY_KMS="$enableval"
  16224. else
  16225. ONLY_KMS="no"
  16226. fi
  16227. # Check whether --enable-ums-only was given.
  16228. if test "${enable_ums_only+set}" = set; then :
  16229. enableval=$enable_ums_only; ONLY_UMS="$enableval"
  16230. else
  16231. ONLY_UMS="no"
  16232. fi
  16233. required_xorg_server_version=1.6
  16234. required_pixman_version=0.16
  16235. if pkg-config --exists 'pixman-1 >= 0.27.1'; then
  16236. $as_echo "#define HAS_PIXMAN_GLYPHS 1" >>confdefs.h
  16237. fi
  16238. if pkg-config --exists 'pixman-1 >= 0.24.0'; then
  16239. $as_echo "#define HAS_PIXMAN_TRIANGLES 1" >>confdefs.h
  16240. fi
  16241. # Store the list of server defined optional extensions in REQUIRED_MODULES
  16242. SAVE_CFLAGS="$CFLAGS"
  16243. CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
  16244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16245. /* end confdefs.h. */
  16246. #include "xorg-server.h"
  16247. #if !defined RANDR
  16248. #error RANDR not defined
  16249. #endif
  16250. int
  16251. main ()
  16252. {
  16253. ;
  16254. return 0;
  16255. }
  16256. _ACEOF
  16257. if ac_fn_c_try_compile "$LINENO"; then :
  16258. _EXT_CHECK=yes
  16259. else
  16260. _EXT_CHECK=no
  16261. fi
  16262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16263. CFLAGS="$SAVE_CFLAGS"
  16264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
  16265. $as_echo_n "checking if RANDR is defined... " >&6; }
  16266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
  16267. $as_echo "$_EXT_CHECK" >&6; }
  16268. if test "$_EXT_CHECK" != no; then
  16269. REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
  16270. fi
  16271. SAVE_CFLAGS="$CFLAGS"
  16272. CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
  16273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16274. /* end confdefs.h. */
  16275. #include "xorg-server.h"
  16276. #if !defined RENDER
  16277. #error RENDER not defined
  16278. #endif
  16279. int
  16280. main ()
  16281. {
  16282. ;
  16283. return 0;
  16284. }
  16285. _ACEOF
  16286. if ac_fn_c_try_compile "$LINENO"; then :
  16287. _EXT_CHECK=yes
  16288. else
  16289. _EXT_CHECK=no
  16290. fi
  16291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16292. CFLAGS="$SAVE_CFLAGS"
  16293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
  16294. $as_echo_n "checking if RENDER is defined... " >&6; }
  16295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
  16296. $as_echo "$_EXT_CHECK" >&6; }
  16297. if test "$_EXT_CHECK" != no; then
  16298. REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
  16299. fi
  16300. SAVE_CFLAGS="$CFLAGS"
  16301. CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
  16302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16303. /* end confdefs.h. */
  16304. #include "xorg-server.h"
  16305. #if !defined DPMSExtension
  16306. #error DPMSExtension not defined
  16307. #endif
  16308. int
  16309. main ()
  16310. {
  16311. ;
  16312. return 0;
  16313. }
  16314. _ACEOF
  16315. if ac_fn_c_try_compile "$LINENO"; then :
  16316. _EXT_CHECK=yes
  16317. else
  16318. _EXT_CHECK=no
  16319. fi
  16320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16321. CFLAGS="$SAVE_CFLAGS"
  16322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
  16323. $as_echo_n "checking if DPMSExtension is defined... " >&6; }
  16324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
  16325. $as_echo "$_EXT_CHECK" >&6; }
  16326. if test "$_EXT_CHECK" != no; then
  16327. REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
  16328. fi
  16329. # Obtain compiler/linker options for the driver dependencies
  16330. pkg_failed=no
  16331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRM" >&5
  16332. $as_echo_n "checking for DRM... " >&6; }
  16333. if test -n "$DRM_CFLAGS"; then
  16334. pkg_cv_DRM_CFLAGS="$DRM_CFLAGS"
  16335. elif test -n "$PKG_CONFIG"; then
  16336. if test -n "$PKG_CONFIG" && \
  16337. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.20\""; } >&5
  16338. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.20") 2>&5
  16339. ac_status=$?
  16340. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16341. test $ac_status = 0; }; then
  16342. pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.20" 2>/dev/null`
  16343. test "x$?" != "x0" && pkg_failed=yes
  16344. else
  16345. pkg_failed=yes
  16346. fi
  16347. else
  16348. pkg_failed=untried
  16349. fi
  16350. if test -n "$DRM_LIBS"; then
  16351. pkg_cv_DRM_LIBS="$DRM_LIBS"
  16352. elif test -n "$PKG_CONFIG"; then
  16353. if test -n "$PKG_CONFIG" && \
  16354. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.20\""; } >&5
  16355. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.20") 2>&5
  16356. ac_status=$?
  16357. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16358. test $ac_status = 0; }; then
  16359. pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.20" 2>/dev/null`
  16360. test "x$?" != "x0" && pkg_failed=yes
  16361. else
  16362. pkg_failed=yes
  16363. fi
  16364. else
  16365. pkg_failed=untried
  16366. fi
  16367. if test $pkg_failed = yes; then
  16368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16369. $as_echo "no" >&6; }
  16370. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16371. _pkg_short_errors_supported=yes
  16372. else
  16373. _pkg_short_errors_supported=no
  16374. fi
  16375. if test $_pkg_short_errors_supported = yes; then
  16376. DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.20" 2>&1`
  16377. else
  16378. DRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.20" 2>&1`
  16379. fi
  16380. # Put the nasty error message in config.log where it belongs
  16381. echo "$DRM_PKG_ERRORS" >&5
  16382. as_fn_error $? "Package requirements (libdrm >= 2.4.20) were not met:
  16383. $DRM_PKG_ERRORS
  16384. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  16385. installed software in a non-standard prefix.
  16386. Alternatively, you may set the environment variables DRM_CFLAGS
  16387. and DRM_LIBS to avoid the need to call pkg-config.
  16388. See the pkg-config man page for more details." "$LINENO" 5
  16389. elif test $pkg_failed = untried; then
  16390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16391. $as_echo "no" >&6; }
  16392. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16393. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16394. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  16395. is in your PATH or set the PKG_CONFIG environment variable to the full
  16396. path to pkg-config.
  16397. Alternatively, you may set the environment variables DRM_CFLAGS
  16398. and DRM_LIBS to avoid the need to call pkg-config.
  16399. See the pkg-config man page for more details.
  16400. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  16401. See \`config.log' for more details" "$LINENO" 5; }
  16402. else
  16403. DRM_CFLAGS=$pkg_cv_DRM_CFLAGS
  16404. DRM_LIBS=$pkg_cv_DRM_LIBS
  16405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16406. $as_echo "yes" >&6; }
  16407. fi # libdrm_intel is checked separately
  16408. pkg_failed=no
  16409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
  16410. $as_echo_n "checking for PCIACCESS... " >&6; }
  16411. if test -n "$PCIACCESS_CFLAGS"; then
  16412. pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
  16413. elif test -n "$PKG_CONFIG"; then
  16414. if test -n "$PKG_CONFIG" && \
  16415. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
  16416. ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
  16417. ac_status=$?
  16418. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16419. test $ac_status = 0; }; then
  16420. pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
  16421. test "x$?" != "x0" && pkg_failed=yes
  16422. else
  16423. pkg_failed=yes
  16424. fi
  16425. else
  16426. pkg_failed=untried
  16427. fi
  16428. if test -n "$PCIACCESS_LIBS"; then
  16429. pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
  16430. elif test -n "$PKG_CONFIG"; then
  16431. if test -n "$PKG_CONFIG" && \
  16432. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
  16433. ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
  16434. ac_status=$?
  16435. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16436. test $ac_status = 0; }; then
  16437. pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
  16438. test "x$?" != "x0" && pkg_failed=yes
  16439. else
  16440. pkg_failed=yes
  16441. fi
  16442. else
  16443. pkg_failed=untried
  16444. fi
  16445. if test $pkg_failed = yes; then
  16446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16447. $as_echo "no" >&6; }
  16448. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16449. _pkg_short_errors_supported=yes
  16450. else
  16451. _pkg_short_errors_supported=no
  16452. fi
  16453. if test $_pkg_short_errors_supported = yes; then
  16454. PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
  16455. else
  16456. PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
  16457. fi
  16458. # Put the nasty error message in config.log where it belongs
  16459. echo "$PCIACCESS_PKG_ERRORS" >&5
  16460. as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met:
  16461. $PCIACCESS_PKG_ERRORS
  16462. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  16463. installed software in a non-standard prefix.
  16464. Alternatively, you may set the environment variables PCIACCESS_CFLAGS
  16465. and PCIACCESS_LIBS to avoid the need to call pkg-config.
  16466. See the pkg-config man page for more details." "$LINENO" 5
  16467. elif test $pkg_failed = untried; then
  16468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16469. $as_echo "no" >&6; }
  16470. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16471. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16472. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  16473. is in your PATH or set the PKG_CONFIG environment variable to the full
  16474. path to pkg-config.
  16475. Alternatively, you may set the environment variables PCIACCESS_CFLAGS
  16476. and PCIACCESS_LIBS to avoid the need to call pkg-config.
  16477. See the pkg-config man page for more details.
  16478. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  16479. See \`config.log' for more details" "$LINENO" 5; }
  16480. else
  16481. PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
  16482. PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
  16483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16484. $as_echo "yes" >&6; }
  16485. fi
  16486. # Check whether --enable-sna was given.
  16487. if test "${enable_sna+set}" = set; then :
  16488. enableval=$enable_sna; SNA="$enableval"
  16489. else
  16490. SNA=auto
  16491. fi
  16492. if test "x$SNA" != "xno"; then
  16493. $as_echo "#define USE_SNA 1" >>confdefs.h
  16494. for ac_header in sys/sysinfo.h
  16495. do :
  16496. ac_fn_c_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default"
  16497. if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then :
  16498. cat >>confdefs.h <<_ACEOF
  16499. #define HAVE_SYS_SYSINFO_H 1
  16500. _ACEOF
  16501. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  16502. # ----------------------------------------------------
  16503. # Tries to find if the field MEMBER exists in type AGGR, after including
  16504. # INCLUDES, setting cache variable VAR accordingly.
  16505. ac_fn_c_check_member ()
  16506. {
  16507. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  16509. $as_echo_n "checking for $2.$3... " >&6; }
  16510. if eval \${$4+:} false; then :
  16511. $as_echo_n "(cached) " >&6
  16512. else
  16513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16514. /* end confdefs.h. */
  16515. $5
  16516. int
  16517. main ()
  16518. {
  16519. static $2 ac_aggr;
  16520. if (ac_aggr.$3)
  16521. return 0;
  16522. ;
  16523. return 0;
  16524. }
  16525. _ACEOF
  16526. if ac_fn_c_try_compile "$LINENO"; then :
  16527. eval "$4=yes"
  16528. else
  16529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16530. /* end confdefs.h. */
  16531. $5
  16532. int
  16533. main ()
  16534. {
  16535. static $2 ac_aggr;
  16536. if (sizeof ac_aggr.$3)
  16537. return 0;
  16538. ;
  16539. return 0;
  16540. }
  16541. _ACEOF
  16542. if ac_fn_c_try_compile "$LINENO"; then :
  16543. eval "$4=yes"
  16544. else
  16545. eval "$4=no"
  16546. fi
  16547. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16548. fi
  16549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16550. fi
  16551. eval ac_res=\$$4
  16552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16553. $as_echo "$ac_res" >&6; }
  16554. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  16555. } # ac_fn_c_check_member
  16556. ac_fn_c_check_member "$LINENO" "struct sysinfo" "totalram" "ac_cv_member_struct_sysinfo_totalram" "#include <sys/sysinfo.h>
  16557. "
  16558. if test "x$ac_cv_member_struct_sysinfo_totalram" = xyes; then :
  16559. cat >>confdefs.h <<_ACEOF
  16560. #define HAVE_STRUCT_SYSINFO_TOTALRAM 1
  16561. _ACEOF
  16562. fi
  16563. fi
  16564. done
  16565. fi
  16566. uxa_requires_libdrm=2.4.52
  16567. # Check whether --enable-uxa was given.
  16568. if test "${enable_uxa+set}" = set; then :
  16569. enableval=$enable_uxa; UXA="$enableval"
  16570. else
  16571. UXA=auto
  16572. fi
  16573. if test "x$UXA" = "xauto"; then
  16574. if ! pkg-config --exists "libdrm_intel >= $uxa_requires_libdrm"; then
  16575. UXA=no
  16576. fi
  16577. if ! pkg-config --exists 'pixman-1 >= 0.24.0'; then
  16578. UXA=no
  16579. fi
  16580. fi
  16581. if test "x$UXA" != "xno"; then
  16582. $as_echo "#define USE_UXA 1" >>confdefs.h
  16583. pkg_failed=no
  16584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRMINTEL" >&5
  16585. $as_echo_n "checking for DRMINTEL... " >&6; }
  16586. if test -n "$DRMINTEL_CFLAGS"; then
  16587. pkg_cv_DRMINTEL_CFLAGS="$DRMINTEL_CFLAGS"
  16588. elif test -n "$PKG_CONFIG"; then
  16589. if test -n "$PKG_CONFIG" && \
  16590. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$uxa_requires_libdrm\""; } >&5
  16591. ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $uxa_requires_libdrm") 2>&5
  16592. ac_status=$?
  16593. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16594. test $ac_status = 0; }; then
  16595. pkg_cv_DRMINTEL_CFLAGS=`$PKG_CONFIG --cflags "libdrm_intel >= $uxa_requires_libdrm" 2>/dev/null`
  16596. test "x$?" != "x0" && pkg_failed=yes
  16597. else
  16598. pkg_failed=yes
  16599. fi
  16600. else
  16601. pkg_failed=untried
  16602. fi
  16603. if test -n "$DRMINTEL_LIBS"; then
  16604. pkg_cv_DRMINTEL_LIBS="$DRMINTEL_LIBS"
  16605. elif test -n "$PKG_CONFIG"; then
  16606. if test -n "$PKG_CONFIG" && \
  16607. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$uxa_requires_libdrm\""; } >&5
  16608. ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $uxa_requires_libdrm") 2>&5
  16609. ac_status=$?
  16610. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16611. test $ac_status = 0; }; then
  16612. pkg_cv_DRMINTEL_LIBS=`$PKG_CONFIG --libs "libdrm_intel >= $uxa_requires_libdrm" 2>/dev/null`
  16613. test "x$?" != "x0" && pkg_failed=yes
  16614. else
  16615. pkg_failed=yes
  16616. fi
  16617. else
  16618. pkg_failed=untried
  16619. fi
  16620. if test $pkg_failed = yes; then
  16621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16622. $as_echo "no" >&6; }
  16623. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16624. _pkg_short_errors_supported=yes
  16625. else
  16626. _pkg_short_errors_supported=no
  16627. fi
  16628. if test $_pkg_short_errors_supported = yes; then
  16629. DRMINTEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_intel >= $uxa_requires_libdrm" 2>&1`
  16630. else
  16631. DRMINTEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_intel >= $uxa_requires_libdrm" 2>&1`
  16632. fi
  16633. # Put the nasty error message in config.log where it belongs
  16634. echo "$DRMINTEL_PKG_ERRORS" >&5
  16635. as_fn_error $? "Package requirements (libdrm_intel >= $uxa_requires_libdrm) were not met:
  16636. $DRMINTEL_PKG_ERRORS
  16637. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  16638. installed software in a non-standard prefix.
  16639. Alternatively, you may set the environment variables DRMINTEL_CFLAGS
  16640. and DRMINTEL_LIBS to avoid the need to call pkg-config.
  16641. See the pkg-config man page for more details." "$LINENO" 5
  16642. elif test $pkg_failed = untried; then
  16643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16644. $as_echo "no" >&6; }
  16645. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16646. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16647. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  16648. is in your PATH or set the PKG_CONFIG environment variable to the full
  16649. path to pkg-config.
  16650. Alternatively, you may set the environment variables DRMINTEL_CFLAGS
  16651. and DRMINTEL_LIBS to avoid the need to call pkg-config.
  16652. See the pkg-config man page for more details.
  16653. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  16654. See \`config.log' for more details" "$LINENO" 5; }
  16655. else
  16656. DRMINTEL_CFLAGS=$pkg_cv_DRMINTEL_CFLAGS
  16657. DRMINTEL_LIBS=$pkg_cv_DRMINTEL_LIBS
  16658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16659. $as_echo "yes" >&6; }
  16660. fi
  16661. required_pixman_version=0.24
  16662. UXA=yes
  16663. fi
  16664. # Check whether --enable-glamor was given.
  16665. if test "${enable_glamor+set}" = set; then :
  16666. enableval=$enable_glamor; GLAMOR="$enableval"
  16667. else
  16668. GLAMOR="no"
  16669. fi
  16670. if test "x$GLAMOR" != "xno"; then
  16671. if test "x$UXA" != "xyes"; then
  16672. as_fn_error $? "Glamor acceleration requested but UXA is not enabled" "$LINENO" 5
  16673. fi
  16674. if pkg-config --exists "xorg-server >= 1.15.99.901"; then
  16675. GLAMOR="yes (using Xorg glamor module)"
  16676. else
  16677. pkg_failed=no
  16678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR" >&5
  16679. $as_echo_n "checking for LIBGLAMOR... " >&6; }
  16680. if test -n "$LIBGLAMOR_CFLAGS"; then
  16681. pkg_cv_LIBGLAMOR_CFLAGS="$LIBGLAMOR_CFLAGS"
  16682. elif test -n "$PKG_CONFIG"; then
  16683. if test -n "$PKG_CONFIG" && \
  16684. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5
  16685. ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5
  16686. ac_status=$?
  16687. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16688. test $ac_status = 0; }; then
  16689. pkg_cv_LIBGLAMOR_CFLAGS=`$PKG_CONFIG --cflags "glamor >= 0.6.0" 2>/dev/null`
  16690. test "x$?" != "x0" && pkg_failed=yes
  16691. else
  16692. pkg_failed=yes
  16693. fi
  16694. else
  16695. pkg_failed=untried
  16696. fi
  16697. if test -n "$LIBGLAMOR_LIBS"; then
  16698. pkg_cv_LIBGLAMOR_LIBS="$LIBGLAMOR_LIBS"
  16699. elif test -n "$PKG_CONFIG"; then
  16700. if test -n "$PKG_CONFIG" && \
  16701. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5
  16702. ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5
  16703. ac_status=$?
  16704. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16705. test $ac_status = 0; }; then
  16706. pkg_cv_LIBGLAMOR_LIBS=`$PKG_CONFIG --libs "glamor >= 0.6.0" 2>/dev/null`
  16707. test "x$?" != "x0" && pkg_failed=yes
  16708. else
  16709. pkg_failed=yes
  16710. fi
  16711. else
  16712. pkg_failed=untried
  16713. fi
  16714. if test $pkg_failed = yes; then
  16715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16716. $as_echo "no" >&6; }
  16717. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16718. _pkg_short_errors_supported=yes
  16719. else
  16720. _pkg_short_errors_supported=no
  16721. fi
  16722. if test $_pkg_short_errors_supported = yes; then
  16723. LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1`
  16724. else
  16725. LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1`
  16726. fi
  16727. # Put the nasty error message in config.log where it belongs
  16728. echo "$LIBGLAMOR_PKG_ERRORS" >&5
  16729. as_fn_error $? "Package requirements (glamor >= 0.6.0) were not met:
  16730. $LIBGLAMOR_PKG_ERRORS
  16731. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  16732. installed software in a non-standard prefix.
  16733. Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
  16734. and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
  16735. See the pkg-config man page for more details." "$LINENO" 5
  16736. elif test $pkg_failed = untried; then
  16737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16738. $as_echo "no" >&6; }
  16739. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16740. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16741. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  16742. is in your PATH or set the PKG_CONFIG environment variable to the full
  16743. path to pkg-config.
  16744. Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
  16745. and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
  16746. See the pkg-config man page for more details.
  16747. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  16748. See \`config.log' for more details" "$LINENO" 5; }
  16749. else
  16750. LIBGLAMOR_CFLAGS=$pkg_cv_LIBGLAMOR_CFLAGS
  16751. LIBGLAMOR_LIBS=$pkg_cv_LIBGLAMOR_LIBS
  16752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16753. $as_echo "yes" >&6; }
  16754. fi
  16755. pkg_failed=no
  16756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR_EGL" >&5
  16757. $as_echo_n "checking for LIBGLAMOR_EGL... " >&6; }
  16758. if test -n "$LIBGLAMOR_EGL_CFLAGS"; then
  16759. pkg_cv_LIBGLAMOR_EGL_CFLAGS="$LIBGLAMOR_EGL_CFLAGS"
  16760. elif test -n "$PKG_CONFIG"; then
  16761. if test -n "$PKG_CONFIG" && \
  16762. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5
  16763. ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5
  16764. ac_status=$?
  16765. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16766. test $ac_status = 0; }; then
  16767. pkg_cv_LIBGLAMOR_EGL_CFLAGS=`$PKG_CONFIG --cflags "glamor-egl" 2>/dev/null`
  16768. test "x$?" != "x0" && pkg_failed=yes
  16769. else
  16770. pkg_failed=yes
  16771. fi
  16772. else
  16773. pkg_failed=untried
  16774. fi
  16775. if test -n "$LIBGLAMOR_EGL_LIBS"; then
  16776. pkg_cv_LIBGLAMOR_EGL_LIBS="$LIBGLAMOR_EGL_LIBS"
  16777. elif test -n "$PKG_CONFIG"; then
  16778. if test -n "$PKG_CONFIG" && \
  16779. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5
  16780. ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5
  16781. ac_status=$?
  16782. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16783. test $ac_status = 0; }; then
  16784. pkg_cv_LIBGLAMOR_EGL_LIBS=`$PKG_CONFIG --libs "glamor-egl" 2>/dev/null`
  16785. test "x$?" != "x0" && pkg_failed=yes
  16786. else
  16787. pkg_failed=yes
  16788. fi
  16789. else
  16790. pkg_failed=untried
  16791. fi
  16792. if test $pkg_failed = yes; then
  16793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16794. $as_echo "no" >&6; }
  16795. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16796. _pkg_short_errors_supported=yes
  16797. else
  16798. _pkg_short_errors_supported=no
  16799. fi
  16800. if test $_pkg_short_errors_supported = yes; then
  16801. LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor-egl" 2>&1`
  16802. else
  16803. LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor-egl" 2>&1`
  16804. fi
  16805. # Put the nasty error message in config.log where it belongs
  16806. echo "$LIBGLAMOR_EGL_PKG_ERRORS" >&5
  16807. as_fn_error $? "Package requirements (glamor-egl) were not met:
  16808. $LIBGLAMOR_EGL_PKG_ERRORS
  16809. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  16810. installed software in a non-standard prefix.
  16811. Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
  16812. and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
  16813. See the pkg-config man page for more details." "$LINENO" 5
  16814. elif test $pkg_failed = untried; then
  16815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16816. $as_echo "no" >&6; }
  16817. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16818. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16819. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  16820. is in your PATH or set the PKG_CONFIG environment variable to the full
  16821. path to pkg-config.
  16822. Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
  16823. and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
  16824. See the pkg-config man page for more details.
  16825. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  16826. See \`config.log' for more details" "$LINENO" 5; }
  16827. else
  16828. LIBGLAMOR_EGL_CFLAGS=$pkg_cv_LIBGLAMOR_EGL_CFLAGS
  16829. LIBGLAMOR_EGL_LIBS=$pkg_cv_LIBGLAMOR_EGL_LIBS
  16830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16831. $as_echo "yes" >&6; }
  16832. fi
  16833. GLAMOR="yes (using libglamor)"
  16834. fi
  16835. $as_echo "#define USE_GLAMOR 1" >>confdefs.h
  16836. fi
  16837. pkg_failed=no
  16838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
  16839. $as_echo_n "checking for XORG... " >&6; }
  16840. if test -n "$XORG_CFLAGS"; then
  16841. pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
  16842. elif test -n "$PKG_CONFIG"; then
  16843. if test -n "$PKG_CONFIG" && \
  16844. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= \$required_xorg_server_version xproto fontsproto pixman-1 >= \$required_pixman_version \$REQUIRED_MODULES\""; } >&5
  16845. ($PKG_CONFIG --exists --print-errors "xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES") 2>&5
  16846. ac_status=$?
  16847. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16848. test $ac_status = 0; }; then
  16849. pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>/dev/null`
  16850. test "x$?" != "x0" && pkg_failed=yes
  16851. else
  16852. pkg_failed=yes
  16853. fi
  16854. else
  16855. pkg_failed=untried
  16856. fi
  16857. if test -n "$XORG_LIBS"; then
  16858. pkg_cv_XORG_LIBS="$XORG_LIBS"
  16859. elif test -n "$PKG_CONFIG"; then
  16860. if test -n "$PKG_CONFIG" && \
  16861. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= \$required_xorg_server_version xproto fontsproto pixman-1 >= \$required_pixman_version \$REQUIRED_MODULES\""; } >&5
  16862. ($PKG_CONFIG --exists --print-errors "xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES") 2>&5
  16863. ac_status=$?
  16864. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16865. test $ac_status = 0; }; then
  16866. pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>/dev/null`
  16867. test "x$?" != "x0" && pkg_failed=yes
  16868. else
  16869. pkg_failed=yes
  16870. fi
  16871. else
  16872. pkg_failed=untried
  16873. fi
  16874. if test $pkg_failed = yes; then
  16875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16876. $as_echo "no" >&6; }
  16877. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16878. _pkg_short_errors_supported=yes
  16879. else
  16880. _pkg_short_errors_supported=no
  16881. fi
  16882. if test $_pkg_short_errors_supported = yes; then
  16883. XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>&1`
  16884. else
  16885. XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>&1`
  16886. fi
  16887. # Put the nasty error message in config.log where it belongs
  16888. echo "$XORG_PKG_ERRORS" >&5
  16889. as_fn_error $? "Package requirements (xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES) were not met:
  16890. $XORG_PKG_ERRORS
  16891. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  16892. installed software in a non-standard prefix.
  16893. Alternatively, you may set the environment variables XORG_CFLAGS
  16894. and XORG_LIBS to avoid the need to call pkg-config.
  16895. See the pkg-config man page for more details." "$LINENO" 5
  16896. elif test $pkg_failed = untried; then
  16897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16898. $as_echo "no" >&6; }
  16899. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16900. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16901. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  16902. is in your PATH or set the PKG_CONFIG environment variable to the full
  16903. path to pkg-config.
  16904. Alternatively, you may set the environment variables XORG_CFLAGS
  16905. and XORG_LIBS to avoid the need to call pkg-config.
  16906. See the pkg-config man page for more details.
  16907. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  16908. See \`config.log' for more details" "$LINENO" 5; }
  16909. else
  16910. XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
  16911. XORG_LIBS=$pkg_cv_XORG_LIBS
  16912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16913. $as_echo "yes" >&6; }
  16914. fi
  16915. ABI_VERSION=`$PKG_CONFIG --variable=abi_videodrv xorg-server`
  16916. if test "x$ONLY_UMS" = "xyes"; then
  16917. UMS="yes"
  16918. KMS="no"
  16919. fi
  16920. if test "x$ONLY_KMS" = "xyes"; then
  16921. UMS="no"
  16922. KMS="yes"
  16923. fi
  16924. save_CPPFLAGS=$CPPFLAGS
  16925. CPPFLAGS=$XORG_CFLAGS
  16926. for ac_header in vgaHW.h
  16927. do :
  16928. ac_fn_c_check_header_mongrel "$LINENO" "vgaHW.h" "ac_cv_header_vgaHW_h" "$ac_includes_default"
  16929. if test "x$ac_cv_header_vgaHW_h" = xyes; then :
  16930. cat >>confdefs.h <<_ACEOF
  16931. #define HAVE_VGAHW_H 1
  16932. _ACEOF
  16933. legacy="yes"
  16934. else
  16935. legacy="no"
  16936. fi
  16937. done
  16938. CPPFLAGS=$save_CPPFLAGS
  16939. if test "x$UMS" = "xauto"; then
  16940. UMS="$legacy"
  16941. fi
  16942. if test "x$UMS" = "xyes" -a "x$legacy" = "xno"; then
  16943. as_fn_error $? "vgaHW support required for UMS (i810) driver" "$LINENO" 5
  16944. fi
  16945. if test "x$UMS" = "xyes"; then
  16946. # Check whether --enable-xaa was given.
  16947. if test "${enable_xaa+set}" = set; then :
  16948. enableval=$enable_xaa; XAA="$enableval"
  16949. else
  16950. XAA="auto"
  16951. fi
  16952. if test "x$XAA" != "xno"; then
  16953. save_CPPFLAGS=$CPPFLAGS
  16954. CPPFLAGS=$XORG_CFLAGS
  16955. for ac_header in xaa.h
  16956. do :
  16957. ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
  16958. if test "x$ac_cv_header_xaa_h" = xyes; then :
  16959. cat >>confdefs.h <<_ACEOF
  16960. #define HAVE_XAA_H 1
  16961. _ACEOF
  16962. XAA="yes"
  16963. else
  16964. XAA="no"
  16965. fi
  16966. done
  16967. CPPFLAGS=$save_CPPFLAGS
  16968. fi
  16969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
  16970. $as_echo_n "checking whether to include XAA support... " >&6; }
  16971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
  16972. $as_echo "$XAA" >&6; }
  16973. # Check whether --enable-dga was given.
  16974. if test "${enable_dga+set}" = set; then :
  16975. enableval=$enable_dga; DGA="$enableval"
  16976. else
  16977. DGA="auto"
  16978. fi
  16979. if test "x$DGA" != "xno"; then
  16980. save_CFLAGS=$CFLAGS
  16981. CFLAGS=$XORG_CFLAGS
  16982. for ac_header in dgaproc.h
  16983. do :
  16984. ac_fn_c_check_header_compile "$LINENO" "dgaproc.h" "ac_cv_header_dgaproc_h" "#include <dixstruct.h>
  16985. "
  16986. if test "x$ac_cv_header_dgaproc_h" = xyes; then :
  16987. cat >>confdefs.h <<_ACEOF
  16988. #define HAVE_DGAPROC_H 1
  16989. _ACEOF
  16990. DGA="yes"
  16991. else
  16992. DGA="no"
  16993. fi
  16994. done
  16995. CFLAGS=$save_CFLAGS
  16996. fi
  16997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DGA support" >&5
  16998. $as_echo_n "checking whether to include DGA support... " >&6; }
  16999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DGA" >&5
  17000. $as_echo "$DGA" >&6; }
  17001. fi
  17002. if test "x$DGA" = "xyes"; then
  17003. DGA_TRUE=
  17004. DGA_FALSE='#'
  17005. else
  17006. DGA_TRUE='#'
  17007. DGA_FALSE=
  17008. fi
  17009. if test "x$XAA" = "xyes"; then
  17010. XAA_TRUE=
  17011. XAA_FALSE='#'
  17012. else
  17013. XAA_TRUE='#'
  17014. XAA_FALSE=
  17015. fi
  17016. if test "x$KMS" = "xyes"; then
  17017. KMS_TRUE=
  17018. KMS_FALSE='#'
  17019. else
  17020. KMS_TRUE='#'
  17021. KMS_FALSE=
  17022. fi
  17023. if test "x$KMS" = "xyes"; then
  17024. $as_echo "#define KMS 1" >>confdefs.h
  17025. fi
  17026. if test "x$UMS" = "xyes"; then
  17027. UMS_TRUE=
  17028. UMS_FALSE='#'
  17029. else
  17030. UMS_TRUE='#'
  17031. UMS_FALSE=
  17032. fi
  17033. if test "x$UMS" = "xyes"; then
  17034. $as_echo "#define UMS 1" >>confdefs.h
  17035. fi
  17036. have_dri1=no
  17037. SAVE_CFLAGS="$CFLAGS"
  17038. CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
  17039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17040. /* end confdefs.h. */
  17041. #include "xorg-server.h"
  17042. #if !defined XF86DRI
  17043. #error XF86DRI not defined
  17044. #endif
  17045. int
  17046. main ()
  17047. {
  17048. ;
  17049. return 0;
  17050. }
  17051. _ACEOF
  17052. if ac_fn_c_try_compile "$LINENO"; then :
  17053. _EXT_CHECK=yes
  17054. else
  17055. _EXT_CHECK=no
  17056. fi
  17057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17058. CFLAGS="$SAVE_CFLAGS"
  17059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XF86DRI is defined" >&5
  17060. $as_echo_n "checking if XF86DRI is defined... " >&6; }
  17061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
  17062. $as_echo "$_EXT_CHECK" >&6; }
  17063. if test "$_EXT_CHECK" != no; then
  17064. REQUIRED_MODULES="$REQUIRED_MODULES xf86driproto"
  17065. fi
  17066. if test "x$_EXT_CHECK" != "xno" -a "x$DRI" != "xno" -a "x$DRI1" != "xno" -a "x$UMS" = "xyes"; then
  17067. pkg_failed=no
  17068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI1" >&5
  17069. $as_echo_n "checking for DRI1... " >&6; }
  17070. if test -n "$DRI1_CFLAGS"; then
  17071. pkg_cv_DRI1_CFLAGS="$DRI1_CFLAGS"
  17072. elif test -n "$PKG_CONFIG"; then
  17073. if test -n "$PKG_CONFIG" && \
  17074. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86driproto\""; } >&5
  17075. ($PKG_CONFIG --exists --print-errors "xf86driproto") 2>&5
  17076. ac_status=$?
  17077. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17078. test $ac_status = 0; }; then
  17079. pkg_cv_DRI1_CFLAGS=`$PKG_CONFIG --cflags "xf86driproto" 2>/dev/null`
  17080. test "x$?" != "x0" && pkg_failed=yes
  17081. else
  17082. pkg_failed=yes
  17083. fi
  17084. else
  17085. pkg_failed=untried
  17086. fi
  17087. if test -n "$DRI1_LIBS"; then
  17088. pkg_cv_DRI1_LIBS="$DRI1_LIBS"
  17089. elif test -n "$PKG_CONFIG"; then
  17090. if test -n "$PKG_CONFIG" && \
  17091. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86driproto\""; } >&5
  17092. ($PKG_CONFIG --exists --print-errors "xf86driproto") 2>&5
  17093. ac_status=$?
  17094. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17095. test $ac_status = 0; }; then
  17096. pkg_cv_DRI1_LIBS=`$PKG_CONFIG --libs "xf86driproto" 2>/dev/null`
  17097. test "x$?" != "x0" && pkg_failed=yes
  17098. else
  17099. pkg_failed=yes
  17100. fi
  17101. else
  17102. pkg_failed=untried
  17103. fi
  17104. if test $pkg_failed = yes; then
  17105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17106. $as_echo "no" >&6; }
  17107. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17108. _pkg_short_errors_supported=yes
  17109. else
  17110. _pkg_short_errors_supported=no
  17111. fi
  17112. if test $_pkg_short_errors_supported = yes; then
  17113. DRI1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xf86driproto" 2>&1`
  17114. else
  17115. DRI1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xf86driproto" 2>&1`
  17116. fi
  17117. # Put the nasty error message in config.log where it belongs
  17118. echo "$DRI1_PKG_ERRORS" >&5
  17119. have_dri1=no
  17120. elif test $pkg_failed = untried; then
  17121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17122. $as_echo "no" >&6; }
  17123. have_dri1=no
  17124. else
  17125. DRI1_CFLAGS=$pkg_cv_DRI1_CFLAGS
  17126. DRI1_LIBS=$pkg_cv_DRI1_LIBS
  17127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17128. $as_echo "yes" >&6; }
  17129. have_dri1=$DRI
  17130. fi
  17131. save_CFLAGS="$CFLAGS"
  17132. save_CPPFLAGS="$CPPFLAGS"
  17133. CFLAGS="$CFLAGS $XORG_CFLAGS $DRI1_CFLAGS $DRM_CFLAGS"
  17134. CPPFLAGS="$CPPFLAGS $XORG_CFLAGS $DRI1_CFLAGS $DRM_CFLAGS"
  17135. for ac_header in dri.h sarea.h dristruct.h
  17136. do :
  17137. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17138. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "/* for dri.h */
  17139. #include <xf86str.h>
  17140. /* for dristruct.h */
  17141. #include <xorg-server.h>
  17142. #ifdef HAVE_DRI_H
  17143. # include <dri.h>
  17144. #endif
  17145. #ifdef HAVE_SAREA_H
  17146. # include <sarea.h>
  17147. #endif
  17148. "
  17149. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17150. cat >>confdefs.h <<_ACEOF
  17151. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17152. _ACEOF
  17153. else
  17154. have_dri1=no
  17155. fi
  17156. done
  17157. CFLAGS="$save_CFLAGS"
  17158. CPPFLAGS="$save_CPPFLAGS"
  17159. fi
  17160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI1 support" >&5
  17161. $as_echo_n "checking whether to include DRI1 support... " >&6; }
  17162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dri1" >&5
  17163. $as_echo "$have_dri1" >&6; }
  17164. if test "x$have_dri1" != "xno"; then
  17165. DRI1_TRUE=
  17166. DRI1_FALSE='#'
  17167. else
  17168. DRI1_TRUE='#'
  17169. DRI1_FALSE=
  17170. fi
  17171. if test "x$have_dri1" != "xno"; then
  17172. $as_echo "#define HAVE_DRI1 1" >>confdefs.h
  17173. dri_msg="$dri_msg DRI1"
  17174. else
  17175. DRI1_CFLAGS=""
  17176. DRI1_LIBS=""
  17177. if test "x$DRI" = "xyes" -a "x$UMS" = "xyes" -a "x$DRI1" != "xno"; then
  17178. as_fn_error $? "DRI1 requested but prerequisites not found" "$LINENO" 5
  17179. fi
  17180. fi
  17181. have_dri2=no
  17182. have_dri3=no
  17183. if test "x$DRI" != "xno"; then
  17184. if test "x$DRI2" != "xno"; then
  17185. pkg_failed=no
  17186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI2" >&5
  17187. $as_echo_n "checking for DRI2... " >&6; }
  17188. if test -n "$DRI2_CFLAGS"; then
  17189. pkg_cv_DRI2_CFLAGS="$DRI2_CFLAGS"
  17190. elif test -n "$PKG_CONFIG"; then
  17191. if test -n "$PKG_CONFIG" && \
  17192. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.6\""; } >&5
  17193. ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.6") 2>&5
  17194. ac_status=$?
  17195. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17196. test $ac_status = 0; }; then
  17197. pkg_cv_DRI2_CFLAGS=`$PKG_CONFIG --cflags "dri2proto >= 2.6" 2>/dev/null`
  17198. test "x$?" != "x0" && pkg_failed=yes
  17199. else
  17200. pkg_failed=yes
  17201. fi
  17202. else
  17203. pkg_failed=untried
  17204. fi
  17205. if test -n "$DRI2_LIBS"; then
  17206. pkg_cv_DRI2_LIBS="$DRI2_LIBS"
  17207. elif test -n "$PKG_CONFIG"; then
  17208. if test -n "$PKG_CONFIG" && \
  17209. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.6\""; } >&5
  17210. ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.6") 2>&5
  17211. ac_status=$?
  17212. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17213. test $ac_status = 0; }; then
  17214. pkg_cv_DRI2_LIBS=`$PKG_CONFIG --libs "dri2proto >= 2.6" 2>/dev/null`
  17215. test "x$?" != "x0" && pkg_failed=yes
  17216. else
  17217. pkg_failed=yes
  17218. fi
  17219. else
  17220. pkg_failed=untried
  17221. fi
  17222. if test $pkg_failed = yes; then
  17223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17224. $as_echo "no" >&6; }
  17225. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17226. _pkg_short_errors_supported=yes
  17227. else
  17228. _pkg_short_errors_supported=no
  17229. fi
  17230. if test $_pkg_short_errors_supported = yes; then
  17231. DRI2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dri2proto >= 2.6" 2>&1`
  17232. else
  17233. DRI2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dri2proto >= 2.6" 2>&1`
  17234. fi
  17235. # Put the nasty error message in config.log where it belongs
  17236. echo "$DRI2_PKG_ERRORS" >&5
  17237. have_dri2=no
  17238. elif test $pkg_failed = untried; then
  17239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17240. $as_echo "no" >&6; }
  17241. have_dri2=no
  17242. else
  17243. DRI2_CFLAGS=$pkg_cv_DRI2_CFLAGS
  17244. DRI2_LIBS=$pkg_cv_DRI2_LIBS
  17245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17246. $as_echo "yes" >&6; }
  17247. have_dri2=$DRI
  17248. fi
  17249. fi
  17250. if test "x$have_dri2" != "xno"; then
  17251. save_CFLAGS=$CFLAGS
  17252. CFLAGS="$XORG_CFLAGS $DRM_CFLAGS $DRI1_CFLAGS $DRI2_CFLAGS"
  17253. for ac_header in dri2.h
  17254. do :
  17255. ac_fn_c_check_header_compile "$LINENO" "dri2.h" "ac_cv_header_dri2_h" "
  17256. #include <dixstruct.h>
  17257. #include <drm.h>
  17258. "
  17259. if test "x$ac_cv_header_dri2_h" = xyes; then :
  17260. cat >>confdefs.h <<_ACEOF
  17261. #define HAVE_DRI2_H 1
  17262. _ACEOF
  17263. else
  17264. have_dri2=no
  17265. fi
  17266. done
  17267. CFLAGS=$save_CFLAGS
  17268. fi
  17269. if test "x$have_dri2" != "xno"; then
  17270. dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri`
  17271. if test "x$dridriverdir" = "x"; then
  17272. dridriverdir="$libdir/dri"
  17273. fi
  17274. prefix_NONE=
  17275. exec_prefix_NONE=
  17276. test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
  17277. test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
  17278. eval ac_define_dir="\"$dridriverdir\""
  17279. eval ac_define_dir="\"$ac_define_dir\""
  17280. DRI_DRIVER_PATH="$ac_define_dir"
  17281. cat >>confdefs.h <<_ACEOF
  17282. #define DRI_DRIVER_PATH "$ac_define_dir"
  17283. _ACEOF
  17284. test "$prefix_NONE" && prefix=NONE
  17285. test "$exec_prefix_NONE" && exec_prefix=NONE
  17286. fi
  17287. if test "x$DRI3" != "xno"; then
  17288. SAVE_CFLAGS="$CFLAGS"
  17289. CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
  17290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17291. /* end confdefs.h. */
  17292. #include "xorg-server.h"
  17293. #if !defined DRI3
  17294. #error DRI3 not defined
  17295. #endif
  17296. int
  17297. main ()
  17298. {
  17299. ;
  17300. return 0;
  17301. }
  17302. _ACEOF
  17303. if ac_fn_c_try_compile "$LINENO"; then :
  17304. _EXT_CHECK=yes
  17305. else
  17306. _EXT_CHECK=no
  17307. fi
  17308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17309. CFLAGS="$SAVE_CFLAGS"
  17310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DRI3 is defined" >&5
  17311. $as_echo_n "checking if DRI3 is defined... " >&6; }
  17312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
  17313. $as_echo "$_EXT_CHECK" >&6; }
  17314. if test "$_EXT_CHECK" != no; then
  17315. REQUIRED_MODULES="$REQUIRED_MODULES dri3proto"
  17316. fi
  17317. if test "x$_EXT_CHECK" != "xno"; then
  17318. pkg_failed=no
  17319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI3" >&5
  17320. $as_echo_n "checking for DRI3... " >&6; }
  17321. if test -n "$DRI3_CFLAGS"; then
  17322. pkg_cv_DRI3_CFLAGS="$DRI3_CFLAGS"
  17323. elif test -n "$PKG_CONFIG"; then
  17324. if test -n "$PKG_CONFIG" && \
  17325. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri3proto\""; } >&5
  17326. ($PKG_CONFIG --exists --print-errors "dri3proto") 2>&5
  17327. ac_status=$?
  17328. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17329. test $ac_status = 0; }; then
  17330. pkg_cv_DRI3_CFLAGS=`$PKG_CONFIG --cflags "dri3proto" 2>/dev/null`
  17331. test "x$?" != "x0" && pkg_failed=yes
  17332. else
  17333. pkg_failed=yes
  17334. fi
  17335. else
  17336. pkg_failed=untried
  17337. fi
  17338. if test -n "$DRI3_LIBS"; then
  17339. pkg_cv_DRI3_LIBS="$DRI3_LIBS"
  17340. elif test -n "$PKG_CONFIG"; then
  17341. if test -n "$PKG_CONFIG" && \
  17342. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri3proto\""; } >&5
  17343. ($PKG_CONFIG --exists --print-errors "dri3proto") 2>&5
  17344. ac_status=$?
  17345. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17346. test $ac_status = 0; }; then
  17347. pkg_cv_DRI3_LIBS=`$PKG_CONFIG --libs "dri3proto" 2>/dev/null`
  17348. test "x$?" != "x0" && pkg_failed=yes
  17349. else
  17350. pkg_failed=yes
  17351. fi
  17352. else
  17353. pkg_failed=untried
  17354. fi
  17355. if test $pkg_failed = yes; then
  17356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17357. $as_echo "no" >&6; }
  17358. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17359. _pkg_short_errors_supported=yes
  17360. else
  17361. _pkg_short_errors_supported=no
  17362. fi
  17363. if test $_pkg_short_errors_supported = yes; then
  17364. DRI3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dri3proto" 2>&1`
  17365. else
  17366. DRI3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dri3proto" 2>&1`
  17367. fi
  17368. # Put the nasty error message in config.log where it belongs
  17369. echo "$DRI3_PKG_ERRORS" >&5
  17370. as_fn_error $? "Package requirements (dri3proto) were not met:
  17371. $DRI3_PKG_ERRORS
  17372. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  17373. installed software in a non-standard prefix.
  17374. Alternatively, you may set the environment variables DRI3_CFLAGS
  17375. and DRI3_LIBS to avoid the need to call pkg-config.
  17376. See the pkg-config man page for more details." "$LINENO" 5
  17377. elif test $pkg_failed = untried; then
  17378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17379. $as_echo "no" >&6; }
  17380. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17381. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17382. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  17383. is in your PATH or set the PKG_CONFIG environment variable to the full
  17384. path to pkg-config.
  17385. Alternatively, you may set the environment variables DRI3_CFLAGS
  17386. and DRI3_LIBS to avoid the need to call pkg-config.
  17387. See the pkg-config man page for more details.
  17388. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  17389. See \`config.log' for more details" "$LINENO" 5; }
  17390. else
  17391. DRI3_CFLAGS=$pkg_cv_DRI3_CFLAGS
  17392. DRI3_LIBS=$pkg_cv_DRI3_LIBS
  17393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17394. $as_echo "yes" >&6; }
  17395. have_dri3=$DRI
  17396. fi
  17397. fi
  17398. fi
  17399. if test "x$have_dri3" != "xno"; then
  17400. save_CFLAGS=$CFLAGS
  17401. CFLAGS="$XORG_CFLAGS $DRI3_CFLAGS"
  17402. ac_fn_c_check_decl "$LINENO" "DRI3" "ac_cv_have_decl_DRI3" "#include <xorg-server.h>
  17403. "
  17404. if test "x$ac_cv_have_decl_DRI3" = xyes; then :
  17405. else
  17406. have_dri3=no
  17407. fi
  17408. for ac_header in misyncstr.h misyncshm.h
  17409. do :
  17410. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17411. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  17412. #include <xorg-server.h>
  17413. #include <xf86str.h>
  17414. #include <misync.h>
  17415. "
  17416. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17417. cat >>confdefs.h <<_ACEOF
  17418. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17419. _ACEOF
  17420. else
  17421. have_dri3=no
  17422. fi
  17423. done
  17424. CFLAGS=$save_CFLAGS
  17425. fi
  17426. fi
  17427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI2 support" >&5
  17428. $as_echo_n "checking whether to include DRI2 support... " >&6; }
  17429. if test "x$have_dri2" != "xno"; then
  17430. DRI2_TRUE=
  17431. DRI2_FALSE='#'
  17432. else
  17433. DRI2_TRUE='#'
  17434. DRI2_FALSE=
  17435. fi
  17436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dri2" >&5
  17437. $as_echo "$have_dri2" >&6; }
  17438. if test "x$have_dri2" != "xno"; then
  17439. $as_echo "#define HAVE_DRI2 1" >>confdefs.h
  17440. dri_msg="$dri_msg DRI2"
  17441. else
  17442. if test "x$DRI" = "xyes" -a "x$DRI2" != "xno" -a "x$KMS" = "xyes"; then
  17443. as_fn_error $? "DRI2 requested but prerequisites not found" "$LINENO" 5
  17444. fi
  17445. # UXA doesn't build without DRI2 headers, too late to fix
  17446. UXA=no
  17447. fi
  17448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI3 support" >&5
  17449. $as_echo_n "checking whether to include DRI3 support... " >&6; }
  17450. if test "x$have_dri3" != "xno"; then
  17451. DRI3_TRUE=
  17452. DRI3_FALSE='#'
  17453. else
  17454. DRI3_TRUE='#'
  17455. DRI3_FALSE=
  17456. fi
  17457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dri3" >&5
  17458. $as_echo "$have_dri3" >&6; }
  17459. if test "x$have_dri3" != "xno"; then
  17460. $as_echo "#define HAVE_DRI3 1" >>confdefs.h
  17461. dri_msg="$dri_msg DRI3"
  17462. else
  17463. if test "x$DRI" = "xyes" -a "x$DRI3" != "xno" -a "x$KMS" = "xyes"; then
  17464. as_fn_error $? "DRI3 requested but prerequisites not found" "$LINENO" 5
  17465. fi
  17466. fi
  17467. for ac_header in X11/extensions/dpmsconst.h
  17468. do :
  17469. ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/dpmsconst.h" "ac_cv_header_X11_extensions_dpmsconst_h" "$ac_includes_default"
  17470. if test "x$ac_cv_header_X11_extensions_dpmsconst_h" = xyes; then :
  17471. cat >>confdefs.h <<_ACEOF
  17472. #define HAVE_X11_EXTENSIONS_DPMSCONST_H 1
  17473. _ACEOF
  17474. fi
  17475. done
  17476. PRESENT="no"
  17477. SAVE_CFLAGS="$CFLAGS"
  17478. CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
  17479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17480. /* end confdefs.h. */
  17481. #include "xorg-server.h"
  17482. #if !defined PRESENT
  17483. #error PRESENT not defined
  17484. #endif
  17485. int
  17486. main ()
  17487. {
  17488. ;
  17489. return 0;
  17490. }
  17491. _ACEOF
  17492. if ac_fn_c_try_compile "$LINENO"; then :
  17493. _EXT_CHECK=yes
  17494. else
  17495. _EXT_CHECK=no
  17496. fi
  17497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17498. CFLAGS="$SAVE_CFLAGS"
  17499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PRESENT is defined" >&5
  17500. $as_echo_n "checking if PRESENT is defined... " >&6; }
  17501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
  17502. $as_echo "$_EXT_CHECK" >&6; }
  17503. if test "$_EXT_CHECK" != no; then
  17504. REQUIRED_MODULES="$REQUIRED_MODULES presentproto"
  17505. fi
  17506. if test "x$_EXT_CHECK" != "xno"; then
  17507. pkg_failed=no
  17508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRESENT" >&5
  17509. $as_echo_n "checking for PRESENT... " >&6; }
  17510. if test -n "$PRESENT_CFLAGS"; then
  17511. pkg_cv_PRESENT_CFLAGS="$PRESENT_CFLAGS"
  17512. elif test -n "$PKG_CONFIG"; then
  17513. if test -n "$PKG_CONFIG" && \
  17514. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"presentproto\""; } >&5
  17515. ($PKG_CONFIG --exists --print-errors "presentproto") 2>&5
  17516. ac_status=$?
  17517. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17518. test $ac_status = 0; }; then
  17519. pkg_cv_PRESENT_CFLAGS=`$PKG_CONFIG --cflags "presentproto" 2>/dev/null`
  17520. test "x$?" != "x0" && pkg_failed=yes
  17521. else
  17522. pkg_failed=yes
  17523. fi
  17524. else
  17525. pkg_failed=untried
  17526. fi
  17527. if test -n "$PRESENT_LIBS"; then
  17528. pkg_cv_PRESENT_LIBS="$PRESENT_LIBS"
  17529. elif test -n "$PKG_CONFIG"; then
  17530. if test -n "$PKG_CONFIG" && \
  17531. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"presentproto\""; } >&5
  17532. ($PKG_CONFIG --exists --print-errors "presentproto") 2>&5
  17533. ac_status=$?
  17534. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17535. test $ac_status = 0; }; then
  17536. pkg_cv_PRESENT_LIBS=`$PKG_CONFIG --libs "presentproto" 2>/dev/null`
  17537. test "x$?" != "x0" && pkg_failed=yes
  17538. else
  17539. pkg_failed=yes
  17540. fi
  17541. else
  17542. pkg_failed=untried
  17543. fi
  17544. if test $pkg_failed = yes; then
  17545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17546. $as_echo "no" >&6; }
  17547. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17548. _pkg_short_errors_supported=yes
  17549. else
  17550. _pkg_short_errors_supported=no
  17551. fi
  17552. if test $_pkg_short_errors_supported = yes; then
  17553. PRESENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "presentproto" 2>&1`
  17554. else
  17555. PRESENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "presentproto" 2>&1`
  17556. fi
  17557. # Put the nasty error message in config.log where it belongs
  17558. echo "$PRESENT_PKG_ERRORS" >&5
  17559. as_fn_error $? "Package requirements (presentproto) were not met:
  17560. $PRESENT_PKG_ERRORS
  17561. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  17562. installed software in a non-standard prefix.
  17563. Alternatively, you may set the environment variables PRESENT_CFLAGS
  17564. and PRESENT_LIBS to avoid the need to call pkg-config.
  17565. See the pkg-config man page for more details." "$LINENO" 5
  17566. elif test $pkg_failed = untried; then
  17567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17568. $as_echo "no" >&6; }
  17569. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17570. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17571. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  17572. is in your PATH or set the PKG_CONFIG environment variable to the full
  17573. path to pkg-config.
  17574. Alternatively, you may set the environment variables PRESENT_CFLAGS
  17575. and PRESENT_LIBS to avoid the need to call pkg-config.
  17576. See the pkg-config man page for more details.
  17577. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  17578. See \`config.log' for more details" "$LINENO" 5; }
  17579. else
  17580. PRESENT_CFLAGS=$pkg_cv_PRESENT_CFLAGS
  17581. PRESENT_LIBS=$pkg_cv_PRESENT_LIBS
  17582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17583. $as_echo "yes" >&6; }
  17584. PRESENT="yes"
  17585. fi
  17586. fi
  17587. if test "x$PRESENT" != "xno"; then
  17588. save_CFLAGS=$CFLAGS
  17589. CFLAGS="$XORG_CFLAGS $PRESENT_CFLAGS"
  17590. for ac_header in present.h
  17591. do :
  17592. ac_fn_c_check_header_compile "$LINENO" "present.h" "ac_cv_header_present_h" "
  17593. #include <xorg-server.h>
  17594. #include <xf86str.h>
  17595. "
  17596. if test "x$ac_cv_header_present_h" = xyes; then :
  17597. cat >>confdefs.h <<_ACEOF
  17598. #define HAVE_PRESENT_H 1
  17599. _ACEOF
  17600. else
  17601. PRESENT="no"
  17602. fi
  17603. done
  17604. CFLAGS=$save_CFLAGS
  17605. fi
  17606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include PRESENT support" >&5
  17607. $as_echo_n "checking whether to include PRESENT support... " >&6; }
  17608. if test "x$PRESENT" != "xno"; then
  17609. PRESENT_TRUE=
  17610. PRESENT_FALSE='#'
  17611. else
  17612. PRESENT_TRUE='#'
  17613. PRESENT_FALSE=
  17614. fi
  17615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRESENT" >&5
  17616. $as_echo "$PRESENT" >&6; }
  17617. if test "x$PRESENT" != "xno"; then
  17618. $as_echo "#define HAVE_PRESENT 1" >>confdefs.h
  17619. dri_msg="$dri_msg Present"
  17620. fi
  17621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include UXA support" >&5
  17622. $as_echo_n "checking whether to include UXA support... " >&6; }
  17623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UXA" >&5
  17624. $as_echo "$UXA" >&6; }
  17625. if test "x$UXA" != "xno"; then
  17626. UXA_TRUE=
  17627. UXA_FALSE='#'
  17628. else
  17629. UXA_TRUE='#'
  17630. UXA_FALSE=
  17631. fi
  17632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include GLAMOR support" >&5
  17633. $as_echo_n "checking whether to include GLAMOR support... " >&6; }
  17634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLAMOR" >&5
  17635. $as_echo "$GLAMOR" >&6; }
  17636. if test "x$GLAMOR" != "xno"; then
  17637. GLAMOR_TRUE=
  17638. GLAMOR_FALSE='#'
  17639. else
  17640. GLAMOR_TRUE='#'
  17641. GLAMOR_FALSE=
  17642. fi
  17643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include SNA support" >&5
  17644. $as_echo_n "checking whether to include SNA support... " >&6; }
  17645. if test "x$SNA" != "xno"; then
  17646. SNA_TRUE=
  17647. SNA_FALSE='#'
  17648. else
  17649. SNA_TRUE='#'
  17650. SNA_FALSE=
  17651. fi
  17652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNA" >&5
  17653. $as_echo "$SNA" >&6; }
  17654. if test "$XVMC" = "yes"; then
  17655. pkg_failed=no
  17656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVMCLIB" >&5
  17657. $as_echo_n "checking for XVMCLIB... " >&6; }
  17658. if test -n "$XVMCLIB_CFLAGS"; then
  17659. pkg_cv_XVMCLIB_CFLAGS="$XVMCLIB_CFLAGS"
  17660. elif test -n "$PKG_CONFIG"; then
  17661. if test -n "$PKG_CONFIG" && \
  17662. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel\""; } >&5
  17663. ($PKG_CONFIG --exists --print-errors "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel") 2>&5
  17664. ac_status=$?
  17665. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17666. test $ac_status = 0; }; then
  17667. pkg_cv_XVMCLIB_CFLAGS=`$PKG_CONFIG --cflags "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel" 2>/dev/null`
  17668. test "x$?" != "x0" && pkg_failed=yes
  17669. else
  17670. pkg_failed=yes
  17671. fi
  17672. else
  17673. pkg_failed=untried
  17674. fi
  17675. if test -n "$XVMCLIB_LIBS"; then
  17676. pkg_cv_XVMCLIB_LIBS="$XVMCLIB_LIBS"
  17677. elif test -n "$PKG_CONFIG"; then
  17678. if test -n "$PKG_CONFIG" && \
  17679. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel\""; } >&5
  17680. ($PKG_CONFIG --exists --print-errors "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel") 2>&5
  17681. ac_status=$?
  17682. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17683. test $ac_status = 0; }; then
  17684. pkg_cv_XVMCLIB_LIBS=`$PKG_CONFIG --libs "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel" 2>/dev/null`
  17685. test "x$?" != "x0" && pkg_failed=yes
  17686. else
  17687. pkg_failed=yes
  17688. fi
  17689. else
  17690. pkg_failed=untried
  17691. fi
  17692. if test $pkg_failed = yes; then
  17693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17694. $as_echo "no" >&6; }
  17695. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17696. _pkg_short_errors_supported=yes
  17697. else
  17698. _pkg_short_errors_supported=no
  17699. fi
  17700. if test $_pkg_short_errors_supported = yes; then
  17701. XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel" 2>&1`
  17702. else
  17703. XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel" 2>&1`
  17704. fi
  17705. # Put the nasty error message in config.log where it belongs
  17706. echo "$XVMCLIB_PKG_ERRORS" >&5
  17707. XVMC="no"
  17708. elif test $pkg_failed = untried; then
  17709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17710. $as_echo "no" >&6; }
  17711. XVMC="no"
  17712. else
  17713. XVMCLIB_CFLAGS=$pkg_cv_XVMCLIB_CFLAGS
  17714. XVMCLIB_LIBS=$pkg_cv_XVMCLIB_LIBS
  17715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17716. $as_echo "yes" >&6; }
  17717. fi
  17718. fi
  17719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XvMC support" >&5
  17720. $as_echo_n "checking whether to include XvMC support... " >&6; }
  17721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVMC" >&5
  17722. $as_echo "$XVMC" >&6; }
  17723. if test "x$XVMC" = "xyes"; then
  17724. XVMC_TRUE=
  17725. XVMC_FALSE='#'
  17726. else
  17727. XVMC_TRUE='#'
  17728. XVMC_FALSE=
  17729. fi
  17730. if test "x$XVMC" = "xyes"; then
  17731. $as_echo "#define ENABLE_XVMC 1" >>confdefs.h
  17732. xvmc_msg=" yes"
  17733. else
  17734. xvmc_msg=" no"
  17735. fi
  17736. # Check whether --with-default-accel was given.
  17737. if test "${with_default_accel+set}" = set; then :
  17738. withval=$with_default_accel; accel="$withval"
  17739. else
  17740. accel="auto"
  17741. fi
  17742. if test "x$accel" = "xyes"; then
  17743. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No default acceleration specified, choosing automatic selection" >&5
  17744. $as_echo "$as_me: WARNING: No default acceleration specified, choosing automatic selection" >&2;}
  17745. accel="auto"
  17746. fi
  17747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which acceleration method to use by default" >&5
  17748. $as_echo_n "checking which acceleration method to use by default... " >&6; }
  17749. if test "x$accel" = "xauto"; then
  17750. if test "x$SNA" != "xno"; then
  17751. accel="sna"
  17752. else
  17753. if test "x$UXA" != "xno"; then
  17754. accel="uxa"
  17755. fi
  17756. fi
  17757. if test "x$accel" = "xauto" -a "x$KMS" = "xyes"; then
  17758. as_fn_error $? "No default acceleration option" "$LINENO" 5
  17759. fi
  17760. fi
  17761. have_accel="none"
  17762. if test "x$accel" = "xsna"; then
  17763. if test "x$SNA" != "xno"; then
  17764. $as_echo "#define DEFAULT_ACCEL_METHOD SNA" >>confdefs.h
  17765. have_accel="yes"
  17766. else
  17767. as_fn_error $? "SNA requested as default, but is not enabled" "$LINENO" 5
  17768. fi
  17769. fi
  17770. if test "x$accel" = "xuxa"; then
  17771. if test "x$UXA" != "xno"; then
  17772. $as_echo "#define DEFAULT_ACCEL_METHOD UXA" >>confdefs.h
  17773. have_accel="yes"
  17774. else
  17775. as_fn_error $? "UXA requested as default, but is not enabled" "$LINENO" 5
  17776. fi
  17777. fi
  17778. if test "x$accel" = "xglamor"; then
  17779. if test "x$GLAMOR" != "xno"; then
  17780. $as_echo "#define DEFAULT_ACCEL_METHOD GLAMOR" >>confdefs.h
  17781. have_accel="yes"
  17782. else
  17783. as_fn_error $? "glamor acceleration requested as default, but is not enabled" "$LINENO" 5
  17784. fi
  17785. fi
  17786. if test "x$have_accel" = "xnone"; then
  17787. if test "x$KMS" = "xyes"; then
  17788. if test "x$SNA" != "xno" -o "x$UXA" != "xno"; then
  17789. $as_echo "#define DEFAULT_ACCEL_METHOD NOACCEL" >>confdefs.h
  17790. else
  17791. as_fn_error $? "Invalid default acceleration option" "$LINENO" 5
  17792. fi
  17793. fi
  17794. accel="none"
  17795. fi
  17796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $accel" >&5
  17797. $as_echo "$accel" >&6; }
  17798. xp_msg=""
  17799. # Check whether --enable-tear-free was given.
  17800. if test "${enable_tear_free+set}" = set; then :
  17801. enableval=$enable_tear_free; TEARFREE="$enableval"
  17802. else
  17803. TEARFREE="no"
  17804. fi
  17805. if test "x$TEARFREE" = "xyes"; then
  17806. $as_echo "#define TEARFREE 1" >>confdefs.h
  17807. xp_msg="$xp_msg TearFree"
  17808. fi
  17809. # Check whether --enable-rendernode was given.
  17810. if test "${enable_rendernode+set}" = set; then :
  17811. enableval=$enable_rendernode; RENDERNODE="$enableval"
  17812. else
  17813. RENDERNODE="no"
  17814. fi
  17815. if test "x$RENDERNODE" = "xyes"; then
  17816. USE_RENDERNODE_TRUE=
  17817. USE_RENDERNODE_FALSE='#'
  17818. else
  17819. USE_RENDERNODE_TRUE='#'
  17820. USE_RENDERNODE_FALSE=
  17821. fi
  17822. if test "x$RENDERNODE" = "xyes"; then
  17823. $as_echo "#define USE_RENDERNODE 1" >>confdefs.h
  17824. xp_msg="$xp_msg rendernode"
  17825. fi
  17826. # Check whether --enable-create2 was given.
  17827. if test "${enable_create2+set}" = set; then :
  17828. enableval=$enable_create2; CREATE2="$enableval"
  17829. else
  17830. CREATE2="no"
  17831. fi
  17832. if test "x$CREATE2" = "xyes"; then
  17833. USE_CREATE2_TRUE=
  17834. USE_CREATE2_FALSE='#'
  17835. else
  17836. USE_CREATE2_TRUE='#'
  17837. USE_CREATE2_FALSE=
  17838. fi
  17839. if test "x$CREATE2" = "xyes"; then
  17840. $as_echo "#define USE_CREATE2 1" >>confdefs.h
  17841. xp_msg="$xp_msg create2"
  17842. fi
  17843. # Check whether --enable-async-swap was given.
  17844. if test "${enable_async_swap+set}" = set; then :
  17845. enableval=$enable_async_swap; ASYNC_SWAP="$enableval"
  17846. else
  17847. ASYNC_SWAP="no"
  17848. fi
  17849. if test "x$ASYNC_SWAP" = "xyes"; then
  17850. USE_ASYNC_SWAP_TRUE=
  17851. USE_ASYNC_SWAP_FALSE='#'
  17852. else
  17853. USE_ASYNC_SWAP_TRUE='#'
  17854. USE_ASYNC_SWAP_FALSE=
  17855. fi
  17856. if test "x$ASYNC_SWAP" = "xyes"; then
  17857. $as_echo "#define USE_ASYNC_SWAP 1" >>confdefs.h
  17858. xp_msg="$xp_msg async-swap"
  17859. fi
  17860. # Check whether --enable-debug was given.
  17861. if test "${enable_debug+set}" = set; then :
  17862. enableval=$enable_debug; DEBUG="$enableval"
  17863. else
  17864. DEBUG="no"
  17865. fi
  17866. # Check whether --enable-valgrind was given.
  17867. if test "${enable_valgrind+set}" = set; then :
  17868. enableval=$enable_valgrind; VG="$enableval"
  17869. else
  17870. VG="no"
  17871. fi
  17872. LIBS=""
  17873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  17874. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  17875. if ${ac_cv_search_clock_gettime+:} false; then :
  17876. $as_echo_n "(cached) " >&6
  17877. else
  17878. ac_func_search_save_LIBS=$LIBS
  17879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17880. /* end confdefs.h. */
  17881. /* Override any GCC internal prototype to avoid an error.
  17882. Use char because int might match the return type of a GCC
  17883. builtin and then its argument prototype would still apply. */
  17884. #ifdef __cplusplus
  17885. extern "C"
  17886. #endif
  17887. char clock_gettime ();
  17888. int
  17889. main ()
  17890. {
  17891. return clock_gettime ();
  17892. ;
  17893. return 0;
  17894. }
  17895. _ACEOF
  17896. for ac_lib in '' rt; do
  17897. if test -z "$ac_lib"; then
  17898. ac_res="none required"
  17899. else
  17900. ac_res=-l$ac_lib
  17901. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17902. fi
  17903. if ac_fn_c_try_link "$LINENO"; then :
  17904. ac_cv_search_clock_gettime=$ac_res
  17905. fi
  17906. rm -f core conftest.err conftest.$ac_objext \
  17907. conftest$ac_exeext
  17908. if ${ac_cv_search_clock_gettime+:} false; then :
  17909. break
  17910. fi
  17911. done
  17912. if ${ac_cv_search_clock_gettime+:} false; then :
  17913. else
  17914. ac_cv_search_clock_gettime=no
  17915. fi
  17916. rm conftest.$ac_ext
  17917. LIBS=$ac_func_search_save_LIBS
  17918. fi
  17919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  17920. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  17921. ac_res=$ac_cv_search_clock_gettime
  17922. if test "$ac_res" != no; then :
  17923. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17924. CLOCK_GETTIME_LIBS=$LIBS
  17925. fi
  17926. sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
  17927. if test "x$DEBUG" != "xno"; then
  17928. DEBUG_TRUE=
  17929. DEBUG_FALSE='#'
  17930. else
  17931. DEBUG_TRUE='#'
  17932. DEBUG_FALSE=
  17933. fi
  17934. if test "x$DEBUG" = "xfull"; then
  17935. FULL_DEBUG_TRUE=
  17936. FULL_DEBUG_FALSE='#'
  17937. else
  17938. FULL_DEBUG_TRUE='#'
  17939. FULL_DEBUG_FALSE=
  17940. fi
  17941. if test "x$DEBUG" = "xno"; then
  17942. $as_echo "#define NDEBUG 1" >>confdefs.h
  17943. else
  17944. if test "x$VG" != "xyes"; then
  17945. VG=auto
  17946. fi
  17947. fi
  17948. debug_msg=""
  17949. have_valgrind="no"
  17950. if test "x$VG" != "xno"; then
  17951. pkg_failed=no
  17952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
  17953. $as_echo_n "checking for VALGRIND... " >&6; }
  17954. if test -n "$VALGRIND_CFLAGS"; then
  17955. pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
  17956. elif test -n "$PKG_CONFIG"; then
  17957. if test -n "$PKG_CONFIG" && \
  17958. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
  17959. ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
  17960. ac_status=$?
  17961. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17962. test $ac_status = 0; }; then
  17963. pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
  17964. test "x$?" != "x0" && pkg_failed=yes
  17965. else
  17966. pkg_failed=yes
  17967. fi
  17968. else
  17969. pkg_failed=untried
  17970. fi
  17971. if test -n "$VALGRIND_LIBS"; then
  17972. pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
  17973. elif test -n "$PKG_CONFIG"; then
  17974. if test -n "$PKG_CONFIG" && \
  17975. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
  17976. ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
  17977. ac_status=$?
  17978. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17979. test $ac_status = 0; }; then
  17980. pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
  17981. test "x$?" != "x0" && pkg_failed=yes
  17982. else
  17983. pkg_failed=yes
  17984. fi
  17985. else
  17986. pkg_failed=untried
  17987. fi
  17988. if test $pkg_failed = yes; then
  17989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17990. $as_echo "no" >&6; }
  17991. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17992. _pkg_short_errors_supported=yes
  17993. else
  17994. _pkg_short_errors_supported=no
  17995. fi
  17996. if test $_pkg_short_errors_supported = yes; then
  17997. VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
  17998. else
  17999. VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
  18000. fi
  18001. # Put the nasty error message in config.log where it belongs
  18002. echo "$VALGRIND_PKG_ERRORS" >&5
  18003. have_valgrind="no"
  18004. elif test $pkg_failed = untried; then
  18005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18006. $as_echo "no" >&6; }
  18007. have_valgrind="no"
  18008. else
  18009. VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
  18010. VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
  18011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18012. $as_echo "yes" >&6; }
  18013. have_valgrind="yes"
  18014. fi
  18015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include valgrind support" >&5
  18016. $as_echo_n "checking whether to include valgrind support... " >&6; }
  18017. if test "x$have_valgrind" = "xyes"; then
  18018. $as_echo "#define HAVE_VALGRIND 1" >>confdefs.h
  18019. else
  18020. if test "x$VG" = "xyes"; then
  18021. as_fn_error $? "valgrind support requested, but valgrind-dev headers not found" "$LINENO" 5
  18022. fi
  18023. fi
  18024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_valgrind ($VG)" >&5
  18025. $as_echo "$have_valgrind ($VG)" >&6; }
  18026. fi
  18027. if test "x$have_valgrind" = "xyes"; then
  18028. VALGRIND_TRUE=
  18029. VALGRIND_FALSE='#'
  18030. else
  18031. VALGRIND_TRUE='#'
  18032. VALGRIND_FALSE=
  18033. fi
  18034. if test "x$have_valgrind" = "xyes"; then
  18035. debug_msg="$debug_msg valgrind"
  18036. fi
  18037. if test "x$DEBUG" = "xsync"; then
  18038. $as_echo "#define DEBUG_SYNC 1" >>confdefs.h
  18039. debug_msg="$debug_msg sync"
  18040. fi
  18041. if test "x$DEBUG" = "xmemory"; then
  18042. $as_echo "#define DEBUG_MEMORY 1" >>confdefs.h
  18043. debug_msg="$debug_msg memory"
  18044. fi
  18045. if test "x$DEBUG" = "xpixmap"; then
  18046. $as_echo "#define DEBUG_PIXMAP 1" >>confdefs.h
  18047. debug_msg="$debug_msg pixmaps"
  18048. fi
  18049. if test "x$DEBUG" = "xfull"; then
  18050. $as_echo "#define DEBUG_MEMORY 1" >>confdefs.h
  18051. $as_echo "#define DEBUG_PIXMAP 1" >>confdefs.h
  18052. $as_echo "#define HAS_DEBUG_FULL 1" >>confdefs.h
  18053. CFLAGS="$CFLAGS -O0 -ggdb3"
  18054. debug_msg=" full"
  18055. fi
  18056. if test "x$debug_msg" = "x"; then
  18057. debug_msg=" none"
  18058. fi
  18059. ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
  18060. if test "x$ac_cv_func_getline" = xyes; then :
  18061. $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
  18062. else
  18063. case " $LIBOBJS " in
  18064. *" getline.$ac_objext "* ) ;;
  18065. *) LIBOBJS="$LIBOBJS getline.$ac_objext"
  18066. ;;
  18067. esac
  18068. fi
  18069. DRIVER_NAME="intel"
  18070. prefix_NONE=
  18071. exec_prefix_NONE=
  18072. test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
  18073. test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
  18074. eval ac_define_dir="\"$prefix\""
  18075. eval ac_define_dir="\"$ac_define_dir\""
  18076. PREFIX_PATH="$ac_define_dir"
  18077. cat >>confdefs.h <<_ACEOF
  18078. #define PREFIX_PATH "$ac_define_dir"
  18079. _ACEOF
  18080. test "$prefix_NONE" && prefix=NONE
  18081. test "$exec_prefix_NONE" && exec_prefix=NONE
  18082. prefix_NONE=
  18083. exec_prefix_NONE=
  18084. test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
  18085. test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
  18086. eval ac_define_dir="\"$libexecdir\""
  18087. eval ac_define_dir="\"$ac_define_dir\""
  18088. LIBEXEC_PATH="$ac_define_dir"
  18089. cat >>confdefs.h <<_ACEOF
  18090. #define LIBEXEC_PATH "$ac_define_dir"
  18091. _ACEOF
  18092. test "$prefix_NONE" && prefix=NONE
  18093. test "$exec_prefix_NONE" && exec_prefix=NONE
  18094. ac_config_files="$ac_config_files Makefile man/Makefile libobj/Makefile src/Makefile src/legacy/Makefile src/legacy/i810/Makefile src/legacy/i810/xvmc/Makefile src/render_program/Makefile src/sna/Makefile src/sna/brw/Makefile src/sna/fb/Makefile src/uxa/Makefile xvmc/Makefile xvmc/shader/Makefile xvmc/shader/mc/Makefile xvmc/shader/vld/Makefile test/Makefile tools/Makefile tools/org.x.xf86-video-intel.backlight-helper.policy"
  18095. cat >confcache <<\_ACEOF
  18096. # This file is a shell script that caches the results of configure
  18097. # tests run on this system so they can be shared between configure
  18098. # scripts and configure runs, see configure's option --config-cache.
  18099. # It is not useful on other systems. If it contains results you don't
  18100. # want to keep, you may remove or edit it.
  18101. #
  18102. # config.status only pays attention to the cache file if you give it
  18103. # the --recheck option to rerun configure.
  18104. #
  18105. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18106. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18107. # following values.
  18108. _ACEOF
  18109. # The following way of writing the cache mishandles newlines in values,
  18110. # but we know of no workaround that is simple, portable, and efficient.
  18111. # So, we kill variables containing newlines.
  18112. # Ultrix sh set writes to stderr and can't be redirected directly,
  18113. # and sets the high bit in the cache file unless we assign to the vars.
  18114. (
  18115. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18116. eval ac_val=\$$ac_var
  18117. case $ac_val in #(
  18118. *${as_nl}*)
  18119. case $ac_var in #(
  18120. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18121. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18122. esac
  18123. case $ac_var in #(
  18124. _ | IFS | as_nl) ;; #(
  18125. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18126. *) { eval $ac_var=; unset $ac_var;} ;;
  18127. esac ;;
  18128. esac
  18129. done
  18130. (set) 2>&1 |
  18131. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18132. *${as_nl}ac_space=\ *)
  18133. # `set' does not quote correctly, so add quotes: double-quote
  18134. # substitution turns \\\\ into \\, and sed turns \\ into \.
  18135. sed -n \
  18136. "s/'/'\\\\''/g;
  18137. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18138. ;; #(
  18139. *)
  18140. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18141. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18142. ;;
  18143. esac |
  18144. sort
  18145. ) |
  18146. sed '
  18147. /^ac_cv_env_/b end
  18148. t clear
  18149. :clear
  18150. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18151. t end
  18152. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18153. :end' >>confcache
  18154. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18155. if test -w "$cache_file"; then
  18156. if test "x$cache_file" != "x/dev/null"; then
  18157. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  18158. $as_echo "$as_me: updating cache $cache_file" >&6;}
  18159. if test ! -f "$cache_file" || test -h "$cache_file"; then
  18160. cat confcache >"$cache_file"
  18161. else
  18162. case $cache_file in #(
  18163. */* | ?:*)
  18164. mv -f confcache "$cache_file"$$ &&
  18165. mv -f "$cache_file"$$ "$cache_file" ;; #(
  18166. *)
  18167. mv -f confcache "$cache_file" ;;
  18168. esac
  18169. fi
  18170. fi
  18171. else
  18172. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  18173. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18174. fi
  18175. fi
  18176. rm -f confcache
  18177. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18178. # Let make expand exec_prefix.
  18179. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18180. DEFS=-DHAVE_CONFIG_H
  18181. ac_libobjs=
  18182. ac_ltlibobjs=
  18183. U=
  18184. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18185. # 1. Remove the extension, and $U if already installed.
  18186. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18187. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  18188. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18189. # will be set to the directory where LIBOBJS objects are built.
  18190. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18191. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  18192. done
  18193. LIBOBJS=$ac_libobjs
  18194. LTLIBOBJS=$ac_ltlibobjs
  18195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  18196. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  18197. if test -n "$am_sleep_pid"; then
  18198. # Hide warnings about reused PIDs.
  18199. wait $am_sleep_pid 2>/dev/null
  18200. fi
  18201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  18202. $as_echo "done" >&6; }
  18203. if test -n "$EXEEXT"; then
  18204. am__EXEEXT_TRUE=
  18205. am__EXEEXT_FALSE='#'
  18206. else
  18207. am__EXEEXT_TRUE='#'
  18208. am__EXEEXT_FALSE=
  18209. fi
  18210. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  18211. as_fn_error $? "conditional \"AMDEP\" was never defined.
  18212. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18213. fi
  18214. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  18215. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  18216. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18217. fi
  18218. if test -z "${BUILD_BACKLIGHT_HELPER_TRUE}" && test -z "${BUILD_BACKLIGHT_HELPER_FALSE}"; then
  18219. as_fn_error $? "conditional \"BUILD_BACKLIGHT_HELPER\" was never defined.
  18220. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18221. fi
  18222. if test -z "${HAVE_DOT_GIT_TRUE}" && test -z "${HAVE_DOT_GIT_FALSE}"; then
  18223. as_fn_error $? "conditional \"HAVE_DOT_GIT\" was never defined.
  18224. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18225. fi
  18226. if test -z "${HAVE_GEN4ASM_TRUE}" && test -z "${HAVE_GEN4ASM_FALSE}"; then
  18227. as_fn_error $? "conditional \"HAVE_GEN4ASM\" was never defined.
  18228. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18229. fi
  18230. if test -z "${HAVE_X11_TRUE}" && test -z "${HAVE_X11_FALSE}"; then
  18231. as_fn_error $? "conditional \"HAVE_X11\" was never defined.
  18232. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18233. fi
  18234. if test -z "${X11_DRI3_TRUE}" && test -z "${X11_DRI3_FALSE}"; then
  18235. as_fn_error $? "conditional \"X11_DRI3\" was never defined.
  18236. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18237. fi
  18238. if test -z "${X11_SHM_TRUE}" && test -z "${X11_SHM_FALSE}"; then
  18239. as_fn_error $? "conditional \"X11_SHM\" was never defined.
  18240. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18241. fi
  18242. if test -z "${BUILD_TOOLS_TRUE}" && test -z "${BUILD_TOOLS_FALSE}"; then
  18243. as_fn_error $? "conditional \"BUILD_TOOLS\" was never defined.
  18244. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18245. fi
  18246. if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then
  18247. as_fn_error $? "conditional \"DGA\" was never defined.
  18248. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18249. fi
  18250. if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
  18251. as_fn_error $? "conditional \"XAA\" was never defined.
  18252. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18253. fi
  18254. if test -z "${KMS_TRUE}" && test -z "${KMS_FALSE}"; then
  18255. as_fn_error $? "conditional \"KMS\" was never defined.
  18256. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18257. fi
  18258. if test -z "${UMS_TRUE}" && test -z "${UMS_FALSE}"; then
  18259. as_fn_error $? "conditional \"UMS\" was never defined.
  18260. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18261. fi
  18262. if test -z "${DRI1_TRUE}" && test -z "${DRI1_FALSE}"; then
  18263. as_fn_error $? "conditional \"DRI1\" was never defined.
  18264. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18265. fi
  18266. if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then
  18267. as_fn_error $? "conditional \"DRI2\" was never defined.
  18268. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18269. fi
  18270. if test -z "${DRI3_TRUE}" && test -z "${DRI3_FALSE}"; then
  18271. as_fn_error $? "conditional \"DRI3\" was never defined.
  18272. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18273. fi
  18274. if test -z "${PRESENT_TRUE}" && test -z "${PRESENT_FALSE}"; then
  18275. as_fn_error $? "conditional \"PRESENT\" was never defined.
  18276. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18277. fi
  18278. if test -z "${UXA_TRUE}" && test -z "${UXA_FALSE}"; then
  18279. as_fn_error $? "conditional \"UXA\" was never defined.
  18280. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18281. fi
  18282. if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then
  18283. as_fn_error $? "conditional \"GLAMOR\" was never defined.
  18284. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18285. fi
  18286. if test -z "${SNA_TRUE}" && test -z "${SNA_FALSE}"; then
  18287. as_fn_error $? "conditional \"SNA\" was never defined.
  18288. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18289. fi
  18290. if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
  18291. as_fn_error $? "conditional \"XVMC\" was never defined.
  18292. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18293. fi
  18294. if test -z "${USE_RENDERNODE_TRUE}" && test -z "${USE_RENDERNODE_FALSE}"; then
  18295. as_fn_error $? "conditional \"USE_RENDERNODE\" was never defined.
  18296. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18297. fi
  18298. if test -z "${USE_CREATE2_TRUE}" && test -z "${USE_CREATE2_FALSE}"; then
  18299. as_fn_error $? "conditional \"USE_CREATE2\" was never defined.
  18300. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18301. fi
  18302. if test -z "${USE_ASYNC_SWAP_TRUE}" && test -z "${USE_ASYNC_SWAP_FALSE}"; then
  18303. as_fn_error $? "conditional \"USE_ASYNC_SWAP\" was never defined.
  18304. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18305. fi
  18306. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  18307. as_fn_error $? "conditional \"DEBUG\" was never defined.
  18308. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18309. fi
  18310. if test -z "${FULL_DEBUG_TRUE}" && test -z "${FULL_DEBUG_FALSE}"; then
  18311. as_fn_error $? "conditional \"FULL_DEBUG\" was never defined.
  18312. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18313. fi
  18314. if test -z "${VALGRIND_TRUE}" && test -z "${VALGRIND_FALSE}"; then
  18315. as_fn_error $? "conditional \"VALGRIND\" was never defined.
  18316. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18317. fi
  18318. : "${CONFIG_STATUS=./config.status}"
  18319. ac_write_fail=0
  18320. ac_clean_files_save=$ac_clean_files
  18321. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18322. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  18323. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  18324. as_write_fail=0
  18325. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  18326. #! $SHELL
  18327. # Generated by $as_me.
  18328. # Run this file to recreate the current configuration.
  18329. # Compiler output produced by configure, useful for debugging
  18330. # configure, is in config.log if it exists.
  18331. debug=false
  18332. ac_cs_recheck=false
  18333. ac_cs_silent=false
  18334. SHELL=\${CONFIG_SHELL-$SHELL}
  18335. export SHELL
  18336. _ASEOF
  18337. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  18338. ## -------------------- ##
  18339. ## M4sh Initialization. ##
  18340. ## -------------------- ##
  18341. # Be more Bourne compatible
  18342. DUALCASE=1; export DUALCASE # for MKS sh
  18343. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  18344. emulate sh
  18345. NULLCMD=:
  18346. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18347. # is contrary to our usage. Disable this feature.
  18348. alias -g '${1+"$@"}'='"$@"'
  18349. setopt NO_GLOB_SUBST
  18350. else
  18351. case `(set -o) 2>/dev/null` in #(
  18352. *posix*) :
  18353. set -o posix ;; #(
  18354. *) :
  18355. ;;
  18356. esac
  18357. fi
  18358. as_nl='
  18359. '
  18360. export as_nl
  18361. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  18362. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  18363. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  18364. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  18365. # Prefer a ksh shell builtin over an external printf program on Solaris,
  18366. # but without wasting forks for bash or zsh.
  18367. if test -z "$BASH_VERSION$ZSH_VERSION" \
  18368. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  18369. as_echo='print -r --'
  18370. as_echo_n='print -rn --'
  18371. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  18372. as_echo='printf %s\n'
  18373. as_echo_n='printf %s'
  18374. else
  18375. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  18376. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  18377. as_echo_n='/usr/ucb/echo -n'
  18378. else
  18379. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  18380. as_echo_n_body='eval
  18381. arg=$1;
  18382. case $arg in #(
  18383. *"$as_nl"*)
  18384. expr "X$arg" : "X\\(.*\\)$as_nl";
  18385. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  18386. esac;
  18387. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  18388. '
  18389. export as_echo_n_body
  18390. as_echo_n='sh -c $as_echo_n_body as_echo'
  18391. fi
  18392. export as_echo_body
  18393. as_echo='sh -c $as_echo_body as_echo'
  18394. fi
  18395. # The user is always right.
  18396. if test "${PATH_SEPARATOR+set}" != set; then
  18397. PATH_SEPARATOR=:
  18398. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  18399. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  18400. PATH_SEPARATOR=';'
  18401. }
  18402. fi
  18403. # IFS
  18404. # We need space, tab and new line, in precisely that order. Quoting is
  18405. # there to prevent editors from complaining about space-tab.
  18406. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  18407. # splitting by setting IFS to empty value.)
  18408. IFS=" "" $as_nl"
  18409. # Find who we are. Look in the path if we contain no directory separator.
  18410. as_myself=
  18411. case $0 in #((
  18412. *[\\/]* ) as_myself=$0 ;;
  18413. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18414. for as_dir in $PATH
  18415. do
  18416. IFS=$as_save_IFS
  18417. test -z "$as_dir" && as_dir=.
  18418. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  18419. done
  18420. IFS=$as_save_IFS
  18421. ;;
  18422. esac
  18423. # We did not find ourselves, most probably we were run as `sh COMMAND'
  18424. # in which case we are not to be found in the path.
  18425. if test "x$as_myself" = x; then
  18426. as_myself=$0
  18427. fi
  18428. if test ! -f "$as_myself"; then
  18429. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18430. exit 1
  18431. fi
  18432. # Unset variables that we do not need and which cause bugs (e.g. in
  18433. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  18434. # suppresses any "Segmentation fault" message there. '((' could
  18435. # trigger a bug in pdksh 5.2.14.
  18436. for as_var in BASH_ENV ENV MAIL MAILPATH
  18437. do eval test x\${$as_var+set} = xset \
  18438. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  18439. done
  18440. PS1='$ '
  18441. PS2='> '
  18442. PS4='+ '
  18443. # NLS nuisances.
  18444. LC_ALL=C
  18445. export LC_ALL
  18446. LANGUAGE=C
  18447. export LANGUAGE
  18448. # CDPATH.
  18449. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18450. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  18451. # ----------------------------------------
  18452. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  18453. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  18454. # script with STATUS, using 1 if that was 0.
  18455. as_fn_error ()
  18456. {
  18457. as_status=$1; test $as_status -eq 0 && as_status=1
  18458. if test "$4"; then
  18459. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18460. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  18461. fi
  18462. $as_echo "$as_me: error: $2" >&2
  18463. as_fn_exit $as_status
  18464. } # as_fn_error
  18465. # as_fn_set_status STATUS
  18466. # -----------------------
  18467. # Set $? to STATUS, without forking.
  18468. as_fn_set_status ()
  18469. {
  18470. return $1
  18471. } # as_fn_set_status
  18472. # as_fn_exit STATUS
  18473. # -----------------
  18474. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  18475. as_fn_exit ()
  18476. {
  18477. set +e
  18478. as_fn_set_status $1
  18479. exit $1
  18480. } # as_fn_exit
  18481. # as_fn_unset VAR
  18482. # ---------------
  18483. # Portably unset VAR.
  18484. as_fn_unset ()
  18485. {
  18486. { eval $1=; unset $1;}
  18487. }
  18488. as_unset=as_fn_unset
  18489. # as_fn_append VAR VALUE
  18490. # ----------------------
  18491. # Append the text in VALUE to the end of the definition contained in VAR. Take
  18492. # advantage of any shell optimizations that allow amortized linear growth over
  18493. # repeated appends, instead of the typical quadratic growth present in naive
  18494. # implementations.
  18495. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  18496. eval 'as_fn_append ()
  18497. {
  18498. eval $1+=\$2
  18499. }'
  18500. else
  18501. as_fn_append ()
  18502. {
  18503. eval $1=\$$1\$2
  18504. }
  18505. fi # as_fn_append
  18506. # as_fn_arith ARG...
  18507. # ------------------
  18508. # Perform arithmetic evaluation on the ARGs, and store the result in the
  18509. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  18510. # must be portable across $(()) and expr.
  18511. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  18512. eval 'as_fn_arith ()
  18513. {
  18514. as_val=$(( $* ))
  18515. }'
  18516. else
  18517. as_fn_arith ()
  18518. {
  18519. as_val=`expr "$@" || test $? -eq 1`
  18520. }
  18521. fi # as_fn_arith
  18522. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18523. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18524. as_expr=expr
  18525. else
  18526. as_expr=false
  18527. fi
  18528. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18529. as_basename=basename
  18530. else
  18531. as_basename=false
  18532. fi
  18533. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18534. as_dirname=dirname
  18535. else
  18536. as_dirname=false
  18537. fi
  18538. as_me=`$as_basename -- "$0" ||
  18539. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18540. X"$0" : 'X\(//\)$' \| \
  18541. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18542. $as_echo X/"$0" |
  18543. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18544. s//\1/
  18545. q
  18546. }
  18547. /^X\/\(\/\/\)$/{
  18548. s//\1/
  18549. q
  18550. }
  18551. /^X\/\(\/\).*/{
  18552. s//\1/
  18553. q
  18554. }
  18555. s/.*/./; q'`
  18556. # Avoid depending upon Character Ranges.
  18557. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18558. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18559. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18560. as_cr_digits='0123456789'
  18561. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18562. ECHO_C= ECHO_N= ECHO_T=
  18563. case `echo -n x` in #(((((
  18564. -n*)
  18565. case `echo 'xy\c'` in
  18566. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18567. xy) ECHO_C='\c';;
  18568. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  18569. ECHO_T=' ';;
  18570. esac;;
  18571. *)
  18572. ECHO_N='-n';;
  18573. esac
  18574. rm -f conf$$ conf$$.exe conf$$.file
  18575. if test -d conf$$.dir; then
  18576. rm -f conf$$.dir/conf$$.file
  18577. else
  18578. rm -f conf$$.dir
  18579. mkdir conf$$.dir 2>/dev/null
  18580. fi
  18581. if (echo >conf$$.file) 2>/dev/null; then
  18582. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18583. as_ln_s='ln -s'
  18584. # ... but there are two gotchas:
  18585. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  18586. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  18587. # In both cases, we have to default to `cp -pR'.
  18588. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18589. as_ln_s='cp -pR'
  18590. elif ln conf$$.file conf$$ 2>/dev/null; then
  18591. as_ln_s=ln
  18592. else
  18593. as_ln_s='cp -pR'
  18594. fi
  18595. else
  18596. as_ln_s='cp -pR'
  18597. fi
  18598. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18599. rmdir conf$$.dir 2>/dev/null
  18600. # as_fn_mkdir_p
  18601. # -------------
  18602. # Create "$as_dir" as a directory, including parents if necessary.
  18603. as_fn_mkdir_p ()
  18604. {
  18605. case $as_dir in #(
  18606. -*) as_dir=./$as_dir;;
  18607. esac
  18608. test -d "$as_dir" || eval $as_mkdir_p || {
  18609. as_dirs=
  18610. while :; do
  18611. case $as_dir in #(
  18612. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18613. *) as_qdir=$as_dir;;
  18614. esac
  18615. as_dirs="'$as_qdir' $as_dirs"
  18616. as_dir=`$as_dirname -- "$as_dir" ||
  18617. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18618. X"$as_dir" : 'X\(//\)[^/]' \| \
  18619. X"$as_dir" : 'X\(//\)$' \| \
  18620. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18621. $as_echo X"$as_dir" |
  18622. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18623. s//\1/
  18624. q
  18625. }
  18626. /^X\(\/\/\)[^/].*/{
  18627. s//\1/
  18628. q
  18629. }
  18630. /^X\(\/\/\)$/{
  18631. s//\1/
  18632. q
  18633. }
  18634. /^X\(\/\).*/{
  18635. s//\1/
  18636. q
  18637. }
  18638. s/.*/./; q'`
  18639. test -d "$as_dir" && break
  18640. done
  18641. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18642. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  18643. } # as_fn_mkdir_p
  18644. if mkdir -p . 2>/dev/null; then
  18645. as_mkdir_p='mkdir -p "$as_dir"'
  18646. else
  18647. test -d ./-p && rmdir ./-p
  18648. as_mkdir_p=false
  18649. fi
  18650. # as_fn_executable_p FILE
  18651. # -----------------------
  18652. # Test if FILE is an executable regular file.
  18653. as_fn_executable_p ()
  18654. {
  18655. test -f "$1" && test -x "$1"
  18656. } # as_fn_executable_p
  18657. as_test_x='test -x'
  18658. as_executable_p=as_fn_executable_p
  18659. # Sed expression to map a string onto a valid CPP name.
  18660. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18661. # Sed expression to map a string onto a valid variable name.
  18662. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18663. exec 6>&1
  18664. ## ----------------------------------- ##
  18665. ## Main body of $CONFIG_STATUS script. ##
  18666. ## ----------------------------------- ##
  18667. _ASEOF
  18668. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  18669. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18670. # Save the log message, to keep $0 and so on meaningful, and to
  18671. # report actual input values of CONFIG_FILES etc. instead of their
  18672. # values after options handling.
  18673. ac_log="
  18674. This file was extended by xf86-video-intel $as_me 2.99.916, which was
  18675. generated by GNU Autoconf 2.69. Invocation command line was
  18676. CONFIG_FILES = $CONFIG_FILES
  18677. CONFIG_HEADERS = $CONFIG_HEADERS
  18678. CONFIG_LINKS = $CONFIG_LINKS
  18679. CONFIG_COMMANDS = $CONFIG_COMMANDS
  18680. $ $0 $@
  18681. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  18682. "
  18683. _ACEOF
  18684. case $ac_config_files in *"
  18685. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  18686. esac
  18687. case $ac_config_headers in *"
  18688. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  18689. esac
  18690. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18691. # Files that config.status was made for.
  18692. config_files="$ac_config_files"
  18693. config_headers="$ac_config_headers"
  18694. config_commands="$ac_config_commands"
  18695. _ACEOF
  18696. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18697. ac_cs_usage="\
  18698. \`$as_me' instantiates files and other configuration actions
  18699. from templates according to the current configuration. Unless the files
  18700. and actions are specified as TAGs, all are instantiated by default.
  18701. Usage: $0 [OPTION]... [TAG]...
  18702. -h, --help print this help, then exit
  18703. -V, --version print version number and configuration settings, then exit
  18704. --config print configuration, then exit
  18705. -q, --quiet, --silent
  18706. do not print progress messages
  18707. -d, --debug don't remove temporary files
  18708. --recheck update $as_me by reconfiguring in the same conditions
  18709. --file=FILE[:TEMPLATE]
  18710. instantiate the configuration file FILE
  18711. --header=FILE[:TEMPLATE]
  18712. instantiate the configuration header FILE
  18713. Configuration files:
  18714. $config_files
  18715. Configuration headers:
  18716. $config_headers
  18717. Configuration commands:
  18718. $config_commands
  18719. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
  18720. _ACEOF
  18721. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18722. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  18723. ac_cs_version="\\
  18724. xf86-video-intel config.status 2.99.916
  18725. configured by $0, generated by GNU Autoconf 2.69,
  18726. with options \\"\$ac_cs_config\\"
  18727. Copyright (C) 2012 Free Software Foundation, Inc.
  18728. This config.status script is free software; the Free Software Foundation
  18729. gives unlimited permission to copy, distribute and modify it."
  18730. ac_pwd='$ac_pwd'
  18731. srcdir='$srcdir'
  18732. INSTALL='$INSTALL'
  18733. MKDIR_P='$MKDIR_P'
  18734. AWK='$AWK'
  18735. test -n "\$AWK" || AWK=awk
  18736. _ACEOF
  18737. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18738. # The default lists apply if the user does not specify any file.
  18739. ac_need_defaults=:
  18740. while test $# != 0
  18741. do
  18742. case $1 in
  18743. --*=?*)
  18744. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18745. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  18746. ac_shift=:
  18747. ;;
  18748. --*=)
  18749. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18750. ac_optarg=
  18751. ac_shift=:
  18752. ;;
  18753. *)
  18754. ac_option=$1
  18755. ac_optarg=$2
  18756. ac_shift=shift
  18757. ;;
  18758. esac
  18759. case $ac_option in
  18760. # Handling of the options.
  18761. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18762. ac_cs_recheck=: ;;
  18763. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  18764. $as_echo "$ac_cs_version"; exit ;;
  18765. --config | --confi | --conf | --con | --co | --c )
  18766. $as_echo "$ac_cs_config"; exit ;;
  18767. --debug | --debu | --deb | --de | --d | -d )
  18768. debug=: ;;
  18769. --file | --fil | --fi | --f )
  18770. $ac_shift
  18771. case $ac_optarg in
  18772. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18773. '') as_fn_error $? "missing file argument" ;;
  18774. esac
  18775. as_fn_append CONFIG_FILES " '$ac_optarg'"
  18776. ac_need_defaults=false;;
  18777. --header | --heade | --head | --hea )
  18778. $ac_shift
  18779. case $ac_optarg in
  18780. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18781. esac
  18782. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  18783. ac_need_defaults=false;;
  18784. --he | --h)
  18785. # Conflict between --help and --header
  18786. as_fn_error $? "ambiguous option: \`$1'
  18787. Try \`$0 --help' for more information.";;
  18788. --help | --hel | -h )
  18789. $as_echo "$ac_cs_usage"; exit ;;
  18790. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18791. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18792. ac_cs_silent=: ;;
  18793. # This is an error.
  18794. -*) as_fn_error $? "unrecognized option: \`$1'
  18795. Try \`$0 --help' for more information." ;;
  18796. *) as_fn_append ac_config_targets " $1"
  18797. ac_need_defaults=false ;;
  18798. esac
  18799. shift
  18800. done
  18801. ac_configure_extra_args=
  18802. if $ac_cs_silent; then
  18803. exec 6>/dev/null
  18804. ac_configure_extra_args="$ac_configure_extra_args --silent"
  18805. fi
  18806. _ACEOF
  18807. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18808. if \$ac_cs_recheck; then
  18809. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18810. shift
  18811. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  18812. CONFIG_SHELL='$SHELL'
  18813. export CONFIG_SHELL
  18814. exec "\$@"
  18815. fi
  18816. _ACEOF
  18817. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18818. exec 5>>config.log
  18819. {
  18820. echo
  18821. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  18822. ## Running $as_me. ##
  18823. _ASBOX
  18824. $as_echo "$ac_log"
  18825. } >&5
  18826. _ACEOF
  18827. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18828. #
  18829. # INIT-COMMANDS
  18830. #
  18831. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  18832. # The HP-UX ksh and POSIX shell print the target directory to stdout
  18833. # if CDPATH is set.
  18834. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18835. sed_quote_subst='$sed_quote_subst'
  18836. double_quote_subst='$double_quote_subst'
  18837. delay_variable_subst='$delay_variable_subst'
  18838. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  18839. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  18840. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  18841. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  18842. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  18843. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  18844. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  18845. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  18846. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  18847. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  18848. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  18849. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  18850. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  18851. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  18852. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  18853. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  18854. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  18855. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  18856. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  18857. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  18858. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  18859. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  18860. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  18861. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  18862. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  18863. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  18864. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  18865. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  18866. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  18867. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  18868. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  18869. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  18870. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  18871. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  18872. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  18873. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  18874. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  18875. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  18876. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  18877. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  18878. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  18879. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  18880. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  18881. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  18882. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  18883. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18884. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18885. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  18886. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  18887. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  18888. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  18889. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  18890. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  18891. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  18892. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  18893. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  18894. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  18895. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  18896. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  18897. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  18898. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  18899. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  18900. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  18901. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  18902. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  18903. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  18904. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  18905. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  18906. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  18907. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  18908. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  18909. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  18910. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  18911. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  18912. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  18913. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18914. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  18915. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  18916. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  18917. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  18918. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  18919. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  18920. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18921. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  18922. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18923. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  18924. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18925. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  18926. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18927. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18928. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  18929. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  18930. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  18931. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  18932. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  18933. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18934. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  18935. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  18936. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  18937. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  18938. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  18939. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  18940. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  18941. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  18942. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  18943. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  18944. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  18945. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  18946. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  18947. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  18948. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  18949. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18950. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  18951. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  18952. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  18953. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  18954. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  18955. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18956. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18957. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  18958. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  18959. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  18960. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  18961. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  18962. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  18963. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  18964. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  18965. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  18966. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  18967. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  18968. LTCC='$LTCC'
  18969. LTCFLAGS='$LTCFLAGS'
  18970. compiler='$compiler_DEFAULT'
  18971. # A function that is used when there is no print builtin or printf.
  18972. func_fallback_echo ()
  18973. {
  18974. eval 'cat <<_LTECHO_EOF
  18975. \$1
  18976. _LTECHO_EOF'
  18977. }
  18978. # Quote evaled strings.
  18979. for var in SHELL \
  18980. ECHO \
  18981. PATH_SEPARATOR \
  18982. SED \
  18983. GREP \
  18984. EGREP \
  18985. FGREP \
  18986. LD \
  18987. NM \
  18988. LN_S \
  18989. lt_SP2NL \
  18990. lt_NL2SP \
  18991. reload_flag \
  18992. OBJDUMP \
  18993. deplibs_check_method \
  18994. file_magic_cmd \
  18995. file_magic_glob \
  18996. want_nocaseglob \
  18997. DLLTOOL \
  18998. sharedlib_from_linklib_cmd \
  18999. AR \
  19000. AR_FLAGS \
  19001. archiver_list_spec \
  19002. STRIP \
  19003. RANLIB \
  19004. CC \
  19005. CFLAGS \
  19006. compiler \
  19007. lt_cv_sys_global_symbol_pipe \
  19008. lt_cv_sys_global_symbol_to_cdecl \
  19009. lt_cv_sys_global_symbol_to_c_name_address \
  19010. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  19011. nm_file_list_spec \
  19012. lt_prog_compiler_no_builtin_flag \
  19013. lt_prog_compiler_pic \
  19014. lt_prog_compiler_wl \
  19015. lt_prog_compiler_static \
  19016. lt_cv_prog_compiler_c_o \
  19017. need_locks \
  19018. MANIFEST_TOOL \
  19019. DSYMUTIL \
  19020. NMEDIT \
  19021. LIPO \
  19022. OTOOL \
  19023. OTOOL64 \
  19024. shrext_cmds \
  19025. export_dynamic_flag_spec \
  19026. whole_archive_flag_spec \
  19027. compiler_needs_object \
  19028. with_gnu_ld \
  19029. allow_undefined_flag \
  19030. no_undefined_flag \
  19031. hardcode_libdir_flag_spec \
  19032. hardcode_libdir_separator \
  19033. exclude_expsyms \
  19034. include_expsyms \
  19035. file_list_spec \
  19036. variables_saved_for_relink \
  19037. libname_spec \
  19038. library_names_spec \
  19039. soname_spec \
  19040. install_override_mode \
  19041. finish_eval \
  19042. old_striplib \
  19043. striplib; do
  19044. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19045. *[\\\\\\\`\\"\\\$]*)
  19046. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  19047. ;;
  19048. *)
  19049. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19050. ;;
  19051. esac
  19052. done
  19053. # Double-quote double-evaled strings.
  19054. for var in reload_cmds \
  19055. old_postinstall_cmds \
  19056. old_postuninstall_cmds \
  19057. old_archive_cmds \
  19058. extract_expsyms_cmds \
  19059. old_archive_from_new_cmds \
  19060. old_archive_from_expsyms_cmds \
  19061. archive_cmds \
  19062. archive_expsym_cmds \
  19063. module_cmds \
  19064. module_expsym_cmds \
  19065. export_symbols_cmds \
  19066. prelink_cmds \
  19067. postlink_cmds \
  19068. postinstall_cmds \
  19069. postuninstall_cmds \
  19070. finish_cmds \
  19071. sys_lib_search_path_spec \
  19072. sys_lib_dlsearch_path_spec; do
  19073. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19074. *[\\\\\\\`\\"\\\$]*)
  19075. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  19076. ;;
  19077. *)
  19078. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19079. ;;
  19080. esac
  19081. done
  19082. ac_aux_dir='$ac_aux_dir'
  19083. xsi_shell='$xsi_shell'
  19084. lt_shell_append='$lt_shell_append'
  19085. # See if we are running on zsh, and set the options which allow our
  19086. # commands through without removal of \ escapes INIT.
  19087. if test -n "\${ZSH_VERSION+set}" ; then
  19088. setopt NO_GLOB_SUBST
  19089. fi
  19090. PACKAGE='$PACKAGE'
  19091. VERSION='$VERSION'
  19092. TIMESTAMP='$TIMESTAMP'
  19093. RM='$RM'
  19094. ofile='$ofile'
  19095. _ACEOF
  19096. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19097. # Handling of arguments.
  19098. for ac_config_target in $ac_config_targets
  19099. do
  19100. case $ac_config_target in
  19101. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19102. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19103. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  19104. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19105. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  19106. "libobj/Makefile") CONFIG_FILES="$CONFIG_FILES libobj/Makefile" ;;
  19107. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  19108. "src/legacy/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/Makefile" ;;
  19109. "src/legacy/i810/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/i810/Makefile" ;;
  19110. "src/legacy/i810/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/i810/xvmc/Makefile" ;;
  19111. "src/render_program/Makefile") CONFIG_FILES="$CONFIG_FILES src/render_program/Makefile" ;;
  19112. "src/sna/Makefile") CONFIG_FILES="$CONFIG_FILES src/sna/Makefile" ;;
  19113. "src/sna/brw/Makefile") CONFIG_FILES="$CONFIG_FILES src/sna/brw/Makefile" ;;
  19114. "src/sna/fb/Makefile") CONFIG_FILES="$CONFIG_FILES src/sna/fb/Makefile" ;;
  19115. "src/uxa/Makefile") CONFIG_FILES="$CONFIG_FILES src/uxa/Makefile" ;;
  19116. "xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES xvmc/Makefile" ;;
  19117. "xvmc/shader/Makefile") CONFIG_FILES="$CONFIG_FILES xvmc/shader/Makefile" ;;
  19118. "xvmc/shader/mc/Makefile") CONFIG_FILES="$CONFIG_FILES xvmc/shader/mc/Makefile" ;;
  19119. "xvmc/shader/vld/Makefile") CONFIG_FILES="$CONFIG_FILES xvmc/shader/vld/Makefile" ;;
  19120. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  19121. "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
  19122. "tools/org.x.xf86-video-intel.backlight-helper.policy") CONFIG_FILES="$CONFIG_FILES tools/org.x.xf86-video-intel.backlight-helper.policy" ;;
  19123. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  19124. esac
  19125. done
  19126. # If the user did not use the arguments to specify the items to instantiate,
  19127. # then the envvar interface is used. Set only those that are not.
  19128. # We use the long form for the default assignment because of an extremely
  19129. # bizarre bug on SunOS 4.1.3.
  19130. if $ac_need_defaults; then
  19131. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19132. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19133. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19134. fi
  19135. # Have a temporary directory for convenience. Make it in the build tree
  19136. # simply because there is no reason against having it here, and in addition,
  19137. # creating and moving files from /tmp can sometimes cause problems.
  19138. # Hook for its removal unless debugging.
  19139. # Note that there is a small window in which the directory will not be cleaned:
  19140. # after its creation but before its name has been assigned to `$tmp'.
  19141. $debug ||
  19142. {
  19143. tmp= ac_tmp=
  19144. trap 'exit_status=$?
  19145. : "${ac_tmp:=$tmp}"
  19146. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  19147. ' 0
  19148. trap 'as_fn_exit 1' 1 2 13 15
  19149. }
  19150. # Create a (secure) tmp directory for tmp files.
  19151. {
  19152. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19153. test -d "$tmp"
  19154. } ||
  19155. {
  19156. tmp=./conf$$-$RANDOM
  19157. (umask 077 && mkdir "$tmp")
  19158. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  19159. ac_tmp=$tmp
  19160. # Set up the scripts for CONFIG_FILES section.
  19161. # No need to generate them if there are no CONFIG_FILES.
  19162. # This happens for instance with `./config.status config.h'.
  19163. if test -n "$CONFIG_FILES"; then
  19164. ac_cr=`echo X | tr X '\015'`
  19165. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  19166. # But we know of no other shell where ac_cr would be empty at this
  19167. # point, so we can use a bashism as a fallback.
  19168. if test "x$ac_cr" = x; then
  19169. eval ac_cr=\$\'\\r\'
  19170. fi
  19171. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  19172. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  19173. ac_cs_awk_cr='\\r'
  19174. else
  19175. ac_cs_awk_cr=$ac_cr
  19176. fi
  19177. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  19178. _ACEOF
  19179. {
  19180. echo "cat >conf$$subs.awk <<_ACEOF" &&
  19181. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  19182. echo "_ACEOF"
  19183. } >conf$$subs.sh ||
  19184. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19185. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  19186. ac_delim='%!_!# '
  19187. for ac_last_try in false false false false false :; do
  19188. . ./conf$$subs.sh ||
  19189. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19190. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  19191. if test $ac_delim_n = $ac_delim_num; then
  19192. break
  19193. elif $ac_last_try; then
  19194. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19195. else
  19196. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19197. fi
  19198. done
  19199. rm -f conf$$subs.sh
  19200. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19201. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  19202. _ACEOF
  19203. sed -n '
  19204. h
  19205. s/^/S["/; s/!.*/"]=/
  19206. p
  19207. g
  19208. s/^[^!]*!//
  19209. :repl
  19210. t repl
  19211. s/'"$ac_delim"'$//
  19212. t delim
  19213. :nl
  19214. h
  19215. s/\(.\{148\}\)..*/\1/
  19216. t more1
  19217. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  19218. p
  19219. n
  19220. b repl
  19221. :more1
  19222. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19223. p
  19224. g
  19225. s/.\{148\}//
  19226. t nl
  19227. :delim
  19228. h
  19229. s/\(.\{148\}\)..*/\1/
  19230. t more2
  19231. s/["\\]/\\&/g; s/^/"/; s/$/"/
  19232. p
  19233. b
  19234. :more2
  19235. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19236. p
  19237. g
  19238. s/.\{148\}//
  19239. t delim
  19240. ' <conf$$subs.awk | sed '
  19241. /^[^""]/{
  19242. N
  19243. s/\n//
  19244. }
  19245. ' >>$CONFIG_STATUS || ac_write_fail=1
  19246. rm -f conf$$subs.awk
  19247. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19248. _ACAWK
  19249. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  19250. for (key in S) S_is_set[key] = 1
  19251. FS = ""
  19252. }
  19253. {
  19254. line = $ 0
  19255. nfields = split(line, field, "@")
  19256. substed = 0
  19257. len = length(field[1])
  19258. for (i = 2; i < nfields; i++) {
  19259. key = field[i]
  19260. keylen = length(key)
  19261. if (S_is_set[key]) {
  19262. value = S[key]
  19263. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19264. len += length(value) + length(field[++i])
  19265. substed = 1
  19266. } else
  19267. len += 1 + keylen
  19268. }
  19269. print line
  19270. }
  19271. _ACAWK
  19272. _ACEOF
  19273. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19274. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19275. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19276. else
  19277. cat
  19278. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  19279. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  19280. _ACEOF
  19281. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  19282. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  19283. # trailing colons and then remove the whole line if VPATH becomes empty
  19284. # (actually we leave an empty line to preserve line numbers).
  19285. if test "x$srcdir" = x.; then
  19286. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  19287. h
  19288. s///
  19289. s/^/:/
  19290. s/[ ]*$/:/
  19291. s/:\$(srcdir):/:/g
  19292. s/:\${srcdir}:/:/g
  19293. s/:@srcdir@:/:/g
  19294. s/^:*//
  19295. s/:*$//
  19296. x
  19297. s/\(=[ ]*\).*/\1/
  19298. G
  19299. s/\n//
  19300. s/^[^=]*=[ ]*$//
  19301. }'
  19302. fi
  19303. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19304. fi # test -n "$CONFIG_FILES"
  19305. # Set up the scripts for CONFIG_HEADERS section.
  19306. # No need to generate them if there are no CONFIG_HEADERS.
  19307. # This happens for instance with `./config.status Makefile'.
  19308. if test -n "$CONFIG_HEADERS"; then
  19309. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  19310. BEGIN {
  19311. _ACEOF
  19312. # Transform confdefs.h into an awk script `defines.awk', embedded as
  19313. # here-document in config.status, that substitutes the proper values into
  19314. # config.h.in to produce config.h.
  19315. # Create a delimiter string that does not exist in confdefs.h, to ease
  19316. # handling of long lines.
  19317. ac_delim='%!_!# '
  19318. for ac_last_try in false false :; do
  19319. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  19320. if test -z "$ac_tt"; then
  19321. break
  19322. elif $ac_last_try; then
  19323. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  19324. else
  19325. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19326. fi
  19327. done
  19328. # For the awk script, D is an array of macro values keyed by name,
  19329. # likewise P contains macro parameters if any. Preserve backslash
  19330. # newline sequences.
  19331. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19332. sed -n '
  19333. s/.\{148\}/&'"$ac_delim"'/g
  19334. t rset
  19335. :rset
  19336. s/^[ ]*#[ ]*define[ ][ ]*/ /
  19337. t def
  19338. d
  19339. :def
  19340. s/\\$//
  19341. t bsnl
  19342. s/["\\]/\\&/g
  19343. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19344. D["\1"]=" \3"/p
  19345. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  19346. d
  19347. :bsnl
  19348. s/["\\]/\\&/g
  19349. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19350. D["\1"]=" \3\\\\\\n"\\/p
  19351. t cont
  19352. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  19353. t cont
  19354. d
  19355. :cont
  19356. n
  19357. s/.\{148\}/&'"$ac_delim"'/g
  19358. t clear
  19359. :clear
  19360. s/\\$//
  19361. t bsnlc
  19362. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  19363. d
  19364. :bsnlc
  19365. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  19366. b cont
  19367. ' <confdefs.h | sed '
  19368. s/'"$ac_delim"'/"\\\
  19369. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  19370. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19371. for (key in D) D_is_set[key] = 1
  19372. FS = ""
  19373. }
  19374. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  19375. line = \$ 0
  19376. split(line, arg, " ")
  19377. if (arg[1] == "#") {
  19378. defundef = arg[2]
  19379. mac1 = arg[3]
  19380. } else {
  19381. defundef = substr(arg[1], 2)
  19382. mac1 = arg[2]
  19383. }
  19384. split(mac1, mac2, "(") #)
  19385. macro = mac2[1]
  19386. prefix = substr(line, 1, index(line, defundef) - 1)
  19387. if (D_is_set[macro]) {
  19388. # Preserve the white space surrounding the "#".
  19389. print prefix "define", macro P[macro] D[macro]
  19390. next
  19391. } else {
  19392. # Replace #undef with comments. This is necessary, for example,
  19393. # in the case of _POSIX_SOURCE, which is predefined and required
  19394. # on some systems where configure will not decide to define it.
  19395. if (defundef == "undef") {
  19396. print "/*", prefix defundef, macro, "*/"
  19397. next
  19398. }
  19399. }
  19400. }
  19401. { print }
  19402. _ACAWK
  19403. _ACEOF
  19404. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19405. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  19406. fi # test -n "$CONFIG_HEADERS"
  19407. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  19408. shift
  19409. for ac_tag
  19410. do
  19411. case $ac_tag in
  19412. :[FHLC]) ac_mode=$ac_tag; continue;;
  19413. esac
  19414. case $ac_mode$ac_tag in
  19415. :[FHL]*:*);;
  19416. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  19417. :[FH]-) ac_tag=-:-;;
  19418. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19419. esac
  19420. ac_save_IFS=$IFS
  19421. IFS=:
  19422. set x $ac_tag
  19423. IFS=$ac_save_IFS
  19424. shift
  19425. ac_file=$1
  19426. shift
  19427. case $ac_mode in
  19428. :L) ac_source=$1;;
  19429. :[FH])
  19430. ac_file_inputs=
  19431. for ac_f
  19432. do
  19433. case $ac_f in
  19434. -) ac_f="$ac_tmp/stdin";;
  19435. *) # Look for the file first in the build tree, then in the source tree
  19436. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19437. # because $ac_f cannot contain `:'.
  19438. test -f "$ac_f" ||
  19439. case $ac_f in
  19440. [\\/$]*) false;;
  19441. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19442. esac ||
  19443. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  19444. esac
  19445. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19446. as_fn_append ac_file_inputs " '$ac_f'"
  19447. done
  19448. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19449. # use $as_me), people would be surprised to read:
  19450. # /* config.h. Generated by config.status. */
  19451. configure_input='Generated from '`
  19452. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19453. `' by configure.'
  19454. if test x"$ac_file" != x-; then
  19455. configure_input="$ac_file. $configure_input"
  19456. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19457. $as_echo "$as_me: creating $ac_file" >&6;}
  19458. fi
  19459. # Neutralize special characters interpreted by sed in replacement strings.
  19460. case $configure_input in #(
  19461. *\&* | *\|* | *\\* )
  19462. ac_sed_conf_input=`$as_echo "$configure_input" |
  19463. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19464. *) ac_sed_conf_input=$configure_input;;
  19465. esac
  19466. case $ac_tag in
  19467. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  19468. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  19469. esac
  19470. ;;
  19471. esac
  19472. ac_dir=`$as_dirname -- "$ac_file" ||
  19473. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19474. X"$ac_file" : 'X\(//\)[^/]' \| \
  19475. X"$ac_file" : 'X\(//\)$' \| \
  19476. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19477. $as_echo X"$ac_file" |
  19478. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19479. s//\1/
  19480. q
  19481. }
  19482. /^X\(\/\/\)[^/].*/{
  19483. s//\1/
  19484. q
  19485. }
  19486. /^X\(\/\/\)$/{
  19487. s//\1/
  19488. q
  19489. }
  19490. /^X\(\/\).*/{
  19491. s//\1/
  19492. q
  19493. }
  19494. s/.*/./; q'`
  19495. as_dir="$ac_dir"; as_fn_mkdir_p
  19496. ac_builddir=.
  19497. case "$ac_dir" in
  19498. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19499. *)
  19500. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  19501. # A ".." for each directory in $ac_dir_suffix.
  19502. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19503. case $ac_top_builddir_sub in
  19504. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19505. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19506. esac ;;
  19507. esac
  19508. ac_abs_top_builddir=$ac_pwd
  19509. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19510. # for backward compatibility:
  19511. ac_top_builddir=$ac_top_build_prefix
  19512. case $srcdir in
  19513. .) # We are building in place.
  19514. ac_srcdir=.
  19515. ac_top_srcdir=$ac_top_builddir_sub
  19516. ac_abs_top_srcdir=$ac_pwd ;;
  19517. [\\/]* | ?:[\\/]* ) # Absolute name.
  19518. ac_srcdir=$srcdir$ac_dir_suffix;
  19519. ac_top_srcdir=$srcdir
  19520. ac_abs_top_srcdir=$srcdir ;;
  19521. *) # Relative name.
  19522. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19523. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19524. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19525. esac
  19526. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19527. case $ac_mode in
  19528. :F)
  19529. #
  19530. # CONFIG_FILE
  19531. #
  19532. case $INSTALL in
  19533. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19534. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19535. esac
  19536. ac_MKDIR_P=$MKDIR_P
  19537. case $MKDIR_P in
  19538. [\\/$]* | ?:[\\/]* ) ;;
  19539. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19540. esac
  19541. _ACEOF
  19542. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19543. # If the template does not know about datarootdir, expand it.
  19544. # FIXME: This hack should be removed a few years after 2.60.
  19545. ac_datarootdir_hack=; ac_datarootdir_seen=
  19546. ac_sed_dataroot='
  19547. /datarootdir/ {
  19548. p
  19549. q
  19550. }
  19551. /@datadir@/p
  19552. /@docdir@/p
  19553. /@infodir@/p
  19554. /@localedir@/p
  19555. /@mandir@/p'
  19556. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  19557. *datarootdir*) ac_datarootdir_seen=yes;;
  19558. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19559. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19560. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19561. _ACEOF
  19562. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19563. ac_datarootdir_hack='
  19564. s&@datadir@&$datadir&g
  19565. s&@docdir@&$docdir&g
  19566. s&@infodir@&$infodir&g
  19567. s&@localedir@&$localedir&g
  19568. s&@mandir@&$mandir&g
  19569. s&\\\${datarootdir}&$datarootdir&g' ;;
  19570. esac
  19571. _ACEOF
  19572. # Neutralize VPATH when `$srcdir' = `.'.
  19573. # Shell code in configure.ac might set extrasub.
  19574. # FIXME: do we really want to maintain this feature?
  19575. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19576. ac_sed_extra="$ac_vpsub
  19577. $extrasub
  19578. _ACEOF
  19579. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19580. :t
  19581. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19582. s|@configure_input@|$ac_sed_conf_input|;t t
  19583. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19584. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  19585. s&@srcdir@&$ac_srcdir&;t t
  19586. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19587. s&@top_srcdir@&$ac_top_srcdir&;t t
  19588. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19589. s&@builddir@&$ac_builddir&;t t
  19590. s&@abs_builddir@&$ac_abs_builddir&;t t
  19591. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19592. s&@INSTALL@&$ac_INSTALL&;t t
  19593. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  19594. $ac_datarootdir_hack
  19595. "
  19596. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  19597. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19598. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19599. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  19600. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  19601. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  19602. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19603. which seems to be undefined. Please make sure it is defined" >&5
  19604. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19605. which seems to be undefined. Please make sure it is defined" >&2;}
  19606. rm -f "$ac_tmp/stdin"
  19607. case $ac_file in
  19608. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  19609. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  19610. esac \
  19611. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19612. ;;
  19613. :H)
  19614. #
  19615. # CONFIG_HEADER
  19616. #
  19617. if test x"$ac_file" != x-; then
  19618. {
  19619. $as_echo "/* $configure_input */" \
  19620. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  19621. } >"$ac_tmp/config.h" \
  19622. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19623. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  19624. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  19625. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  19626. else
  19627. rm -f "$ac_file"
  19628. mv "$ac_tmp/config.h" "$ac_file" \
  19629. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19630. fi
  19631. else
  19632. $as_echo "/* $configure_input */" \
  19633. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  19634. || as_fn_error $? "could not create -" "$LINENO" 5
  19635. fi
  19636. # Compute "$ac_file"'s index in $config_headers.
  19637. _am_arg="$ac_file"
  19638. _am_stamp_count=1
  19639. for _am_header in $config_headers :; do
  19640. case $_am_header in
  19641. $_am_arg | $_am_arg:* )
  19642. break ;;
  19643. * )
  19644. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  19645. esac
  19646. done
  19647. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  19648. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19649. X"$_am_arg" : 'X\(//\)[^/]' \| \
  19650. X"$_am_arg" : 'X\(//\)$' \| \
  19651. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  19652. $as_echo X"$_am_arg" |
  19653. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19654. s//\1/
  19655. q
  19656. }
  19657. /^X\(\/\/\)[^/].*/{
  19658. s//\1/
  19659. q
  19660. }
  19661. /^X\(\/\/\)$/{
  19662. s//\1/
  19663. q
  19664. }
  19665. /^X\(\/\).*/{
  19666. s//\1/
  19667. q
  19668. }
  19669. s/.*/./; q'`/stamp-h$_am_stamp_count
  19670. ;;
  19671. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  19672. $as_echo "$as_me: executing $ac_file commands" >&6;}
  19673. ;;
  19674. esac
  19675. case $ac_file$ac_mode in
  19676. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  19677. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  19678. # are listed without --file. Let's play safe and only enable the eval
  19679. # if we detect the quoting.
  19680. case $CONFIG_FILES in
  19681. *\'*) eval set x "$CONFIG_FILES" ;;
  19682. *) set x $CONFIG_FILES ;;
  19683. esac
  19684. shift
  19685. for mf
  19686. do
  19687. # Strip MF so we end up with the name of the file.
  19688. mf=`echo "$mf" | sed -e 's/:.*$//'`
  19689. # Check whether this is an Automake generated Makefile or not.
  19690. # We used to match only the files named 'Makefile.in', but
  19691. # some people rename them; so instead we look at the file content.
  19692. # Grep'ing the first line is not enough: some people post-process
  19693. # each Makefile.in and add a new line on top of each file to say so.
  19694. # Grep'ing the whole file is not good either: AIX grep has a line
  19695. # limit of 2048, but all sed's we know have understand at least 4000.
  19696. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  19697. dirpart=`$as_dirname -- "$mf" ||
  19698. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19699. X"$mf" : 'X\(//\)[^/]' \| \
  19700. X"$mf" : 'X\(//\)$' \| \
  19701. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  19702. $as_echo X"$mf" |
  19703. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19704. s//\1/
  19705. q
  19706. }
  19707. /^X\(\/\/\)[^/].*/{
  19708. s//\1/
  19709. q
  19710. }
  19711. /^X\(\/\/\)$/{
  19712. s//\1/
  19713. q
  19714. }
  19715. /^X\(\/\).*/{
  19716. s//\1/
  19717. q
  19718. }
  19719. s/.*/./; q'`
  19720. else
  19721. continue
  19722. fi
  19723. # Extract the definition of DEPDIR, am__include, and am__quote
  19724. # from the Makefile without running 'make'.
  19725. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  19726. test -z "$DEPDIR" && continue
  19727. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  19728. test -z "am__include" && continue
  19729. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  19730. # Find all dependency output files, they are included files with
  19731. # $(DEPDIR) in their names. We invoke sed twice because it is the
  19732. # simplest approach to changing $(DEPDIR) to its actual value in the
  19733. # expansion.
  19734. for file in `sed -n "
  19735. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  19736. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  19737. # Make sure the directory exists.
  19738. test -f "$dirpart/$file" && continue
  19739. fdir=`$as_dirname -- "$file" ||
  19740. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19741. X"$file" : 'X\(//\)[^/]' \| \
  19742. X"$file" : 'X\(//\)$' \| \
  19743. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  19744. $as_echo X"$file" |
  19745. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19746. s//\1/
  19747. q
  19748. }
  19749. /^X\(\/\/\)[^/].*/{
  19750. s//\1/
  19751. q
  19752. }
  19753. /^X\(\/\/\)$/{
  19754. s//\1/
  19755. q
  19756. }
  19757. /^X\(\/\).*/{
  19758. s//\1/
  19759. q
  19760. }
  19761. s/.*/./; q'`
  19762. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  19763. # echo "creating $dirpart/$file"
  19764. echo '# dummy' > "$dirpart/$file"
  19765. done
  19766. done
  19767. }
  19768. ;;
  19769. "libtool":C)
  19770. # See if we are running on zsh, and set the options which allow our
  19771. # commands through without removal of \ escapes.
  19772. if test -n "${ZSH_VERSION+set}" ; then
  19773. setopt NO_GLOB_SUBST
  19774. fi
  19775. cfgfile="${ofile}T"
  19776. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  19777. $RM "$cfgfile"
  19778. cat <<_LT_EOF >> "$cfgfile"
  19779. #! $SHELL
  19780. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  19781. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  19782. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  19783. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  19784. #
  19785. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  19786. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  19787. # Foundation, Inc.
  19788. # Written by Gordon Matzigkeit, 1996
  19789. #
  19790. # This file is part of GNU Libtool.
  19791. #
  19792. # GNU Libtool is free software; you can redistribute it and/or
  19793. # modify it under the terms of the GNU General Public License as
  19794. # published by the Free Software Foundation; either version 2 of
  19795. # the License, or (at your option) any later version.
  19796. #
  19797. # As a special exception to the GNU General Public License,
  19798. # if you distribute this file as part of a program or library that
  19799. # is built using GNU Libtool, you may include this file under the
  19800. # same distribution terms that you use for the rest of that program.
  19801. #
  19802. # GNU Libtool is distributed in the hope that it will be useful,
  19803. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19804. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19805. # GNU General Public License for more details.
  19806. #
  19807. # You should have received a copy of the GNU General Public License
  19808. # along with GNU Libtool; see the file COPYING. If not, a copy
  19809. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  19810. # obtained by writing to the Free Software Foundation, Inc.,
  19811. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19812. # The names of the tagged configurations supported by this script.
  19813. available_tags=""
  19814. # ### BEGIN LIBTOOL CONFIG
  19815. # Whether or not to build static libraries.
  19816. build_old_libs=$enable_static
  19817. # Which release of libtool.m4 was used?
  19818. macro_version=$macro_version
  19819. macro_revision=$macro_revision
  19820. # Whether or not to build shared libraries.
  19821. build_libtool_libs=$enable_shared
  19822. # What type of objects to build.
  19823. pic_mode=$pic_mode
  19824. # Whether or not to optimize for fast installation.
  19825. fast_install=$enable_fast_install
  19826. # Shell to use when invoking shell scripts.
  19827. SHELL=$lt_SHELL
  19828. # An echo program that protects backslashes.
  19829. ECHO=$lt_ECHO
  19830. # The PATH separator for the build system.
  19831. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  19832. # The host system.
  19833. host_alias=$host_alias
  19834. host=$host
  19835. host_os=$host_os
  19836. # The build system.
  19837. build_alias=$build_alias
  19838. build=$build
  19839. build_os=$build_os
  19840. # A sed program that does not truncate output.
  19841. SED=$lt_SED
  19842. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  19843. Xsed="\$SED -e 1s/^X//"
  19844. # A grep program that handles long lines.
  19845. GREP=$lt_GREP
  19846. # An ERE matcher.
  19847. EGREP=$lt_EGREP
  19848. # A literal string matcher.
  19849. FGREP=$lt_FGREP
  19850. # A BSD- or MS-compatible name lister.
  19851. NM=$lt_NM
  19852. # Whether we need soft or hard links.
  19853. LN_S=$lt_LN_S
  19854. # What is the maximum length of a command?
  19855. max_cmd_len=$max_cmd_len
  19856. # Object file suffix (normally "o").
  19857. objext=$ac_objext
  19858. # Executable file suffix (normally "").
  19859. exeext=$exeext
  19860. # whether the shell understands "unset".
  19861. lt_unset=$lt_unset
  19862. # turn spaces into newlines.
  19863. SP2NL=$lt_lt_SP2NL
  19864. # turn newlines into spaces.
  19865. NL2SP=$lt_lt_NL2SP
  19866. # convert \$build file names to \$host format.
  19867. to_host_file_cmd=$lt_cv_to_host_file_cmd
  19868. # convert \$build files to toolchain format.
  19869. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  19870. # An object symbol dumper.
  19871. OBJDUMP=$lt_OBJDUMP
  19872. # Method to check whether dependent libraries are shared objects.
  19873. deplibs_check_method=$lt_deplibs_check_method
  19874. # Command to use when deplibs_check_method = "file_magic".
  19875. file_magic_cmd=$lt_file_magic_cmd
  19876. # How to find potential files when deplibs_check_method = "file_magic".
  19877. file_magic_glob=$lt_file_magic_glob
  19878. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  19879. want_nocaseglob=$lt_want_nocaseglob
  19880. # DLL creation program.
  19881. DLLTOOL=$lt_DLLTOOL
  19882. # Command to associate shared and link libraries.
  19883. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  19884. # The archiver.
  19885. AR=$lt_AR
  19886. # Flags to create an archive.
  19887. AR_FLAGS=$lt_AR_FLAGS
  19888. # How to feed a file listing to the archiver.
  19889. archiver_list_spec=$lt_archiver_list_spec
  19890. # A symbol stripping program.
  19891. STRIP=$lt_STRIP
  19892. # Commands used to install an old-style archive.
  19893. RANLIB=$lt_RANLIB
  19894. old_postinstall_cmds=$lt_old_postinstall_cmds
  19895. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  19896. # Whether to use a lock for old archive extraction.
  19897. lock_old_archive_extraction=$lock_old_archive_extraction
  19898. # A C compiler.
  19899. LTCC=$lt_CC
  19900. # LTCC compiler flags.
  19901. LTCFLAGS=$lt_CFLAGS
  19902. # Take the output of nm and produce a listing of raw symbols and C names.
  19903. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  19904. # Transform the output of nm in a proper C declaration.
  19905. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  19906. # Transform the output of nm in a C name address pair.
  19907. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  19908. # Transform the output of nm in a C name address pair when lib prefix is needed.
  19909. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  19910. # Specify filename containing input files for \$NM.
  19911. nm_file_list_spec=$lt_nm_file_list_spec
  19912. # The root where to search for dependent libraries,and in which our libraries should be installed.
  19913. lt_sysroot=$lt_sysroot
  19914. # The name of the directory that contains temporary libtool files.
  19915. objdir=$objdir
  19916. # Used to examine libraries when file_magic_cmd begins with "file".
  19917. MAGIC_CMD=$MAGIC_CMD
  19918. # Must we lock files when doing compilation?
  19919. need_locks=$lt_need_locks
  19920. # Manifest tool.
  19921. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  19922. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  19923. DSYMUTIL=$lt_DSYMUTIL
  19924. # Tool to change global to local symbols on Mac OS X.
  19925. NMEDIT=$lt_NMEDIT
  19926. # Tool to manipulate fat objects and archives on Mac OS X.
  19927. LIPO=$lt_LIPO
  19928. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  19929. OTOOL=$lt_OTOOL
  19930. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  19931. OTOOL64=$lt_OTOOL64
  19932. # Old archive suffix (normally "a").
  19933. libext=$libext
  19934. # Shared library suffix (normally ".so").
  19935. shrext_cmds=$lt_shrext_cmds
  19936. # The commands to extract the exported symbol list from a shared archive.
  19937. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  19938. # Variables whose values should be saved in libtool wrapper scripts and
  19939. # restored at link time.
  19940. variables_saved_for_relink=$lt_variables_saved_for_relink
  19941. # Do we need the "lib" prefix for modules?
  19942. need_lib_prefix=$need_lib_prefix
  19943. # Do we need a version for libraries?
  19944. need_version=$need_version
  19945. # Library versioning type.
  19946. version_type=$version_type
  19947. # Shared library runtime path variable.
  19948. runpath_var=$runpath_var
  19949. # Shared library path variable.
  19950. shlibpath_var=$shlibpath_var
  19951. # Is shlibpath searched before the hard-coded library search path?
  19952. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  19953. # Format of library name prefix.
  19954. libname_spec=$lt_libname_spec
  19955. # List of archive names. First name is the real one, the rest are links.
  19956. # The last name is the one that the linker finds with -lNAME
  19957. library_names_spec=$lt_library_names_spec
  19958. # The coded name of the library, if different from the real name.
  19959. soname_spec=$lt_soname_spec
  19960. # Permission mode override for installation of shared libraries.
  19961. install_override_mode=$lt_install_override_mode
  19962. # Command to use after installation of a shared archive.
  19963. postinstall_cmds=$lt_postinstall_cmds
  19964. # Command to use after uninstallation of a shared archive.
  19965. postuninstall_cmds=$lt_postuninstall_cmds
  19966. # Commands used to finish a libtool library installation in a directory.
  19967. finish_cmds=$lt_finish_cmds
  19968. # As "finish_cmds", except a single script fragment to be evaled but
  19969. # not shown.
  19970. finish_eval=$lt_finish_eval
  19971. # Whether we should hardcode library paths into libraries.
  19972. hardcode_into_libs=$hardcode_into_libs
  19973. # Compile-time system search path for libraries.
  19974. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  19975. # Run-time system search path for libraries.
  19976. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  19977. # Whether dlopen is supported.
  19978. dlopen_support=$enable_dlopen
  19979. # Whether dlopen of programs is supported.
  19980. dlopen_self=$enable_dlopen_self
  19981. # Whether dlopen of statically linked programs is supported.
  19982. dlopen_self_static=$enable_dlopen_self_static
  19983. # Commands to strip libraries.
  19984. old_striplib=$lt_old_striplib
  19985. striplib=$lt_striplib
  19986. # The linker used to build libraries.
  19987. LD=$lt_LD
  19988. # How to create reloadable object files.
  19989. reload_flag=$lt_reload_flag
  19990. reload_cmds=$lt_reload_cmds
  19991. # Commands used to build an old-style archive.
  19992. old_archive_cmds=$lt_old_archive_cmds
  19993. # A language specific compiler.
  19994. CC=$lt_compiler
  19995. # Is the compiler the GNU compiler?
  19996. with_gcc=$GCC
  19997. # Compiler flag to turn off builtin functions.
  19998. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  19999. # Additional compiler flags for building library objects.
  20000. pic_flag=$lt_lt_prog_compiler_pic
  20001. # How to pass a linker flag through the compiler.
  20002. wl=$lt_lt_prog_compiler_wl
  20003. # Compiler flag to prevent dynamic linking.
  20004. link_static_flag=$lt_lt_prog_compiler_static
  20005. # Does compiler simultaneously support -c and -o options?
  20006. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  20007. # Whether or not to add -lc for building shared libraries.
  20008. build_libtool_need_lc=$archive_cmds_need_lc
  20009. # Whether or not to disallow shared libs when runtime libs are static.
  20010. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  20011. # Compiler flag to allow reflexive dlopens.
  20012. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  20013. # Compiler flag to generate shared objects directly from archives.
  20014. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  20015. # Whether the compiler copes with passing no objects directly.
  20016. compiler_needs_object=$lt_compiler_needs_object
  20017. # Create an old-style archive from a shared archive.
  20018. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  20019. # Create a temporary old-style archive to link instead of a shared archive.
  20020. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  20021. # Commands used to build a shared archive.
  20022. archive_cmds=$lt_archive_cmds
  20023. archive_expsym_cmds=$lt_archive_expsym_cmds
  20024. # Commands used to build a loadable module if different from building
  20025. # a shared archive.
  20026. module_cmds=$lt_module_cmds
  20027. module_expsym_cmds=$lt_module_expsym_cmds
  20028. # Whether we are building with GNU ld or not.
  20029. with_gnu_ld=$lt_with_gnu_ld
  20030. # Flag that allows shared libraries with undefined symbols to be built.
  20031. allow_undefined_flag=$lt_allow_undefined_flag
  20032. # Flag that enforces no undefined symbols.
  20033. no_undefined_flag=$lt_no_undefined_flag
  20034. # Flag to hardcode \$libdir into a binary during linking.
  20035. # This must work even if \$libdir does not exist
  20036. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  20037. # Whether we need a single "-rpath" flag with a separated argument.
  20038. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  20039. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20040. # DIR into the resulting binary.
  20041. hardcode_direct=$hardcode_direct
  20042. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20043. # DIR into the resulting binary and the resulting library dependency is
  20044. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20045. # library is relocated.
  20046. hardcode_direct_absolute=$hardcode_direct_absolute
  20047. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20048. # into the resulting binary.
  20049. hardcode_minus_L=$hardcode_minus_L
  20050. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20051. # into the resulting binary.
  20052. hardcode_shlibpath_var=$hardcode_shlibpath_var
  20053. # Set to "yes" if building a shared library automatically hardcodes DIR
  20054. # into the library and all subsequent libraries and executables linked
  20055. # against it.
  20056. hardcode_automatic=$hardcode_automatic
  20057. # Set to yes if linker adds runtime paths of dependent libraries
  20058. # to runtime path list.
  20059. inherit_rpath=$inherit_rpath
  20060. # Whether libtool must link a program against all its dependency libraries.
  20061. link_all_deplibs=$link_all_deplibs
  20062. # Set to "yes" if exported symbols are required.
  20063. always_export_symbols=$always_export_symbols
  20064. # The commands to list exported symbols.
  20065. export_symbols_cmds=$lt_export_symbols_cmds
  20066. # Symbols that should not be listed in the preloaded symbols.
  20067. exclude_expsyms=$lt_exclude_expsyms
  20068. # Symbols that must always be exported.
  20069. include_expsyms=$lt_include_expsyms
  20070. # Commands necessary for linking programs (against libraries) with templates.
  20071. prelink_cmds=$lt_prelink_cmds
  20072. # Commands necessary for finishing linking programs.
  20073. postlink_cmds=$lt_postlink_cmds
  20074. # Specify filename containing input files.
  20075. file_list_spec=$lt_file_list_spec
  20076. # How to hardcode a shared library path into an executable.
  20077. hardcode_action=$hardcode_action
  20078. # ### END LIBTOOL CONFIG
  20079. _LT_EOF
  20080. case $host_os in
  20081. aix3*)
  20082. cat <<\_LT_EOF >> "$cfgfile"
  20083. # AIX sometimes has problems with the GCC collect2 program. For some
  20084. # reason, if we set the COLLECT_NAMES environment variable, the problems
  20085. # vanish in a puff of smoke.
  20086. if test "X${COLLECT_NAMES+set}" != Xset; then
  20087. COLLECT_NAMES=
  20088. export COLLECT_NAMES
  20089. fi
  20090. _LT_EOF
  20091. ;;
  20092. esac
  20093. ltmain="$ac_aux_dir/ltmain.sh"
  20094. # We use sed instead of cat because bash on DJGPP gets confused if
  20095. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  20096. # text mode, it properly converts lines to CR/LF. This bash problem
  20097. # is reportedly fixed, but why not run on old versions too?
  20098. sed '$q' "$ltmain" >> "$cfgfile" \
  20099. || (rm -f "$cfgfile"; exit 1)
  20100. if test x"$xsi_shell" = xyes; then
  20101. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  20102. func_dirname ()\
  20103. {\
  20104. \ case ${1} in\
  20105. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20106. \ * ) func_dirname_result="${3}" ;;\
  20107. \ esac\
  20108. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  20109. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20110. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20111. test 0 -eq $? || _lt_function_replace_fail=:
  20112. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  20113. func_basename ()\
  20114. {\
  20115. \ func_basename_result="${1##*/}"\
  20116. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20117. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20118. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20119. test 0 -eq $? || _lt_function_replace_fail=:
  20120. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  20121. func_dirname_and_basename ()\
  20122. {\
  20123. \ case ${1} in\
  20124. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20125. \ * ) func_dirname_result="${3}" ;;\
  20126. \ esac\
  20127. \ func_basename_result="${1##*/}"\
  20128. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20129. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20130. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20131. test 0 -eq $? || _lt_function_replace_fail=:
  20132. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  20133. func_stripname ()\
  20134. {\
  20135. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  20136. \ # positional parameters, so assign one to ordinary parameter first.\
  20137. \ func_stripname_result=${3}\
  20138. \ func_stripname_result=${func_stripname_result#"${1}"}\
  20139. \ func_stripname_result=${func_stripname_result%"${2}"}\
  20140. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  20141. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20142. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20143. test 0 -eq $? || _lt_function_replace_fail=:
  20144. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  20145. func_split_long_opt ()\
  20146. {\
  20147. \ func_split_long_opt_name=${1%%=*}\
  20148. \ func_split_long_opt_arg=${1#*=}\
  20149. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20150. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20151. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20152. test 0 -eq $? || _lt_function_replace_fail=:
  20153. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  20154. func_split_short_opt ()\
  20155. {\
  20156. \ func_split_short_opt_arg=${1#??}\
  20157. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  20158. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20159. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20160. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20161. test 0 -eq $? || _lt_function_replace_fail=:
  20162. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  20163. func_lo2o ()\
  20164. {\
  20165. \ case ${1} in\
  20166. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  20167. \ *) func_lo2o_result=${1} ;;\
  20168. \ esac\
  20169. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  20170. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20171. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20172. test 0 -eq $? || _lt_function_replace_fail=:
  20173. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  20174. func_xform ()\
  20175. {\
  20176. func_xform_result=${1%.*}.lo\
  20177. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  20178. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20179. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20180. test 0 -eq $? || _lt_function_replace_fail=:
  20181. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  20182. func_arith ()\
  20183. {\
  20184. func_arith_result=$(( $* ))\
  20185. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  20186. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20187. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20188. test 0 -eq $? || _lt_function_replace_fail=:
  20189. sed -e '/^func_len ()$/,/^} # func_len /c\
  20190. func_len ()\
  20191. {\
  20192. func_len_result=${#1}\
  20193. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  20194. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20195. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20196. test 0 -eq $? || _lt_function_replace_fail=:
  20197. fi
  20198. if test x"$lt_shell_append" = xyes; then
  20199. sed -e '/^func_append ()$/,/^} # func_append /c\
  20200. func_append ()\
  20201. {\
  20202. eval "${1}+=\\${2}"\
  20203. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  20204. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20205. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20206. test 0 -eq $? || _lt_function_replace_fail=:
  20207. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  20208. func_append_quoted ()\
  20209. {\
  20210. \ func_quote_for_eval "${2}"\
  20211. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  20212. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  20213. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20214. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20215. test 0 -eq $? || _lt_function_replace_fail=:
  20216. # Save a `func_append' function call where possible by direct use of '+='
  20217. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  20218. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20219. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20220. test 0 -eq $? || _lt_function_replace_fail=:
  20221. else
  20222. # Save a `func_append' function call even when '+=' is not available
  20223. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  20224. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20225. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20226. test 0 -eq $? || _lt_function_replace_fail=:
  20227. fi
  20228. if test x"$_lt_function_replace_fail" = x":"; then
  20229. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  20230. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  20231. fi
  20232. mv -f "$cfgfile" "$ofile" ||
  20233. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  20234. chmod +x "$ofile"
  20235. ;;
  20236. esac
  20237. done # for ac_tag
  20238. as_fn_exit 0
  20239. _ACEOF
  20240. ac_clean_files=$ac_clean_files_save
  20241. test $ac_write_fail = 0 ||
  20242. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  20243. # configure is writing to config.log, and then calls config.status.
  20244. # config.status does its own redirection, appending to config.log.
  20245. # Unfortunately, on DOS this fails, as config.log is still kept open
  20246. # by configure, so config.status won't be able to write to it; its
  20247. # output is simply discarded. So we exec the FD to /dev/null,
  20248. # effectively closing config.log, so it can be properly (re)opened and
  20249. # appended to by config.status. When coming back to configure, we
  20250. # need to make the FD available again.
  20251. if test "$no_create" != yes; then
  20252. ac_cs_success=:
  20253. ac_config_status_args=
  20254. test "$silent" = yes &&
  20255. ac_config_status_args="$ac_config_status_args --quiet"
  20256. exec 5>/dev/null
  20257. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20258. exec 5>>config.log
  20259. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20260. # would make configure fail if this is the last instruction.
  20261. $ac_cs_success || as_fn_exit 1
  20262. fi
  20263. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  20264. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  20265. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  20266. fi
  20267. echo ""
  20268. echo ""
  20269. test -e `pwd $0`/README && cat `pwd $0`/README
  20270. accel_msg=""
  20271. if test "x$SNA" != "xno"; then
  20272. if test "$accel" = "none"; then
  20273. accel_msg="$accel_msg *none"
  20274. else
  20275. accel_msg="$accel_msg none"
  20276. fi
  20277. if test "$accel" = "sna"; then
  20278. accel_msg="$accel_msg *sna"
  20279. else
  20280. accel_msg="$accel_msg sna"
  20281. fi
  20282. fi
  20283. if test "x$UXA" != "xno"; then
  20284. if test "x$SNA" = "xno"; then
  20285. if test "$accel" = "none"; then
  20286. accel_msg="$accel_msg *none"
  20287. else
  20288. accel_msg="$accel_msg none"
  20289. fi
  20290. fi
  20291. if test "$accel" = "uxa"; then
  20292. accel_msg="$accel_msg *uxa"
  20293. else
  20294. accel_msg="$accel_msg uxa"
  20295. fi
  20296. fi
  20297. if test "x$GLAMOR" != "xno"; then
  20298. if test "$accel" = "glamor"; then
  20299. accel_msg="$accel_msg *glamor"
  20300. else
  20301. accel_msg="$accel_msg glamor"
  20302. fi
  20303. fi
  20304. if test "x$dri_msg" = "x"; then
  20305. dri_msg=" none"
  20306. fi
  20307. if test "x$tools_msg" = "x"; then
  20308. tools_msg=" none"
  20309. fi
  20310. echo ""
  20311. echo "xf86-video-intel 2.99.916 will be compiled with:"
  20312. echo " Xorg Video ABI version: $ABI_VERSION"
  20313. echo " Acceleration backends:$accel_msg"
  20314. echo " Additional debugging support?$debug_msg"
  20315. echo " Support for Kernel Mode Setting? $KMS"
  20316. echo " Support for legacy User Mode Setting (for i810)? $UMS"
  20317. echo " Support for Direct Rendering Infrastructure:$dri_msg"
  20318. echo " Support for Xv motion compensation (XvMC and libXvMC):$xvmc_msg"
  20319. echo " Build additional tools and utilities?$tools_msg"
  20320. if test -n "$xp_msg"; then
  20321. echo " Experimental support:$xp_msg"
  20322. fi
  20323. echo ""