configure 167 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.62 for xbitmaps 1.1.0.
  4. #
  5. # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  43. as_echo='printf %s\n'
  44. as_echo_n='printf %s'
  45. else
  46. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  47. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  48. as_echo_n='/usr/ucb/echo -n'
  49. else
  50. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  51. as_echo_n_body='eval
  52. arg=$1;
  53. case $arg in
  54. *"$as_nl"*)
  55. expr "X$arg" : "X\\(.*\\)$as_nl";
  56. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  57. esac;
  58. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  59. '
  60. export as_echo_n_body
  61. as_echo_n='sh -c $as_echo_n_body as_echo'
  62. fi
  63. export as_echo_body
  64. as_echo='sh -c $as_echo_body as_echo'
  65. fi
  66. # The user is always right.
  67. if test "${PATH_SEPARATOR+set}" != set; then
  68. PATH_SEPARATOR=:
  69. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  70. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  71. PATH_SEPARATOR=';'
  72. }
  73. fi
  74. # Support unset when possible.
  75. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  76. as_unset=unset
  77. else
  78. as_unset=false
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. { (exit 1); exit 1; }
  107. fi
  108. # Work around bugs in pre-3.0 UWIN ksh.
  109. for as_var in ENV MAIL MAILPATH
  110. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # Required to use basename.
  121. if expr a : '\(a\)' >/dev/null 2>&1 &&
  122. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  123. as_expr=expr
  124. else
  125. as_expr=false
  126. fi
  127. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  128. as_basename=basename
  129. else
  130. as_basename=false
  131. fi
  132. # Name of the executable.
  133. as_me=`$as_basename -- "$0" ||
  134. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  135. X"$0" : 'X\(//\)$' \| \
  136. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  137. $as_echo X/"$0" |
  138. sed '/^.*\/\([^/][^/]*\)\/*$/{
  139. s//\1/
  140. q
  141. }
  142. /^X\/\(\/\/\)$/{
  143. s//\1/
  144. q
  145. }
  146. /^X\/\(\/\).*/{
  147. s//\1/
  148. q
  149. }
  150. s/.*/./; q'`
  151. # CDPATH.
  152. $as_unset CDPATH
  153. if test "x$CONFIG_SHELL" = x; then
  154. if (eval ":") 2>/dev/null; then
  155. as_have_required=yes
  156. else
  157. as_have_required=no
  158. fi
  159. if test $as_have_required = yes && (eval ":
  160. (as_func_return () {
  161. (exit \$1)
  162. }
  163. as_func_success () {
  164. as_func_return 0
  165. }
  166. as_func_failure () {
  167. as_func_return 1
  168. }
  169. as_func_ret_success () {
  170. return 0
  171. }
  172. as_func_ret_failure () {
  173. return 1
  174. }
  175. exitcode=0
  176. if as_func_success; then
  177. :
  178. else
  179. exitcode=1
  180. echo as_func_success failed.
  181. fi
  182. if as_func_failure; then
  183. exitcode=1
  184. echo as_func_failure succeeded.
  185. fi
  186. if as_func_ret_success; then
  187. :
  188. else
  189. exitcode=1
  190. echo as_func_ret_success failed.
  191. fi
  192. if as_func_ret_failure; then
  193. exitcode=1
  194. echo as_func_ret_failure succeeded.
  195. fi
  196. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  197. :
  198. else
  199. exitcode=1
  200. echo positional parameters were not saved.
  201. fi
  202. test \$exitcode = 0) || { (exit 1); exit 1; }
  203. (
  204. as_lineno_1=\$LINENO
  205. as_lineno_2=\$LINENO
  206. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  207. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  208. ") 2> /dev/null; then
  209. :
  210. else
  211. as_candidate_shells=
  212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  213. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  214. do
  215. IFS=$as_save_IFS
  216. test -z "$as_dir" && as_dir=.
  217. case $as_dir in
  218. /*)
  219. for as_base in sh bash ksh sh5; do
  220. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  221. done;;
  222. esac
  223. done
  224. IFS=$as_save_IFS
  225. for as_shell in $as_candidate_shells $SHELL; do
  226. # Try only shells that exist, to save several forks.
  227. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  228. { ("$as_shell") 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. _ASEOF
  243. }; then
  244. CONFIG_SHELL=$as_shell
  245. as_have_required=yes
  246. if { "$as_shell" 2> /dev/null <<\_ASEOF
  247. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  248. emulate sh
  249. NULLCMD=:
  250. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  251. # is contrary to our usage. Disable this feature.
  252. alias -g '${1+"$@"}'='"$@"'
  253. setopt NO_GLOB_SUBST
  254. else
  255. case `(set -o) 2>/dev/null` in
  256. *posix*) set -o posix ;;
  257. esac
  258. fi
  259. :
  260. (as_func_return () {
  261. (exit $1)
  262. }
  263. as_func_success () {
  264. as_func_return 0
  265. }
  266. as_func_failure () {
  267. as_func_return 1
  268. }
  269. as_func_ret_success () {
  270. return 0
  271. }
  272. as_func_ret_failure () {
  273. return 1
  274. }
  275. exitcode=0
  276. if as_func_success; then
  277. :
  278. else
  279. exitcode=1
  280. echo as_func_success failed.
  281. fi
  282. if as_func_failure; then
  283. exitcode=1
  284. echo as_func_failure succeeded.
  285. fi
  286. if as_func_ret_success; then
  287. :
  288. else
  289. exitcode=1
  290. echo as_func_ret_success failed.
  291. fi
  292. if as_func_ret_failure; then
  293. exitcode=1
  294. echo as_func_ret_failure succeeded.
  295. fi
  296. if ( set x; as_func_ret_success y && test x = "$1" ); then
  297. :
  298. else
  299. exitcode=1
  300. echo positional parameters were not saved.
  301. fi
  302. test $exitcode = 0) || { (exit 1); exit 1; }
  303. (
  304. as_lineno_1=$LINENO
  305. as_lineno_2=$LINENO
  306. test "x$as_lineno_1" != "x$as_lineno_2" &&
  307. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  308. _ASEOF
  309. }; then
  310. break
  311. fi
  312. fi
  313. done
  314. if test "x$CONFIG_SHELL" != x; then
  315. for as_var in BASH_ENV ENV
  316. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  317. done
  318. export CONFIG_SHELL
  319. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  320. fi
  321. if test $as_have_required = no; then
  322. echo This script requires a shell more modern than all the
  323. echo shells that I found on your system. Please install a
  324. echo modern shell, or manually run the script under such a
  325. echo shell if you do have one.
  326. { (exit 1); exit 1; }
  327. fi
  328. fi
  329. fi
  330. (eval "as_func_return () {
  331. (exit \$1)
  332. }
  333. as_func_success () {
  334. as_func_return 0
  335. }
  336. as_func_failure () {
  337. as_func_return 1
  338. }
  339. as_func_ret_success () {
  340. return 0
  341. }
  342. as_func_ret_failure () {
  343. return 1
  344. }
  345. exitcode=0
  346. if as_func_success; then
  347. :
  348. else
  349. exitcode=1
  350. echo as_func_success failed.
  351. fi
  352. if as_func_failure; then
  353. exitcode=1
  354. echo as_func_failure succeeded.
  355. fi
  356. if as_func_ret_success; then
  357. :
  358. else
  359. exitcode=1
  360. echo as_func_ret_success failed.
  361. fi
  362. if as_func_ret_failure; then
  363. exitcode=1
  364. echo as_func_ret_failure succeeded.
  365. fi
  366. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  367. :
  368. else
  369. exitcode=1
  370. echo positional parameters were not saved.
  371. fi
  372. test \$exitcode = 0") || {
  373. echo No shell found that supports shell functions.
  374. echo Please tell bug-autoconf@gnu.org about your system,
  375. echo including any error possibly output before this message.
  376. echo This can help us improve future autoconf versions.
  377. echo Configuration will now proceed without shell functions.
  378. }
  379. as_lineno_1=$LINENO
  380. as_lineno_2=$LINENO
  381. test "x$as_lineno_1" != "x$as_lineno_2" &&
  382. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  383. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  384. # uniformly replaced by the line number. The first 'sed' inserts a
  385. # line-number line after each line using $LINENO; the second 'sed'
  386. # does the real work. The second script uses 'N' to pair each
  387. # line-number line with the line containing $LINENO, and appends
  388. # trailing '-' during substitution so that $LINENO is not a special
  389. # case at line end.
  390. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  391. # scripts with optimization help from Paolo Bonzini. Blame Lee
  392. # E. McMahon (1931-1989) for sed's syntax. :-)
  393. sed -n '
  394. p
  395. /[$]LINENO/=
  396. ' <$as_myself |
  397. sed '
  398. s/[$]LINENO.*/&-/
  399. t lineno
  400. b
  401. :lineno
  402. N
  403. :loop
  404. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  405. t loop
  406. s/-\n.*//
  407. ' >$as_me.lineno &&
  408. chmod +x "$as_me.lineno" ||
  409. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  410. { (exit 1); exit 1; }; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  419. as_dirname=dirname
  420. else
  421. as_dirname=false
  422. fi
  423. ECHO_C= ECHO_N= ECHO_T=
  424. case `echo -n x` in
  425. -n*)
  426. case `echo 'x\c'` in
  427. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  428. *) ECHO_C='\c';;
  429. esac;;
  430. *)
  431. ECHO_N='-n';;
  432. esac
  433. if expr a : '\(a\)' >/dev/null 2>&1 &&
  434. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  435. as_expr=expr
  436. else
  437. as_expr=false
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.file
  440. if test -d conf$$.dir; then
  441. rm -f conf$$.dir/conf$$.file
  442. else
  443. rm -f conf$$.dir
  444. mkdir conf$$.dir 2>/dev/null
  445. fi
  446. if (echo >conf$$.file) 2>/dev/null; then
  447. if ln -s conf$$.file conf$$ 2>/dev/null; then
  448. as_ln_s='ln -s'
  449. # ... but there are two gotchas:
  450. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  451. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  452. # In both cases, we have to default to `cp -p'.
  453. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  454. as_ln_s='cp -p'
  455. elif ln conf$$.file conf$$ 2>/dev/null; then
  456. as_ln_s=ln
  457. else
  458. as_ln_s='cp -p'
  459. fi
  460. else
  461. as_ln_s='cp -p'
  462. fi
  463. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  464. rmdir conf$$.dir 2>/dev/null
  465. if mkdir -p . 2>/dev/null; then
  466. as_mkdir_p=:
  467. else
  468. test -d ./-p && rmdir ./-p
  469. as_mkdir_p=false
  470. fi
  471. if test -x / >/dev/null 2>&1; then
  472. as_test_x='test -x'
  473. else
  474. if ls -dL / >/dev/null 2>&1; then
  475. as_ls_L_option=L
  476. else
  477. as_ls_L_option=
  478. fi
  479. as_test_x='
  480. eval sh -c '\''
  481. if test -d "$1"; then
  482. test -d "$1/.";
  483. else
  484. case $1 in
  485. -*)set "./$1";;
  486. esac;
  487. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  488. ???[sx]*):;;*)false;;esac;fi
  489. '\'' sh
  490. '
  491. fi
  492. as_executable_p=$as_test_x
  493. # Sed expression to map a string onto a valid CPP name.
  494. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  495. # Sed expression to map a string onto a valid variable name.
  496. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  497. exec 7<&0 </dev/null 6>&1
  498. # Name of the host.
  499. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  500. # so uname gets run too.
  501. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  502. #
  503. # Initializations.
  504. #
  505. ac_default_prefix=/usr/local
  506. ac_clean_files=
  507. ac_config_libobj_dir=.
  508. LIBOBJS=
  509. cross_compiling=no
  510. subdirs=
  511. MFLAGS=
  512. MAKEFLAGS=
  513. SHELL=${CONFIG_SHELL-/bin/sh}
  514. # Identity of this package.
  515. PACKAGE_NAME='xbitmaps'
  516. PACKAGE_TARNAME='xbitmaps'
  517. PACKAGE_VERSION='1.1.0'
  518. PACKAGE_STRING='xbitmaps 1.1.0'
  519. PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
  520. # Factoring default headers for most tests.
  521. ac_includes_default="\
  522. #include <stdio.h>
  523. #ifdef HAVE_SYS_TYPES_H
  524. # include <sys/types.h>
  525. #endif
  526. #ifdef HAVE_SYS_STAT_H
  527. # include <sys/stat.h>
  528. #endif
  529. #ifdef STDC_HEADERS
  530. # include <stdlib.h>
  531. # include <stddef.h>
  532. #else
  533. # ifdef HAVE_STDLIB_H
  534. # include <stdlib.h>
  535. # endif
  536. #endif
  537. #ifdef HAVE_STRING_H
  538. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  539. # include <memory.h>
  540. # endif
  541. # include <string.h>
  542. #endif
  543. #ifdef HAVE_STRINGS_H
  544. # include <strings.h>
  545. #endif
  546. #ifdef HAVE_INTTYPES_H
  547. # include <inttypes.h>
  548. #endif
  549. #ifdef HAVE_STDINT_H
  550. # include <stdint.h>
  551. #endif
  552. #ifdef HAVE_UNISTD_H
  553. # include <unistd.h>
  554. #endif"
  555. ac_subst_vars='SHELL
  556. PATH_SEPARATOR
  557. PACKAGE_NAME
  558. PACKAGE_TARNAME
  559. PACKAGE_VERSION
  560. PACKAGE_STRING
  561. PACKAGE_BUGREPORT
  562. exec_prefix
  563. prefix
  564. program_transform_name
  565. bindir
  566. sbindir
  567. libexecdir
  568. datarootdir
  569. datadir
  570. sysconfdir
  571. sharedstatedir
  572. localstatedir
  573. includedir
  574. oldincludedir
  575. docdir
  576. infodir
  577. htmldir
  578. dvidir
  579. pdfdir
  580. psdir
  581. libdir
  582. localedir
  583. mandir
  584. DEFS
  585. ECHO_C
  586. ECHO_N
  587. ECHO_T
  588. LIBS
  589. build_alias
  590. host_alias
  591. target_alias
  592. INSTALL_PROGRAM
  593. INSTALL_SCRIPT
  594. INSTALL_DATA
  595. CYGPATH_W
  596. PACKAGE
  597. VERSION
  598. ACLOCAL
  599. AUTOCONF
  600. AUTOMAKE
  601. AUTOHEADER
  602. MAKEINFO
  603. install_sh
  604. STRIP
  605. INSTALL_STRIP_PROGRAM
  606. mkdir_p
  607. AWK
  608. SET_MAKE
  609. am__leading_dot
  610. AMTAR
  611. am__tar
  612. am__untar
  613. MAINTAINER_MODE_TRUE
  614. MAINTAINER_MODE_FALSE
  615. MAINT
  616. CC
  617. CFLAGS
  618. LDFLAGS
  619. CPPFLAGS
  620. ac_ct_CC
  621. EXEEXT
  622. OBJEXT
  623. DEPDIR
  624. am__include
  625. am__quote
  626. AMDEP_TRUE
  627. AMDEP_FALSE
  628. AMDEPBACKSLASH
  629. CCDEPMODE
  630. am__fastdepCC_TRUE
  631. am__fastdepCC_FALSE
  632. CPP
  633. GREP
  634. EGREP
  635. CWARNFLAGS
  636. CHANGELOG_CMD
  637. distcleancheck_listfiles
  638. build
  639. build_cpu
  640. build_vendor
  641. build_os
  642. host
  643. host_cpu
  644. host_vendor
  645. host_os
  646. APP_MAN_SUFFIX
  647. LIB_MAN_SUFFIX
  648. FILE_MAN_SUFFIX
  649. MISC_MAN_SUFFIX
  650. DRIVER_MAN_SUFFIX
  651. ADMIN_MAN_SUFFIX
  652. APP_MAN_DIR
  653. LIB_MAN_DIR
  654. FILE_MAN_DIR
  655. MISC_MAN_DIR
  656. DRIVER_MAN_DIR
  657. ADMIN_MAN_DIR
  658. LIBOBJS
  659. LTLIBOBJS'
  660. ac_subst_files=''
  661. ac_user_opts='
  662. enable_option_checking
  663. enable_maintainer_mode
  664. enable_dependency_tracking
  665. enable_strict_compilation
  666. with_release_version
  667. '
  668. ac_precious_vars='build_alias
  669. host_alias
  670. target_alias
  671. CC
  672. CFLAGS
  673. LDFLAGS
  674. LIBS
  675. CPPFLAGS
  676. CPP'
  677. # Initialize some variables set by options.
  678. ac_init_help=
  679. ac_init_version=false
  680. ac_unrecognized_opts=
  681. ac_unrecognized_sep=
  682. # The variables have the same names as the options, with
  683. # dashes changed to underlines.
  684. cache_file=/dev/null
  685. exec_prefix=NONE
  686. no_create=
  687. no_recursion=
  688. prefix=NONE
  689. program_prefix=NONE
  690. program_suffix=NONE
  691. program_transform_name=s,x,x,
  692. silent=
  693. site=
  694. srcdir=
  695. verbose=
  696. x_includes=NONE
  697. x_libraries=NONE
  698. # Installation directory options.
  699. # These are left unexpanded so users can "make install exec_prefix=/foo"
  700. # and all the variables that are supposed to be based on exec_prefix
  701. # by default will actually change.
  702. # Use braces instead of parens because sh, perl, etc. also accept them.
  703. # (The list follows the same order as the GNU Coding Standards.)
  704. bindir='${exec_prefix}/bin'
  705. sbindir='${exec_prefix}/sbin'
  706. libexecdir='${exec_prefix}/libexec'
  707. datarootdir='${prefix}/share'
  708. datadir='${datarootdir}'
  709. sysconfdir='${prefix}/etc'
  710. sharedstatedir='${prefix}/com'
  711. localstatedir='${prefix}/var'
  712. includedir='${prefix}/include'
  713. oldincludedir='/usr/include'
  714. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  715. infodir='${datarootdir}/info'
  716. htmldir='${docdir}'
  717. dvidir='${docdir}'
  718. pdfdir='${docdir}'
  719. psdir='${docdir}'
  720. libdir='${exec_prefix}/lib'
  721. localedir='${datarootdir}/locale'
  722. mandir='${datarootdir}/man'
  723. ac_prev=
  724. ac_dashdash=
  725. for ac_option
  726. do
  727. # If the previous option needs an argument, assign it.
  728. if test -n "$ac_prev"; then
  729. eval $ac_prev=\$ac_option
  730. ac_prev=
  731. continue
  732. fi
  733. case $ac_option in
  734. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  735. *) ac_optarg=yes ;;
  736. esac
  737. # Accept the important Cygnus configure options, so we can diagnose typos.
  738. case $ac_dashdash$ac_option in
  739. --)
  740. ac_dashdash=yes ;;
  741. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  742. ac_prev=bindir ;;
  743. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  744. bindir=$ac_optarg ;;
  745. -build | --build | --buil | --bui | --bu)
  746. ac_prev=build_alias ;;
  747. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  748. build_alias=$ac_optarg ;;
  749. -cache-file | --cache-file | --cache-fil | --cache-fi \
  750. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  751. ac_prev=cache_file ;;
  752. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  753. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  754. cache_file=$ac_optarg ;;
  755. --config-cache | -C)
  756. cache_file=config.cache ;;
  757. -datadir | --datadir | --datadi | --datad)
  758. ac_prev=datadir ;;
  759. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  760. datadir=$ac_optarg ;;
  761. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  762. | --dataroo | --dataro | --datar)
  763. ac_prev=datarootdir ;;
  764. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  765. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  766. datarootdir=$ac_optarg ;;
  767. -disable-* | --disable-*)
  768. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  769. # Reject names that are not valid shell variable names.
  770. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  771. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  772. { (exit 1); exit 1; }; }
  773. ac_useropt_orig=$ac_useropt
  774. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  775. case $ac_user_opts in
  776. *"
  777. "enable_$ac_useropt"
  778. "*) ;;
  779. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  780. ac_unrecognized_sep=', ';;
  781. esac
  782. eval enable_$ac_useropt=no ;;
  783. -docdir | --docdir | --docdi | --doc | --do)
  784. ac_prev=docdir ;;
  785. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  786. docdir=$ac_optarg ;;
  787. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  788. ac_prev=dvidir ;;
  789. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  790. dvidir=$ac_optarg ;;
  791. -enable-* | --enable-*)
  792. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  793. # Reject names that are not valid shell variable names.
  794. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  795. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  796. { (exit 1); exit 1; }; }
  797. ac_useropt_orig=$ac_useropt
  798. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  799. case $ac_user_opts in
  800. *"
  801. "enable_$ac_useropt"
  802. "*) ;;
  803. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  804. ac_unrecognized_sep=', ';;
  805. esac
  806. eval enable_$ac_useropt=\$ac_optarg ;;
  807. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  808. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  809. | --exec | --exe | --ex)
  810. ac_prev=exec_prefix ;;
  811. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  812. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  813. | --exec=* | --exe=* | --ex=*)
  814. exec_prefix=$ac_optarg ;;
  815. -gas | --gas | --ga | --g)
  816. # Obsolete; use --with-gas.
  817. with_gas=yes ;;
  818. -help | --help | --hel | --he | -h)
  819. ac_init_help=long ;;
  820. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  821. ac_init_help=recursive ;;
  822. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  823. ac_init_help=short ;;
  824. -host | --host | --hos | --ho)
  825. ac_prev=host_alias ;;
  826. -host=* | --host=* | --hos=* | --ho=*)
  827. host_alias=$ac_optarg ;;
  828. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  829. ac_prev=htmldir ;;
  830. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  831. | --ht=*)
  832. htmldir=$ac_optarg ;;
  833. -includedir | --includedir | --includedi | --included | --include \
  834. | --includ | --inclu | --incl | --inc)
  835. ac_prev=includedir ;;
  836. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  837. | --includ=* | --inclu=* | --incl=* | --inc=*)
  838. includedir=$ac_optarg ;;
  839. -infodir | --infodir | --infodi | --infod | --info | --inf)
  840. ac_prev=infodir ;;
  841. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  842. infodir=$ac_optarg ;;
  843. -libdir | --libdir | --libdi | --libd)
  844. ac_prev=libdir ;;
  845. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  846. libdir=$ac_optarg ;;
  847. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  848. | --libexe | --libex | --libe)
  849. ac_prev=libexecdir ;;
  850. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  851. | --libexe=* | --libex=* | --libe=*)
  852. libexecdir=$ac_optarg ;;
  853. -localedir | --localedir | --localedi | --localed | --locale)
  854. ac_prev=localedir ;;
  855. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  856. localedir=$ac_optarg ;;
  857. -localstatedir | --localstatedir | --localstatedi | --localstated \
  858. | --localstate | --localstat | --localsta | --localst | --locals)
  859. ac_prev=localstatedir ;;
  860. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  861. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  862. localstatedir=$ac_optarg ;;
  863. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  864. ac_prev=mandir ;;
  865. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  866. mandir=$ac_optarg ;;
  867. -nfp | --nfp | --nf)
  868. # Obsolete; use --without-fp.
  869. with_fp=no ;;
  870. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  871. | --no-cr | --no-c | -n)
  872. no_create=yes ;;
  873. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  874. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  875. no_recursion=yes ;;
  876. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  877. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  878. | --oldin | --oldi | --old | --ol | --o)
  879. ac_prev=oldincludedir ;;
  880. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  881. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  882. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  883. oldincludedir=$ac_optarg ;;
  884. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  885. ac_prev=prefix ;;
  886. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  887. prefix=$ac_optarg ;;
  888. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  889. | --program-pre | --program-pr | --program-p)
  890. ac_prev=program_prefix ;;
  891. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  892. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  893. program_prefix=$ac_optarg ;;
  894. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  895. | --program-suf | --program-su | --program-s)
  896. ac_prev=program_suffix ;;
  897. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  898. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  899. program_suffix=$ac_optarg ;;
  900. -program-transform-name | --program-transform-name \
  901. | --program-transform-nam | --program-transform-na \
  902. | --program-transform-n | --program-transform- \
  903. | --program-transform | --program-transfor \
  904. | --program-transfo | --program-transf \
  905. | --program-trans | --program-tran \
  906. | --progr-tra | --program-tr | --program-t)
  907. ac_prev=program_transform_name ;;
  908. -program-transform-name=* | --program-transform-name=* \
  909. | --program-transform-nam=* | --program-transform-na=* \
  910. | --program-transform-n=* | --program-transform-=* \
  911. | --program-transform=* | --program-transfor=* \
  912. | --program-transfo=* | --program-transf=* \
  913. | --program-trans=* | --program-tran=* \
  914. | --progr-tra=* | --program-tr=* | --program-t=*)
  915. program_transform_name=$ac_optarg ;;
  916. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  917. ac_prev=pdfdir ;;
  918. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  919. pdfdir=$ac_optarg ;;
  920. -psdir | --psdir | --psdi | --psd | --ps)
  921. ac_prev=psdir ;;
  922. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  923. psdir=$ac_optarg ;;
  924. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  925. | -silent | --silent | --silen | --sile | --sil)
  926. silent=yes ;;
  927. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  928. ac_prev=sbindir ;;
  929. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  930. | --sbi=* | --sb=*)
  931. sbindir=$ac_optarg ;;
  932. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  933. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  934. | --sharedst | --shareds | --shared | --share | --shar \
  935. | --sha | --sh)
  936. ac_prev=sharedstatedir ;;
  937. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  938. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  939. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  940. | --sha=* | --sh=*)
  941. sharedstatedir=$ac_optarg ;;
  942. -site | --site | --sit)
  943. ac_prev=site ;;
  944. -site=* | --site=* | --sit=*)
  945. site=$ac_optarg ;;
  946. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  947. ac_prev=srcdir ;;
  948. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  949. srcdir=$ac_optarg ;;
  950. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  951. | --syscon | --sysco | --sysc | --sys | --sy)
  952. ac_prev=sysconfdir ;;
  953. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  954. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  955. sysconfdir=$ac_optarg ;;
  956. -target | --target | --targe | --targ | --tar | --ta | --t)
  957. ac_prev=target_alias ;;
  958. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  959. target_alias=$ac_optarg ;;
  960. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  961. verbose=yes ;;
  962. -version | --version | --versio | --versi | --vers | -V)
  963. ac_init_version=: ;;
  964. -with-* | --with-*)
  965. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  966. # Reject names that are not valid shell variable names.
  967. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  968. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  969. { (exit 1); exit 1; }; }
  970. ac_useropt_orig=$ac_useropt
  971. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  972. case $ac_user_opts in
  973. *"
  974. "with_$ac_useropt"
  975. "*) ;;
  976. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  977. ac_unrecognized_sep=', ';;
  978. esac
  979. eval with_$ac_useropt=\$ac_optarg ;;
  980. -without-* | --without-*)
  981. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  982. # Reject names that are not valid shell variable names.
  983. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  984. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  985. { (exit 1); exit 1; }; }
  986. ac_useropt_orig=$ac_useropt
  987. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  988. case $ac_user_opts in
  989. *"
  990. "with_$ac_useropt"
  991. "*) ;;
  992. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  993. ac_unrecognized_sep=', ';;
  994. esac
  995. eval with_$ac_useropt=no ;;
  996. --x)
  997. # Obsolete; use --with-x.
  998. with_x=yes ;;
  999. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1000. | --x-incl | --x-inc | --x-in | --x-i)
  1001. ac_prev=x_includes ;;
  1002. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1003. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1004. x_includes=$ac_optarg ;;
  1005. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1006. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1007. ac_prev=x_libraries ;;
  1008. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1009. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1010. x_libraries=$ac_optarg ;;
  1011. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1012. Try \`$0 --help' for more information." >&2
  1013. { (exit 1); exit 1; }; }
  1014. ;;
  1015. *=*)
  1016. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1017. # Reject names that are not valid shell variable names.
  1018. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1019. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1020. { (exit 1); exit 1; }; }
  1021. eval $ac_envvar=\$ac_optarg
  1022. export $ac_envvar ;;
  1023. *)
  1024. # FIXME: should be removed in autoconf 3.0.
  1025. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1026. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1027. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1028. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1029. ;;
  1030. esac
  1031. done
  1032. if test -n "$ac_prev"; then
  1033. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1034. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1035. { (exit 1); exit 1; }; }
  1036. fi
  1037. if test -n "$ac_unrecognized_opts"; then
  1038. case $enable_option_checking in
  1039. no) ;;
  1040. fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
  1041. { (exit 1); exit 1; }; } ;;
  1042. *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1043. esac
  1044. fi
  1045. # Check all directory arguments for consistency.
  1046. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1047. datadir sysconfdir sharedstatedir localstatedir includedir \
  1048. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1049. libdir localedir mandir
  1050. do
  1051. eval ac_val=\$$ac_var
  1052. # Remove trailing slashes.
  1053. case $ac_val in
  1054. */ )
  1055. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1056. eval $ac_var=\$ac_val;;
  1057. esac
  1058. # Be sure to have absolute directory names.
  1059. case $ac_val in
  1060. [\\/$]* | ?:[\\/]* ) continue;;
  1061. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1062. esac
  1063. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1064. { (exit 1); exit 1; }; }
  1065. done
  1066. # There might be people who depend on the old broken behavior: `$host'
  1067. # used to hold the argument of --host etc.
  1068. # FIXME: To remove some day.
  1069. build=$build_alias
  1070. host=$host_alias
  1071. target=$target_alias
  1072. # FIXME: To remove some day.
  1073. if test "x$host_alias" != x; then
  1074. if test "x$build_alias" = x; then
  1075. cross_compiling=maybe
  1076. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1077. If a cross compiler is detected then cross compile mode will be used." >&2
  1078. elif test "x$build_alias" != "x$host_alias"; then
  1079. cross_compiling=yes
  1080. fi
  1081. fi
  1082. ac_tool_prefix=
  1083. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1084. test "$silent" = yes && exec 6>/dev/null
  1085. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1086. ac_ls_di=`ls -di .` &&
  1087. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1088. { $as_echo "$as_me: error: Working directory cannot be determined" >&2
  1089. { (exit 1); exit 1; }; }
  1090. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1091. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1092. { (exit 1); exit 1; }; }
  1093. # Find the source files, if location was not specified.
  1094. if test -z "$srcdir"; then
  1095. ac_srcdir_defaulted=yes
  1096. # Try the directory containing this script, then the parent directory.
  1097. ac_confdir=`$as_dirname -- "$as_myself" ||
  1098. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1099. X"$as_myself" : 'X\(//\)[^/]' \| \
  1100. X"$as_myself" : 'X\(//\)$' \| \
  1101. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1102. $as_echo X"$as_myself" |
  1103. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1104. s//\1/
  1105. q
  1106. }
  1107. /^X\(\/\/\)[^/].*/{
  1108. s//\1/
  1109. q
  1110. }
  1111. /^X\(\/\/\)$/{
  1112. s//\1/
  1113. q
  1114. }
  1115. /^X\(\/\).*/{
  1116. s//\1/
  1117. q
  1118. }
  1119. s/.*/./; q'`
  1120. srcdir=$ac_confdir
  1121. if test ! -r "$srcdir/$ac_unique_file"; then
  1122. srcdir=..
  1123. fi
  1124. else
  1125. ac_srcdir_defaulted=no
  1126. fi
  1127. if test ! -r "$srcdir/$ac_unique_file"; then
  1128. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1129. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1130. { (exit 1); exit 1; }; }
  1131. fi
  1132. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1133. ac_abs_confdir=`(
  1134. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1135. { (exit 1); exit 1; }; }
  1136. pwd)`
  1137. # When building in place, set srcdir=.
  1138. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1139. srcdir=.
  1140. fi
  1141. # Remove unnecessary trailing slashes from srcdir.
  1142. # Double slashes in file names in object file debugging info
  1143. # mess up M-x gdb in Emacs.
  1144. case $srcdir in
  1145. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1146. esac
  1147. for ac_var in $ac_precious_vars; do
  1148. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1149. eval ac_env_${ac_var}_value=\$${ac_var}
  1150. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1151. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1152. done
  1153. #
  1154. # Report the --help message.
  1155. #
  1156. if test "$ac_init_help" = "long"; then
  1157. # Omit some internal or obsolete options to make the list less imposing.
  1158. # This message is too long to be a string in the A/UX 3.1 sh.
  1159. cat <<_ACEOF
  1160. \`configure' configures xbitmaps 1.1.0 to adapt to many kinds of systems.
  1161. Usage: $0 [OPTION]... [VAR=VALUE]...
  1162. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1163. VAR=VALUE. See below for descriptions of some of the useful variables.
  1164. Defaults for the options are specified in brackets.
  1165. Configuration:
  1166. -h, --help display this help and exit
  1167. --help=short display options specific to this package
  1168. --help=recursive display the short help of all the included packages
  1169. -V, --version display version information and exit
  1170. -q, --quiet, --silent do not print \`checking...' messages
  1171. --cache-file=FILE cache test results in FILE [disabled]
  1172. -C, --config-cache alias for \`--cache-file=config.cache'
  1173. -n, --no-create do not create output files
  1174. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1175. Installation directories:
  1176. --prefix=PREFIX install architecture-independent files in PREFIX
  1177. [$ac_default_prefix]
  1178. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1179. [PREFIX]
  1180. By default, \`make install' will install all the files in
  1181. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1182. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1183. for instance \`--prefix=\$HOME'.
  1184. For better control, use the options below.
  1185. Fine tuning of the installation directories:
  1186. --bindir=DIR user executables [EPREFIX/bin]
  1187. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1188. --libexecdir=DIR program executables [EPREFIX/libexec]
  1189. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1190. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1191. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1192. --libdir=DIR object code libraries [EPREFIX/lib]
  1193. --includedir=DIR C header files [PREFIX/include]
  1194. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1195. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1196. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1197. --infodir=DIR info documentation [DATAROOTDIR/info]
  1198. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1199. --mandir=DIR man documentation [DATAROOTDIR/man]
  1200. --docdir=DIR documentation root [DATAROOTDIR/doc/xbitmaps]
  1201. --htmldir=DIR html documentation [DOCDIR]
  1202. --dvidir=DIR dvi documentation [DOCDIR]
  1203. --pdfdir=DIR pdf documentation [DOCDIR]
  1204. --psdir=DIR ps documentation [DOCDIR]
  1205. _ACEOF
  1206. cat <<\_ACEOF
  1207. Program names:
  1208. --program-prefix=PREFIX prepend PREFIX to installed program names
  1209. --program-suffix=SUFFIX append SUFFIX to installed program names
  1210. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1211. System types:
  1212. --build=BUILD configure for building on BUILD [guessed]
  1213. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1214. _ACEOF
  1215. fi
  1216. if test -n "$ac_init_help"; then
  1217. case $ac_init_help in
  1218. short | recursive ) echo "Configuration of xbitmaps 1.1.0:";;
  1219. esac
  1220. cat <<\_ACEOF
  1221. Optional Features:
  1222. --disable-option-checking ignore unrecognized --enable/--with options
  1223. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1224. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1225. --enable-maintainer-mode enable make rules and dependencies not useful
  1226. (and sometimes confusing) to the casual installer
  1227. --disable-dependency-tracking speeds up one-time build
  1228. --enable-dependency-tracking do not reject slow dependency extractors
  1229. --enable-strict-compilation
  1230. Enable all warnings from compiler and make them
  1231. errors (default: disabled)
  1232. Optional Packages:
  1233. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1234. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1235. --with-release-version=STRING
  1236. Use release version string in package name
  1237. Some influential environment variables:
  1238. CC C compiler command
  1239. CFLAGS C compiler flags
  1240. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1241. nonstandard directory <lib dir>
  1242. LIBS libraries to pass to the linker, e.g. -l<library>
  1243. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1244. you have headers in a nonstandard directory <include dir>
  1245. CPP C preprocessor
  1246. Use these variables to override the choices made by `configure' or to help
  1247. it to find libraries and programs with nonstandard names/locations.
  1248. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  1249. _ACEOF
  1250. ac_status=$?
  1251. fi
  1252. if test "$ac_init_help" = "recursive"; then
  1253. # If there are subdirs, report their specific --help.
  1254. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1255. test -d "$ac_dir" ||
  1256. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1257. continue
  1258. ac_builddir=.
  1259. case "$ac_dir" in
  1260. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1261. *)
  1262. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1263. # A ".." for each directory in $ac_dir_suffix.
  1264. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1265. case $ac_top_builddir_sub in
  1266. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1267. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1268. esac ;;
  1269. esac
  1270. ac_abs_top_builddir=$ac_pwd
  1271. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1272. # for backward compatibility:
  1273. ac_top_builddir=$ac_top_build_prefix
  1274. case $srcdir in
  1275. .) # We are building in place.
  1276. ac_srcdir=.
  1277. ac_top_srcdir=$ac_top_builddir_sub
  1278. ac_abs_top_srcdir=$ac_pwd ;;
  1279. [\\/]* | ?:[\\/]* ) # Absolute name.
  1280. ac_srcdir=$srcdir$ac_dir_suffix;
  1281. ac_top_srcdir=$srcdir
  1282. ac_abs_top_srcdir=$srcdir ;;
  1283. *) # Relative name.
  1284. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1285. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1286. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1287. esac
  1288. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1289. cd "$ac_dir" || { ac_status=$?; continue; }
  1290. # Check for guested configure.
  1291. if test -f "$ac_srcdir/configure.gnu"; then
  1292. echo &&
  1293. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1294. elif test -f "$ac_srcdir/configure"; then
  1295. echo &&
  1296. $SHELL "$ac_srcdir/configure" --help=recursive
  1297. else
  1298. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1299. fi || ac_status=$?
  1300. cd "$ac_pwd" || { ac_status=$?; break; }
  1301. done
  1302. fi
  1303. test -n "$ac_init_help" && exit $ac_status
  1304. if $ac_init_version; then
  1305. cat <<\_ACEOF
  1306. xbitmaps configure 1.1.0
  1307. generated by GNU Autoconf 2.62
  1308. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1309. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1310. This configure script is free software; the Free Software Foundation
  1311. gives unlimited permission to copy, distribute and modify it.
  1312. _ACEOF
  1313. exit
  1314. fi
  1315. cat >config.log <<_ACEOF
  1316. This file contains any messages produced by compilers while
  1317. running configure, to aid debugging if configure makes a mistake.
  1318. It was created by xbitmaps $as_me 1.1.0, which was
  1319. generated by GNU Autoconf 2.62. Invocation command line was
  1320. $ $0 $@
  1321. _ACEOF
  1322. exec 5>>config.log
  1323. {
  1324. cat <<_ASUNAME
  1325. ## --------- ##
  1326. ## Platform. ##
  1327. ## --------- ##
  1328. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1329. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1330. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1331. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1332. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1333. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1334. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1335. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1336. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1337. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1338. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1339. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1340. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1341. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1342. _ASUNAME
  1343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1344. for as_dir in $PATH
  1345. do
  1346. IFS=$as_save_IFS
  1347. test -z "$as_dir" && as_dir=.
  1348. $as_echo "PATH: $as_dir"
  1349. done
  1350. IFS=$as_save_IFS
  1351. } >&5
  1352. cat >&5 <<_ACEOF
  1353. ## ----------- ##
  1354. ## Core tests. ##
  1355. ## ----------- ##
  1356. _ACEOF
  1357. # Keep a trace of the command line.
  1358. # Strip out --no-create and --no-recursion so they do not pile up.
  1359. # Strip out --silent because we don't want to record it for future runs.
  1360. # Also quote any args containing shell meta-characters.
  1361. # Make two passes to allow for proper duplicate-argument suppression.
  1362. ac_configure_args=
  1363. ac_configure_args0=
  1364. ac_configure_args1=
  1365. ac_must_keep_next=false
  1366. for ac_pass in 1 2
  1367. do
  1368. for ac_arg
  1369. do
  1370. case $ac_arg in
  1371. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1372. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1373. | -silent | --silent | --silen | --sile | --sil)
  1374. continue ;;
  1375. *\'*)
  1376. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1377. esac
  1378. case $ac_pass in
  1379. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1380. 2)
  1381. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1382. if test $ac_must_keep_next = true; then
  1383. ac_must_keep_next=false # Got value, back to normal.
  1384. else
  1385. case $ac_arg in
  1386. *=* | --config-cache | -C | -disable-* | --disable-* \
  1387. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1388. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1389. | -with-* | --with-* | -without-* | --without-* | --x)
  1390. case "$ac_configure_args0 " in
  1391. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1392. esac
  1393. ;;
  1394. -* ) ac_must_keep_next=true ;;
  1395. esac
  1396. fi
  1397. ac_configure_args="$ac_configure_args '$ac_arg'"
  1398. ;;
  1399. esac
  1400. done
  1401. done
  1402. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1403. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1404. # When interrupted or exit'd, cleanup temporary files, and complete
  1405. # config.log. We remove comments because anyway the quotes in there
  1406. # would cause problems or look ugly.
  1407. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1408. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1409. trap 'exit_status=$?
  1410. # Save into config.log some information that might help in debugging.
  1411. {
  1412. echo
  1413. cat <<\_ASBOX
  1414. ## ---------------- ##
  1415. ## Cache variables. ##
  1416. ## ---------------- ##
  1417. _ASBOX
  1418. echo
  1419. # The following way of writing the cache mishandles newlines in values,
  1420. (
  1421. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1422. eval ac_val=\$$ac_var
  1423. case $ac_val in #(
  1424. *${as_nl}*)
  1425. case $ac_var in #(
  1426. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1427. $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1428. esac
  1429. case $ac_var in #(
  1430. _ | IFS | as_nl) ;; #(
  1431. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1432. *) $as_unset $ac_var ;;
  1433. esac ;;
  1434. esac
  1435. done
  1436. (set) 2>&1 |
  1437. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1438. *${as_nl}ac_space=\ *)
  1439. sed -n \
  1440. "s/'\''/'\''\\\\'\'''\''/g;
  1441. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1442. ;; #(
  1443. *)
  1444. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1445. ;;
  1446. esac |
  1447. sort
  1448. )
  1449. echo
  1450. cat <<\_ASBOX
  1451. ## ----------------- ##
  1452. ## Output variables. ##
  1453. ## ----------------- ##
  1454. _ASBOX
  1455. echo
  1456. for ac_var in $ac_subst_vars
  1457. do
  1458. eval ac_val=\$$ac_var
  1459. case $ac_val in
  1460. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1461. esac
  1462. $as_echo "$ac_var='\''$ac_val'\''"
  1463. done | sort
  1464. echo
  1465. if test -n "$ac_subst_files"; then
  1466. cat <<\_ASBOX
  1467. ## ------------------- ##
  1468. ## File substitutions. ##
  1469. ## ------------------- ##
  1470. _ASBOX
  1471. echo
  1472. for ac_var in $ac_subst_files
  1473. do
  1474. eval ac_val=\$$ac_var
  1475. case $ac_val in
  1476. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1477. esac
  1478. $as_echo "$ac_var='\''$ac_val'\''"
  1479. done | sort
  1480. echo
  1481. fi
  1482. if test -s confdefs.h; then
  1483. cat <<\_ASBOX
  1484. ## ----------- ##
  1485. ## confdefs.h. ##
  1486. ## ----------- ##
  1487. _ASBOX
  1488. echo
  1489. cat confdefs.h
  1490. echo
  1491. fi
  1492. test "$ac_signal" != 0 &&
  1493. $as_echo "$as_me: caught signal $ac_signal"
  1494. $as_echo "$as_me: exit $exit_status"
  1495. } >&5
  1496. rm -f core *.core core.conftest.* &&
  1497. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1498. exit $exit_status
  1499. ' 0
  1500. for ac_signal in 1 2 13 15; do
  1501. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1502. done
  1503. ac_signal=0
  1504. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1505. rm -f -r conftest* confdefs.h
  1506. # Predefined preprocessor variables.
  1507. cat >>confdefs.h <<_ACEOF
  1508. #define PACKAGE_NAME "$PACKAGE_NAME"
  1509. _ACEOF
  1510. cat >>confdefs.h <<_ACEOF
  1511. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1512. _ACEOF
  1513. cat >>confdefs.h <<_ACEOF
  1514. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1515. _ACEOF
  1516. cat >>confdefs.h <<_ACEOF
  1517. #define PACKAGE_STRING "$PACKAGE_STRING"
  1518. _ACEOF
  1519. cat >>confdefs.h <<_ACEOF
  1520. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1521. _ACEOF
  1522. # Let the site file select an alternate cache file if it wants to.
  1523. # Prefer an explicitly selected file to automatically selected ones.
  1524. ac_site_file1=NONE
  1525. ac_site_file2=NONE
  1526. if test -n "$CONFIG_SITE"; then
  1527. ac_site_file1=$CONFIG_SITE
  1528. elif test "x$prefix" != xNONE; then
  1529. ac_site_file1=$prefix/share/config.site
  1530. ac_site_file2=$prefix/etc/config.site
  1531. else
  1532. ac_site_file1=$ac_default_prefix/share/config.site
  1533. ac_site_file2=$ac_default_prefix/etc/config.site
  1534. fi
  1535. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1536. do
  1537. test "x$ac_site_file" = xNONE && continue
  1538. if test -r "$ac_site_file"; then
  1539. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1540. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1541. sed 's/^/| /' "$ac_site_file" >&5
  1542. . "$ac_site_file"
  1543. fi
  1544. done
  1545. if test -r "$cache_file"; then
  1546. # Some versions of bash will fail to source /dev/null (special
  1547. # files actually), so we avoid doing that.
  1548. if test -f "$cache_file"; then
  1549. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1550. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1551. case $cache_file in
  1552. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1553. *) . "./$cache_file";;
  1554. esac
  1555. fi
  1556. else
  1557. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1558. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1559. >$cache_file
  1560. fi
  1561. # Check that the precious variables saved in the cache have kept the same
  1562. # value.
  1563. ac_cache_corrupted=false
  1564. for ac_var in $ac_precious_vars; do
  1565. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1566. eval ac_new_set=\$ac_env_${ac_var}_set
  1567. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1568. eval ac_new_val=\$ac_env_${ac_var}_value
  1569. case $ac_old_set,$ac_new_set in
  1570. set,)
  1571. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1572. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1573. ac_cache_corrupted=: ;;
  1574. ,set)
  1575. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1576. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1577. ac_cache_corrupted=: ;;
  1578. ,);;
  1579. *)
  1580. if test "x$ac_old_val" != "x$ac_new_val"; then
  1581. # differences in whitespace do not lead to failure.
  1582. ac_old_val_w=`echo x $ac_old_val`
  1583. ac_new_val_w=`echo x $ac_new_val`
  1584. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1585. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1586. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1587. ac_cache_corrupted=:
  1588. else
  1589. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1590. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1591. eval $ac_var=\$ac_old_val
  1592. fi
  1593. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1594. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1595. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1596. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1597. fi;;
  1598. esac
  1599. # Pass precious variables to config.status.
  1600. if test "$ac_new_set" = set; then
  1601. case $ac_new_val in
  1602. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1603. *) ac_arg=$ac_var=$ac_new_val ;;
  1604. esac
  1605. case " $ac_configure_args " in
  1606. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1607. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1608. esac
  1609. fi
  1610. done
  1611. if $ac_cache_corrupted; then
  1612. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1613. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1614. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1615. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1616. { (exit 1); exit 1; }; }
  1617. fi
  1618. ac_ext=c
  1619. ac_cpp='$CPP $CPPFLAGS'
  1620. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1621. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1622. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1623. am__api_version="1.9"
  1624. ac_aux_dir=
  1625. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1626. if test -f "$ac_dir/install-sh"; then
  1627. ac_aux_dir=$ac_dir
  1628. ac_install_sh="$ac_aux_dir/install-sh -c"
  1629. break
  1630. elif test -f "$ac_dir/install.sh"; then
  1631. ac_aux_dir=$ac_dir
  1632. ac_install_sh="$ac_aux_dir/install.sh -c"
  1633. break
  1634. elif test -f "$ac_dir/shtool"; then
  1635. ac_aux_dir=$ac_dir
  1636. ac_install_sh="$ac_aux_dir/shtool install -c"
  1637. break
  1638. fi
  1639. done
  1640. if test -z "$ac_aux_dir"; then
  1641. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1642. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1643. { (exit 1); exit 1; }; }
  1644. fi
  1645. # These three variables are undocumented and unsupported,
  1646. # and are intended to be withdrawn in a future Autoconf release.
  1647. # They can cause serious problems if a builder's source tree is in a directory
  1648. # whose full name contains unusual characters.
  1649. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1650. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1651. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1652. # Find a good install program. We prefer a C program (faster),
  1653. # so one script is as good as another. But avoid the broken or
  1654. # incompatible versions:
  1655. # SysV /etc/install, /usr/sbin/install
  1656. # SunOS /usr/etc/install
  1657. # IRIX /sbin/install
  1658. # AIX /bin/install
  1659. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1660. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1661. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1662. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1663. # OS/2's system install, which has a completely different semantic
  1664. # ./install, which can be erroneously created by make from ./install.sh.
  1665. # Reject install programs that cannot install multiple files.
  1666. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1667. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1668. if test -z "$INSTALL"; then
  1669. if test "${ac_cv_path_install+set}" = set; then
  1670. $as_echo_n "(cached) " >&6
  1671. else
  1672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1673. for as_dir in $PATH
  1674. do
  1675. IFS=$as_save_IFS
  1676. test -z "$as_dir" && as_dir=.
  1677. # Account for people who put trailing slashes in PATH elements.
  1678. case $as_dir/ in
  1679. ./ | .// | /cC/* | \
  1680. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1681. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1682. /usr/ucb/* ) ;;
  1683. *)
  1684. # OSF1 and SCO ODT 3.0 have their own names for install.
  1685. # Don't use installbsd from OSF since it installs stuff as root
  1686. # by default.
  1687. for ac_prog in ginstall scoinst install; do
  1688. for ac_exec_ext in '' $ac_executable_extensions; do
  1689. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1690. if test $ac_prog = install &&
  1691. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1692. # AIX install. It has an incompatible calling convention.
  1693. :
  1694. elif test $ac_prog = install &&
  1695. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1696. # program-specific install script used by HP pwplus--don't use.
  1697. :
  1698. else
  1699. rm -rf conftest.one conftest.two conftest.dir
  1700. echo one > conftest.one
  1701. echo two > conftest.two
  1702. mkdir conftest.dir
  1703. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  1704. test -s conftest.one && test -s conftest.two &&
  1705. test -s conftest.dir/conftest.one &&
  1706. test -s conftest.dir/conftest.two
  1707. then
  1708. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1709. break 3
  1710. fi
  1711. fi
  1712. fi
  1713. done
  1714. done
  1715. ;;
  1716. esac
  1717. done
  1718. IFS=$as_save_IFS
  1719. rm -rf conftest.one conftest.two conftest.dir
  1720. fi
  1721. if test "${ac_cv_path_install+set}" = set; then
  1722. INSTALL=$ac_cv_path_install
  1723. else
  1724. # As a last resort, use the slow shell script. Don't cache a
  1725. # value for INSTALL within a source directory, because that will
  1726. # break other packages using the cache if that directory is
  1727. # removed, or if the value is a relative name.
  1728. INSTALL=$ac_install_sh
  1729. fi
  1730. fi
  1731. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  1732. $as_echo "$INSTALL" >&6; }
  1733. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1734. # It thinks the first close brace ends the variable substitution.
  1735. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1736. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1737. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1738. test "$program_prefix" != NONE &&
  1739. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1740. # Use a double $ so make ignores it.
  1741. test "$program_suffix" != NONE &&
  1742. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1743. # Double any \ or $.
  1744. # By default was `s,x,x', remove it if useless.
  1745. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  1746. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  1747. # expand $ac_aux_dir to an absolute path
  1748. am_aux_dir=`cd $ac_aux_dir && pwd`
  1749. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1750. # Use eval to expand $SHELL
  1751. if eval "$MISSING --run true"; then
  1752. am_missing_run="$MISSING --run "
  1753. else
  1754. am_missing_run=
  1755. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1756. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1757. fi
  1758. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1759. # We used to keeping the `.' as first argument, in order to
  1760. # allow $(mkdir_p) to be used without argument. As in
  1761. # $(mkdir_p) $(somedir)
  1762. # where $(somedir) is conditionally defined. However this is wrong
  1763. # for two reasons:
  1764. # 1. if the package is installed by a user who cannot write `.'
  1765. # make install will fail,
  1766. # 2. the above comment should most certainly read
  1767. # $(mkdir_p) $(DESTDIR)$(somedir)
  1768. # so it does not work when $(somedir) is undefined and
  1769. # $(DESTDIR) is not.
  1770. # To support the latter case, we have to write
  1771. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1772. # so the `.' trick is pointless.
  1773. mkdir_p='mkdir -p --'
  1774. else
  1775. # On NextStep and OpenStep, the `mkdir' command does not
  1776. # recognize any option. It will interpret all options as
  1777. # directories to create, and then abort because `.' already
  1778. # exists.
  1779. for d in ./-p ./--version;
  1780. do
  1781. test -d $d && rmdir $d
  1782. done
  1783. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1784. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1785. mkdir_p='$(mkinstalldirs)'
  1786. else
  1787. mkdir_p='$(SHELL) $(install_sh) -d'
  1788. fi
  1789. fi
  1790. for ac_prog in gawk mawk nawk awk
  1791. do
  1792. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1793. set dummy $ac_prog; ac_word=$2
  1794. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1795. $as_echo_n "checking for $ac_word... " >&6; }
  1796. if test "${ac_cv_prog_AWK+set}" = set; then
  1797. $as_echo_n "(cached) " >&6
  1798. else
  1799. if test -n "$AWK"; then
  1800. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1801. else
  1802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1803. for as_dir in $PATH
  1804. do
  1805. IFS=$as_save_IFS
  1806. test -z "$as_dir" && as_dir=.
  1807. for ac_exec_ext in '' $ac_executable_extensions; do
  1808. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1809. ac_cv_prog_AWK="$ac_prog"
  1810. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1811. break 2
  1812. fi
  1813. done
  1814. done
  1815. IFS=$as_save_IFS
  1816. fi
  1817. fi
  1818. AWK=$ac_cv_prog_AWK
  1819. if test -n "$AWK"; then
  1820. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  1821. $as_echo "$AWK" >&6; }
  1822. else
  1823. { $as_echo "$as_me:$LINENO: result: no" >&5
  1824. $as_echo "no" >&6; }
  1825. fi
  1826. test -n "$AWK" && break
  1827. done
  1828. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1829. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  1830. set x ${MAKE-make}
  1831. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1832. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1833. $as_echo_n "(cached) " >&6
  1834. else
  1835. cat >conftest.make <<\_ACEOF
  1836. SHELL = /bin/sh
  1837. all:
  1838. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1839. _ACEOF
  1840. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1841. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1842. *@@@%%%=?*=@@@%%%*)
  1843. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1844. *)
  1845. eval ac_cv_prog_make_${ac_make}_set=no;;
  1846. esac
  1847. rm -f conftest.make
  1848. fi
  1849. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1850. { $as_echo "$as_me:$LINENO: result: yes" >&5
  1851. $as_echo "yes" >&6; }
  1852. SET_MAKE=
  1853. else
  1854. { $as_echo "$as_me:$LINENO: result: no" >&5
  1855. $as_echo "no" >&6; }
  1856. SET_MAKE="MAKE=${MAKE-make}"
  1857. fi
  1858. rm -rf .tst 2>/dev/null
  1859. mkdir .tst 2>/dev/null
  1860. if test -d .tst; then
  1861. am__leading_dot=.
  1862. else
  1863. am__leading_dot=_
  1864. fi
  1865. rmdir .tst 2>/dev/null
  1866. # test to see if srcdir already configured
  1867. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1868. test -f $srcdir/config.status; then
  1869. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1870. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1871. { (exit 1); exit 1; }; }
  1872. fi
  1873. # test whether we have cygpath
  1874. if test -z "$CYGPATH_W"; then
  1875. if (cygpath --version) >/dev/null 2>/dev/null; then
  1876. CYGPATH_W='cygpath -w'
  1877. else
  1878. CYGPATH_W=echo
  1879. fi
  1880. fi
  1881. # Define the identity of the package.
  1882. PACKAGE='xbitmaps'
  1883. VERSION='1.1.0'
  1884. cat >>confdefs.h <<_ACEOF
  1885. #define PACKAGE "$PACKAGE"
  1886. _ACEOF
  1887. cat >>confdefs.h <<_ACEOF
  1888. #define VERSION "$VERSION"
  1889. _ACEOF
  1890. # Some tools Automake needs.
  1891. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1892. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1893. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1894. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1895. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1896. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1897. # Installed binaries are usually stripped using `strip' when the user
  1898. # run `make install-strip'. However `strip' might not be the right
  1899. # tool to use in cross-compilation environments, therefore Automake
  1900. # will honor the `STRIP' environment variable to overrule this program.
  1901. if test "$cross_compiling" != no; then
  1902. if test -n "$ac_tool_prefix"; then
  1903. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1904. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1905. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1906. $as_echo_n "checking for $ac_word... " >&6; }
  1907. if test "${ac_cv_prog_STRIP+set}" = set; then
  1908. $as_echo_n "(cached) " >&6
  1909. else
  1910. if test -n "$STRIP"; then
  1911. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1912. else
  1913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1914. for as_dir in $PATH
  1915. do
  1916. IFS=$as_save_IFS
  1917. test -z "$as_dir" && as_dir=.
  1918. for ac_exec_ext in '' $ac_executable_extensions; do
  1919. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1920. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1921. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1922. break 2
  1923. fi
  1924. done
  1925. done
  1926. IFS=$as_save_IFS
  1927. fi
  1928. fi
  1929. STRIP=$ac_cv_prog_STRIP
  1930. if test -n "$STRIP"; then
  1931. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  1932. $as_echo "$STRIP" >&6; }
  1933. else
  1934. { $as_echo "$as_me:$LINENO: result: no" >&5
  1935. $as_echo "no" >&6; }
  1936. fi
  1937. fi
  1938. if test -z "$ac_cv_prog_STRIP"; then
  1939. ac_ct_STRIP=$STRIP
  1940. # Extract the first word of "strip", so it can be a program name with args.
  1941. set dummy strip; ac_word=$2
  1942. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1943. $as_echo_n "checking for $ac_word... " >&6; }
  1944. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1945. $as_echo_n "(cached) " >&6
  1946. else
  1947. if test -n "$ac_ct_STRIP"; then
  1948. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1949. else
  1950. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1951. for as_dir in $PATH
  1952. do
  1953. IFS=$as_save_IFS
  1954. test -z "$as_dir" && as_dir=.
  1955. for ac_exec_ext in '' $ac_executable_extensions; do
  1956. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1957. ac_cv_prog_ac_ct_STRIP="strip"
  1958. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1959. break 2
  1960. fi
  1961. done
  1962. done
  1963. IFS=$as_save_IFS
  1964. fi
  1965. fi
  1966. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1967. if test -n "$ac_ct_STRIP"; then
  1968. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1969. $as_echo "$ac_ct_STRIP" >&6; }
  1970. else
  1971. { $as_echo "$as_me:$LINENO: result: no" >&5
  1972. $as_echo "no" >&6; }
  1973. fi
  1974. if test "x$ac_ct_STRIP" = x; then
  1975. STRIP=":"
  1976. else
  1977. case $cross_compiling:$ac_tool_warned in
  1978. yes:)
  1979. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1980. whose name does not start with the host triplet. If you think this
  1981. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1982. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1983. whose name does not start with the host triplet. If you think this
  1984. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1985. ac_tool_warned=yes ;;
  1986. esac
  1987. STRIP=$ac_ct_STRIP
  1988. fi
  1989. else
  1990. STRIP="$ac_cv_prog_STRIP"
  1991. fi
  1992. fi
  1993. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1994. # We need awk for the "check" target. The system "awk" is bad on
  1995. # some platforms.
  1996. # Always define AMTAR for backward compatibility.
  1997. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1998. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1999. { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2000. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2001. # Check whether --enable-maintainer-mode was given.
  2002. if test "${enable_maintainer_mode+set}" = set; then
  2003. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2004. else
  2005. USE_MAINTAINER_MODE=no
  2006. fi
  2007. { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2008. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2009. if test $USE_MAINTAINER_MODE = yes; then
  2010. MAINTAINER_MODE_TRUE=
  2011. MAINTAINER_MODE_FALSE='#'
  2012. else
  2013. MAINTAINER_MODE_TRUE='#'
  2014. MAINTAINER_MODE_FALSE=
  2015. fi
  2016. MAINT=$MAINTAINER_MODE_TRUE
  2017. ac_config_headers="$ac_config_headers config.h"
  2018. # Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS
  2019. DEPDIR="${am__leading_dot}deps"
  2020. ac_config_commands="$ac_config_commands depfiles"
  2021. am_make=${MAKE-make}
  2022. cat > confinc << 'END'
  2023. am__doit:
  2024. @echo done
  2025. .PHONY: am__doit
  2026. END
  2027. # If we don't find an include directive, just comment out the code.
  2028. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2029. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2030. am__include="#"
  2031. am__quote=
  2032. _am_result=none
  2033. # First try GNU make style include.
  2034. echo "include confinc" > confmf
  2035. # We grep out `Entering directory' and `Leaving directory'
  2036. # messages which can occur if `w' ends up in MAKEFLAGS.
  2037. # In particular we don't look at `^make:' because GNU make might
  2038. # be invoked under some other name (usually "gmake"), in which
  2039. # case it prints its new name instead of `make'.
  2040. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2041. am__include=include
  2042. am__quote=
  2043. _am_result=GNU
  2044. fi
  2045. # Now try BSD make style include.
  2046. if test "$am__include" = "#"; then
  2047. echo '.include "confinc"' > confmf
  2048. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2049. am__include=.include
  2050. am__quote="\""
  2051. _am_result=BSD
  2052. fi
  2053. fi
  2054. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  2055. $as_echo "$_am_result" >&6; }
  2056. rm -f confinc confmf
  2057. # Check whether --enable-dependency-tracking was given.
  2058. if test "${enable_dependency_tracking+set}" = set; then
  2059. enableval=$enable_dependency_tracking;
  2060. fi
  2061. if test "x$enable_dependency_tracking" != xno; then
  2062. am_depcomp="$ac_aux_dir/depcomp"
  2063. AMDEPBACKSLASH='\'
  2064. fi
  2065. if test "x$enable_dependency_tracking" != xno; then
  2066. AMDEP_TRUE=
  2067. AMDEP_FALSE='#'
  2068. else
  2069. AMDEP_TRUE='#'
  2070. AMDEP_FALSE=
  2071. fi
  2072. ac_ext=c
  2073. ac_cpp='$CPP $CPPFLAGS'
  2074. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2075. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2076. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2077. if test -n "$ac_tool_prefix"; then
  2078. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2079. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2080. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2081. $as_echo_n "checking for $ac_word... " >&6; }
  2082. if test "${ac_cv_prog_CC+set}" = set; then
  2083. $as_echo_n "(cached) " >&6
  2084. else
  2085. if test -n "$CC"; then
  2086. ac_cv_prog_CC="$CC" # Let the user override the test.
  2087. else
  2088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2089. for as_dir in $PATH
  2090. do
  2091. IFS=$as_save_IFS
  2092. test -z "$as_dir" && as_dir=.
  2093. for ac_exec_ext in '' $ac_executable_extensions; do
  2094. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2095. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2096. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2097. break 2
  2098. fi
  2099. done
  2100. done
  2101. IFS=$as_save_IFS
  2102. fi
  2103. fi
  2104. CC=$ac_cv_prog_CC
  2105. if test -n "$CC"; then
  2106. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2107. $as_echo "$CC" >&6; }
  2108. else
  2109. { $as_echo "$as_me:$LINENO: result: no" >&5
  2110. $as_echo "no" >&6; }
  2111. fi
  2112. fi
  2113. if test -z "$ac_cv_prog_CC"; then
  2114. ac_ct_CC=$CC
  2115. # Extract the first word of "gcc", so it can be a program name with args.
  2116. set dummy gcc; ac_word=$2
  2117. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2118. $as_echo_n "checking for $ac_word... " >&6; }
  2119. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2120. $as_echo_n "(cached) " >&6
  2121. else
  2122. if test -n "$ac_ct_CC"; then
  2123. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2124. else
  2125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2126. for as_dir in $PATH
  2127. do
  2128. IFS=$as_save_IFS
  2129. test -z "$as_dir" && as_dir=.
  2130. for ac_exec_ext in '' $ac_executable_extensions; do
  2131. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2132. ac_cv_prog_ac_ct_CC="gcc"
  2133. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2134. break 2
  2135. fi
  2136. done
  2137. done
  2138. IFS=$as_save_IFS
  2139. fi
  2140. fi
  2141. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2142. if test -n "$ac_ct_CC"; then
  2143. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2144. $as_echo "$ac_ct_CC" >&6; }
  2145. else
  2146. { $as_echo "$as_me:$LINENO: result: no" >&5
  2147. $as_echo "no" >&6; }
  2148. fi
  2149. if test "x$ac_ct_CC" = x; then
  2150. CC=""
  2151. else
  2152. case $cross_compiling:$ac_tool_warned in
  2153. yes:)
  2154. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2155. whose name does not start with the host triplet. If you think this
  2156. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2157. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2158. whose name does not start with the host triplet. If you think this
  2159. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2160. ac_tool_warned=yes ;;
  2161. esac
  2162. CC=$ac_ct_CC
  2163. fi
  2164. else
  2165. CC="$ac_cv_prog_CC"
  2166. fi
  2167. if test -z "$CC"; then
  2168. if test -n "$ac_tool_prefix"; then
  2169. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2170. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2171. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2172. $as_echo_n "checking for $ac_word... " >&6; }
  2173. if test "${ac_cv_prog_CC+set}" = set; then
  2174. $as_echo_n "(cached) " >&6
  2175. else
  2176. if test -n "$CC"; then
  2177. ac_cv_prog_CC="$CC" # Let the user override the test.
  2178. else
  2179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2180. for as_dir in $PATH
  2181. do
  2182. IFS=$as_save_IFS
  2183. test -z "$as_dir" && as_dir=.
  2184. for ac_exec_ext in '' $ac_executable_extensions; do
  2185. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2186. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2187. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2188. break 2
  2189. fi
  2190. done
  2191. done
  2192. IFS=$as_save_IFS
  2193. fi
  2194. fi
  2195. CC=$ac_cv_prog_CC
  2196. if test -n "$CC"; then
  2197. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2198. $as_echo "$CC" >&6; }
  2199. else
  2200. { $as_echo "$as_me:$LINENO: result: no" >&5
  2201. $as_echo "no" >&6; }
  2202. fi
  2203. fi
  2204. fi
  2205. if test -z "$CC"; then
  2206. # Extract the first word of "cc", so it can be a program name with args.
  2207. set dummy cc; ac_word=$2
  2208. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2209. $as_echo_n "checking for $ac_word... " >&6; }
  2210. if test "${ac_cv_prog_CC+set}" = set; then
  2211. $as_echo_n "(cached) " >&6
  2212. else
  2213. if test -n "$CC"; then
  2214. ac_cv_prog_CC="$CC" # Let the user override the test.
  2215. else
  2216. ac_prog_rejected=no
  2217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2218. for as_dir in $PATH
  2219. do
  2220. IFS=$as_save_IFS
  2221. test -z "$as_dir" && as_dir=.
  2222. for ac_exec_ext in '' $ac_executable_extensions; do
  2223. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2224. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2225. ac_prog_rejected=yes
  2226. continue
  2227. fi
  2228. ac_cv_prog_CC="cc"
  2229. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2230. break 2
  2231. fi
  2232. done
  2233. done
  2234. IFS=$as_save_IFS
  2235. if test $ac_prog_rejected = yes; then
  2236. # We found a bogon in the path, so make sure we never use it.
  2237. set dummy $ac_cv_prog_CC
  2238. shift
  2239. if test $# != 0; then
  2240. # We chose a different compiler from the bogus one.
  2241. # However, it has the same basename, so the bogon will be chosen
  2242. # first if we set CC to just the basename; use the full file name.
  2243. shift
  2244. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2245. fi
  2246. fi
  2247. fi
  2248. fi
  2249. CC=$ac_cv_prog_CC
  2250. if test -n "$CC"; then
  2251. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2252. $as_echo "$CC" >&6; }
  2253. else
  2254. { $as_echo "$as_me:$LINENO: result: no" >&5
  2255. $as_echo "no" >&6; }
  2256. fi
  2257. fi
  2258. if test -z "$CC"; then
  2259. if test -n "$ac_tool_prefix"; then
  2260. for ac_prog in cl.exe
  2261. do
  2262. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2263. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2264. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2265. $as_echo_n "checking for $ac_word... " >&6; }
  2266. if test "${ac_cv_prog_CC+set}" = set; then
  2267. $as_echo_n "(cached) " >&6
  2268. else
  2269. if test -n "$CC"; then
  2270. ac_cv_prog_CC="$CC" # Let the user override the test.
  2271. else
  2272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2273. for as_dir in $PATH
  2274. do
  2275. IFS=$as_save_IFS
  2276. test -z "$as_dir" && as_dir=.
  2277. for ac_exec_ext in '' $ac_executable_extensions; do
  2278. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2279. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2280. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2281. break 2
  2282. fi
  2283. done
  2284. done
  2285. IFS=$as_save_IFS
  2286. fi
  2287. fi
  2288. CC=$ac_cv_prog_CC
  2289. if test -n "$CC"; then
  2290. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2291. $as_echo "$CC" >&6; }
  2292. else
  2293. { $as_echo "$as_me:$LINENO: result: no" >&5
  2294. $as_echo "no" >&6; }
  2295. fi
  2296. test -n "$CC" && break
  2297. done
  2298. fi
  2299. if test -z "$CC"; then
  2300. ac_ct_CC=$CC
  2301. for ac_prog in cl.exe
  2302. do
  2303. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2304. set dummy $ac_prog; ac_word=$2
  2305. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2306. $as_echo_n "checking for $ac_word... " >&6; }
  2307. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2308. $as_echo_n "(cached) " >&6
  2309. else
  2310. if test -n "$ac_ct_CC"; then
  2311. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2312. else
  2313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2314. for as_dir in $PATH
  2315. do
  2316. IFS=$as_save_IFS
  2317. test -z "$as_dir" && as_dir=.
  2318. for ac_exec_ext in '' $ac_executable_extensions; do
  2319. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2320. ac_cv_prog_ac_ct_CC="$ac_prog"
  2321. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2322. break 2
  2323. fi
  2324. done
  2325. done
  2326. IFS=$as_save_IFS
  2327. fi
  2328. fi
  2329. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2330. if test -n "$ac_ct_CC"; then
  2331. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2332. $as_echo "$ac_ct_CC" >&6; }
  2333. else
  2334. { $as_echo "$as_me:$LINENO: result: no" >&5
  2335. $as_echo "no" >&6; }
  2336. fi
  2337. test -n "$ac_ct_CC" && break
  2338. done
  2339. if test "x$ac_ct_CC" = x; then
  2340. CC=""
  2341. else
  2342. case $cross_compiling:$ac_tool_warned in
  2343. yes:)
  2344. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2345. whose name does not start with the host triplet. If you think this
  2346. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2347. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2348. whose name does not start with the host triplet. If you think this
  2349. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2350. ac_tool_warned=yes ;;
  2351. esac
  2352. CC=$ac_ct_CC
  2353. fi
  2354. fi
  2355. fi
  2356. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2357. See \`config.log' for more details." >&5
  2358. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2359. See \`config.log' for more details." >&2;}
  2360. { (exit 1); exit 1; }; }
  2361. # Provide some information about the compiler.
  2362. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2363. set X $ac_compile
  2364. ac_compiler=$2
  2365. { (ac_try="$ac_compiler --version >&5"
  2366. case "(($ac_try" in
  2367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2368. *) ac_try_echo=$ac_try;;
  2369. esac
  2370. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2371. $as_echo "$ac_try_echo") >&5
  2372. (eval "$ac_compiler --version >&5") 2>&5
  2373. ac_status=$?
  2374. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2375. (exit $ac_status); }
  2376. { (ac_try="$ac_compiler -v >&5"
  2377. case "(($ac_try" in
  2378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2379. *) ac_try_echo=$ac_try;;
  2380. esac
  2381. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2382. $as_echo "$ac_try_echo") >&5
  2383. (eval "$ac_compiler -v >&5") 2>&5
  2384. ac_status=$?
  2385. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2386. (exit $ac_status); }
  2387. { (ac_try="$ac_compiler -V >&5"
  2388. case "(($ac_try" in
  2389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2390. *) ac_try_echo=$ac_try;;
  2391. esac
  2392. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2393. $as_echo "$ac_try_echo") >&5
  2394. (eval "$ac_compiler -V >&5") 2>&5
  2395. ac_status=$?
  2396. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2397. (exit $ac_status); }
  2398. cat >conftest.$ac_ext <<_ACEOF
  2399. /* confdefs.h. */
  2400. _ACEOF
  2401. cat confdefs.h >>conftest.$ac_ext
  2402. cat >>conftest.$ac_ext <<_ACEOF
  2403. /* end confdefs.h. */
  2404. int
  2405. main ()
  2406. {
  2407. ;
  2408. return 0;
  2409. }
  2410. _ACEOF
  2411. ac_clean_files_save=$ac_clean_files
  2412. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2413. # Try to create an executable without -o first, disregard a.out.
  2414. # It will help us diagnose broken compilers, and finding out an intuition
  2415. # of exeext.
  2416. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2417. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2418. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2419. # The possible output files:
  2420. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2421. ac_rmfiles=
  2422. for ac_file in $ac_files
  2423. do
  2424. case $ac_file in
  2425. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2426. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2427. esac
  2428. done
  2429. rm -f $ac_rmfiles
  2430. if { (ac_try="$ac_link_default"
  2431. case "(($ac_try" in
  2432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2433. *) ac_try_echo=$ac_try;;
  2434. esac
  2435. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2436. $as_echo "$ac_try_echo") >&5
  2437. (eval "$ac_link_default") 2>&5
  2438. ac_status=$?
  2439. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2440. (exit $ac_status); }; then
  2441. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2442. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2443. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2444. # so that the user can short-circuit this test for compilers unknown to
  2445. # Autoconf.
  2446. for ac_file in $ac_files ''
  2447. do
  2448. test -f "$ac_file" || continue
  2449. case $ac_file in
  2450. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2451. ;;
  2452. [ab].out )
  2453. # We found the default executable, but exeext='' is most
  2454. # certainly right.
  2455. break;;
  2456. *.* )
  2457. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2458. then :; else
  2459. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2460. fi
  2461. # We set ac_cv_exeext here because the later test for it is not
  2462. # safe: cross compilers may not add the suffix if given an `-o'
  2463. # argument, so we may need to know it at that point already.
  2464. # Even if this section looks crufty: it has the advantage of
  2465. # actually working.
  2466. break;;
  2467. * )
  2468. break;;
  2469. esac
  2470. done
  2471. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2472. else
  2473. ac_file=''
  2474. fi
  2475. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2476. $as_echo "$ac_file" >&6; }
  2477. if test -z "$ac_file"; then
  2478. $as_echo "$as_me: failed program was:" >&5
  2479. sed 's/^/| /' conftest.$ac_ext >&5
  2480. { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2481. See \`config.log' for more details." >&5
  2482. $as_echo "$as_me: error: C compiler cannot create executables
  2483. See \`config.log' for more details." >&2;}
  2484. { (exit 77); exit 77; }; }
  2485. fi
  2486. ac_exeext=$ac_cv_exeext
  2487. # Check that the compiler produces executables we can run. If not, either
  2488. # the compiler is broken, or we cross compile.
  2489. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2490. $as_echo_n "checking whether the C compiler works... " >&6; }
  2491. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2492. # If not cross compiling, check that we can run a simple program.
  2493. if test "$cross_compiling" != yes; then
  2494. if { ac_try='./$ac_file'
  2495. { (case "(($ac_try" in
  2496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2497. *) ac_try_echo=$ac_try;;
  2498. esac
  2499. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2500. $as_echo "$ac_try_echo") >&5
  2501. (eval "$ac_try") 2>&5
  2502. ac_status=$?
  2503. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2504. (exit $ac_status); }; }; then
  2505. cross_compiling=no
  2506. else
  2507. if test "$cross_compiling" = maybe; then
  2508. cross_compiling=yes
  2509. else
  2510. { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2511. If you meant to cross compile, use \`--host'.
  2512. See \`config.log' for more details." >&5
  2513. $as_echo "$as_me: error: cannot run C compiled programs.
  2514. If you meant to cross compile, use \`--host'.
  2515. See \`config.log' for more details." >&2;}
  2516. { (exit 1); exit 1; }; }
  2517. fi
  2518. fi
  2519. fi
  2520. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2521. $as_echo "yes" >&6; }
  2522. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2523. ac_clean_files=$ac_clean_files_save
  2524. # Check that the compiler produces executables we can run. If not, either
  2525. # the compiler is broken, or we cross compile.
  2526. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2527. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2528. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2529. $as_echo "$cross_compiling" >&6; }
  2530. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2531. $as_echo_n "checking for suffix of executables... " >&6; }
  2532. if { (ac_try="$ac_link"
  2533. case "(($ac_try" in
  2534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2535. *) ac_try_echo=$ac_try;;
  2536. esac
  2537. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2538. $as_echo "$ac_try_echo") >&5
  2539. (eval "$ac_link") 2>&5
  2540. ac_status=$?
  2541. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2542. (exit $ac_status); }; then
  2543. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2544. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2545. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2546. # `rm'.
  2547. for ac_file in conftest.exe conftest conftest.*; do
  2548. test -f "$ac_file" || continue
  2549. case $ac_file in
  2550. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2551. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2552. break;;
  2553. * ) break;;
  2554. esac
  2555. done
  2556. else
  2557. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2558. See \`config.log' for more details." >&5
  2559. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2560. See \`config.log' for more details." >&2;}
  2561. { (exit 1); exit 1; }; }
  2562. fi
  2563. rm -f conftest$ac_cv_exeext
  2564. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2565. $as_echo "$ac_cv_exeext" >&6; }
  2566. rm -f conftest.$ac_ext
  2567. EXEEXT=$ac_cv_exeext
  2568. ac_exeext=$EXEEXT
  2569. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2570. $as_echo_n "checking for suffix of object files... " >&6; }
  2571. if test "${ac_cv_objext+set}" = set; then
  2572. $as_echo_n "(cached) " >&6
  2573. else
  2574. cat >conftest.$ac_ext <<_ACEOF
  2575. /* confdefs.h. */
  2576. _ACEOF
  2577. cat confdefs.h >>conftest.$ac_ext
  2578. cat >>conftest.$ac_ext <<_ACEOF
  2579. /* end confdefs.h. */
  2580. int
  2581. main ()
  2582. {
  2583. ;
  2584. return 0;
  2585. }
  2586. _ACEOF
  2587. rm -f conftest.o conftest.obj
  2588. if { (ac_try="$ac_compile"
  2589. case "(($ac_try" in
  2590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2591. *) ac_try_echo=$ac_try;;
  2592. esac
  2593. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2594. $as_echo "$ac_try_echo") >&5
  2595. (eval "$ac_compile") 2>&5
  2596. ac_status=$?
  2597. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2598. (exit $ac_status); }; then
  2599. for ac_file in conftest.o conftest.obj conftest.*; do
  2600. test -f "$ac_file" || continue;
  2601. case $ac_file in
  2602. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2603. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2604. break;;
  2605. esac
  2606. done
  2607. else
  2608. $as_echo "$as_me: failed program was:" >&5
  2609. sed 's/^/| /' conftest.$ac_ext >&5
  2610. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2611. See \`config.log' for more details." >&5
  2612. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2613. See \`config.log' for more details." >&2;}
  2614. { (exit 1); exit 1; }; }
  2615. fi
  2616. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2617. fi
  2618. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2619. $as_echo "$ac_cv_objext" >&6; }
  2620. OBJEXT=$ac_cv_objext
  2621. ac_objext=$OBJEXT
  2622. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2623. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2624. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2625. $as_echo_n "(cached) " >&6
  2626. else
  2627. cat >conftest.$ac_ext <<_ACEOF
  2628. /* confdefs.h. */
  2629. _ACEOF
  2630. cat confdefs.h >>conftest.$ac_ext
  2631. cat >>conftest.$ac_ext <<_ACEOF
  2632. /* end confdefs.h. */
  2633. int
  2634. main ()
  2635. {
  2636. #ifndef __GNUC__
  2637. choke me
  2638. #endif
  2639. ;
  2640. return 0;
  2641. }
  2642. _ACEOF
  2643. rm -f conftest.$ac_objext
  2644. if { (ac_try="$ac_compile"
  2645. case "(($ac_try" in
  2646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2647. *) ac_try_echo=$ac_try;;
  2648. esac
  2649. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2650. $as_echo "$ac_try_echo") >&5
  2651. (eval "$ac_compile") 2>conftest.er1
  2652. ac_status=$?
  2653. grep -v '^ *+' conftest.er1 >conftest.err
  2654. rm -f conftest.er1
  2655. cat conftest.err >&5
  2656. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2657. (exit $ac_status); } && {
  2658. test -z "$ac_c_werror_flag" ||
  2659. test ! -s conftest.err
  2660. } && test -s conftest.$ac_objext; then
  2661. ac_compiler_gnu=yes
  2662. else
  2663. $as_echo "$as_me: failed program was:" >&5
  2664. sed 's/^/| /' conftest.$ac_ext >&5
  2665. ac_compiler_gnu=no
  2666. fi
  2667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2668. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2669. fi
  2670. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2671. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2672. if test $ac_compiler_gnu = yes; then
  2673. GCC=yes
  2674. else
  2675. GCC=
  2676. fi
  2677. ac_test_CFLAGS=${CFLAGS+set}
  2678. ac_save_CFLAGS=$CFLAGS
  2679. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2680. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2681. if test "${ac_cv_prog_cc_g+set}" = set; then
  2682. $as_echo_n "(cached) " >&6
  2683. else
  2684. ac_save_c_werror_flag=$ac_c_werror_flag
  2685. ac_c_werror_flag=yes
  2686. ac_cv_prog_cc_g=no
  2687. CFLAGS="-g"
  2688. cat >conftest.$ac_ext <<_ACEOF
  2689. /* confdefs.h. */
  2690. _ACEOF
  2691. cat confdefs.h >>conftest.$ac_ext
  2692. cat >>conftest.$ac_ext <<_ACEOF
  2693. /* end confdefs.h. */
  2694. int
  2695. main ()
  2696. {
  2697. ;
  2698. return 0;
  2699. }
  2700. _ACEOF
  2701. rm -f conftest.$ac_objext
  2702. if { (ac_try="$ac_compile"
  2703. case "(($ac_try" in
  2704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2705. *) ac_try_echo=$ac_try;;
  2706. esac
  2707. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2708. $as_echo "$ac_try_echo") >&5
  2709. (eval "$ac_compile") 2>conftest.er1
  2710. ac_status=$?
  2711. grep -v '^ *+' conftest.er1 >conftest.err
  2712. rm -f conftest.er1
  2713. cat conftest.err >&5
  2714. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2715. (exit $ac_status); } && {
  2716. test -z "$ac_c_werror_flag" ||
  2717. test ! -s conftest.err
  2718. } && test -s conftest.$ac_objext; then
  2719. ac_cv_prog_cc_g=yes
  2720. else
  2721. $as_echo "$as_me: failed program was:" >&5
  2722. sed 's/^/| /' conftest.$ac_ext >&5
  2723. CFLAGS=""
  2724. cat >conftest.$ac_ext <<_ACEOF
  2725. /* confdefs.h. */
  2726. _ACEOF
  2727. cat confdefs.h >>conftest.$ac_ext
  2728. cat >>conftest.$ac_ext <<_ACEOF
  2729. /* end confdefs.h. */
  2730. int
  2731. main ()
  2732. {
  2733. ;
  2734. return 0;
  2735. }
  2736. _ACEOF
  2737. rm -f conftest.$ac_objext
  2738. if { (ac_try="$ac_compile"
  2739. case "(($ac_try" in
  2740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2741. *) ac_try_echo=$ac_try;;
  2742. esac
  2743. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2744. $as_echo "$ac_try_echo") >&5
  2745. (eval "$ac_compile") 2>conftest.er1
  2746. ac_status=$?
  2747. grep -v '^ *+' conftest.er1 >conftest.err
  2748. rm -f conftest.er1
  2749. cat conftest.err >&5
  2750. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2751. (exit $ac_status); } && {
  2752. test -z "$ac_c_werror_flag" ||
  2753. test ! -s conftest.err
  2754. } && test -s conftest.$ac_objext; then
  2755. :
  2756. else
  2757. $as_echo "$as_me: failed program was:" >&5
  2758. sed 's/^/| /' conftest.$ac_ext >&5
  2759. ac_c_werror_flag=$ac_save_c_werror_flag
  2760. CFLAGS="-g"
  2761. cat >conftest.$ac_ext <<_ACEOF
  2762. /* confdefs.h. */
  2763. _ACEOF
  2764. cat confdefs.h >>conftest.$ac_ext
  2765. cat >>conftest.$ac_ext <<_ACEOF
  2766. /* end confdefs.h. */
  2767. int
  2768. main ()
  2769. {
  2770. ;
  2771. return 0;
  2772. }
  2773. _ACEOF
  2774. rm -f conftest.$ac_objext
  2775. if { (ac_try="$ac_compile"
  2776. case "(($ac_try" in
  2777. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2778. *) ac_try_echo=$ac_try;;
  2779. esac
  2780. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2781. $as_echo "$ac_try_echo") >&5
  2782. (eval "$ac_compile") 2>conftest.er1
  2783. ac_status=$?
  2784. grep -v '^ *+' conftest.er1 >conftest.err
  2785. rm -f conftest.er1
  2786. cat conftest.err >&5
  2787. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2788. (exit $ac_status); } && {
  2789. test -z "$ac_c_werror_flag" ||
  2790. test ! -s conftest.err
  2791. } && test -s conftest.$ac_objext; then
  2792. ac_cv_prog_cc_g=yes
  2793. else
  2794. $as_echo "$as_me: failed program was:" >&5
  2795. sed 's/^/| /' conftest.$ac_ext >&5
  2796. fi
  2797. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2798. fi
  2799. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2800. fi
  2801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2802. ac_c_werror_flag=$ac_save_c_werror_flag
  2803. fi
  2804. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2805. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2806. if test "$ac_test_CFLAGS" = set; then
  2807. CFLAGS=$ac_save_CFLAGS
  2808. elif test $ac_cv_prog_cc_g = yes; then
  2809. if test "$GCC" = yes; then
  2810. CFLAGS="-g -O2"
  2811. else
  2812. CFLAGS="-g"
  2813. fi
  2814. else
  2815. if test "$GCC" = yes; then
  2816. CFLAGS="-O2"
  2817. else
  2818. CFLAGS=
  2819. fi
  2820. fi
  2821. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2822. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2823. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2824. $as_echo_n "(cached) " >&6
  2825. else
  2826. ac_cv_prog_cc_c89=no
  2827. ac_save_CC=$CC
  2828. cat >conftest.$ac_ext <<_ACEOF
  2829. /* confdefs.h. */
  2830. _ACEOF
  2831. cat confdefs.h >>conftest.$ac_ext
  2832. cat >>conftest.$ac_ext <<_ACEOF
  2833. /* end confdefs.h. */
  2834. #include <stdarg.h>
  2835. #include <stdio.h>
  2836. #include <sys/types.h>
  2837. #include <sys/stat.h>
  2838. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2839. struct buf { int x; };
  2840. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2841. static char *e (p, i)
  2842. char **p;
  2843. int i;
  2844. {
  2845. return p[i];
  2846. }
  2847. static char *f (char * (*g) (char **, int), char **p, ...)
  2848. {
  2849. char *s;
  2850. va_list v;
  2851. va_start (v,p);
  2852. s = g (p, va_arg (v,int));
  2853. va_end (v);
  2854. return s;
  2855. }
  2856. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2857. function prototypes and stuff, but not '\xHH' hex character constants.
  2858. These don't provoke an error unfortunately, instead are silently treated
  2859. as 'x'. The following induces an error, until -std is added to get
  2860. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2861. array size at least. It's necessary to write '\x00'==0 to get something
  2862. that's true only with -std. */
  2863. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2864. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2865. inside strings and character constants. */
  2866. #define FOO(x) 'x'
  2867. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2868. int test (int i, double x);
  2869. struct s1 {int (*f) (int a);};
  2870. struct s2 {int (*f) (double a);};
  2871. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2872. int argc;
  2873. char **argv;
  2874. int
  2875. main ()
  2876. {
  2877. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2878. ;
  2879. return 0;
  2880. }
  2881. _ACEOF
  2882. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2883. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2884. do
  2885. CC="$ac_save_CC $ac_arg"
  2886. rm -f conftest.$ac_objext
  2887. if { (ac_try="$ac_compile"
  2888. case "(($ac_try" in
  2889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2890. *) ac_try_echo=$ac_try;;
  2891. esac
  2892. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2893. $as_echo "$ac_try_echo") >&5
  2894. (eval "$ac_compile") 2>conftest.er1
  2895. ac_status=$?
  2896. grep -v '^ *+' conftest.er1 >conftest.err
  2897. rm -f conftest.er1
  2898. cat conftest.err >&5
  2899. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2900. (exit $ac_status); } && {
  2901. test -z "$ac_c_werror_flag" ||
  2902. test ! -s conftest.err
  2903. } && test -s conftest.$ac_objext; then
  2904. ac_cv_prog_cc_c89=$ac_arg
  2905. else
  2906. $as_echo "$as_me: failed program was:" >&5
  2907. sed 's/^/| /' conftest.$ac_ext >&5
  2908. fi
  2909. rm -f core conftest.err conftest.$ac_objext
  2910. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2911. done
  2912. rm -f conftest.$ac_ext
  2913. CC=$ac_save_CC
  2914. fi
  2915. # AC_CACHE_VAL
  2916. case "x$ac_cv_prog_cc_c89" in
  2917. x)
  2918. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  2919. $as_echo "none needed" >&6; } ;;
  2920. xno)
  2921. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  2922. $as_echo "unsupported" >&6; } ;;
  2923. *)
  2924. CC="$CC $ac_cv_prog_cc_c89"
  2925. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2926. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2927. esac
  2928. ac_ext=c
  2929. ac_cpp='$CPP $CPPFLAGS'
  2930. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2931. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2932. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2933. depcc="$CC" am_compiler_list=
  2934. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2935. $as_echo_n "checking dependency style of $depcc... " >&6; }
  2936. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2937. $as_echo_n "(cached) " >&6
  2938. else
  2939. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2940. # We make a subdir and do the tests there. Otherwise we can end up
  2941. # making bogus files that we don't know about and never remove. For
  2942. # instance it was reported that on HP-UX the gcc test will end up
  2943. # making a dummy file named `D' -- because `-MD' means `put the output
  2944. # in D'.
  2945. mkdir conftest.dir
  2946. # Copy depcomp to subdir because otherwise we won't find it if we're
  2947. # using a relative directory.
  2948. cp "$am_depcomp" conftest.dir
  2949. cd conftest.dir
  2950. # We will build objects and dependencies in a subdirectory because
  2951. # it helps to detect inapplicable dependency modes. For instance
  2952. # both Tru64's cc and ICC support -MD to output dependencies as a
  2953. # side effect of compilation, but ICC will put the dependencies in
  2954. # the current directory while Tru64 will put them in the object
  2955. # directory.
  2956. mkdir sub
  2957. am_cv_CC_dependencies_compiler_type=none
  2958. if test "$am_compiler_list" = ""; then
  2959. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2960. fi
  2961. for depmode in $am_compiler_list; do
  2962. # Setup a source with many dependencies, because some compilers
  2963. # like to wrap large dependency lists on column 80 (with \), and
  2964. # we should not choose a depcomp mode which is confused by this.
  2965. #
  2966. # We need to recreate these files for each test, as the compiler may
  2967. # overwrite some of them when testing with obscure command lines.
  2968. # This happens at least with the AIX C compiler.
  2969. : > sub/conftest.c
  2970. for i in 1 2 3 4 5 6; do
  2971. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2972. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2973. # Solaris 8's {/usr,}/bin/sh.
  2974. touch sub/conftst$i.h
  2975. done
  2976. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2977. case $depmode in
  2978. nosideeffect)
  2979. # after this tag, mechanisms are not by side-effect, so they'll
  2980. # only be used when explicitly requested
  2981. if test "x$enable_dependency_tracking" = xyes; then
  2982. continue
  2983. else
  2984. break
  2985. fi
  2986. ;;
  2987. none) break ;;
  2988. esac
  2989. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2990. # mode. It turns out that the SunPro C++ compiler does not properly
  2991. # handle `-M -o', and we need to detect this.
  2992. if depmode=$depmode \
  2993. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2994. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2995. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2996. >/dev/null 2>conftest.err &&
  2997. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2998. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2999. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3000. # icc doesn't choke on unknown options, it will just issue warnings
  3001. # or remarks (even with -Werror). So we grep stderr for any message
  3002. # that says an option was ignored or not supported.
  3003. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3004. # icc: Command line warning: ignoring option '-M'; no argument required
  3005. # The diagnosis changed in icc 8.0:
  3006. # icc: Command line remark: option '-MP' not supported
  3007. if (grep 'ignoring option' conftest.err ||
  3008. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3009. am_cv_CC_dependencies_compiler_type=$depmode
  3010. break
  3011. fi
  3012. fi
  3013. done
  3014. cd ..
  3015. rm -rf conftest.dir
  3016. else
  3017. am_cv_CC_dependencies_compiler_type=none
  3018. fi
  3019. fi
  3020. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3021. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3022. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3023. if
  3024. test "x$enable_dependency_tracking" != xno \
  3025. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3026. am__fastdepCC_TRUE=
  3027. am__fastdepCC_FALSE='#'
  3028. else
  3029. am__fastdepCC_TRUE='#'
  3030. am__fastdepCC_FALSE=
  3031. fi
  3032. ac_ext=c
  3033. ac_cpp='$CPP $CPPFLAGS'
  3034. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3035. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3036. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3037. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3038. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3039. # On Suns, sometimes $CPP names a directory.
  3040. if test -n "$CPP" && test -d "$CPP"; then
  3041. CPP=
  3042. fi
  3043. if test -z "$CPP"; then
  3044. if test "${ac_cv_prog_CPP+set}" = set; then
  3045. $as_echo_n "(cached) " >&6
  3046. else
  3047. # Double quotes because CPP needs to be expanded
  3048. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3049. do
  3050. ac_preproc_ok=false
  3051. for ac_c_preproc_warn_flag in '' yes
  3052. do
  3053. # Use a header file that comes with gcc, so configuring glibc
  3054. # with a fresh cross-compiler works.
  3055. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3056. # <limits.h> exists even on freestanding compilers.
  3057. # On the NeXT, cc -E runs the code through the compiler's parser,
  3058. # not just through cpp. "Syntax error" is here to catch this case.
  3059. cat >conftest.$ac_ext <<_ACEOF
  3060. /* confdefs.h. */
  3061. _ACEOF
  3062. cat confdefs.h >>conftest.$ac_ext
  3063. cat >>conftest.$ac_ext <<_ACEOF
  3064. /* end confdefs.h. */
  3065. #ifdef __STDC__
  3066. # include <limits.h>
  3067. #else
  3068. # include <assert.h>
  3069. #endif
  3070. Syntax error
  3071. _ACEOF
  3072. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3073. case "(($ac_try" in
  3074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3075. *) ac_try_echo=$ac_try;;
  3076. esac
  3077. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3078. $as_echo "$ac_try_echo") >&5
  3079. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3080. ac_status=$?
  3081. grep -v '^ *+' conftest.er1 >conftest.err
  3082. rm -f conftest.er1
  3083. cat conftest.err >&5
  3084. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3085. (exit $ac_status); } >/dev/null && {
  3086. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3087. test ! -s conftest.err
  3088. }; then
  3089. :
  3090. else
  3091. $as_echo "$as_me: failed program was:" >&5
  3092. sed 's/^/| /' conftest.$ac_ext >&5
  3093. # Broken: fails on valid input.
  3094. continue
  3095. fi
  3096. rm -f conftest.err conftest.$ac_ext
  3097. # OK, works on sane cases. Now check whether nonexistent headers
  3098. # can be detected and how.
  3099. cat >conftest.$ac_ext <<_ACEOF
  3100. /* confdefs.h. */
  3101. _ACEOF
  3102. cat confdefs.h >>conftest.$ac_ext
  3103. cat >>conftest.$ac_ext <<_ACEOF
  3104. /* end confdefs.h. */
  3105. #include <ac_nonexistent.h>
  3106. _ACEOF
  3107. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3108. case "(($ac_try" in
  3109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3110. *) ac_try_echo=$ac_try;;
  3111. esac
  3112. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3113. $as_echo "$ac_try_echo") >&5
  3114. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3115. ac_status=$?
  3116. grep -v '^ *+' conftest.er1 >conftest.err
  3117. rm -f conftest.er1
  3118. cat conftest.err >&5
  3119. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3120. (exit $ac_status); } >/dev/null && {
  3121. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3122. test ! -s conftest.err
  3123. }; then
  3124. # Broken: success on invalid input.
  3125. continue
  3126. else
  3127. $as_echo "$as_me: failed program was:" >&5
  3128. sed 's/^/| /' conftest.$ac_ext >&5
  3129. # Passes both tests.
  3130. ac_preproc_ok=:
  3131. break
  3132. fi
  3133. rm -f conftest.err conftest.$ac_ext
  3134. done
  3135. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3136. rm -f conftest.err conftest.$ac_ext
  3137. if $ac_preproc_ok; then
  3138. break
  3139. fi
  3140. done
  3141. ac_cv_prog_CPP=$CPP
  3142. fi
  3143. CPP=$ac_cv_prog_CPP
  3144. else
  3145. ac_cv_prog_CPP=$CPP
  3146. fi
  3147. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  3148. $as_echo "$CPP" >&6; }
  3149. ac_preproc_ok=false
  3150. for ac_c_preproc_warn_flag in '' yes
  3151. do
  3152. # Use a header file that comes with gcc, so configuring glibc
  3153. # with a fresh cross-compiler works.
  3154. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3155. # <limits.h> exists even on freestanding compilers.
  3156. # On the NeXT, cc -E runs the code through the compiler's parser,
  3157. # not just through cpp. "Syntax error" is here to catch this case.
  3158. cat >conftest.$ac_ext <<_ACEOF
  3159. /* confdefs.h. */
  3160. _ACEOF
  3161. cat confdefs.h >>conftest.$ac_ext
  3162. cat >>conftest.$ac_ext <<_ACEOF
  3163. /* end confdefs.h. */
  3164. #ifdef __STDC__
  3165. # include <limits.h>
  3166. #else
  3167. # include <assert.h>
  3168. #endif
  3169. Syntax error
  3170. _ACEOF
  3171. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3172. case "(($ac_try" in
  3173. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3174. *) ac_try_echo=$ac_try;;
  3175. esac
  3176. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3177. $as_echo "$ac_try_echo") >&5
  3178. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3179. ac_status=$?
  3180. grep -v '^ *+' conftest.er1 >conftest.err
  3181. rm -f conftest.er1
  3182. cat conftest.err >&5
  3183. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3184. (exit $ac_status); } >/dev/null && {
  3185. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3186. test ! -s conftest.err
  3187. }; then
  3188. :
  3189. else
  3190. $as_echo "$as_me: failed program was:" >&5
  3191. sed 's/^/| /' conftest.$ac_ext >&5
  3192. # Broken: fails on valid input.
  3193. continue
  3194. fi
  3195. rm -f conftest.err conftest.$ac_ext
  3196. # OK, works on sane cases. Now check whether nonexistent headers
  3197. # can be detected and how.
  3198. cat >conftest.$ac_ext <<_ACEOF
  3199. /* confdefs.h. */
  3200. _ACEOF
  3201. cat confdefs.h >>conftest.$ac_ext
  3202. cat >>conftest.$ac_ext <<_ACEOF
  3203. /* end confdefs.h. */
  3204. #include <ac_nonexistent.h>
  3205. _ACEOF
  3206. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3207. case "(($ac_try" in
  3208. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3209. *) ac_try_echo=$ac_try;;
  3210. esac
  3211. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3212. $as_echo "$ac_try_echo") >&5
  3213. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3214. ac_status=$?
  3215. grep -v '^ *+' conftest.er1 >conftest.err
  3216. rm -f conftest.er1
  3217. cat conftest.err >&5
  3218. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3219. (exit $ac_status); } >/dev/null && {
  3220. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3221. test ! -s conftest.err
  3222. }; then
  3223. # Broken: success on invalid input.
  3224. continue
  3225. else
  3226. $as_echo "$as_me: failed program was:" >&5
  3227. sed 's/^/| /' conftest.$ac_ext >&5
  3228. # Passes both tests.
  3229. ac_preproc_ok=:
  3230. break
  3231. fi
  3232. rm -f conftest.err conftest.$ac_ext
  3233. done
  3234. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3235. rm -f conftest.err conftest.$ac_ext
  3236. if $ac_preproc_ok; then
  3237. :
  3238. else
  3239. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3240. See \`config.log' for more details." >&5
  3241. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3242. See \`config.log' for more details." >&2;}
  3243. { (exit 1); exit 1; }; }
  3244. fi
  3245. ac_ext=c
  3246. ac_cpp='$CPP $CPPFLAGS'
  3247. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3248. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3249. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3250. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3251. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3252. if test "${ac_cv_path_GREP+set}" = set; then
  3253. $as_echo_n "(cached) " >&6
  3254. else
  3255. if test -z "$GREP"; then
  3256. ac_path_GREP_found=false
  3257. # Loop through the user's path and test for each of PROGNAME-LIST
  3258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3259. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3260. do
  3261. IFS=$as_save_IFS
  3262. test -z "$as_dir" && as_dir=.
  3263. for ac_prog in grep ggrep; do
  3264. for ac_exec_ext in '' $ac_executable_extensions; do
  3265. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3266. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3267. # Check for GNU ac_path_GREP and select it if it is found.
  3268. # Check for GNU $ac_path_GREP
  3269. case `"$ac_path_GREP" --version 2>&1` in
  3270. *GNU*)
  3271. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3272. *)
  3273. ac_count=0
  3274. $as_echo_n 0123456789 >"conftest.in"
  3275. while :
  3276. do
  3277. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3278. mv "conftest.tmp" "conftest.in"
  3279. cp "conftest.in" "conftest.nl"
  3280. $as_echo 'GREP' >> "conftest.nl"
  3281. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3282. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3283. ac_count=`expr $ac_count + 1`
  3284. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3285. # Best one so far, save it but keep looking for a better one
  3286. ac_cv_path_GREP="$ac_path_GREP"
  3287. ac_path_GREP_max=$ac_count
  3288. fi
  3289. # 10*(2^10) chars as input seems more than enough
  3290. test $ac_count -gt 10 && break
  3291. done
  3292. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3293. esac
  3294. $ac_path_GREP_found && break 3
  3295. done
  3296. done
  3297. done
  3298. IFS=$as_save_IFS
  3299. if test -z "$ac_cv_path_GREP"; then
  3300. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3301. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3302. { (exit 1); exit 1; }; }
  3303. fi
  3304. else
  3305. ac_cv_path_GREP=$GREP
  3306. fi
  3307. fi
  3308. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3309. $as_echo "$ac_cv_path_GREP" >&6; }
  3310. GREP="$ac_cv_path_GREP"
  3311. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  3312. $as_echo_n "checking for egrep... " >&6; }
  3313. if test "${ac_cv_path_EGREP+set}" = set; then
  3314. $as_echo_n "(cached) " >&6
  3315. else
  3316. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3317. then ac_cv_path_EGREP="$GREP -E"
  3318. else
  3319. if test -z "$EGREP"; then
  3320. ac_path_EGREP_found=false
  3321. # Loop through the user's path and test for each of PROGNAME-LIST
  3322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3323. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3324. do
  3325. IFS=$as_save_IFS
  3326. test -z "$as_dir" && as_dir=.
  3327. for ac_prog in egrep; do
  3328. for ac_exec_ext in '' $ac_executable_extensions; do
  3329. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3330. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3331. # Check for GNU ac_path_EGREP and select it if it is found.
  3332. # Check for GNU $ac_path_EGREP
  3333. case `"$ac_path_EGREP" --version 2>&1` in
  3334. *GNU*)
  3335. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3336. *)
  3337. ac_count=0
  3338. $as_echo_n 0123456789 >"conftest.in"
  3339. while :
  3340. do
  3341. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3342. mv "conftest.tmp" "conftest.in"
  3343. cp "conftest.in" "conftest.nl"
  3344. $as_echo 'EGREP' >> "conftest.nl"
  3345. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3346. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3347. ac_count=`expr $ac_count + 1`
  3348. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3349. # Best one so far, save it but keep looking for a better one
  3350. ac_cv_path_EGREP="$ac_path_EGREP"
  3351. ac_path_EGREP_max=$ac_count
  3352. fi
  3353. # 10*(2^10) chars as input seems more than enough
  3354. test $ac_count -gt 10 && break
  3355. done
  3356. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3357. esac
  3358. $ac_path_EGREP_found && break 3
  3359. done
  3360. done
  3361. done
  3362. IFS=$as_save_IFS
  3363. if test -z "$ac_cv_path_EGREP"; then
  3364. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3365. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3366. { (exit 1); exit 1; }; }
  3367. fi
  3368. else
  3369. ac_cv_path_EGREP=$EGREP
  3370. fi
  3371. fi
  3372. fi
  3373. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3374. $as_echo "$ac_cv_path_EGREP" >&6; }
  3375. EGREP="$ac_cv_path_EGREP"
  3376. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3377. $as_echo_n "checking for ANSI C header files... " >&6; }
  3378. if test "${ac_cv_header_stdc+set}" = set; then
  3379. $as_echo_n "(cached) " >&6
  3380. else
  3381. cat >conftest.$ac_ext <<_ACEOF
  3382. /* confdefs.h. */
  3383. _ACEOF
  3384. cat confdefs.h >>conftest.$ac_ext
  3385. cat >>conftest.$ac_ext <<_ACEOF
  3386. /* end confdefs.h. */
  3387. #include <stdlib.h>
  3388. #include <stdarg.h>
  3389. #include <string.h>
  3390. #include <float.h>
  3391. int
  3392. main ()
  3393. {
  3394. ;
  3395. return 0;
  3396. }
  3397. _ACEOF
  3398. rm -f conftest.$ac_objext
  3399. if { (ac_try="$ac_compile"
  3400. case "(($ac_try" in
  3401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3402. *) ac_try_echo=$ac_try;;
  3403. esac
  3404. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3405. $as_echo "$ac_try_echo") >&5
  3406. (eval "$ac_compile") 2>conftest.er1
  3407. ac_status=$?
  3408. grep -v '^ *+' conftest.er1 >conftest.err
  3409. rm -f conftest.er1
  3410. cat conftest.err >&5
  3411. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3412. (exit $ac_status); } && {
  3413. test -z "$ac_c_werror_flag" ||
  3414. test ! -s conftest.err
  3415. } && test -s conftest.$ac_objext; then
  3416. ac_cv_header_stdc=yes
  3417. else
  3418. $as_echo "$as_me: failed program was:" >&5
  3419. sed 's/^/| /' conftest.$ac_ext >&5
  3420. ac_cv_header_stdc=no
  3421. fi
  3422. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3423. if test $ac_cv_header_stdc = yes; then
  3424. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3425. cat >conftest.$ac_ext <<_ACEOF
  3426. /* confdefs.h. */
  3427. _ACEOF
  3428. cat confdefs.h >>conftest.$ac_ext
  3429. cat >>conftest.$ac_ext <<_ACEOF
  3430. /* end confdefs.h. */
  3431. #include <string.h>
  3432. _ACEOF
  3433. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3434. $EGREP "memchr" >/dev/null 2>&1; then
  3435. :
  3436. else
  3437. ac_cv_header_stdc=no
  3438. fi
  3439. rm -f conftest*
  3440. fi
  3441. if test $ac_cv_header_stdc = yes; then
  3442. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3443. cat >conftest.$ac_ext <<_ACEOF
  3444. /* confdefs.h. */
  3445. _ACEOF
  3446. cat confdefs.h >>conftest.$ac_ext
  3447. cat >>conftest.$ac_ext <<_ACEOF
  3448. /* end confdefs.h. */
  3449. #include <stdlib.h>
  3450. _ACEOF
  3451. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3452. $EGREP "free" >/dev/null 2>&1; then
  3453. :
  3454. else
  3455. ac_cv_header_stdc=no
  3456. fi
  3457. rm -f conftest*
  3458. fi
  3459. if test $ac_cv_header_stdc = yes; then
  3460. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3461. if test "$cross_compiling" = yes; then
  3462. :
  3463. else
  3464. cat >conftest.$ac_ext <<_ACEOF
  3465. /* confdefs.h. */
  3466. _ACEOF
  3467. cat confdefs.h >>conftest.$ac_ext
  3468. cat >>conftest.$ac_ext <<_ACEOF
  3469. /* end confdefs.h. */
  3470. #include <ctype.h>
  3471. #include <stdlib.h>
  3472. #if ((' ' & 0x0FF) == 0x020)
  3473. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3474. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3475. #else
  3476. # define ISLOWER(c) \
  3477. (('a' <= (c) && (c) <= 'i') \
  3478. || ('j' <= (c) && (c) <= 'r') \
  3479. || ('s' <= (c) && (c) <= 'z'))
  3480. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3481. #endif
  3482. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3483. int
  3484. main ()
  3485. {
  3486. int i;
  3487. for (i = 0; i < 256; i++)
  3488. if (XOR (islower (i), ISLOWER (i))
  3489. || toupper (i) != TOUPPER (i))
  3490. return 2;
  3491. return 0;
  3492. }
  3493. _ACEOF
  3494. rm -f conftest$ac_exeext
  3495. if { (ac_try="$ac_link"
  3496. case "(($ac_try" in
  3497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3498. *) ac_try_echo=$ac_try;;
  3499. esac
  3500. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3501. $as_echo "$ac_try_echo") >&5
  3502. (eval "$ac_link") 2>&5
  3503. ac_status=$?
  3504. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3505. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3506. { (case "(($ac_try" in
  3507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3508. *) ac_try_echo=$ac_try;;
  3509. esac
  3510. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3511. $as_echo "$ac_try_echo") >&5
  3512. (eval "$ac_try") 2>&5
  3513. ac_status=$?
  3514. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3515. (exit $ac_status); }; }; then
  3516. :
  3517. else
  3518. $as_echo "$as_me: program exited with status $ac_status" >&5
  3519. $as_echo "$as_me: failed program was:" >&5
  3520. sed 's/^/| /' conftest.$ac_ext >&5
  3521. ( exit $ac_status )
  3522. ac_cv_header_stdc=no
  3523. fi
  3524. rm -rf conftest.dSYM
  3525. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3526. fi
  3527. fi
  3528. fi
  3529. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3530. $as_echo "$ac_cv_header_stdc" >&6; }
  3531. if test $ac_cv_header_stdc = yes; then
  3532. cat >>confdefs.h <<\_ACEOF
  3533. #define STDC_HEADERS 1
  3534. _ACEOF
  3535. fi
  3536. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3537. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3538. inttypes.h stdint.h unistd.h
  3539. do
  3540. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3541. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  3542. $as_echo_n "checking for $ac_header... " >&6; }
  3543. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3544. $as_echo_n "(cached) " >&6
  3545. else
  3546. cat >conftest.$ac_ext <<_ACEOF
  3547. /* confdefs.h. */
  3548. _ACEOF
  3549. cat confdefs.h >>conftest.$ac_ext
  3550. cat >>conftest.$ac_ext <<_ACEOF
  3551. /* end confdefs.h. */
  3552. $ac_includes_default
  3553. #include <$ac_header>
  3554. _ACEOF
  3555. rm -f conftest.$ac_objext
  3556. if { (ac_try="$ac_compile"
  3557. case "(($ac_try" in
  3558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3559. *) ac_try_echo=$ac_try;;
  3560. esac
  3561. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3562. $as_echo "$ac_try_echo") >&5
  3563. (eval "$ac_compile") 2>conftest.er1
  3564. ac_status=$?
  3565. grep -v '^ *+' conftest.er1 >conftest.err
  3566. rm -f conftest.er1
  3567. cat conftest.err >&5
  3568. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3569. (exit $ac_status); } && {
  3570. test -z "$ac_c_werror_flag" ||
  3571. test ! -s conftest.err
  3572. } && test -s conftest.$ac_objext; then
  3573. eval "$as_ac_Header=yes"
  3574. else
  3575. $as_echo "$as_me: failed program was:" >&5
  3576. sed 's/^/| /' conftest.$ac_ext >&5
  3577. eval "$as_ac_Header=no"
  3578. fi
  3579. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3580. fi
  3581. ac_res=`eval 'as_val=${'$as_ac_Header'}
  3582. $as_echo "$as_val"'`
  3583. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  3584. $as_echo "$ac_res" >&6; }
  3585. if test `eval 'as_val=${'$as_ac_Header'}
  3586. $as_echo "$as_val"'` = yes; then
  3587. cat >>confdefs.h <<_ACEOF
  3588. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3589. _ACEOF
  3590. fi
  3591. done
  3592. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
  3593. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3594. if test "${ac_cv_prog_cc_c99+set}" = set; then
  3595. $as_echo_n "(cached) " >&6
  3596. else
  3597. ac_cv_prog_cc_c99=no
  3598. ac_save_CC=$CC
  3599. cat >conftest.$ac_ext <<_ACEOF
  3600. /* confdefs.h. */
  3601. _ACEOF
  3602. cat confdefs.h >>conftest.$ac_ext
  3603. cat >>conftest.$ac_ext <<_ACEOF
  3604. /* end confdefs.h. */
  3605. #include <stdarg.h>
  3606. #include <stdbool.h>
  3607. #include <stdlib.h>
  3608. #include <wchar.h>
  3609. #include <stdio.h>
  3610. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3611. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3612. #define showlist(...) puts (#__VA_ARGS__)
  3613. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3614. static void
  3615. test_varargs_macros (void)
  3616. {
  3617. int x = 1234;
  3618. int y = 5678;
  3619. debug ("Flag");
  3620. debug ("X = %d\n", x);
  3621. showlist (The first, second, and third items.);
  3622. report (x>y, "x is %d but y is %d", x, y);
  3623. }
  3624. // Check long long types.
  3625. #define BIG64 18446744073709551615ull
  3626. #define BIG32 4294967295ul
  3627. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3628. #if !BIG_OK
  3629. your preprocessor is broken;
  3630. #endif
  3631. #if BIG_OK
  3632. #else
  3633. your preprocessor is broken;
  3634. #endif
  3635. static long long int bignum = -9223372036854775807LL;
  3636. static unsigned long long int ubignum = BIG64;
  3637. struct incomplete_array
  3638. {
  3639. int datasize;
  3640. double data[];
  3641. };
  3642. struct named_init {
  3643. int number;
  3644. const wchar_t *name;
  3645. double average;
  3646. };
  3647. typedef const char *ccp;
  3648. static inline int
  3649. test_restrict (ccp restrict text)
  3650. {
  3651. // See if C++-style comments work.
  3652. // Iterate through items via the restricted pointer.
  3653. // Also check for declarations in for loops.
  3654. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3655. continue;
  3656. return 0;
  3657. }
  3658. // Check varargs and va_copy.
  3659. static void
  3660. test_varargs (const char *format, ...)
  3661. {
  3662. va_list args;
  3663. va_start (args, format);
  3664. va_list args_copy;
  3665. va_copy (args_copy, args);
  3666. const char *str;
  3667. int number;
  3668. float fnumber;
  3669. while (*format)
  3670. {
  3671. switch (*format++)
  3672. {
  3673. case 's': // string
  3674. str = va_arg (args_copy, const char *);
  3675. break;
  3676. case 'd': // int
  3677. number = va_arg (args_copy, int);
  3678. break;
  3679. case 'f': // float
  3680. fnumber = va_arg (args_copy, double);
  3681. break;
  3682. default:
  3683. break;
  3684. }
  3685. }
  3686. va_end (args_copy);
  3687. va_end (args);
  3688. }
  3689. int
  3690. main ()
  3691. {
  3692. // Check bool.
  3693. _Bool success = false;
  3694. // Check restrict.
  3695. if (test_restrict ("String literal") == 0)
  3696. success = true;
  3697. char *restrict newvar = "Another string";
  3698. // Check varargs.
  3699. test_varargs ("s, d' f .", "string", 65, 34.234);
  3700. test_varargs_macros ();
  3701. // Check flexible array members.
  3702. struct incomplete_array *ia =
  3703. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3704. ia->datasize = 10;
  3705. for (int i = 0; i < ia->datasize; ++i)
  3706. ia->data[i] = i * 1.234;
  3707. // Check named initializers.
  3708. struct named_init ni = {
  3709. .number = 34,
  3710. .name = L"Test wide string",
  3711. .average = 543.34343,
  3712. };
  3713. ni.number = 58;
  3714. int dynamic_array[ni.number];
  3715. dynamic_array[ni.number - 1] = 543;
  3716. // work around unused variable warnings
  3717. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3718. || dynamic_array[ni.number - 1] != 543);
  3719. ;
  3720. return 0;
  3721. }
  3722. _ACEOF
  3723. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
  3724. do
  3725. CC="$ac_save_CC $ac_arg"
  3726. rm -f conftest.$ac_objext
  3727. if { (ac_try="$ac_compile"
  3728. case "(($ac_try" in
  3729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3730. *) ac_try_echo=$ac_try;;
  3731. esac
  3732. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3733. $as_echo "$ac_try_echo") >&5
  3734. (eval "$ac_compile") 2>conftest.er1
  3735. ac_status=$?
  3736. grep -v '^ *+' conftest.er1 >conftest.err
  3737. rm -f conftest.er1
  3738. cat conftest.err >&5
  3739. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3740. (exit $ac_status); } && {
  3741. test -z "$ac_c_werror_flag" ||
  3742. test ! -s conftest.err
  3743. } && test -s conftest.$ac_objext; then
  3744. ac_cv_prog_cc_c99=$ac_arg
  3745. else
  3746. $as_echo "$as_me: failed program was:" >&5
  3747. sed 's/^/| /' conftest.$ac_ext >&5
  3748. fi
  3749. rm -f core conftest.err conftest.$ac_objext
  3750. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3751. done
  3752. rm -f conftest.$ac_ext
  3753. CC=$ac_save_CC
  3754. fi
  3755. # AC_CACHE_VAL
  3756. case "x$ac_cv_prog_cc_c99" in
  3757. x)
  3758. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3759. $as_echo "none needed" >&6; } ;;
  3760. xno)
  3761. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3762. $as_echo "unsupported" >&6; } ;;
  3763. *)
  3764. CC="$CC $ac_cv_prog_cc_c99"
  3765. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
  3766. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3767. esac
  3768. # Make sure we can run config.sub.
  3769. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3770. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  3771. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  3772. { (exit 1); exit 1; }; }
  3773. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  3774. $as_echo_n "checking build system type... " >&6; }
  3775. if test "${ac_cv_build+set}" = set; then
  3776. $as_echo_n "(cached) " >&6
  3777. else
  3778. ac_build_alias=$build_alias
  3779. test "x$ac_build_alias" = x &&
  3780. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3781. test "x$ac_build_alias" = x &&
  3782. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  3783. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  3784. { (exit 1); exit 1; }; }
  3785. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3786. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  3787. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  3788. { (exit 1); exit 1; }; }
  3789. fi
  3790. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  3791. $as_echo "$ac_cv_build" >&6; }
  3792. case $ac_cv_build in
  3793. *-*-*) ;;
  3794. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  3795. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  3796. { (exit 1); exit 1; }; };;
  3797. esac
  3798. build=$ac_cv_build
  3799. ac_save_IFS=$IFS; IFS='-'
  3800. set x $ac_cv_build
  3801. shift
  3802. build_cpu=$1
  3803. build_vendor=$2
  3804. shift; shift
  3805. # Remember, the first character of IFS is used to create $*,
  3806. # except with old shells:
  3807. build_os=$*
  3808. IFS=$ac_save_IFS
  3809. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3810. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  3811. $as_echo_n "checking host system type... " >&6; }
  3812. if test "${ac_cv_host+set}" = set; then
  3813. $as_echo_n "(cached) " >&6
  3814. else
  3815. if test "x$host_alias" = x; then
  3816. ac_cv_host=$ac_cv_build
  3817. else
  3818. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3819. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  3820. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  3821. { (exit 1); exit 1; }; }
  3822. fi
  3823. fi
  3824. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3825. $as_echo "$ac_cv_host" >&6; }
  3826. case $ac_cv_host in
  3827. *-*-*) ;;
  3828. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  3829. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  3830. { (exit 1); exit 1; }; };;
  3831. esac
  3832. host=$ac_cv_host
  3833. ac_save_IFS=$IFS; IFS='-'
  3834. set x $ac_cv_host
  3835. shift
  3836. host_cpu=$1
  3837. host_vendor=$2
  3838. shift; shift
  3839. # Remember, the first character of IFS is used to create $*,
  3840. # except with old shells:
  3841. host_os=$*
  3842. IFS=$ac_save_IFS
  3843. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3844. if test "x$GCC" = xyes ; then
  3845. CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
  3846. -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
  3847. -Wbad-function-cast"
  3848. case `$CC -dumpversion` in
  3849. 3.4.* | 4.*)
  3850. CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
  3851. ;;
  3852. esac
  3853. else
  3854. { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
  3855. $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
  3856. if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
  3857. $as_echo_n "(cached) " >&6
  3858. else
  3859. cat >conftest.$ac_ext <<_ACEOF
  3860. /* confdefs.h. */
  3861. _ACEOF
  3862. cat confdefs.h >>conftest.$ac_ext
  3863. cat >>conftest.$ac_ext <<_ACEOF
  3864. /* end confdefs.h. */
  3865. $ac_includes_default
  3866. int
  3867. main ()
  3868. {
  3869. #ifndef __SUNPRO_C
  3870. (void) __SUNPRO_C;
  3871. #endif
  3872. ;
  3873. return 0;
  3874. }
  3875. _ACEOF
  3876. rm -f conftest.$ac_objext
  3877. if { (ac_try="$ac_compile"
  3878. case "(($ac_try" in
  3879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3880. *) ac_try_echo=$ac_try;;
  3881. esac
  3882. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3883. $as_echo "$ac_try_echo") >&5
  3884. (eval "$ac_compile") 2>conftest.er1
  3885. ac_status=$?
  3886. grep -v '^ *+' conftest.er1 >conftest.err
  3887. rm -f conftest.er1
  3888. cat conftest.err >&5
  3889. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3890. (exit $ac_status); } && {
  3891. test -z "$ac_c_werror_flag" ||
  3892. test ! -s conftest.err
  3893. } && test -s conftest.$ac_objext; then
  3894. ac_cv_have_decl___SUNPRO_C=yes
  3895. else
  3896. $as_echo "$as_me: failed program was:" >&5
  3897. sed 's/^/| /' conftest.$ac_ext >&5
  3898. ac_cv_have_decl___SUNPRO_C=no
  3899. fi
  3900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3901. fi
  3902. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
  3903. $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
  3904. if test $ac_cv_have_decl___SUNPRO_C = yes; then
  3905. SUNCC="yes"
  3906. else
  3907. SUNCC="no"
  3908. fi
  3909. if test "x$SUNCC" = "xyes"; then
  3910. CWARNFLAGS="-v"
  3911. fi
  3912. fi
  3913. # Check whether --enable-strict-compilation was given.
  3914. if test "${enable_strict_compilation+set}" = set; then
  3915. enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
  3916. else
  3917. STRICT_COMPILE=no
  3918. fi
  3919. if test "x$STRICT_COMPILE" = "xyes"; then
  3920. { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
  3921. $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
  3922. if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
  3923. $as_echo_n "(cached) " >&6
  3924. else
  3925. cat >conftest.$ac_ext <<_ACEOF
  3926. /* confdefs.h. */
  3927. _ACEOF
  3928. cat confdefs.h >>conftest.$ac_ext
  3929. cat >>conftest.$ac_ext <<_ACEOF
  3930. /* end confdefs.h. */
  3931. $ac_includes_default
  3932. int
  3933. main ()
  3934. {
  3935. #ifndef __SUNPRO_C
  3936. (void) __SUNPRO_C;
  3937. #endif
  3938. ;
  3939. return 0;
  3940. }
  3941. _ACEOF
  3942. rm -f conftest.$ac_objext
  3943. if { (ac_try="$ac_compile"
  3944. case "(($ac_try" in
  3945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3946. *) ac_try_echo=$ac_try;;
  3947. esac
  3948. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3949. $as_echo "$ac_try_echo") >&5
  3950. (eval "$ac_compile") 2>conftest.er1
  3951. ac_status=$?
  3952. grep -v '^ *+' conftest.er1 >conftest.err
  3953. rm -f conftest.er1
  3954. cat conftest.err >&5
  3955. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3956. (exit $ac_status); } && {
  3957. test -z "$ac_c_werror_flag" ||
  3958. test ! -s conftest.err
  3959. } && test -s conftest.$ac_objext; then
  3960. ac_cv_have_decl___SUNPRO_C=yes
  3961. else
  3962. $as_echo "$as_me: failed program was:" >&5
  3963. sed 's/^/| /' conftest.$ac_ext >&5
  3964. ac_cv_have_decl___SUNPRO_C=no
  3965. fi
  3966. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3967. fi
  3968. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
  3969. $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
  3970. if test $ac_cv_have_decl___SUNPRO_C = yes; then
  3971. SUNCC="yes"
  3972. else
  3973. SUNCC="no"
  3974. fi
  3975. { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
  3976. $as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
  3977. if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
  3978. $as_echo_n "(cached) " >&6
  3979. else
  3980. cat >conftest.$ac_ext <<_ACEOF
  3981. /* confdefs.h. */
  3982. _ACEOF
  3983. cat confdefs.h >>conftest.$ac_ext
  3984. cat >>conftest.$ac_ext <<_ACEOF
  3985. /* end confdefs.h. */
  3986. $ac_includes_default
  3987. int
  3988. main ()
  3989. {
  3990. #ifndef __INTEL_COMPILER
  3991. (void) __INTEL_COMPILER;
  3992. #endif
  3993. ;
  3994. return 0;
  3995. }
  3996. _ACEOF
  3997. rm -f conftest.$ac_objext
  3998. if { (ac_try="$ac_compile"
  3999. case "(($ac_try" in
  4000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4001. *) ac_try_echo=$ac_try;;
  4002. esac
  4003. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4004. $as_echo "$ac_try_echo") >&5
  4005. (eval "$ac_compile") 2>conftest.er1
  4006. ac_status=$?
  4007. grep -v '^ *+' conftest.er1 >conftest.err
  4008. rm -f conftest.er1
  4009. cat conftest.err >&5
  4010. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4011. (exit $ac_status); } && {
  4012. test -z "$ac_c_werror_flag" ||
  4013. test ! -s conftest.err
  4014. } && test -s conftest.$ac_objext; then
  4015. ac_cv_have_decl___INTEL_COMPILER=yes
  4016. else
  4017. $as_echo "$as_me: failed program was:" >&5
  4018. sed 's/^/| /' conftest.$ac_ext >&5
  4019. ac_cv_have_decl___INTEL_COMPILER=no
  4020. fi
  4021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4022. fi
  4023. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
  4024. $as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
  4025. if test $ac_cv_have_decl___INTEL_COMPILER = yes; then
  4026. INTELCC="yes"
  4027. else
  4028. INTELCC="no"
  4029. fi
  4030. if test "x$GCC" = xyes ; then
  4031. STRICT_CFLAGS="-pedantic -Werror"
  4032. elif test "x$SUNCC" = "xyes"; then
  4033. STRICT_CFLAGS="-errwarn"
  4034. elif test "x$INTELCC" = "xyes"; then
  4035. STRICT_CFLAGS="-Werror"
  4036. fi
  4037. fi
  4038. CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
  4039. # Check whether --with-release-version was given.
  4040. if test "${with_release_version+set}" = set; then
  4041. withval=$with_release_version; RELEASE_VERSION="$withval"
  4042. else
  4043. RELEASE_VERSION=""
  4044. fi
  4045. if test "x$RELEASE_VERSION" != "x"; then
  4046. PACKAGE="$PACKAGE-$RELEASE_VERSION"
  4047. PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
  4048. { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
  4049. $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
  4050. fi
  4051. cat >>confdefs.h <<_ACEOF
  4052. #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
  4053. _ACEOF
  4054. PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
  4055. if test "x$PVM" = "x"; then
  4056. PVM="0"
  4057. fi
  4058. cat >>confdefs.h <<_ACEOF
  4059. #define PACKAGE_VERSION_MINOR $PVM
  4060. _ACEOF
  4061. PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
  4062. if test "x$PVP" = "x"; then
  4063. PVP="0"
  4064. fi
  4065. cat >>confdefs.h <<_ACEOF
  4066. #define PACKAGE_VERSION_PATCHLEVEL $PVP
  4067. _ACEOF
  4068. CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
  4069. mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
  4070. echo 'git directory not found: installing possibly empty changelog.' >&2)"
  4071. distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
  4072. if test x$APP_MAN_SUFFIX = x ; then
  4073. APP_MAN_SUFFIX=1
  4074. fi
  4075. if test x$APP_MAN_DIR = x ; then
  4076. APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
  4077. fi
  4078. if test x$LIB_MAN_SUFFIX = x ; then
  4079. LIB_MAN_SUFFIX=3
  4080. fi
  4081. if test x$LIB_MAN_DIR = x ; then
  4082. LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
  4083. fi
  4084. if test x$FILE_MAN_SUFFIX = x ; then
  4085. case $host_os in
  4086. solaris*) FILE_MAN_SUFFIX=4 ;;
  4087. *) FILE_MAN_SUFFIX=5 ;;
  4088. esac
  4089. fi
  4090. if test x$FILE_MAN_DIR = x ; then
  4091. FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
  4092. fi
  4093. if test x$MISC_MAN_SUFFIX = x ; then
  4094. case $host_os in
  4095. solaris*) MISC_MAN_SUFFIX=5 ;;
  4096. *) MISC_MAN_SUFFIX=7 ;;
  4097. esac
  4098. fi
  4099. if test x$MISC_MAN_DIR = x ; then
  4100. MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
  4101. fi
  4102. if test x$DRIVER_MAN_SUFFIX = x ; then
  4103. case $host_os in
  4104. solaris*) DRIVER_MAN_SUFFIX=7 ;;
  4105. *) DRIVER_MAN_SUFFIX=4 ;;
  4106. esac
  4107. fi
  4108. if test x$DRIVER_MAN_DIR = x ; then
  4109. DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
  4110. fi
  4111. if test x$ADMIN_MAN_SUFFIX = x ; then
  4112. case $host_os in
  4113. solaris*) ADMIN_MAN_SUFFIX=1m ;;
  4114. *) ADMIN_MAN_SUFFIX=8 ;;
  4115. esac
  4116. fi
  4117. if test x$ADMIN_MAN_DIR = x ; then
  4118. ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
  4119. fi
  4120. ac_config_files="$ac_config_files Makefile xbitmaps.pc"
  4121. cat >confcache <<\_ACEOF
  4122. # This file is a shell script that caches the results of configure
  4123. # tests run on this system so they can be shared between configure
  4124. # scripts and configure runs, see configure's option --config-cache.
  4125. # It is not useful on other systems. If it contains results you don't
  4126. # want to keep, you may remove or edit it.
  4127. #
  4128. # config.status only pays attention to the cache file if you give it
  4129. # the --recheck option to rerun configure.
  4130. #
  4131. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4132. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4133. # following values.
  4134. _ACEOF
  4135. # The following way of writing the cache mishandles newlines in values,
  4136. # but we know of no workaround that is simple, portable, and efficient.
  4137. # So, we kill variables containing newlines.
  4138. # Ultrix sh set writes to stderr and can't be redirected directly,
  4139. # and sets the high bit in the cache file unless we assign to the vars.
  4140. (
  4141. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4142. eval ac_val=\$$ac_var
  4143. case $ac_val in #(
  4144. *${as_nl}*)
  4145. case $ac_var in #(
  4146. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  4147. $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  4148. esac
  4149. case $ac_var in #(
  4150. _ | IFS | as_nl) ;; #(
  4151. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4152. *) $as_unset $ac_var ;;
  4153. esac ;;
  4154. esac
  4155. done
  4156. (set) 2>&1 |
  4157. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4158. *${as_nl}ac_space=\ *)
  4159. # `set' does not quote correctly, so add quotes (double-quote
  4160. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4161. sed -n \
  4162. "s/'/'\\\\''/g;
  4163. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4164. ;; #(
  4165. *)
  4166. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4167. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4168. ;;
  4169. esac |
  4170. sort
  4171. ) |
  4172. sed '
  4173. /^ac_cv_env_/b end
  4174. t clear
  4175. :clear
  4176. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4177. t end
  4178. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4179. :end' >>confcache
  4180. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4181. if test -w "$cache_file"; then
  4182. test "x$cache_file" != "x/dev/null" &&
  4183. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  4184. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4185. cat confcache >$cache_file
  4186. else
  4187. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  4188. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4189. fi
  4190. fi
  4191. rm -f confcache
  4192. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4193. # Let make expand exec_prefix.
  4194. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4195. DEFS=-DHAVE_CONFIG_H
  4196. ac_libobjs=
  4197. ac_ltlibobjs=
  4198. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  4199. # 1. Remove the extension, and $U if already installed.
  4200. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  4201. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  4202. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  4203. # will be set to the directory where LIBOBJS objects are built.
  4204. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  4205. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  4206. done
  4207. LIBOBJS=$ac_libobjs
  4208. LTLIBOBJS=$ac_ltlibobjs
  4209. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  4210. { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  4211. Usually this means the macro was only invoked conditionally." >&5
  4212. $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  4213. Usually this means the macro was only invoked conditionally." >&2;}
  4214. { (exit 1); exit 1; }; }
  4215. fi
  4216. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  4217. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  4218. Usually this means the macro was only invoked conditionally." >&5
  4219. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  4220. Usually this means the macro was only invoked conditionally." >&2;}
  4221. { (exit 1); exit 1; }; }
  4222. fi
  4223. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  4224. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  4225. Usually this means the macro was only invoked conditionally." >&5
  4226. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  4227. Usually this means the macro was only invoked conditionally." >&2;}
  4228. { (exit 1); exit 1; }; }
  4229. fi
  4230. : ${CONFIG_STATUS=./config.status}
  4231. ac_write_fail=0
  4232. ac_clean_files_save=$ac_clean_files
  4233. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4234. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  4235. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  4236. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4237. #! $SHELL
  4238. # Generated by $as_me.
  4239. # Run this file to recreate the current configuration.
  4240. # Compiler output produced by configure, useful for debugging
  4241. # configure, is in config.log if it exists.
  4242. debug=false
  4243. ac_cs_recheck=false
  4244. ac_cs_silent=false
  4245. SHELL=\${CONFIG_SHELL-$SHELL}
  4246. _ACEOF
  4247. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4248. ## --------------------- ##
  4249. ## M4sh Initialization. ##
  4250. ## --------------------- ##
  4251. # Be more Bourne compatible
  4252. DUALCASE=1; export DUALCASE # for MKS sh
  4253. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  4254. emulate sh
  4255. NULLCMD=:
  4256. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  4257. # is contrary to our usage. Disable this feature.
  4258. alias -g '${1+"$@"}'='"$@"'
  4259. setopt NO_GLOB_SUBST
  4260. else
  4261. case `(set -o) 2>/dev/null` in
  4262. *posix*) set -o posix ;;
  4263. esac
  4264. fi
  4265. # PATH needs CR
  4266. # Avoid depending upon Character Ranges.
  4267. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4268. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4269. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4270. as_cr_digits='0123456789'
  4271. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4272. as_nl='
  4273. '
  4274. export as_nl
  4275. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  4276. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4277. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  4278. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  4279. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  4280. as_echo='printf %s\n'
  4281. as_echo_n='printf %s'
  4282. else
  4283. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  4284. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  4285. as_echo_n='/usr/ucb/echo -n'
  4286. else
  4287. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  4288. as_echo_n_body='eval
  4289. arg=$1;
  4290. case $arg in
  4291. *"$as_nl"*)
  4292. expr "X$arg" : "X\\(.*\\)$as_nl";
  4293. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  4294. esac;
  4295. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  4296. '
  4297. export as_echo_n_body
  4298. as_echo_n='sh -c $as_echo_n_body as_echo'
  4299. fi
  4300. export as_echo_body
  4301. as_echo='sh -c $as_echo_body as_echo'
  4302. fi
  4303. # The user is always right.
  4304. if test "${PATH_SEPARATOR+set}" != set; then
  4305. PATH_SEPARATOR=:
  4306. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  4307. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  4308. PATH_SEPARATOR=';'
  4309. }
  4310. fi
  4311. # Support unset when possible.
  4312. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4313. as_unset=unset
  4314. else
  4315. as_unset=false
  4316. fi
  4317. # IFS
  4318. # We need space, tab and new line, in precisely that order. Quoting is
  4319. # there to prevent editors from complaining about space-tab.
  4320. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  4321. # splitting by setting IFS to empty value.)
  4322. IFS=" "" $as_nl"
  4323. # Find who we are. Look in the path if we contain no directory separator.
  4324. case $0 in
  4325. *[\\/]* ) as_myself=$0 ;;
  4326. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4327. for as_dir in $PATH
  4328. do
  4329. IFS=$as_save_IFS
  4330. test -z "$as_dir" && as_dir=.
  4331. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4332. done
  4333. IFS=$as_save_IFS
  4334. ;;
  4335. esac
  4336. # We did not find ourselves, most probably we were run as `sh COMMAND'
  4337. # in which case we are not to be found in the path.
  4338. if test "x$as_myself" = x; then
  4339. as_myself=$0
  4340. fi
  4341. if test ! -f "$as_myself"; then
  4342. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  4343. { (exit 1); exit 1; }
  4344. fi
  4345. # Work around bugs in pre-3.0 UWIN ksh.
  4346. for as_var in ENV MAIL MAILPATH
  4347. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  4348. done
  4349. PS1='$ '
  4350. PS2='> '
  4351. PS4='+ '
  4352. # NLS nuisances.
  4353. LC_ALL=C
  4354. export LC_ALL
  4355. LANGUAGE=C
  4356. export LANGUAGE
  4357. # Required to use basename.
  4358. if expr a : '\(a\)' >/dev/null 2>&1 &&
  4359. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4360. as_expr=expr
  4361. else
  4362. as_expr=false
  4363. fi
  4364. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  4365. as_basename=basename
  4366. else
  4367. as_basename=false
  4368. fi
  4369. # Name of the executable.
  4370. as_me=`$as_basename -- "$0" ||
  4371. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4372. X"$0" : 'X\(//\)$' \| \
  4373. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  4374. $as_echo X/"$0" |
  4375. sed '/^.*\/\([^/][^/]*\)\/*$/{
  4376. s//\1/
  4377. q
  4378. }
  4379. /^X\/\(\/\/\)$/{
  4380. s//\1/
  4381. q
  4382. }
  4383. /^X\/\(\/\).*/{
  4384. s//\1/
  4385. q
  4386. }
  4387. s/.*/./; q'`
  4388. # CDPATH.
  4389. $as_unset CDPATH
  4390. as_lineno_1=$LINENO
  4391. as_lineno_2=$LINENO
  4392. test "x$as_lineno_1" != "x$as_lineno_2" &&
  4393. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  4394. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  4395. # uniformly replaced by the line number. The first 'sed' inserts a
  4396. # line-number line after each line using $LINENO; the second 'sed'
  4397. # does the real work. The second script uses 'N' to pair each
  4398. # line-number line with the line containing $LINENO, and appends
  4399. # trailing '-' during substitution so that $LINENO is not a special
  4400. # case at line end.
  4401. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  4402. # scripts with optimization help from Paolo Bonzini. Blame Lee
  4403. # E. McMahon (1931-1989) for sed's syntax. :-)
  4404. sed -n '
  4405. p
  4406. /[$]LINENO/=
  4407. ' <$as_myself |
  4408. sed '
  4409. s/[$]LINENO.*/&-/
  4410. t lineno
  4411. b
  4412. :lineno
  4413. N
  4414. :loop
  4415. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  4416. t loop
  4417. s/-\n.*//
  4418. ' >$as_me.lineno &&
  4419. chmod +x "$as_me.lineno" ||
  4420. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  4421. { (exit 1); exit 1; }; }
  4422. # Don't try to exec as it changes $[0], causing all sort of problems
  4423. # (the dirname of $[0] is not the place where we might find the
  4424. # original and so on. Autoconf is especially sensitive to this).
  4425. . "./$as_me.lineno"
  4426. # Exit status is that of the last command.
  4427. exit
  4428. }
  4429. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  4430. as_dirname=dirname
  4431. else
  4432. as_dirname=false
  4433. fi
  4434. ECHO_C= ECHO_N= ECHO_T=
  4435. case `echo -n x` in
  4436. -n*)
  4437. case `echo 'x\c'` in
  4438. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  4439. *) ECHO_C='\c';;
  4440. esac;;
  4441. *)
  4442. ECHO_N='-n';;
  4443. esac
  4444. if expr a : '\(a\)' >/dev/null 2>&1 &&
  4445. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4446. as_expr=expr
  4447. else
  4448. as_expr=false
  4449. fi
  4450. rm -f conf$$ conf$$.exe conf$$.file
  4451. if test -d conf$$.dir; then
  4452. rm -f conf$$.dir/conf$$.file
  4453. else
  4454. rm -f conf$$.dir
  4455. mkdir conf$$.dir 2>/dev/null
  4456. fi
  4457. if (echo >conf$$.file) 2>/dev/null; then
  4458. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4459. as_ln_s='ln -s'
  4460. # ... but there are two gotchas:
  4461. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  4462. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  4463. # In both cases, we have to default to `cp -p'.
  4464. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  4465. as_ln_s='cp -p'
  4466. elif ln conf$$.file conf$$ 2>/dev/null; then
  4467. as_ln_s=ln
  4468. else
  4469. as_ln_s='cp -p'
  4470. fi
  4471. else
  4472. as_ln_s='cp -p'
  4473. fi
  4474. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  4475. rmdir conf$$.dir 2>/dev/null
  4476. if mkdir -p . 2>/dev/null; then
  4477. as_mkdir_p=:
  4478. else
  4479. test -d ./-p && rmdir ./-p
  4480. as_mkdir_p=false
  4481. fi
  4482. if test -x / >/dev/null 2>&1; then
  4483. as_test_x='test -x'
  4484. else
  4485. if ls -dL / >/dev/null 2>&1; then
  4486. as_ls_L_option=L
  4487. else
  4488. as_ls_L_option=
  4489. fi
  4490. as_test_x='
  4491. eval sh -c '\''
  4492. if test -d "$1"; then
  4493. test -d "$1/.";
  4494. else
  4495. case $1 in
  4496. -*)set "./$1";;
  4497. esac;
  4498. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  4499. ???[sx]*):;;*)false;;esac;fi
  4500. '\'' sh
  4501. '
  4502. fi
  4503. as_executable_p=$as_test_x
  4504. # Sed expression to map a string onto a valid CPP name.
  4505. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  4506. # Sed expression to map a string onto a valid variable name.
  4507. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  4508. exec 6>&1
  4509. # Save the log message, to keep $[0] and so on meaningful, and to
  4510. # report actual input values of CONFIG_FILES etc. instead of their
  4511. # values after options handling.
  4512. ac_log="
  4513. This file was extended by xbitmaps $as_me 1.1.0, which was
  4514. generated by GNU Autoconf 2.62. Invocation command line was
  4515. CONFIG_FILES = $CONFIG_FILES
  4516. CONFIG_HEADERS = $CONFIG_HEADERS
  4517. CONFIG_LINKS = $CONFIG_LINKS
  4518. CONFIG_COMMANDS = $CONFIG_COMMANDS
  4519. $ $0 $@
  4520. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  4521. "
  4522. _ACEOF
  4523. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4524. # Files that config.status was made for.
  4525. config_files="$ac_config_files"
  4526. config_headers="$ac_config_headers"
  4527. config_commands="$ac_config_commands"
  4528. _ACEOF
  4529. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4530. ac_cs_usage="\
  4531. \`$as_me' instantiates files from templates according to the
  4532. current configuration.
  4533. Usage: $0 [OPTIONS] [FILE]...
  4534. -h, --help print this help, then exit
  4535. -V, --version print version number and configuration settings, then exit
  4536. -q, --quiet do not print progress messages
  4537. -d, --debug don't remove temporary files
  4538. --recheck update $as_me by reconfiguring in the same conditions
  4539. --file=FILE[:TEMPLATE]
  4540. instantiate the configuration file FILE
  4541. --header=FILE[:TEMPLATE]
  4542. instantiate the configuration header FILE
  4543. Configuration files:
  4544. $config_files
  4545. Configuration headers:
  4546. $config_headers
  4547. Configuration commands:
  4548. $config_commands
  4549. Report bugs to <bug-autoconf@gnu.org>."
  4550. _ACEOF
  4551. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4552. ac_cs_version="\\
  4553. xbitmaps config.status 1.1.0
  4554. configured by $0, generated by GNU Autoconf 2.62,
  4555. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  4556. Copyright (C) 2008 Free Software Foundation, Inc.
  4557. This config.status script is free software; the Free Software Foundation
  4558. gives unlimited permission to copy, distribute and modify it."
  4559. ac_pwd='$ac_pwd'
  4560. srcdir='$srcdir'
  4561. INSTALL='$INSTALL'
  4562. AWK='$AWK'
  4563. test -n "\$AWK" || AWK=awk
  4564. _ACEOF
  4565. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4566. # The default lists apply if the user does not specify any file.
  4567. ac_need_defaults=:
  4568. while test $# != 0
  4569. do
  4570. case $1 in
  4571. --*=*)
  4572. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4573. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  4574. ac_shift=:
  4575. ;;
  4576. *)
  4577. ac_option=$1
  4578. ac_optarg=$2
  4579. ac_shift=shift
  4580. ;;
  4581. esac
  4582. case $ac_option in
  4583. # Handling of the options.
  4584. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4585. ac_cs_recheck=: ;;
  4586. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  4587. $as_echo "$ac_cs_version"; exit ;;
  4588. --debug | --debu | --deb | --de | --d | -d )
  4589. debug=: ;;
  4590. --file | --fil | --fi | --f )
  4591. $ac_shift
  4592. case $ac_optarg in
  4593. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4594. esac
  4595. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  4596. ac_need_defaults=false;;
  4597. --header | --heade | --head | --hea )
  4598. $ac_shift
  4599. case $ac_optarg in
  4600. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4601. esac
  4602. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  4603. ac_need_defaults=false;;
  4604. --he | --h)
  4605. # Conflict between --help and --header
  4606. { $as_echo "$as_me: error: ambiguous option: $1
  4607. Try \`$0 --help' for more information." >&2
  4608. { (exit 1); exit 1; }; };;
  4609. --help | --hel | -h )
  4610. $as_echo "$ac_cs_usage"; exit ;;
  4611. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4612. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  4613. ac_cs_silent=: ;;
  4614. # This is an error.
  4615. -*) { $as_echo "$as_me: error: unrecognized option: $1
  4616. Try \`$0 --help' for more information." >&2
  4617. { (exit 1); exit 1; }; } ;;
  4618. *) ac_config_targets="$ac_config_targets $1"
  4619. ac_need_defaults=false ;;
  4620. esac
  4621. shift
  4622. done
  4623. ac_configure_extra_args=
  4624. if $ac_cs_silent; then
  4625. exec 6>/dev/null
  4626. ac_configure_extra_args="$ac_configure_extra_args --silent"
  4627. fi
  4628. _ACEOF
  4629. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4630. if \$ac_cs_recheck; then
  4631. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  4632. shift
  4633. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  4634. CONFIG_SHELL='$SHELL'
  4635. export CONFIG_SHELL
  4636. exec "\$@"
  4637. fi
  4638. _ACEOF
  4639. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4640. exec 5>>config.log
  4641. {
  4642. echo
  4643. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  4644. ## Running $as_me. ##
  4645. _ASBOX
  4646. $as_echo "$ac_log"
  4647. } >&5
  4648. _ACEOF
  4649. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4650. #
  4651. # INIT-COMMANDS
  4652. #
  4653. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  4654. _ACEOF
  4655. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4656. # Handling of arguments.
  4657. for ac_config_target in $ac_config_targets
  4658. do
  4659. case $ac_config_target in
  4660. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  4661. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  4662. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  4663. "xbitmaps.pc") CONFIG_FILES="$CONFIG_FILES xbitmaps.pc" ;;
  4664. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  4665. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  4666. { (exit 1); exit 1; }; };;
  4667. esac
  4668. done
  4669. # If the user did not use the arguments to specify the items to instantiate,
  4670. # then the envvar interface is used. Set only those that are not.
  4671. # We use the long form for the default assignment because of an extremely
  4672. # bizarre bug on SunOS 4.1.3.
  4673. if $ac_need_defaults; then
  4674. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  4675. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  4676. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  4677. fi
  4678. # Have a temporary directory for convenience. Make it in the build tree
  4679. # simply because there is no reason against having it here, and in addition,
  4680. # creating and moving files from /tmp can sometimes cause problems.
  4681. # Hook for its removal unless debugging.
  4682. # Note that there is a small window in which the directory will not be cleaned:
  4683. # after its creation but before its name has been assigned to `$tmp'.
  4684. $debug ||
  4685. {
  4686. tmp=
  4687. trap 'exit_status=$?
  4688. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  4689. ' 0
  4690. trap '{ (exit 1); exit 1; }' 1 2 13 15
  4691. }
  4692. # Create a (secure) tmp directory for tmp files.
  4693. {
  4694. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  4695. test -n "$tmp" && test -d "$tmp"
  4696. } ||
  4697. {
  4698. tmp=./conf$$-$RANDOM
  4699. (umask 077 && mkdir "$tmp")
  4700. } ||
  4701. {
  4702. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  4703. { (exit 1); exit 1; }
  4704. }
  4705. # Set up the scripts for CONFIG_FILES section.
  4706. # No need to generate them if there are no CONFIG_FILES.
  4707. # This happens for instance with `./config.status config.h'.
  4708. if test -n "$CONFIG_FILES"; then
  4709. ac_cr=' '
  4710. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  4711. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  4712. ac_cs_awk_cr='\\r'
  4713. else
  4714. ac_cs_awk_cr=$ac_cr
  4715. fi
  4716. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  4717. _ACEOF
  4718. {
  4719. echo "cat >conf$$subs.awk <<_ACEOF" &&
  4720. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  4721. echo "_ACEOF"
  4722. } >conf$$subs.sh ||
  4723. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  4724. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  4725. { (exit 1); exit 1; }; }
  4726. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  4727. ac_delim='%!_!# '
  4728. for ac_last_try in false false false false false :; do
  4729. . ./conf$$subs.sh ||
  4730. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  4731. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  4732. { (exit 1); exit 1; }; }
  4733. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
  4734. break
  4735. elif $ac_last_try; then
  4736. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  4737. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  4738. { (exit 1); exit 1; }; }
  4739. else
  4740. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  4741. fi
  4742. done
  4743. rm -f conf$$subs.sh
  4744. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4745. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  4746. _ACEOF
  4747. sed -n '
  4748. h
  4749. s/^/S["/; s/!.*/"]=/
  4750. p
  4751. g
  4752. s/^[^!]*!//
  4753. :repl
  4754. t repl
  4755. s/'"$ac_delim"'$//
  4756. t delim
  4757. :nl
  4758. h
  4759. s/\(.\{148\}\).*/\1/
  4760. t more1
  4761. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  4762. p
  4763. n
  4764. b repl
  4765. :more1
  4766. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  4767. p
  4768. g
  4769. s/.\{148\}//
  4770. t nl
  4771. :delim
  4772. h
  4773. s/\(.\{148\}\).*/\1/
  4774. t more2
  4775. s/["\\]/\\&/g; s/^/"/; s/$/"/
  4776. p
  4777. b
  4778. :more2
  4779. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  4780. p
  4781. g
  4782. s/.\{148\}//
  4783. t delim
  4784. ' <conf$$subs.awk | sed '
  4785. /^[^""]/{
  4786. N
  4787. s/\n//
  4788. }
  4789. ' >>$CONFIG_STATUS || ac_write_fail=1
  4790. rm -f conf$$subs.awk
  4791. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4792. _ACAWK
  4793. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  4794. for (key in S) S_is_set[key] = 1
  4795. FS = ""
  4796. }
  4797. {
  4798. line = $ 0
  4799. nfields = split(line, field, "@")
  4800. substed = 0
  4801. len = length(field[1])
  4802. for (i = 2; i < nfields; i++) {
  4803. key = field[i]
  4804. keylen = length(key)
  4805. if (S_is_set[key]) {
  4806. value = S[key]
  4807. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  4808. len += length(value) + length(field[++i])
  4809. substed = 1
  4810. } else
  4811. len += 1 + keylen
  4812. }
  4813. print line
  4814. }
  4815. _ACAWK
  4816. _ACEOF
  4817. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4818. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  4819. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  4820. else
  4821. cat
  4822. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  4823. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  4824. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  4825. { (exit 1); exit 1; }; }
  4826. _ACEOF
  4827. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  4828. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  4829. # trailing colons and then remove the whole line if VPATH becomes empty
  4830. # (actually we leave an empty line to preserve line numbers).
  4831. if test "x$srcdir" = x.; then
  4832. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  4833. s/:*\$(srcdir):*/:/
  4834. s/:*\${srcdir}:*/:/
  4835. s/:*@srcdir@:*/:/
  4836. s/^\([^=]*=[ ]*\):*/\1/
  4837. s/:*$//
  4838. s/^[^=]*=[ ]*$//
  4839. }'
  4840. fi
  4841. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4842. fi # test -n "$CONFIG_FILES"
  4843. # Set up the scripts for CONFIG_HEADERS section.
  4844. # No need to generate them if there are no CONFIG_HEADERS.
  4845. # This happens for instance with `./config.status Makefile'.
  4846. if test -n "$CONFIG_HEADERS"; then
  4847. cat >"$tmp/defines.awk" <<\_ACAWK ||
  4848. BEGIN {
  4849. _ACEOF
  4850. # Transform confdefs.h into an awk script `defines.awk', embedded as
  4851. # here-document in config.status, that substitutes the proper values into
  4852. # config.h.in to produce config.h.
  4853. # Create a delimiter string that does not exist in confdefs.h, to ease
  4854. # handling of long lines.
  4855. ac_delim='%!_!# '
  4856. for ac_last_try in false false :; do
  4857. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  4858. if test -z "$ac_t"; then
  4859. break
  4860. elif $ac_last_try; then
  4861. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  4862. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  4863. { (exit 1); exit 1; }; }
  4864. else
  4865. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  4866. fi
  4867. done
  4868. # For the awk script, D is an array of macro values keyed by name,
  4869. # likewise P contains macro parameters if any. Preserve backslash
  4870. # newline sequences.
  4871. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  4872. sed -n '
  4873. s/.\{148\}/&'"$ac_delim"'/g
  4874. t rset
  4875. :rset
  4876. s/^[ ]*#[ ]*define[ ][ ]*/ /
  4877. t def
  4878. d
  4879. :def
  4880. s/\\$//
  4881. t bsnl
  4882. s/["\\]/\\&/g
  4883. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  4884. D["\1"]=" \3"/p
  4885. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  4886. d
  4887. :bsnl
  4888. s/["\\]/\\&/g
  4889. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  4890. D["\1"]=" \3\\\\\\n"\\/p
  4891. t cont
  4892. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  4893. t cont
  4894. d
  4895. :cont
  4896. n
  4897. s/.\{148\}/&'"$ac_delim"'/g
  4898. t clear
  4899. :clear
  4900. s/\\$//
  4901. t bsnlc
  4902. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  4903. d
  4904. :bsnlc
  4905. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  4906. b cont
  4907. ' <confdefs.h | sed '
  4908. s/'"$ac_delim"'/"\\\
  4909. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  4910. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4911. for (key in D) D_is_set[key] = 1
  4912. FS = ""
  4913. }
  4914. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  4915. line = \$ 0
  4916. split(line, arg, " ")
  4917. if (arg[1] == "#") {
  4918. defundef = arg[2]
  4919. mac1 = arg[3]
  4920. } else {
  4921. defundef = substr(arg[1], 2)
  4922. mac1 = arg[2]
  4923. }
  4924. split(mac1, mac2, "(") #)
  4925. macro = mac2[1]
  4926. if (D_is_set[macro]) {
  4927. # Preserve the white space surrounding the "#".
  4928. prefix = substr(line, 1, index(line, defundef) - 1)
  4929. print prefix "define", macro P[macro] D[macro]
  4930. next
  4931. } else {
  4932. # Replace #undef with comments. This is necessary, for example,
  4933. # in the case of _POSIX_SOURCE, which is predefined and required
  4934. # on some systems where configure will not decide to define it.
  4935. if (defundef == "undef") {
  4936. print "/*", line, "*/"
  4937. next
  4938. }
  4939. }
  4940. }
  4941. { print }
  4942. _ACAWK
  4943. _ACEOF
  4944. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4945. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  4946. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  4947. { (exit 1); exit 1; }; }
  4948. fi # test -n "$CONFIG_HEADERS"
  4949. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  4950. shift
  4951. for ac_tag
  4952. do
  4953. case $ac_tag in
  4954. :[FHLC]) ac_mode=$ac_tag; continue;;
  4955. esac
  4956. case $ac_mode$ac_tag in
  4957. :[FHL]*:*);;
  4958. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  4959. $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  4960. { (exit 1); exit 1; }; };;
  4961. :[FH]-) ac_tag=-:-;;
  4962. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  4963. esac
  4964. ac_save_IFS=$IFS
  4965. IFS=:
  4966. set x $ac_tag
  4967. IFS=$ac_save_IFS
  4968. shift
  4969. ac_file=$1
  4970. shift
  4971. case $ac_mode in
  4972. :L) ac_source=$1;;
  4973. :[FH])
  4974. ac_file_inputs=
  4975. for ac_f
  4976. do
  4977. case $ac_f in
  4978. -) ac_f="$tmp/stdin";;
  4979. *) # Look for the file first in the build tree, then in the source tree
  4980. # (if the path is not absolute). The absolute path cannot be DOS-style,
  4981. # because $ac_f cannot contain `:'.
  4982. test -f "$ac_f" ||
  4983. case $ac_f in
  4984. [\\/$]*) false;;
  4985. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  4986. esac ||
  4987. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  4988. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  4989. { (exit 1); exit 1; }; };;
  4990. esac
  4991. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  4992. ac_file_inputs="$ac_file_inputs '$ac_f'"
  4993. done
  4994. # Let's still pretend it is `configure' which instantiates (i.e., don't
  4995. # use $as_me), people would be surprised to read:
  4996. # /* config.h. Generated by config.status. */
  4997. configure_input='Generated from '`
  4998. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  4999. `' by configure.'
  5000. if test x"$ac_file" != x-; then
  5001. configure_input="$ac_file. $configure_input"
  5002. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  5003. $as_echo "$as_me: creating $ac_file" >&6;}
  5004. fi
  5005. # Neutralize special characters interpreted by sed in replacement strings.
  5006. case $configure_input in #(
  5007. *\&* | *\|* | *\\* )
  5008. ac_sed_conf_input=`$as_echo "$configure_input" |
  5009. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  5010. *) ac_sed_conf_input=$configure_input;;
  5011. esac
  5012. case $ac_tag in
  5013. *:-:* | *:-) cat >"$tmp/stdin" \
  5014. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  5015. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  5016. { (exit 1); exit 1; }; } ;;
  5017. esac
  5018. ;;
  5019. esac
  5020. ac_dir=`$as_dirname -- "$ac_file" ||
  5021. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5022. X"$ac_file" : 'X\(//\)[^/]' \| \
  5023. X"$ac_file" : 'X\(//\)$' \| \
  5024. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  5025. $as_echo X"$ac_file" |
  5026. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5027. s//\1/
  5028. q
  5029. }
  5030. /^X\(\/\/\)[^/].*/{
  5031. s//\1/
  5032. q
  5033. }
  5034. /^X\(\/\/\)$/{
  5035. s//\1/
  5036. q
  5037. }
  5038. /^X\(\/\).*/{
  5039. s//\1/
  5040. q
  5041. }
  5042. s/.*/./; q'`
  5043. { as_dir="$ac_dir"
  5044. case $as_dir in #(
  5045. -*) as_dir=./$as_dir;;
  5046. esac
  5047. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  5048. as_dirs=
  5049. while :; do
  5050. case $as_dir in #(
  5051. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  5052. *) as_qdir=$as_dir;;
  5053. esac
  5054. as_dirs="'$as_qdir' $as_dirs"
  5055. as_dir=`$as_dirname -- "$as_dir" ||
  5056. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5057. X"$as_dir" : 'X\(//\)[^/]' \| \
  5058. X"$as_dir" : 'X\(//\)$' \| \
  5059. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  5060. $as_echo X"$as_dir" |
  5061. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5062. s//\1/
  5063. q
  5064. }
  5065. /^X\(\/\/\)[^/].*/{
  5066. s//\1/
  5067. q
  5068. }
  5069. /^X\(\/\/\)$/{
  5070. s//\1/
  5071. q
  5072. }
  5073. /^X\(\/\).*/{
  5074. s//\1/
  5075. q
  5076. }
  5077. s/.*/./; q'`
  5078. test -d "$as_dir" && break
  5079. done
  5080. test -z "$as_dirs" || eval "mkdir $as_dirs"
  5081. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  5082. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  5083. { (exit 1); exit 1; }; }; }
  5084. ac_builddir=.
  5085. case "$ac_dir" in
  5086. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5087. *)
  5088. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  5089. # A ".." for each directory in $ac_dir_suffix.
  5090. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  5091. case $ac_top_builddir_sub in
  5092. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5093. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  5094. esac ;;
  5095. esac
  5096. ac_abs_top_builddir=$ac_pwd
  5097. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  5098. # for backward compatibility:
  5099. ac_top_builddir=$ac_top_build_prefix
  5100. case $srcdir in
  5101. .) # We are building in place.
  5102. ac_srcdir=.
  5103. ac_top_srcdir=$ac_top_builddir_sub
  5104. ac_abs_top_srcdir=$ac_pwd ;;
  5105. [\\/]* | ?:[\\/]* ) # Absolute name.
  5106. ac_srcdir=$srcdir$ac_dir_suffix;
  5107. ac_top_srcdir=$srcdir
  5108. ac_abs_top_srcdir=$srcdir ;;
  5109. *) # Relative name.
  5110. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  5111. ac_top_srcdir=$ac_top_build_prefix$srcdir
  5112. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  5113. esac
  5114. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  5115. case $ac_mode in
  5116. :F)
  5117. #
  5118. # CONFIG_FILE
  5119. #
  5120. case $INSTALL in
  5121. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  5122. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  5123. esac
  5124. _ACEOF
  5125. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5126. # If the template does not know about datarootdir, expand it.
  5127. # FIXME: This hack should be removed a few years after 2.60.
  5128. ac_datarootdir_hack=; ac_datarootdir_seen=
  5129. ac_sed_dataroot='
  5130. /datarootdir/ {
  5131. p
  5132. q
  5133. }
  5134. /@datadir@/p
  5135. /@docdir@/p
  5136. /@infodir@/p
  5137. /@localedir@/p
  5138. /@mandir@/p
  5139. '
  5140. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  5141. *datarootdir*) ac_datarootdir_seen=yes;;
  5142. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  5143. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  5144. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  5145. _ACEOF
  5146. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5147. ac_datarootdir_hack='
  5148. s&@datadir@&$datadir&g
  5149. s&@docdir@&$docdir&g
  5150. s&@infodir@&$infodir&g
  5151. s&@localedir@&$localedir&g
  5152. s&@mandir@&$mandir&g
  5153. s&\\\${datarootdir}&$datarootdir&g' ;;
  5154. esac
  5155. _ACEOF
  5156. # Neutralize VPATH when `$srcdir' = `.'.
  5157. # Shell code in configure.ac might set extrasub.
  5158. # FIXME: do we really want to maintain this feature?
  5159. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5160. ac_sed_extra="$ac_vpsub
  5161. $extrasub
  5162. _ACEOF
  5163. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5164. :t
  5165. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5166. s|@configure_input@|$ac_sed_conf_input|;t t
  5167. s&@top_builddir@&$ac_top_builddir_sub&;t t
  5168. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  5169. s&@srcdir@&$ac_srcdir&;t t
  5170. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  5171. s&@top_srcdir@&$ac_top_srcdir&;t t
  5172. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  5173. s&@builddir@&$ac_builddir&;t t
  5174. s&@abs_builddir@&$ac_abs_builddir&;t t
  5175. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  5176. s&@INSTALL@&$ac_INSTALL&;t t
  5177. $ac_datarootdir_hack
  5178. "
  5179. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  5180. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  5181. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  5182. { (exit 1); exit 1; }; }
  5183. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  5184. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  5185. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  5186. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5187. which seems to be undefined. Please make sure it is defined." >&5
  5188. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5189. which seems to be undefined. Please make sure it is defined." >&2;}
  5190. rm -f "$tmp/stdin"
  5191. case $ac_file in
  5192. -) cat "$tmp/out" && rm -f "$tmp/out";;
  5193. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  5194. esac \
  5195. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  5196. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  5197. { (exit 1); exit 1; }; }
  5198. ;;
  5199. :H)
  5200. #
  5201. # CONFIG_HEADER
  5202. #
  5203. if test x"$ac_file" != x-; then
  5204. {
  5205. $as_echo "/* $configure_input */" \
  5206. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  5207. } >"$tmp/config.h" \
  5208. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  5209. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  5210. { (exit 1); exit 1; }; }
  5211. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  5212. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  5213. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  5214. else
  5215. rm -f "$ac_file"
  5216. mv "$tmp/config.h" "$ac_file" \
  5217. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  5218. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  5219. { (exit 1); exit 1; }; }
  5220. fi
  5221. else
  5222. $as_echo "/* $configure_input */" \
  5223. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  5224. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  5225. $as_echo "$as_me: error: could not create -" >&2;}
  5226. { (exit 1); exit 1; }; }
  5227. fi
  5228. # Compute "$ac_file"'s index in $config_headers.
  5229. _am_stamp_count=1
  5230. for _am_header in $config_headers :; do
  5231. case $_am_header in
  5232. "$ac_file" | "$ac_file":* )
  5233. break ;;
  5234. * )
  5235. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  5236. esac
  5237. done
  5238. echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
  5239. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5240. X"$ac_file" : 'X\(//\)[^/]' \| \
  5241. X"$ac_file" : 'X\(//\)$' \| \
  5242. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  5243. $as_echo X"$ac_file" |
  5244. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5245. s//\1/
  5246. q
  5247. }
  5248. /^X\(\/\/\)[^/].*/{
  5249. s//\1/
  5250. q
  5251. }
  5252. /^X\(\/\/\)$/{
  5253. s//\1/
  5254. q
  5255. }
  5256. /^X\(\/\).*/{
  5257. s//\1/
  5258. q
  5259. }
  5260. s/.*/./; q'`/stamp-h$_am_stamp_count
  5261. ;;
  5262. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  5263. $as_echo "$as_me: executing $ac_file commands" >&6;}
  5264. ;;
  5265. esac
  5266. case $ac_file$ac_mode in
  5267. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  5268. # Strip MF so we end up with the name of the file.
  5269. mf=`echo "$mf" | sed -e 's/:.*$//'`
  5270. # Check whether this is an Automake generated Makefile or not.
  5271. # We used to match only the files named `Makefile.in', but
  5272. # some people rename them; so instead we look at the file content.
  5273. # Grep'ing the first line is not enough: some people post-process
  5274. # each Makefile.in and add a new line on top of each file to say so.
  5275. # So let's grep whole file.
  5276. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  5277. dirpart=`$as_dirname -- "$mf" ||
  5278. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5279. X"$mf" : 'X\(//\)[^/]' \| \
  5280. X"$mf" : 'X\(//\)$' \| \
  5281. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  5282. $as_echo X"$mf" |
  5283. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5284. s//\1/
  5285. q
  5286. }
  5287. /^X\(\/\/\)[^/].*/{
  5288. s//\1/
  5289. q
  5290. }
  5291. /^X\(\/\/\)$/{
  5292. s//\1/
  5293. q
  5294. }
  5295. /^X\(\/\).*/{
  5296. s//\1/
  5297. q
  5298. }
  5299. s/.*/./; q'`
  5300. else
  5301. continue
  5302. fi
  5303. # Extract the definition of DEPDIR, am__include, and am__quote
  5304. # from the Makefile without running `make'.
  5305. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  5306. test -z "$DEPDIR" && continue
  5307. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  5308. test -z "am__include" && continue
  5309. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  5310. # When using ansi2knr, U may be empty or an underscore; expand it
  5311. U=`sed -n 's/^U = //p' < "$mf"`
  5312. # Find all dependency output files, they are included files with
  5313. # $(DEPDIR) in their names. We invoke sed twice because it is the
  5314. # simplest approach to changing $(DEPDIR) to its actual value in the
  5315. # expansion.
  5316. for file in `sed -n "
  5317. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  5318. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  5319. # Make sure the directory exists.
  5320. test -f "$dirpart/$file" && continue
  5321. fdir=`$as_dirname -- "$file" ||
  5322. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5323. X"$file" : 'X\(//\)[^/]' \| \
  5324. X"$file" : 'X\(//\)$' \| \
  5325. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  5326. $as_echo X"$file" |
  5327. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5328. s//\1/
  5329. q
  5330. }
  5331. /^X\(\/\/\)[^/].*/{
  5332. s//\1/
  5333. q
  5334. }
  5335. /^X\(\/\/\)$/{
  5336. s//\1/
  5337. q
  5338. }
  5339. /^X\(\/\).*/{
  5340. s//\1/
  5341. q
  5342. }
  5343. s/.*/./; q'`
  5344. { as_dir=$dirpart/$fdir
  5345. case $as_dir in #(
  5346. -*) as_dir=./$as_dir;;
  5347. esac
  5348. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  5349. as_dirs=
  5350. while :; do
  5351. case $as_dir in #(
  5352. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  5353. *) as_qdir=$as_dir;;
  5354. esac
  5355. as_dirs="'$as_qdir' $as_dirs"
  5356. as_dir=`$as_dirname -- "$as_dir" ||
  5357. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5358. X"$as_dir" : 'X\(//\)[^/]' \| \
  5359. X"$as_dir" : 'X\(//\)$' \| \
  5360. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  5361. $as_echo X"$as_dir" |
  5362. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5363. s//\1/
  5364. q
  5365. }
  5366. /^X\(\/\/\)[^/].*/{
  5367. s//\1/
  5368. q
  5369. }
  5370. /^X\(\/\/\)$/{
  5371. s//\1/
  5372. q
  5373. }
  5374. /^X\(\/\).*/{
  5375. s//\1/
  5376. q
  5377. }
  5378. s/.*/./; q'`
  5379. test -d "$as_dir" && break
  5380. done
  5381. test -z "$as_dirs" || eval "mkdir $as_dirs"
  5382. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  5383. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  5384. { (exit 1); exit 1; }; }; }
  5385. # echo "creating $dirpart/$file"
  5386. echo '# dummy' > "$dirpart/$file"
  5387. done
  5388. done
  5389. ;;
  5390. esac
  5391. done # for ac_tag
  5392. { (exit 0); exit 0; }
  5393. _ACEOF
  5394. chmod +x $CONFIG_STATUS
  5395. ac_clean_files=$ac_clean_files_save
  5396. test $ac_write_fail = 0 ||
  5397. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  5398. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  5399. { (exit 1); exit 1; }; }
  5400. # configure is writing to config.log, and then calls config.status.
  5401. # config.status does its own redirection, appending to config.log.
  5402. # Unfortunately, on DOS this fails, as config.log is still kept open
  5403. # by configure, so config.status won't be able to write to it; its
  5404. # output is simply discarded. So we exec the FD to /dev/null,
  5405. # effectively closing config.log, so it can be properly (re)opened and
  5406. # appended to by config.status. When coming back to configure, we
  5407. # need to make the FD available again.
  5408. if test "$no_create" != yes; then
  5409. ac_cs_success=:
  5410. ac_config_status_args=
  5411. test "$silent" = yes &&
  5412. ac_config_status_args="$ac_config_status_args --quiet"
  5413. exec 5>/dev/null
  5414. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  5415. exec 5>>config.log
  5416. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5417. # would make configure fail if this is the last instruction.
  5418. $ac_cs_success || { (exit 1); exit 1; }
  5419. fi
  5420. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  5421. { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
  5422. $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
  5423. fi