configure 239 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  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*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1"
  186. if (eval "$as_required") 2>/dev/null; then :
  187. as_have_required=yes
  188. else
  189. as_have_required=no
  190. fi
  191. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  192. else
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. as_found=false
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. as_found=:
  200. case $as_dir in #(
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. # Try only shells that exist, to save several forks.
  204. as_shell=$as_dir/$as_base
  205. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  206. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. break 2
  210. fi
  211. fi
  212. done;;
  213. esac
  214. as_found=false
  215. done
  216. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  217. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  218. CONFIG_SHELL=$SHELL as_have_required=yes
  219. fi; }
  220. IFS=$as_save_IFS
  221. if test "x$CONFIG_SHELL" != x; then :
  222. export CONFIG_SHELL
  223. # We cannot yet assume a decent shell, so we have to provide a
  224. # neutralization value for shells without unset; and this also
  225. # works around shells that cannot unset nonexistent variables.
  226. # Preserve -v and -x to the replacement shell.
  227. BASH_ENV=/dev/null
  228. ENV=/dev/null
  229. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  230. case $- in # ((((
  231. *v*x* | *x*v* ) as_opts=-vx ;;
  232. *v* ) as_opts=-v ;;
  233. *x* ) as_opts=-x ;;
  234. * ) as_opts= ;;
  235. esac
  236. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  237. # Admittedly, this is quite paranoid, since all the known shells bail
  238. # out after a failed `exec'.
  239. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  240. exit 255
  241. fi
  242. if test x$as_have_required = xno; then :
  243. $as_echo "$0: This script requires a shell more modern than all"
  244. $as_echo "$0: the shells that I found on your system."
  245. if test x${ZSH_VERSION+set} = xset ; then
  246. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  250. $0: including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi
  256. fi
  257. fi
  258. SHELL=${CONFIG_SHELL-/bin/sh}
  259. export SHELL
  260. # Unset more variables known to interfere with behavior of common tools.
  261. CLICOLOR_FORCE= GREP_OPTIONS=
  262. unset CLICOLOR_FORCE GREP_OPTIONS
  263. ## --------------------- ##
  264. ## M4sh Shell Functions. ##
  265. ## --------------------- ##
  266. # as_fn_unset VAR
  267. # ---------------
  268. # Portably unset VAR.
  269. as_fn_unset ()
  270. {
  271. { eval $1=; unset $1;}
  272. }
  273. as_unset=as_fn_unset
  274. # as_fn_set_status STATUS
  275. # -----------------------
  276. # Set $? to STATUS, without forking.
  277. as_fn_set_status ()
  278. {
  279. return $1
  280. } # as_fn_set_status
  281. # as_fn_exit STATUS
  282. # -----------------
  283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  284. as_fn_exit ()
  285. {
  286. set +e
  287. as_fn_set_status $1
  288. exit $1
  289. } # as_fn_exit
  290. # as_fn_mkdir_p
  291. # -------------
  292. # Create "$as_dir" as a directory, including parents if necessary.
  293. as_fn_mkdir_p ()
  294. {
  295. case $as_dir in #(
  296. -*) as_dir=./$as_dir;;
  297. esac
  298. test -d "$as_dir" || eval $as_mkdir_p || {
  299. as_dirs=
  300. while :; do
  301. case $as_dir in #(
  302. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  303. *) as_qdir=$as_dir;;
  304. esac
  305. as_dirs="'$as_qdir' $as_dirs"
  306. as_dir=`$as_dirname -- "$as_dir" ||
  307. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  308. X"$as_dir" : 'X\(//\)[^/]' \| \
  309. X"$as_dir" : 'X\(//\)$' \| \
  310. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  311. $as_echo X"$as_dir" |
  312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  313. s//\1/
  314. q
  315. }
  316. /^X\(\/\/\)[^/].*/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\).*/{
  325. s//\1/
  326. q
  327. }
  328. s/.*/./; q'`
  329. test -d "$as_dir" && break
  330. done
  331. test -z "$as_dirs" || eval "mkdir $as_dirs"
  332. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  333. } # as_fn_mkdir_p
  334. # as_fn_executable_p FILE
  335. # -----------------------
  336. # Test if FILE is an executable regular file.
  337. as_fn_executable_p ()
  338. {
  339. test -f "$1" && test -x "$1"
  340. } # as_fn_executable_p
  341. # as_fn_append VAR VALUE
  342. # ----------------------
  343. # Append the text in VALUE to the end of the definition contained in VAR. Take
  344. # advantage of any shell optimizations that allow amortized linear growth over
  345. # repeated appends, instead of the typical quadratic growth present in naive
  346. # implementations.
  347. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  348. eval 'as_fn_append ()
  349. {
  350. eval $1+=\$2
  351. }'
  352. else
  353. as_fn_append ()
  354. {
  355. eval $1=\$$1\$2
  356. }
  357. fi # as_fn_append
  358. # as_fn_arith ARG...
  359. # ------------------
  360. # Perform arithmetic evaluation on the ARGs, and store the result in the
  361. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  362. # must be portable across $(()) and expr.
  363. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  364. eval 'as_fn_arith ()
  365. {
  366. as_val=$(( $* ))
  367. }'
  368. else
  369. as_fn_arith ()
  370. {
  371. as_val=`expr "$@" || test $? -eq 1`
  372. }
  373. fi # as_fn_arith
  374. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  375. # ----------------------------------------
  376. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  377. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  378. # script with STATUS, using 1 if that was 0.
  379. as_fn_error ()
  380. {
  381. as_status=$1; test $as_status -eq 0 && as_status=1
  382. if test "$4"; then
  383. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  384. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  385. fi
  386. $as_echo "$as_me: error: $2" >&2
  387. as_fn_exit $as_status
  388. } # as_fn_error
  389. if expr a : '\(a\)' >/dev/null 2>&1 &&
  390. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  391. as_expr=expr
  392. else
  393. as_expr=false
  394. fi
  395. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  396. as_basename=basename
  397. else
  398. as_basename=false
  399. fi
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. as_me=`$as_basename -- "$0" ||
  406. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  407. X"$0" : 'X\(//\)$' \| \
  408. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  409. $as_echo X/"$0" |
  410. sed '/^.*\/\([^/][^/]*\)\/*$/{
  411. s//\1/
  412. q
  413. }
  414. /^X\/\(\/\/\)$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\).*/{
  419. s//\1/
  420. q
  421. }
  422. s/.*/./; q'`
  423. # Avoid depending upon Character Ranges.
  424. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  425. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  426. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  427. as_cr_digits='0123456789'
  428. as_cr_alnum=$as_cr_Letters$as_cr_digits
  429. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  430. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  431. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  432. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  433. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  434. sed -n '
  435. p
  436. /[$]LINENO/=
  437. ' <$as_myself |
  438. sed '
  439. s/[$]LINENO.*/&-/
  440. t lineno
  441. b
  442. :lineno
  443. N
  444. :loop
  445. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  446. t loop
  447. s/-\n.*//
  448. ' >$as_me.lineno &&
  449. chmod +x "$as_me.lineno" ||
  450. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  451. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  452. # already done that, so ensure we don't try to do so again and fall
  453. # in an infinite loop. This has already happened in practice.
  454. _as_can_reexec=no; export _as_can_reexec
  455. # Don't try to exec as it changes $[0], causing all sort of problems
  456. # (the dirname of $[0] is not the place where we might find the
  457. # original and so on. Autoconf is especially sensitive to this).
  458. . "./$as_me.lineno"
  459. # Exit status is that of the last command.
  460. exit
  461. }
  462. ECHO_C= ECHO_N= ECHO_T=
  463. case `echo -n x` in #(((((
  464. -n*)
  465. case `echo 'xy\c'` in
  466. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  467. xy) ECHO_C='\c';;
  468. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  469. ECHO_T=' ';;
  470. esac;;
  471. *)
  472. ECHO_N='-n';;
  473. esac
  474. rm -f conf$$ conf$$.exe conf$$.file
  475. if test -d conf$$.dir; then
  476. rm -f conf$$.dir/conf$$.file
  477. else
  478. rm -f conf$$.dir
  479. mkdir conf$$.dir 2>/dev/null
  480. fi
  481. if (echo >conf$$.file) 2>/dev/null; then
  482. if ln -s conf$$.file conf$$ 2>/dev/null; then
  483. as_ln_s='ln -s'
  484. # ... but there are two gotchas:
  485. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  486. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  487. # In both cases, we have to default to `cp -pR'.
  488. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  489. as_ln_s='cp -pR'
  490. elif ln conf$$.file conf$$ 2>/dev/null; then
  491. as_ln_s=ln
  492. else
  493. as_ln_s='cp -pR'
  494. fi
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  499. rmdir conf$$.dir 2>/dev/null
  500. if mkdir -p . 2>/dev/null; then
  501. as_mkdir_p='mkdir -p "$as_dir"'
  502. else
  503. test -d ./-p && rmdir ./-p
  504. as_mkdir_p=false
  505. fi
  506. as_test_x='test -x'
  507. as_executable_p=as_fn_executable_p
  508. # Sed expression to map a string onto a valid CPP name.
  509. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  510. # Sed expression to map a string onto a valid variable name.
  511. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  512. test -n "$DJDIR" || exec 7<&0 </dev/null
  513. exec 6>&1
  514. # Name of the host.
  515. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  516. # so uname gets run too.
  517. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  518. #
  519. # Initializations.
  520. #
  521. ac_default_prefix=/usr/local
  522. ac_clean_files=
  523. ac_config_libobj_dir=.
  524. LIBOBJS=
  525. cross_compiling=no
  526. subdirs=
  527. MFLAGS=
  528. MAKEFLAGS=
  529. # Identity of this package.
  530. PACKAGE_NAME=
  531. PACKAGE_TARNAME=
  532. PACKAGE_VERSION=
  533. PACKAGE_STRING=
  534. PACKAGE_BUGREPORT=
  535. PACKAGE_URL=
  536. # Factoring default headers for most tests.
  537. ac_includes_default="\
  538. #include <stdio.h>
  539. #ifdef HAVE_SYS_TYPES_H
  540. # include <sys/types.h>
  541. #endif
  542. #ifdef HAVE_SYS_STAT_H
  543. # include <sys/stat.h>
  544. #endif
  545. #ifdef STDC_HEADERS
  546. # include <stdlib.h>
  547. # include <stddef.h>
  548. #else
  549. # ifdef HAVE_STDLIB_H
  550. # include <stdlib.h>
  551. # endif
  552. #endif
  553. #ifdef HAVE_STRING_H
  554. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  555. # include <memory.h>
  556. # endif
  557. # include <string.h>
  558. #endif
  559. #ifdef HAVE_STRINGS_H
  560. # include <strings.h>
  561. #endif
  562. #ifdef HAVE_INTTYPES_H
  563. # include <inttypes.h>
  564. #endif
  565. #ifdef HAVE_STDINT_H
  566. # include <stdint.h>
  567. #endif
  568. #ifdef HAVE_UNISTD_H
  569. # include <unistd.h>
  570. #endif"
  571. ac_unique_file="gettext.c"
  572. ac_header_list=
  573. ac_subst_vars='LTLIBOBJS
  574. LIBOBJS
  575. BISON3_NO
  576. BISON3_YES
  577. PICFLAG
  578. INCINTL
  579. LIBINTL_DEP
  580. MAINT
  581. AUTOHEADER
  582. AUTOCONF
  583. ACLOCAL
  584. POSUB
  585. LTLIBINTL
  586. LIBINTL
  587. INTLLIBS
  588. INTL_LIBTOOL_SUFFIX_PREFIX
  589. INTLOBJS
  590. GENCAT
  591. INSTOBJEXT
  592. DATADIRNAME
  593. CATOBJEXT
  594. USE_INCLUDED_LIBINTL
  595. BUILD_INCLUDED_LIBINTL
  596. INTLBISON
  597. LTLIBICONV
  598. LIBICONV
  599. GLIBC21
  600. ALLOCA
  601. RANLIB
  602. host_os
  603. host_vendor
  604. host_cpu
  605. host
  606. build_os
  607. build_vendor
  608. build_cpu
  609. build
  610. MSGMERGE
  611. XGETTEXT
  612. GMSGFMT
  613. MSGFMT
  614. USE_NLS
  615. MKINSTALLDIRS
  616. INSTALL_DATA
  617. INSTALL_SCRIPT
  618. INSTALL_PROGRAM
  619. SET_MAKE
  620. EGREP
  621. GREP
  622. CPP
  623. OBJEXT
  624. EXEEXT
  625. ac_ct_CC
  626. CPPFLAGS
  627. LDFLAGS
  628. CFLAGS
  629. CC
  630. target_alias
  631. host_alias
  632. build_alias
  633. LIBS
  634. ECHO_T
  635. ECHO_N
  636. ECHO_C
  637. DEFS
  638. mandir
  639. localedir
  640. libdir
  641. psdir
  642. pdfdir
  643. dvidir
  644. htmldir
  645. infodir
  646. docdir
  647. oldincludedir
  648. includedir
  649. localstatedir
  650. sharedstatedir
  651. sysconfdir
  652. datadir
  653. datarootdir
  654. libexecdir
  655. sbindir
  656. bindir
  657. program_transform_name
  658. prefix
  659. exec_prefix
  660. PACKAGE_URL
  661. PACKAGE_BUGREPORT
  662. PACKAGE_STRING
  663. PACKAGE_VERSION
  664. PACKAGE_TARNAME
  665. PACKAGE_NAME
  666. PATH_SEPARATOR
  667. SHELL'
  668. ac_subst_files=''
  669. ac_user_opts='
  670. enable_option_checking
  671. enable_nls
  672. with_gnu_ld
  673. enable_rpath
  674. with_libiconv_prefix
  675. with_libiconv_type
  676. with_included_gettext
  677. with_libintl_prefix
  678. with_libintl_type
  679. enable_maintainer_mode
  680. '
  681. ac_precious_vars='build_alias
  682. host_alias
  683. target_alias
  684. CC
  685. CFLAGS
  686. LDFLAGS
  687. LIBS
  688. CPPFLAGS
  689. CPP'
  690. # Initialize some variables set by options.
  691. ac_init_help=
  692. ac_init_version=false
  693. ac_unrecognized_opts=
  694. ac_unrecognized_sep=
  695. # The variables have the same names as the options, with
  696. # dashes changed to underlines.
  697. cache_file=/dev/null
  698. exec_prefix=NONE
  699. no_create=
  700. no_recursion=
  701. prefix=NONE
  702. program_prefix=NONE
  703. program_suffix=NONE
  704. program_transform_name=s,x,x,
  705. silent=
  706. site=
  707. srcdir=
  708. verbose=
  709. x_includes=NONE
  710. x_libraries=NONE
  711. # Installation directory options.
  712. # These are left unexpanded so users can "make install exec_prefix=/foo"
  713. # and all the variables that are supposed to be based on exec_prefix
  714. # by default will actually change.
  715. # Use braces instead of parens because sh, perl, etc. also accept them.
  716. # (The list follows the same order as the GNU Coding Standards.)
  717. bindir='${exec_prefix}/bin'
  718. sbindir='${exec_prefix}/sbin'
  719. libexecdir='${exec_prefix}/libexec'
  720. datarootdir='${prefix}/share'
  721. datadir='${datarootdir}'
  722. sysconfdir='${prefix}/etc'
  723. sharedstatedir='${prefix}/com'
  724. localstatedir='${prefix}/var'
  725. includedir='${prefix}/include'
  726. oldincludedir='/usr/include'
  727. docdir='${datarootdir}/doc/${PACKAGE}'
  728. infodir='${datarootdir}/info'
  729. htmldir='${docdir}'
  730. dvidir='${docdir}'
  731. pdfdir='${docdir}'
  732. psdir='${docdir}'
  733. libdir='${exec_prefix}/lib'
  734. localedir='${datarootdir}/locale'
  735. mandir='${datarootdir}/man'
  736. ac_prev=
  737. ac_dashdash=
  738. for ac_option
  739. do
  740. # If the previous option needs an argument, assign it.
  741. if test -n "$ac_prev"; then
  742. eval $ac_prev=\$ac_option
  743. ac_prev=
  744. continue
  745. fi
  746. case $ac_option in
  747. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  748. *=) ac_optarg= ;;
  749. *) ac_optarg=yes ;;
  750. esac
  751. # Accept the important Cygnus configure options, so we can diagnose typos.
  752. case $ac_dashdash$ac_option in
  753. --)
  754. ac_dashdash=yes ;;
  755. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  756. ac_prev=bindir ;;
  757. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  758. bindir=$ac_optarg ;;
  759. -build | --build | --buil | --bui | --bu)
  760. ac_prev=build_alias ;;
  761. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  762. build_alias=$ac_optarg ;;
  763. -cache-file | --cache-file | --cache-fil | --cache-fi \
  764. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  765. ac_prev=cache_file ;;
  766. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  767. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  768. cache_file=$ac_optarg ;;
  769. --config-cache | -C)
  770. cache_file=config.cache ;;
  771. -datadir | --datadir | --datadi | --datad)
  772. ac_prev=datadir ;;
  773. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  774. datadir=$ac_optarg ;;
  775. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  776. | --dataroo | --dataro | --datar)
  777. ac_prev=datarootdir ;;
  778. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  779. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  780. datarootdir=$ac_optarg ;;
  781. -disable-* | --disable-*)
  782. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  783. # Reject names that are not valid shell variable names.
  784. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  785. as_fn_error $? "invalid feature name: $ac_useropt"
  786. ac_useropt_orig=$ac_useropt
  787. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  788. case $ac_user_opts in
  789. *"
  790. "enable_$ac_useropt"
  791. "*) ;;
  792. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  793. ac_unrecognized_sep=', ';;
  794. esac
  795. eval enable_$ac_useropt=no ;;
  796. -docdir | --docdir | --docdi | --doc | --do)
  797. ac_prev=docdir ;;
  798. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  799. docdir=$ac_optarg ;;
  800. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  801. ac_prev=dvidir ;;
  802. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  803. dvidir=$ac_optarg ;;
  804. -enable-* | --enable-*)
  805. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  806. # Reject names that are not valid shell variable names.
  807. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  808. as_fn_error $? "invalid feature name: $ac_useropt"
  809. ac_useropt_orig=$ac_useropt
  810. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  811. case $ac_user_opts in
  812. *"
  813. "enable_$ac_useropt"
  814. "*) ;;
  815. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  816. ac_unrecognized_sep=', ';;
  817. esac
  818. eval enable_$ac_useropt=\$ac_optarg ;;
  819. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  820. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  821. | --exec | --exe | --ex)
  822. ac_prev=exec_prefix ;;
  823. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  824. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  825. | --exec=* | --exe=* | --ex=*)
  826. exec_prefix=$ac_optarg ;;
  827. -gas | --gas | --ga | --g)
  828. # Obsolete; use --with-gas.
  829. with_gas=yes ;;
  830. -help | --help | --hel | --he | -h)
  831. ac_init_help=long ;;
  832. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  833. ac_init_help=recursive ;;
  834. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  835. ac_init_help=short ;;
  836. -host | --host | --hos | --ho)
  837. ac_prev=host_alias ;;
  838. -host=* | --host=* | --hos=* | --ho=*)
  839. host_alias=$ac_optarg ;;
  840. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  841. ac_prev=htmldir ;;
  842. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  843. | --ht=*)
  844. htmldir=$ac_optarg ;;
  845. -includedir | --includedir | --includedi | --included | --include \
  846. | --includ | --inclu | --incl | --inc)
  847. ac_prev=includedir ;;
  848. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  849. | --includ=* | --inclu=* | --incl=* | --inc=*)
  850. includedir=$ac_optarg ;;
  851. -infodir | --infodir | --infodi | --infod | --info | --inf)
  852. ac_prev=infodir ;;
  853. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  854. infodir=$ac_optarg ;;
  855. -libdir | --libdir | --libdi | --libd)
  856. ac_prev=libdir ;;
  857. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  858. libdir=$ac_optarg ;;
  859. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  860. | --libexe | --libex | --libe)
  861. ac_prev=libexecdir ;;
  862. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  863. | --libexe=* | --libex=* | --libe=*)
  864. libexecdir=$ac_optarg ;;
  865. -localedir | --localedir | --localedi | --localed | --locale)
  866. ac_prev=localedir ;;
  867. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  868. localedir=$ac_optarg ;;
  869. -localstatedir | --localstatedir | --localstatedi | --localstated \
  870. | --localstate | --localstat | --localsta | --localst | --locals)
  871. ac_prev=localstatedir ;;
  872. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  873. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  874. localstatedir=$ac_optarg ;;
  875. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  876. ac_prev=mandir ;;
  877. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  878. mandir=$ac_optarg ;;
  879. -nfp | --nfp | --nf)
  880. # Obsolete; use --without-fp.
  881. with_fp=no ;;
  882. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  883. | --no-cr | --no-c | -n)
  884. no_create=yes ;;
  885. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  886. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  887. no_recursion=yes ;;
  888. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  889. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  890. | --oldin | --oldi | --old | --ol | --o)
  891. ac_prev=oldincludedir ;;
  892. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  893. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  894. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  895. oldincludedir=$ac_optarg ;;
  896. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  897. ac_prev=prefix ;;
  898. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  899. prefix=$ac_optarg ;;
  900. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  901. | --program-pre | --program-pr | --program-p)
  902. ac_prev=program_prefix ;;
  903. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  904. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  905. program_prefix=$ac_optarg ;;
  906. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  907. | --program-suf | --program-su | --program-s)
  908. ac_prev=program_suffix ;;
  909. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  910. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  911. program_suffix=$ac_optarg ;;
  912. -program-transform-name | --program-transform-name \
  913. | --program-transform-nam | --program-transform-na \
  914. | --program-transform-n | --program-transform- \
  915. | --program-transform | --program-transfor \
  916. | --program-transfo | --program-transf \
  917. | --program-trans | --program-tran \
  918. | --progr-tra | --program-tr | --program-t)
  919. ac_prev=program_transform_name ;;
  920. -program-transform-name=* | --program-transform-name=* \
  921. | --program-transform-nam=* | --program-transform-na=* \
  922. | --program-transform-n=* | --program-transform-=* \
  923. | --program-transform=* | --program-transfor=* \
  924. | --program-transfo=* | --program-transf=* \
  925. | --program-trans=* | --program-tran=* \
  926. | --progr-tra=* | --program-tr=* | --program-t=*)
  927. program_transform_name=$ac_optarg ;;
  928. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  929. ac_prev=pdfdir ;;
  930. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  931. pdfdir=$ac_optarg ;;
  932. -psdir | --psdir | --psdi | --psd | --ps)
  933. ac_prev=psdir ;;
  934. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  935. psdir=$ac_optarg ;;
  936. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  937. | -silent | --silent | --silen | --sile | --sil)
  938. silent=yes ;;
  939. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  940. ac_prev=sbindir ;;
  941. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  942. | --sbi=* | --sb=*)
  943. sbindir=$ac_optarg ;;
  944. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  945. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  946. | --sharedst | --shareds | --shared | --share | --shar \
  947. | --sha | --sh)
  948. ac_prev=sharedstatedir ;;
  949. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  950. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  951. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  952. | --sha=* | --sh=*)
  953. sharedstatedir=$ac_optarg ;;
  954. -site | --site | --sit)
  955. ac_prev=site ;;
  956. -site=* | --site=* | --sit=*)
  957. site=$ac_optarg ;;
  958. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  959. ac_prev=srcdir ;;
  960. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  961. srcdir=$ac_optarg ;;
  962. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  963. | --syscon | --sysco | --sysc | --sys | --sy)
  964. ac_prev=sysconfdir ;;
  965. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  966. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  967. sysconfdir=$ac_optarg ;;
  968. -target | --target | --targe | --targ | --tar | --ta | --t)
  969. ac_prev=target_alias ;;
  970. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  971. target_alias=$ac_optarg ;;
  972. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  973. verbose=yes ;;
  974. -version | --version | --versio | --versi | --vers | -V)
  975. ac_init_version=: ;;
  976. -with-* | --with-*)
  977. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  978. # Reject names that are not valid shell variable names.
  979. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  980. as_fn_error $? "invalid package name: $ac_useropt"
  981. ac_useropt_orig=$ac_useropt
  982. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  983. case $ac_user_opts in
  984. *"
  985. "with_$ac_useropt"
  986. "*) ;;
  987. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  988. ac_unrecognized_sep=', ';;
  989. esac
  990. eval with_$ac_useropt=\$ac_optarg ;;
  991. -without-* | --without-*)
  992. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  993. # Reject names that are not valid shell variable names.
  994. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  995. as_fn_error $? "invalid package name: $ac_useropt"
  996. ac_useropt_orig=$ac_useropt
  997. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  998. case $ac_user_opts in
  999. *"
  1000. "with_$ac_useropt"
  1001. "*) ;;
  1002. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1003. ac_unrecognized_sep=', ';;
  1004. esac
  1005. eval with_$ac_useropt=no ;;
  1006. --x)
  1007. # Obsolete; use --with-x.
  1008. with_x=yes ;;
  1009. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1010. | --x-incl | --x-inc | --x-in | --x-i)
  1011. ac_prev=x_includes ;;
  1012. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1013. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1014. x_includes=$ac_optarg ;;
  1015. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1016. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1017. ac_prev=x_libraries ;;
  1018. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1019. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1020. x_libraries=$ac_optarg ;;
  1021. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1022. Try \`$0 --help' for more information"
  1023. ;;
  1024. *=*)
  1025. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1026. # Reject names that are not valid shell variable names.
  1027. case $ac_envvar in #(
  1028. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1029. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1030. esac
  1031. eval $ac_envvar=\$ac_optarg
  1032. export $ac_envvar ;;
  1033. *)
  1034. # FIXME: should be removed in autoconf 3.0.
  1035. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1036. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1037. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1038. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1039. ;;
  1040. esac
  1041. done
  1042. if test -n "$ac_prev"; then
  1043. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1044. as_fn_error $? "missing argument to $ac_option"
  1045. fi
  1046. if test -n "$ac_unrecognized_opts"; then
  1047. case $enable_option_checking in
  1048. no) ;;
  1049. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1050. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1051. esac
  1052. fi
  1053. # Check all directory arguments for consistency.
  1054. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1055. datadir sysconfdir sharedstatedir localstatedir includedir \
  1056. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1057. libdir localedir mandir
  1058. do
  1059. eval ac_val=\$$ac_var
  1060. # Remove trailing slashes.
  1061. case $ac_val in
  1062. */ )
  1063. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1064. eval $ac_var=\$ac_val;;
  1065. esac
  1066. # Be sure to have absolute directory names.
  1067. case $ac_val in
  1068. [\\/$]* | ?:[\\/]* ) continue;;
  1069. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1070. esac
  1071. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1072. done
  1073. # There might be people who depend on the old broken behavior: `$host'
  1074. # used to hold the argument of --host etc.
  1075. # FIXME: To remove some day.
  1076. build=$build_alias
  1077. host=$host_alias
  1078. target=$target_alias
  1079. # FIXME: To remove some day.
  1080. if test "x$host_alias" != x; then
  1081. if test "x$build_alias" = x; then
  1082. cross_compiling=maybe
  1083. elif test "x$build_alias" != "x$host_alias"; then
  1084. cross_compiling=yes
  1085. fi
  1086. fi
  1087. ac_tool_prefix=
  1088. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1089. test "$silent" = yes && exec 6>/dev/null
  1090. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1091. ac_ls_di=`ls -di .` &&
  1092. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1093. as_fn_error $? "working directory cannot be determined"
  1094. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1095. as_fn_error $? "pwd does not report name of working directory"
  1096. # Find the source files, if location was not specified.
  1097. if test -z "$srcdir"; then
  1098. ac_srcdir_defaulted=yes
  1099. # Try the directory containing this script, then the parent directory.
  1100. ac_confdir=`$as_dirname -- "$as_myself" ||
  1101. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1102. X"$as_myself" : 'X\(//\)[^/]' \| \
  1103. X"$as_myself" : 'X\(//\)$' \| \
  1104. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1105. $as_echo X"$as_myself" |
  1106. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1107. s//\1/
  1108. q
  1109. }
  1110. /^X\(\/\/\)[^/].*/{
  1111. s//\1/
  1112. q
  1113. }
  1114. /^X\(\/\/\)$/{
  1115. s//\1/
  1116. q
  1117. }
  1118. /^X\(\/\).*/{
  1119. s//\1/
  1120. q
  1121. }
  1122. s/.*/./; q'`
  1123. srcdir=$ac_confdir
  1124. if test ! -r "$srcdir/$ac_unique_file"; then
  1125. srcdir=..
  1126. fi
  1127. else
  1128. ac_srcdir_defaulted=no
  1129. fi
  1130. if test ! -r "$srcdir/$ac_unique_file"; then
  1131. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1132. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1133. fi
  1134. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1135. ac_abs_confdir=`(
  1136. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1137. pwd)`
  1138. # When building in place, set srcdir=.
  1139. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1140. srcdir=.
  1141. fi
  1142. # Remove unnecessary trailing slashes from srcdir.
  1143. # Double slashes in file names in object file debugging info
  1144. # mess up M-x gdb in Emacs.
  1145. case $srcdir in
  1146. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1147. esac
  1148. for ac_var in $ac_precious_vars; do
  1149. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1150. eval ac_env_${ac_var}_value=\$${ac_var}
  1151. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1152. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1153. done
  1154. #
  1155. # Report the --help message.
  1156. #
  1157. if test "$ac_init_help" = "long"; then
  1158. # Omit some internal or obsolete options to make the list less imposing.
  1159. # This message is too long to be a string in the A/UX 3.1 sh.
  1160. cat <<_ACEOF
  1161. \`configure' configures this package to adapt to many kinds of systems.
  1162. Usage: $0 [OPTION]... [VAR=VALUE]...
  1163. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1164. VAR=VALUE. See below for descriptions of some of the useful variables.
  1165. Defaults for the options are specified in brackets.
  1166. Configuration:
  1167. -h, --help display this help and exit
  1168. --help=short display options specific to this package
  1169. --help=recursive display the short help of all the included packages
  1170. -V, --version display version information and exit
  1171. -q, --quiet, --silent do not print \`checking ...' messages
  1172. --cache-file=FILE cache test results in FILE [disabled]
  1173. -C, --config-cache alias for \`--cache-file=config.cache'
  1174. -n, --no-create do not create output files
  1175. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1176. Installation directories:
  1177. --prefix=PREFIX install architecture-independent files in PREFIX
  1178. [$ac_default_prefix]
  1179. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1180. [PREFIX]
  1181. By default, \`make install' will install all the files in
  1182. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1183. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1184. for instance \`--prefix=\$HOME'.
  1185. For better control, use the options below.
  1186. Fine tuning of the installation directories:
  1187. --bindir=DIR user executables [EPREFIX/bin]
  1188. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1189. --libexecdir=DIR program executables [EPREFIX/libexec]
  1190. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1191. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1192. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1193. --libdir=DIR object code libraries [EPREFIX/lib]
  1194. --includedir=DIR C header files [PREFIX/include]
  1195. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1196. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1197. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1198. --infodir=DIR info documentation [DATAROOTDIR/info]
  1199. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1200. --mandir=DIR man documentation [DATAROOTDIR/man]
  1201. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1202. --htmldir=DIR html documentation [DOCDIR]
  1203. --dvidir=DIR dvi documentation [DOCDIR]
  1204. --pdfdir=DIR pdf documentation [DOCDIR]
  1205. --psdir=DIR ps documentation [DOCDIR]
  1206. _ACEOF
  1207. cat <<\_ACEOF
  1208. System types:
  1209. --build=BUILD configure for building on BUILD [guessed]
  1210. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1211. _ACEOF
  1212. fi
  1213. if test -n "$ac_init_help"; then
  1214. cat <<\_ACEOF
  1215. Optional Features:
  1216. --disable-option-checking ignore unrecognized --enable/--with options
  1217. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1218. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1219. --disable-nls do not use Native Language Support
  1220. --disable-rpath do not hardcode runtime library paths
  1221. --enable-maintainer-mode enable rules only needed by maintainers
  1222. Optional Packages:
  1223. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1224. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1225. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1226. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1227. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1228. --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
  1229. --with-included-gettext use the GNU gettext library included here
  1230. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1231. --without-libintl-prefix don't search for libintl in includedir and libdir
  1232. --with-libintl-type=TYPE type of library to search for (auto/static/shared)
  1233. Some influential environment variables:
  1234. CC C compiler command
  1235. CFLAGS C compiler flags
  1236. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1237. nonstandard directory <lib dir>
  1238. LIBS libraries to pass to the linker, e.g. -l<library>
  1239. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1240. you have headers in a nonstandard directory <include dir>
  1241. CPP C preprocessor
  1242. Use these variables to override the choices made by `configure' or to help
  1243. it to find libraries and programs with nonstandard names/locations.
  1244. Report bugs to the package provider.
  1245. _ACEOF
  1246. ac_status=$?
  1247. fi
  1248. if test "$ac_init_help" = "recursive"; then
  1249. # If there are subdirs, report their specific --help.
  1250. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1251. test -d "$ac_dir" ||
  1252. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1253. continue
  1254. ac_builddir=.
  1255. case "$ac_dir" in
  1256. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1257. *)
  1258. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1259. # A ".." for each directory in $ac_dir_suffix.
  1260. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1261. case $ac_top_builddir_sub in
  1262. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1263. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1264. esac ;;
  1265. esac
  1266. ac_abs_top_builddir=$ac_pwd
  1267. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1268. # for backward compatibility:
  1269. ac_top_builddir=$ac_top_build_prefix
  1270. case $srcdir in
  1271. .) # We are building in place.
  1272. ac_srcdir=.
  1273. ac_top_srcdir=$ac_top_builddir_sub
  1274. ac_abs_top_srcdir=$ac_pwd ;;
  1275. [\\/]* | ?:[\\/]* ) # Absolute name.
  1276. ac_srcdir=$srcdir$ac_dir_suffix;
  1277. ac_top_srcdir=$srcdir
  1278. ac_abs_top_srcdir=$srcdir ;;
  1279. *) # Relative name.
  1280. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1281. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1282. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1283. esac
  1284. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1285. cd "$ac_dir" || { ac_status=$?; continue; }
  1286. # Check for guested configure.
  1287. if test -f "$ac_srcdir/configure.gnu"; then
  1288. echo &&
  1289. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1290. elif test -f "$ac_srcdir/configure"; then
  1291. echo &&
  1292. $SHELL "$ac_srcdir/configure" --help=recursive
  1293. else
  1294. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1295. fi || ac_status=$?
  1296. cd "$ac_pwd" || { ac_status=$?; break; }
  1297. done
  1298. fi
  1299. test -n "$ac_init_help" && exit $ac_status
  1300. if $ac_init_version; then
  1301. cat <<\_ACEOF
  1302. configure
  1303. generated by GNU Autoconf 2.69
  1304. Copyright (C) 2012 Free Software Foundation, Inc.
  1305. This configure script is free software; the Free Software Foundation
  1306. gives unlimited permission to copy, distribute and modify it.
  1307. _ACEOF
  1308. exit
  1309. fi
  1310. ## ------------------------ ##
  1311. ## Autoconf initialization. ##
  1312. ## ------------------------ ##
  1313. # ac_fn_c_try_compile LINENO
  1314. # --------------------------
  1315. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1316. ac_fn_c_try_compile ()
  1317. {
  1318. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1319. rm -f conftest.$ac_objext
  1320. if { { ac_try="$ac_compile"
  1321. case "(($ac_try" in
  1322. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1323. *) ac_try_echo=$ac_try;;
  1324. esac
  1325. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1326. $as_echo "$ac_try_echo"; } >&5
  1327. (eval "$ac_compile") 2>conftest.err
  1328. ac_status=$?
  1329. if test -s conftest.err; then
  1330. grep -v '^ *+' conftest.err >conftest.er1
  1331. cat conftest.er1 >&5
  1332. mv -f conftest.er1 conftest.err
  1333. fi
  1334. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1335. test $ac_status = 0; } && {
  1336. test -z "$ac_c_werror_flag" ||
  1337. test ! -s conftest.err
  1338. } && test -s conftest.$ac_objext; then :
  1339. ac_retval=0
  1340. else
  1341. $as_echo "$as_me: failed program was:" >&5
  1342. sed 's/^/| /' conftest.$ac_ext >&5
  1343. ac_retval=1
  1344. fi
  1345. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1346. as_fn_set_status $ac_retval
  1347. } # ac_fn_c_try_compile
  1348. # ac_fn_c_try_cpp LINENO
  1349. # ----------------------
  1350. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1351. ac_fn_c_try_cpp ()
  1352. {
  1353. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1354. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1355. case "(($ac_try" in
  1356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1357. *) ac_try_echo=$ac_try;;
  1358. esac
  1359. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1360. $as_echo "$ac_try_echo"; } >&5
  1361. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1362. ac_status=$?
  1363. if test -s conftest.err; then
  1364. grep -v '^ *+' conftest.err >conftest.er1
  1365. cat conftest.er1 >&5
  1366. mv -f conftest.er1 conftest.err
  1367. fi
  1368. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1369. test $ac_status = 0; } > conftest.i && {
  1370. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1371. test ! -s conftest.err
  1372. }; then :
  1373. ac_retval=0
  1374. else
  1375. $as_echo "$as_me: failed program was:" >&5
  1376. sed 's/^/| /' conftest.$ac_ext >&5
  1377. ac_retval=1
  1378. fi
  1379. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1380. as_fn_set_status $ac_retval
  1381. } # ac_fn_c_try_cpp
  1382. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1383. # -------------------------------------------------------
  1384. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1385. # the include files in INCLUDES and setting the cache variable VAR
  1386. # accordingly.
  1387. ac_fn_c_check_header_mongrel ()
  1388. {
  1389. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1390. if eval \${$3+:} false; then :
  1391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1392. $as_echo_n "checking for $2... " >&6; }
  1393. if eval \${$3+:} false; then :
  1394. $as_echo_n "(cached) " >&6
  1395. fi
  1396. eval ac_res=\$$3
  1397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1398. $as_echo "$ac_res" >&6; }
  1399. else
  1400. # Is the header compilable?
  1401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1402. $as_echo_n "checking $2 usability... " >&6; }
  1403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1404. /* end confdefs.h. */
  1405. $4
  1406. #include <$2>
  1407. _ACEOF
  1408. if ac_fn_c_try_compile "$LINENO"; then :
  1409. ac_header_compiler=yes
  1410. else
  1411. ac_header_compiler=no
  1412. fi
  1413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1415. $as_echo "$ac_header_compiler" >&6; }
  1416. # Is the header present?
  1417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1418. $as_echo_n "checking $2 presence... " >&6; }
  1419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1420. /* end confdefs.h. */
  1421. #include <$2>
  1422. _ACEOF
  1423. if ac_fn_c_try_cpp "$LINENO"; then :
  1424. ac_header_preproc=yes
  1425. else
  1426. ac_header_preproc=no
  1427. fi
  1428. rm -f conftest.err conftest.i conftest.$ac_ext
  1429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1430. $as_echo "$ac_header_preproc" >&6; }
  1431. # So? What about this header?
  1432. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1433. yes:no: )
  1434. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1435. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1436. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1437. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1438. ;;
  1439. no:yes:* )
  1440. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1441. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1442. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1443. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1444. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1445. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1446. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1447. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1448. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1449. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1450. ;;
  1451. esac
  1452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1453. $as_echo_n "checking for $2... " >&6; }
  1454. if eval \${$3+:} false; then :
  1455. $as_echo_n "(cached) " >&6
  1456. else
  1457. eval "$3=\$ac_header_compiler"
  1458. fi
  1459. eval ac_res=\$$3
  1460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1461. $as_echo "$ac_res" >&6; }
  1462. fi
  1463. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1464. } # ac_fn_c_check_header_mongrel
  1465. # ac_fn_c_try_run LINENO
  1466. # ----------------------
  1467. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1468. # that executables *can* be run.
  1469. ac_fn_c_try_run ()
  1470. {
  1471. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1472. if { { ac_try="$ac_link"
  1473. case "(($ac_try" in
  1474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1475. *) ac_try_echo=$ac_try;;
  1476. esac
  1477. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1478. $as_echo "$ac_try_echo"; } >&5
  1479. (eval "$ac_link") 2>&5
  1480. ac_status=$?
  1481. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1482. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1483. { { case "(($ac_try" in
  1484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1485. *) ac_try_echo=$ac_try;;
  1486. esac
  1487. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1488. $as_echo "$ac_try_echo"; } >&5
  1489. (eval "$ac_try") 2>&5
  1490. ac_status=$?
  1491. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1492. test $ac_status = 0; }; }; then :
  1493. ac_retval=0
  1494. else
  1495. $as_echo "$as_me: program exited with status $ac_status" >&5
  1496. $as_echo "$as_me: failed program was:" >&5
  1497. sed 's/^/| /' conftest.$ac_ext >&5
  1498. ac_retval=$ac_status
  1499. fi
  1500. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1501. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1502. as_fn_set_status $ac_retval
  1503. } # ac_fn_c_try_run
  1504. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1505. # -------------------------------------------------------
  1506. # Tests whether HEADER exists and can be compiled using the include files in
  1507. # INCLUDES, setting the cache variable VAR accordingly.
  1508. ac_fn_c_check_header_compile ()
  1509. {
  1510. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1512. $as_echo_n "checking for $2... " >&6; }
  1513. if eval \${$3+:} false; then :
  1514. $as_echo_n "(cached) " >&6
  1515. else
  1516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1517. /* end confdefs.h. */
  1518. $4
  1519. #include <$2>
  1520. _ACEOF
  1521. if ac_fn_c_try_compile "$LINENO"; then :
  1522. eval "$3=yes"
  1523. else
  1524. eval "$3=no"
  1525. fi
  1526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1527. fi
  1528. eval ac_res=\$$3
  1529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1530. $as_echo "$ac_res" >&6; }
  1531. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1532. } # ac_fn_c_check_header_compile
  1533. # ac_fn_c_try_link LINENO
  1534. # -----------------------
  1535. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1536. ac_fn_c_try_link ()
  1537. {
  1538. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1539. rm -f conftest.$ac_objext conftest$ac_exeext
  1540. if { { ac_try="$ac_link"
  1541. case "(($ac_try" in
  1542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1543. *) ac_try_echo=$ac_try;;
  1544. esac
  1545. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1546. $as_echo "$ac_try_echo"; } >&5
  1547. (eval "$ac_link") 2>conftest.err
  1548. ac_status=$?
  1549. if test -s conftest.err; then
  1550. grep -v '^ *+' conftest.err >conftest.er1
  1551. cat conftest.er1 >&5
  1552. mv -f conftest.er1 conftest.err
  1553. fi
  1554. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1555. test $ac_status = 0; } && {
  1556. test -z "$ac_c_werror_flag" ||
  1557. test ! -s conftest.err
  1558. } && test -s conftest$ac_exeext && {
  1559. test "$cross_compiling" = yes ||
  1560. test -x conftest$ac_exeext
  1561. }; then :
  1562. ac_retval=0
  1563. else
  1564. $as_echo "$as_me: failed program was:" >&5
  1565. sed 's/^/| /' conftest.$ac_ext >&5
  1566. ac_retval=1
  1567. fi
  1568. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1569. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1570. # interfere with the next link command; also delete a directory that is
  1571. # left behind by Apple's compiler. We do this before executing the actions.
  1572. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1573. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1574. as_fn_set_status $ac_retval
  1575. } # ac_fn_c_try_link
  1576. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1577. # -------------------------------------------
  1578. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1579. # variable VAR accordingly.
  1580. ac_fn_c_check_type ()
  1581. {
  1582. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1584. $as_echo_n "checking for $2... " >&6; }
  1585. if eval \${$3+:} false; then :
  1586. $as_echo_n "(cached) " >&6
  1587. else
  1588. eval "$3=no"
  1589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1590. /* end confdefs.h. */
  1591. $4
  1592. int
  1593. main ()
  1594. {
  1595. if (sizeof ($2))
  1596. return 0;
  1597. ;
  1598. return 0;
  1599. }
  1600. _ACEOF
  1601. if ac_fn_c_try_compile "$LINENO"; then :
  1602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1603. /* end confdefs.h. */
  1604. $4
  1605. int
  1606. main ()
  1607. {
  1608. if (sizeof (($2)))
  1609. return 0;
  1610. ;
  1611. return 0;
  1612. }
  1613. _ACEOF
  1614. if ac_fn_c_try_compile "$LINENO"; then :
  1615. else
  1616. eval "$3=yes"
  1617. fi
  1618. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1619. fi
  1620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1621. fi
  1622. eval ac_res=\$$3
  1623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1624. $as_echo "$ac_res" >&6; }
  1625. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1626. } # ac_fn_c_check_type
  1627. # ac_fn_c_check_func LINENO FUNC VAR
  1628. # ----------------------------------
  1629. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1630. ac_fn_c_check_func ()
  1631. {
  1632. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1634. $as_echo_n "checking for $2... " >&6; }
  1635. if eval \${$3+:} false; then :
  1636. $as_echo_n "(cached) " >&6
  1637. else
  1638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1639. /* end confdefs.h. */
  1640. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1641. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1642. #define $2 innocuous_$2
  1643. /* System header to define __stub macros and hopefully few prototypes,
  1644. which can conflict with char $2 (); below.
  1645. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1646. <limits.h> exists even on freestanding compilers. */
  1647. #ifdef __STDC__
  1648. # include <limits.h>
  1649. #else
  1650. # include <assert.h>
  1651. #endif
  1652. #undef $2
  1653. /* Override any GCC internal prototype to avoid an error.
  1654. Use char because int might match the return type of a GCC
  1655. builtin and then its argument prototype would still apply. */
  1656. #ifdef __cplusplus
  1657. extern "C"
  1658. #endif
  1659. char $2 ();
  1660. /* The GNU C library defines this for functions which it implements
  1661. to always fail with ENOSYS. Some functions are actually named
  1662. something starting with __ and the normal name is an alias. */
  1663. #if defined __stub_$2 || defined __stub___$2
  1664. choke me
  1665. #endif
  1666. int
  1667. main ()
  1668. {
  1669. return $2 ();
  1670. ;
  1671. return 0;
  1672. }
  1673. _ACEOF
  1674. if ac_fn_c_try_link "$LINENO"; then :
  1675. eval "$3=yes"
  1676. else
  1677. eval "$3=no"
  1678. fi
  1679. rm -f core conftest.err conftest.$ac_objext \
  1680. conftest$ac_exeext conftest.$ac_ext
  1681. fi
  1682. eval ac_res=\$$3
  1683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1684. $as_echo "$ac_res" >&6; }
  1685. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1686. } # ac_fn_c_check_func
  1687. cat >config.log <<_ACEOF
  1688. This file contains any messages produced by compilers while
  1689. running configure, to aid debugging if configure makes a mistake.
  1690. It was created by $as_me, which was
  1691. generated by GNU Autoconf 2.69. Invocation command line was
  1692. $ $0 $@
  1693. _ACEOF
  1694. exec 5>>config.log
  1695. {
  1696. cat <<_ASUNAME
  1697. ## --------- ##
  1698. ## Platform. ##
  1699. ## --------- ##
  1700. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1701. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1702. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1703. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1704. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1705. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1706. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1707. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1708. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1709. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1710. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1711. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1712. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1713. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1714. _ASUNAME
  1715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1716. for as_dir in $PATH
  1717. do
  1718. IFS=$as_save_IFS
  1719. test -z "$as_dir" && as_dir=.
  1720. $as_echo "PATH: $as_dir"
  1721. done
  1722. IFS=$as_save_IFS
  1723. } >&5
  1724. cat >&5 <<_ACEOF
  1725. ## ----------- ##
  1726. ## Core tests. ##
  1727. ## ----------- ##
  1728. _ACEOF
  1729. # Keep a trace of the command line.
  1730. # Strip out --no-create and --no-recursion so they do not pile up.
  1731. # Strip out --silent because we don't want to record it for future runs.
  1732. # Also quote any args containing shell meta-characters.
  1733. # Make two passes to allow for proper duplicate-argument suppression.
  1734. ac_configure_args=
  1735. ac_configure_args0=
  1736. ac_configure_args1=
  1737. ac_must_keep_next=false
  1738. for ac_pass in 1 2
  1739. do
  1740. for ac_arg
  1741. do
  1742. case $ac_arg in
  1743. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1744. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1745. | -silent | --silent | --silen | --sile | --sil)
  1746. continue ;;
  1747. *\'*)
  1748. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1749. esac
  1750. case $ac_pass in
  1751. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1752. 2)
  1753. as_fn_append ac_configure_args1 " '$ac_arg'"
  1754. if test $ac_must_keep_next = true; then
  1755. ac_must_keep_next=false # Got value, back to normal.
  1756. else
  1757. case $ac_arg in
  1758. *=* | --config-cache | -C | -disable-* | --disable-* \
  1759. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1760. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1761. | -with-* | --with-* | -without-* | --without-* | --x)
  1762. case "$ac_configure_args0 " in
  1763. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1764. esac
  1765. ;;
  1766. -* ) ac_must_keep_next=true ;;
  1767. esac
  1768. fi
  1769. as_fn_append ac_configure_args " '$ac_arg'"
  1770. ;;
  1771. esac
  1772. done
  1773. done
  1774. { ac_configure_args0=; unset ac_configure_args0;}
  1775. { ac_configure_args1=; unset ac_configure_args1;}
  1776. # When interrupted or exit'd, cleanup temporary files, and complete
  1777. # config.log. We remove comments because anyway the quotes in there
  1778. # would cause problems or look ugly.
  1779. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1780. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1781. trap 'exit_status=$?
  1782. # Save into config.log some information that might help in debugging.
  1783. {
  1784. echo
  1785. $as_echo "## ---------------- ##
  1786. ## Cache variables. ##
  1787. ## ---------------- ##"
  1788. echo
  1789. # The following way of writing the cache mishandles newlines in values,
  1790. (
  1791. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1792. eval ac_val=\$$ac_var
  1793. case $ac_val in #(
  1794. *${as_nl}*)
  1795. case $ac_var in #(
  1796. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1797. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1798. esac
  1799. case $ac_var in #(
  1800. _ | IFS | as_nl) ;; #(
  1801. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1802. *) { eval $ac_var=; unset $ac_var;} ;;
  1803. esac ;;
  1804. esac
  1805. done
  1806. (set) 2>&1 |
  1807. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1808. *${as_nl}ac_space=\ *)
  1809. sed -n \
  1810. "s/'\''/'\''\\\\'\'''\''/g;
  1811. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1812. ;; #(
  1813. *)
  1814. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1815. ;;
  1816. esac |
  1817. sort
  1818. )
  1819. echo
  1820. $as_echo "## ----------------- ##
  1821. ## Output variables. ##
  1822. ## ----------------- ##"
  1823. echo
  1824. for ac_var in $ac_subst_vars
  1825. do
  1826. eval ac_val=\$$ac_var
  1827. case $ac_val in
  1828. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1829. esac
  1830. $as_echo "$ac_var='\''$ac_val'\''"
  1831. done | sort
  1832. echo
  1833. if test -n "$ac_subst_files"; then
  1834. $as_echo "## ------------------- ##
  1835. ## File substitutions. ##
  1836. ## ------------------- ##"
  1837. echo
  1838. for ac_var in $ac_subst_files
  1839. do
  1840. eval ac_val=\$$ac_var
  1841. case $ac_val in
  1842. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1843. esac
  1844. $as_echo "$ac_var='\''$ac_val'\''"
  1845. done | sort
  1846. echo
  1847. fi
  1848. if test -s confdefs.h; then
  1849. $as_echo "## ----------- ##
  1850. ## confdefs.h. ##
  1851. ## ----------- ##"
  1852. echo
  1853. cat confdefs.h
  1854. echo
  1855. fi
  1856. test "$ac_signal" != 0 &&
  1857. $as_echo "$as_me: caught signal $ac_signal"
  1858. $as_echo "$as_me: exit $exit_status"
  1859. } >&5
  1860. rm -f core *.core core.conftest.* &&
  1861. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1862. exit $exit_status
  1863. ' 0
  1864. for ac_signal in 1 2 13 15; do
  1865. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1866. done
  1867. ac_signal=0
  1868. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1869. rm -f -r conftest* confdefs.h
  1870. $as_echo "/* confdefs.h */" > confdefs.h
  1871. # Predefined preprocessor variables.
  1872. cat >>confdefs.h <<_ACEOF
  1873. #define PACKAGE_NAME "$PACKAGE_NAME"
  1874. _ACEOF
  1875. cat >>confdefs.h <<_ACEOF
  1876. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1877. _ACEOF
  1878. cat >>confdefs.h <<_ACEOF
  1879. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1880. _ACEOF
  1881. cat >>confdefs.h <<_ACEOF
  1882. #define PACKAGE_STRING "$PACKAGE_STRING"
  1883. _ACEOF
  1884. cat >>confdefs.h <<_ACEOF
  1885. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1886. _ACEOF
  1887. cat >>confdefs.h <<_ACEOF
  1888. #define PACKAGE_URL "$PACKAGE_URL"
  1889. _ACEOF
  1890. # Let the site file select an alternate cache file if it wants to.
  1891. # Prefer an explicitly selected file to automatically selected ones.
  1892. ac_site_file1=NONE
  1893. ac_site_file2=NONE
  1894. if test -n "$CONFIG_SITE"; then
  1895. # We do not want a PATH search for config.site.
  1896. case $CONFIG_SITE in #((
  1897. -*) ac_site_file1=./$CONFIG_SITE;;
  1898. */*) ac_site_file1=$CONFIG_SITE;;
  1899. *) ac_site_file1=./$CONFIG_SITE;;
  1900. esac
  1901. elif test "x$prefix" != xNONE; then
  1902. ac_site_file1=$prefix/share/config.site
  1903. ac_site_file2=$prefix/etc/config.site
  1904. else
  1905. ac_site_file1=$ac_default_prefix/share/config.site
  1906. ac_site_file2=$ac_default_prefix/etc/config.site
  1907. fi
  1908. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1909. do
  1910. test "x$ac_site_file" = xNONE && continue
  1911. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1912. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1913. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1914. sed 's/^/| /' "$ac_site_file" >&5
  1915. . "$ac_site_file" \
  1916. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1917. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1918. as_fn_error $? "failed to load site script $ac_site_file
  1919. See \`config.log' for more details" "$LINENO" 5; }
  1920. fi
  1921. done
  1922. if test -r "$cache_file"; then
  1923. # Some versions of bash will fail to source /dev/null (special files
  1924. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1925. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1926. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1927. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1928. case $cache_file in
  1929. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1930. *) . "./$cache_file";;
  1931. esac
  1932. fi
  1933. else
  1934. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1935. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1936. >$cache_file
  1937. fi
  1938. as_fn_append ac_header_list " stdlib.h"
  1939. as_fn_append ac_header_list " unistd.h"
  1940. as_fn_append ac_header_list " sys/param.h"
  1941. # Check that the precious variables saved in the cache have kept the same
  1942. # value.
  1943. ac_cache_corrupted=false
  1944. for ac_var in $ac_precious_vars; do
  1945. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1946. eval ac_new_set=\$ac_env_${ac_var}_set
  1947. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1948. eval ac_new_val=\$ac_env_${ac_var}_value
  1949. case $ac_old_set,$ac_new_set in
  1950. set,)
  1951. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1952. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1953. ac_cache_corrupted=: ;;
  1954. ,set)
  1955. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1956. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1957. ac_cache_corrupted=: ;;
  1958. ,);;
  1959. *)
  1960. if test "x$ac_old_val" != "x$ac_new_val"; then
  1961. # differences in whitespace do not lead to failure.
  1962. ac_old_val_w=`echo x $ac_old_val`
  1963. ac_new_val_w=`echo x $ac_new_val`
  1964. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1966. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1967. ac_cache_corrupted=:
  1968. else
  1969. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1970. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1971. eval $ac_var=\$ac_old_val
  1972. fi
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1974. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1976. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1977. fi;;
  1978. esac
  1979. # Pass precious variables to config.status.
  1980. if test "$ac_new_set" = set; then
  1981. case $ac_new_val in
  1982. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1983. *) ac_arg=$ac_var=$ac_new_val ;;
  1984. esac
  1985. case " $ac_configure_args " in
  1986. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1987. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1988. esac
  1989. fi
  1990. done
  1991. if $ac_cache_corrupted; then
  1992. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1993. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1994. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1995. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1996. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1997. fi
  1998. ## -------------------- ##
  1999. ## Main body of script. ##
  2000. ## -------------------- ##
  2001. ac_ext=c
  2002. ac_cpp='$CPP $CPPFLAGS'
  2003. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2004. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2005. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2006. ac_ext=c
  2007. ac_cpp='$CPP $CPPFLAGS'
  2008. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2009. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2010. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2011. if test -n "$ac_tool_prefix"; then
  2012. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2013. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2015. $as_echo_n "checking for $ac_word... " >&6; }
  2016. if ${ac_cv_prog_CC+:} false; then :
  2017. $as_echo_n "(cached) " >&6
  2018. else
  2019. if test -n "$CC"; then
  2020. ac_cv_prog_CC="$CC" # Let the user override the test.
  2021. else
  2022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2023. for as_dir in $PATH
  2024. do
  2025. IFS=$as_save_IFS
  2026. test -z "$as_dir" && as_dir=.
  2027. for ac_exec_ext in '' $ac_executable_extensions; do
  2028. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2029. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2030. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2031. break 2
  2032. fi
  2033. done
  2034. done
  2035. IFS=$as_save_IFS
  2036. fi
  2037. fi
  2038. CC=$ac_cv_prog_CC
  2039. if test -n "$CC"; then
  2040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2041. $as_echo "$CC" >&6; }
  2042. else
  2043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2044. $as_echo "no" >&6; }
  2045. fi
  2046. fi
  2047. if test -z "$ac_cv_prog_CC"; then
  2048. ac_ct_CC=$CC
  2049. # Extract the first word of "gcc", so it can be a program name with args.
  2050. set dummy gcc; ac_word=$2
  2051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2052. $as_echo_n "checking for $ac_word... " >&6; }
  2053. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2054. $as_echo_n "(cached) " >&6
  2055. else
  2056. if test -n "$ac_ct_CC"; then
  2057. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2058. else
  2059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2060. for as_dir in $PATH
  2061. do
  2062. IFS=$as_save_IFS
  2063. test -z "$as_dir" && as_dir=.
  2064. for ac_exec_ext in '' $ac_executable_extensions; do
  2065. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2066. ac_cv_prog_ac_ct_CC="gcc"
  2067. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2068. break 2
  2069. fi
  2070. done
  2071. done
  2072. IFS=$as_save_IFS
  2073. fi
  2074. fi
  2075. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2076. if test -n "$ac_ct_CC"; then
  2077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2078. $as_echo "$ac_ct_CC" >&6; }
  2079. else
  2080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2081. $as_echo "no" >&6; }
  2082. fi
  2083. if test "x$ac_ct_CC" = x; then
  2084. CC=""
  2085. else
  2086. case $cross_compiling:$ac_tool_warned in
  2087. yes:)
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2089. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2090. ac_tool_warned=yes ;;
  2091. esac
  2092. CC=$ac_ct_CC
  2093. fi
  2094. else
  2095. CC="$ac_cv_prog_CC"
  2096. fi
  2097. if test -z "$CC"; then
  2098. if test -n "$ac_tool_prefix"; then
  2099. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2100. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2102. $as_echo_n "checking for $ac_word... " >&6; }
  2103. if ${ac_cv_prog_CC+:} false; then :
  2104. $as_echo_n "(cached) " >&6
  2105. else
  2106. if test -n "$CC"; then
  2107. ac_cv_prog_CC="$CC" # Let the user override the test.
  2108. else
  2109. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2110. for as_dir in $PATH
  2111. do
  2112. IFS=$as_save_IFS
  2113. test -z "$as_dir" && as_dir=.
  2114. for ac_exec_ext in '' $ac_executable_extensions; do
  2115. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2116. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2117. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2118. break 2
  2119. fi
  2120. done
  2121. done
  2122. IFS=$as_save_IFS
  2123. fi
  2124. fi
  2125. CC=$ac_cv_prog_CC
  2126. if test -n "$CC"; then
  2127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2128. $as_echo "$CC" >&6; }
  2129. else
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2131. $as_echo "no" >&6; }
  2132. fi
  2133. fi
  2134. fi
  2135. if test -z "$CC"; then
  2136. # Extract the first word of "cc", so it can be a program name with args.
  2137. set dummy cc; ac_word=$2
  2138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2139. $as_echo_n "checking for $ac_word... " >&6; }
  2140. if ${ac_cv_prog_CC+:} false; then :
  2141. $as_echo_n "(cached) " >&6
  2142. else
  2143. if test -n "$CC"; then
  2144. ac_cv_prog_CC="$CC" # Let the user override the test.
  2145. else
  2146. ac_prog_rejected=no
  2147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2148. for as_dir in $PATH
  2149. do
  2150. IFS=$as_save_IFS
  2151. test -z "$as_dir" && as_dir=.
  2152. for ac_exec_ext in '' $ac_executable_extensions; do
  2153. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2154. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2155. ac_prog_rejected=yes
  2156. continue
  2157. fi
  2158. ac_cv_prog_CC="cc"
  2159. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2160. break 2
  2161. fi
  2162. done
  2163. done
  2164. IFS=$as_save_IFS
  2165. if test $ac_prog_rejected = yes; then
  2166. # We found a bogon in the path, so make sure we never use it.
  2167. set dummy $ac_cv_prog_CC
  2168. shift
  2169. if test $# != 0; then
  2170. # We chose a different compiler from the bogus one.
  2171. # However, it has the same basename, so the bogon will be chosen
  2172. # first if we set CC to just the basename; use the full file name.
  2173. shift
  2174. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2175. fi
  2176. fi
  2177. fi
  2178. fi
  2179. CC=$ac_cv_prog_CC
  2180. if test -n "$CC"; then
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2182. $as_echo "$CC" >&6; }
  2183. else
  2184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2185. $as_echo "no" >&6; }
  2186. fi
  2187. fi
  2188. if test -z "$CC"; then
  2189. if test -n "$ac_tool_prefix"; then
  2190. for ac_prog in cl.exe
  2191. do
  2192. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2193. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2195. $as_echo_n "checking for $ac_word... " >&6; }
  2196. if ${ac_cv_prog_CC+:} false; then :
  2197. $as_echo_n "(cached) " >&6
  2198. else
  2199. if test -n "$CC"; then
  2200. ac_cv_prog_CC="$CC" # Let the user override the test.
  2201. else
  2202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2203. for as_dir in $PATH
  2204. do
  2205. IFS=$as_save_IFS
  2206. test -z "$as_dir" && as_dir=.
  2207. for ac_exec_ext in '' $ac_executable_extensions; do
  2208. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2209. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2210. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2211. break 2
  2212. fi
  2213. done
  2214. done
  2215. IFS=$as_save_IFS
  2216. fi
  2217. fi
  2218. CC=$ac_cv_prog_CC
  2219. if test -n "$CC"; then
  2220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2221. $as_echo "$CC" >&6; }
  2222. else
  2223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2224. $as_echo "no" >&6; }
  2225. fi
  2226. test -n "$CC" && break
  2227. done
  2228. fi
  2229. if test -z "$CC"; then
  2230. ac_ct_CC=$CC
  2231. for ac_prog in cl.exe
  2232. do
  2233. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2234. set dummy $ac_prog; ac_word=$2
  2235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2236. $as_echo_n "checking for $ac_word... " >&6; }
  2237. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2238. $as_echo_n "(cached) " >&6
  2239. else
  2240. if test -n "$ac_ct_CC"; then
  2241. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2242. else
  2243. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2244. for as_dir in $PATH
  2245. do
  2246. IFS=$as_save_IFS
  2247. test -z "$as_dir" && as_dir=.
  2248. for ac_exec_ext in '' $ac_executable_extensions; do
  2249. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2250. ac_cv_prog_ac_ct_CC="$ac_prog"
  2251. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2252. break 2
  2253. fi
  2254. done
  2255. done
  2256. IFS=$as_save_IFS
  2257. fi
  2258. fi
  2259. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2260. if test -n "$ac_ct_CC"; then
  2261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2262. $as_echo "$ac_ct_CC" >&6; }
  2263. else
  2264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2265. $as_echo "no" >&6; }
  2266. fi
  2267. test -n "$ac_ct_CC" && break
  2268. done
  2269. if test "x$ac_ct_CC" = x; then
  2270. CC=""
  2271. else
  2272. case $cross_compiling:$ac_tool_warned in
  2273. yes:)
  2274. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2275. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2276. ac_tool_warned=yes ;;
  2277. esac
  2278. CC=$ac_ct_CC
  2279. fi
  2280. fi
  2281. fi
  2282. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2283. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2284. as_fn_error $? "no acceptable C compiler found in \$PATH
  2285. See \`config.log' for more details" "$LINENO" 5; }
  2286. # Provide some information about the compiler.
  2287. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2288. set X $ac_compile
  2289. ac_compiler=$2
  2290. for ac_option in --version -v -V -qversion; do
  2291. { { ac_try="$ac_compiler $ac_option >&5"
  2292. case "(($ac_try" in
  2293. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2294. *) ac_try_echo=$ac_try;;
  2295. esac
  2296. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2297. $as_echo "$ac_try_echo"; } >&5
  2298. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2299. ac_status=$?
  2300. if test -s conftest.err; then
  2301. sed '10a\
  2302. ... rest of stderr output deleted ...
  2303. 10q' conftest.err >conftest.er1
  2304. cat conftest.er1 >&5
  2305. fi
  2306. rm -f conftest.er1 conftest.err
  2307. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2308. test $ac_status = 0; }
  2309. done
  2310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2311. /* end confdefs.h. */
  2312. int
  2313. main ()
  2314. {
  2315. ;
  2316. return 0;
  2317. }
  2318. _ACEOF
  2319. ac_clean_files_save=$ac_clean_files
  2320. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2321. # Try to create an executable without -o first, disregard a.out.
  2322. # It will help us diagnose broken compilers, and finding out an intuition
  2323. # of exeext.
  2324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2325. $as_echo_n "checking whether the C compiler works... " >&6; }
  2326. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2327. # The possible output files:
  2328. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2329. ac_rmfiles=
  2330. for ac_file in $ac_files
  2331. do
  2332. case $ac_file in
  2333. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2334. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2335. esac
  2336. done
  2337. rm -f $ac_rmfiles
  2338. if { { ac_try="$ac_link_default"
  2339. case "(($ac_try" in
  2340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2341. *) ac_try_echo=$ac_try;;
  2342. esac
  2343. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2344. $as_echo "$ac_try_echo"; } >&5
  2345. (eval "$ac_link_default") 2>&5
  2346. ac_status=$?
  2347. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2348. test $ac_status = 0; }; then :
  2349. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2350. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2351. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2352. # so that the user can short-circuit this test for compilers unknown to
  2353. # Autoconf.
  2354. for ac_file in $ac_files ''
  2355. do
  2356. test -f "$ac_file" || continue
  2357. case $ac_file in
  2358. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2359. ;;
  2360. [ab].out )
  2361. # We found the default executable, but exeext='' is most
  2362. # certainly right.
  2363. break;;
  2364. *.* )
  2365. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2366. then :; else
  2367. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2368. fi
  2369. # We set ac_cv_exeext here because the later test for it is not
  2370. # safe: cross compilers may not add the suffix if given an `-o'
  2371. # argument, so we may need to know it at that point already.
  2372. # Even if this section looks crufty: it has the advantage of
  2373. # actually working.
  2374. break;;
  2375. * )
  2376. break;;
  2377. esac
  2378. done
  2379. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2380. else
  2381. ac_file=''
  2382. fi
  2383. if test -z "$ac_file"; then :
  2384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2385. $as_echo "no" >&6; }
  2386. $as_echo "$as_me: failed program was:" >&5
  2387. sed 's/^/| /' conftest.$ac_ext >&5
  2388. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2389. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2390. as_fn_error 77 "C compiler cannot create executables
  2391. See \`config.log' for more details" "$LINENO" 5; }
  2392. else
  2393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2394. $as_echo "yes" >&6; }
  2395. fi
  2396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2397. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2399. $as_echo "$ac_file" >&6; }
  2400. ac_exeext=$ac_cv_exeext
  2401. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2402. ac_clean_files=$ac_clean_files_save
  2403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2404. $as_echo_n "checking for suffix of executables... " >&6; }
  2405. if { { ac_try="$ac_link"
  2406. case "(($ac_try" in
  2407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2408. *) ac_try_echo=$ac_try;;
  2409. esac
  2410. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2411. $as_echo "$ac_try_echo"; } >&5
  2412. (eval "$ac_link") 2>&5
  2413. ac_status=$?
  2414. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2415. test $ac_status = 0; }; then :
  2416. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2417. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2418. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2419. # `rm'.
  2420. for ac_file in conftest.exe conftest conftest.*; do
  2421. test -f "$ac_file" || continue
  2422. case $ac_file in
  2423. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2424. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2425. break;;
  2426. * ) break;;
  2427. esac
  2428. done
  2429. else
  2430. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2431. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2432. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2433. See \`config.log' for more details" "$LINENO" 5; }
  2434. fi
  2435. rm -f conftest conftest$ac_cv_exeext
  2436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2437. $as_echo "$ac_cv_exeext" >&6; }
  2438. rm -f conftest.$ac_ext
  2439. EXEEXT=$ac_cv_exeext
  2440. ac_exeext=$EXEEXT
  2441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2442. /* end confdefs.h. */
  2443. #include <stdio.h>
  2444. int
  2445. main ()
  2446. {
  2447. FILE *f = fopen ("conftest.out", "w");
  2448. return ferror (f) || fclose (f) != 0;
  2449. ;
  2450. return 0;
  2451. }
  2452. _ACEOF
  2453. ac_clean_files="$ac_clean_files conftest.out"
  2454. # Check that the compiler produces executables we can run. If not, either
  2455. # the compiler is broken, or we cross compile.
  2456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2457. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2458. if test "$cross_compiling" != yes; then
  2459. { { ac_try="$ac_link"
  2460. case "(($ac_try" in
  2461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2462. *) ac_try_echo=$ac_try;;
  2463. esac
  2464. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2465. $as_echo "$ac_try_echo"; } >&5
  2466. (eval "$ac_link") 2>&5
  2467. ac_status=$?
  2468. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2469. test $ac_status = 0; }
  2470. if { ac_try='./conftest$ac_cv_exeext'
  2471. { { case "(($ac_try" in
  2472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2473. *) ac_try_echo=$ac_try;;
  2474. esac
  2475. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2476. $as_echo "$ac_try_echo"; } >&5
  2477. (eval "$ac_try") 2>&5
  2478. ac_status=$?
  2479. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2480. test $ac_status = 0; }; }; then
  2481. cross_compiling=no
  2482. else
  2483. if test "$cross_compiling" = maybe; then
  2484. cross_compiling=yes
  2485. else
  2486. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2487. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2488. as_fn_error $? "cannot run C compiled programs.
  2489. If you meant to cross compile, use \`--host'.
  2490. See \`config.log' for more details" "$LINENO" 5; }
  2491. fi
  2492. fi
  2493. fi
  2494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2495. $as_echo "$cross_compiling" >&6; }
  2496. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2497. ac_clean_files=$ac_clean_files_save
  2498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2499. $as_echo_n "checking for suffix of object files... " >&6; }
  2500. if ${ac_cv_objext+:} false; then :
  2501. $as_echo_n "(cached) " >&6
  2502. else
  2503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2504. /* end confdefs.h. */
  2505. int
  2506. main ()
  2507. {
  2508. ;
  2509. return 0;
  2510. }
  2511. _ACEOF
  2512. rm -f conftest.o conftest.obj
  2513. if { { ac_try="$ac_compile"
  2514. case "(($ac_try" in
  2515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2516. *) ac_try_echo=$ac_try;;
  2517. esac
  2518. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2519. $as_echo "$ac_try_echo"; } >&5
  2520. (eval "$ac_compile") 2>&5
  2521. ac_status=$?
  2522. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2523. test $ac_status = 0; }; then :
  2524. for ac_file in conftest.o conftest.obj conftest.*; do
  2525. test -f "$ac_file" || continue;
  2526. case $ac_file in
  2527. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2528. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2529. break;;
  2530. esac
  2531. done
  2532. else
  2533. $as_echo "$as_me: failed program was:" >&5
  2534. sed 's/^/| /' conftest.$ac_ext >&5
  2535. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2536. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2537. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2538. See \`config.log' for more details" "$LINENO" 5; }
  2539. fi
  2540. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2541. fi
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2543. $as_echo "$ac_cv_objext" >&6; }
  2544. OBJEXT=$ac_cv_objext
  2545. ac_objext=$OBJEXT
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2547. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2548. if ${ac_cv_c_compiler_gnu+:} false; then :
  2549. $as_echo_n "(cached) " >&6
  2550. else
  2551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2552. /* end confdefs.h. */
  2553. int
  2554. main ()
  2555. {
  2556. #ifndef __GNUC__
  2557. choke me
  2558. #endif
  2559. ;
  2560. return 0;
  2561. }
  2562. _ACEOF
  2563. if ac_fn_c_try_compile "$LINENO"; then :
  2564. ac_compiler_gnu=yes
  2565. else
  2566. ac_compiler_gnu=no
  2567. fi
  2568. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2569. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2570. fi
  2571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2572. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2573. if test $ac_compiler_gnu = yes; then
  2574. GCC=yes
  2575. else
  2576. GCC=
  2577. fi
  2578. ac_test_CFLAGS=${CFLAGS+set}
  2579. ac_save_CFLAGS=$CFLAGS
  2580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2581. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2582. if ${ac_cv_prog_cc_g+:} false; then :
  2583. $as_echo_n "(cached) " >&6
  2584. else
  2585. ac_save_c_werror_flag=$ac_c_werror_flag
  2586. ac_c_werror_flag=yes
  2587. ac_cv_prog_cc_g=no
  2588. CFLAGS="-g"
  2589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2590. /* end confdefs.h. */
  2591. int
  2592. main ()
  2593. {
  2594. ;
  2595. return 0;
  2596. }
  2597. _ACEOF
  2598. if ac_fn_c_try_compile "$LINENO"; then :
  2599. ac_cv_prog_cc_g=yes
  2600. else
  2601. CFLAGS=""
  2602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2603. /* end confdefs.h. */
  2604. int
  2605. main ()
  2606. {
  2607. ;
  2608. return 0;
  2609. }
  2610. _ACEOF
  2611. if ac_fn_c_try_compile "$LINENO"; then :
  2612. else
  2613. ac_c_werror_flag=$ac_save_c_werror_flag
  2614. CFLAGS="-g"
  2615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2616. /* end confdefs.h. */
  2617. int
  2618. main ()
  2619. {
  2620. ;
  2621. return 0;
  2622. }
  2623. _ACEOF
  2624. if ac_fn_c_try_compile "$LINENO"; then :
  2625. ac_cv_prog_cc_g=yes
  2626. fi
  2627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2628. fi
  2629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2630. fi
  2631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2632. ac_c_werror_flag=$ac_save_c_werror_flag
  2633. fi
  2634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2635. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2636. if test "$ac_test_CFLAGS" = set; then
  2637. CFLAGS=$ac_save_CFLAGS
  2638. elif test $ac_cv_prog_cc_g = yes; then
  2639. if test "$GCC" = yes; then
  2640. CFLAGS="-g -O2"
  2641. else
  2642. CFLAGS="-g"
  2643. fi
  2644. else
  2645. if test "$GCC" = yes; then
  2646. CFLAGS="-O2"
  2647. else
  2648. CFLAGS=
  2649. fi
  2650. fi
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2652. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2653. if ${ac_cv_prog_cc_c89+:} false; then :
  2654. $as_echo_n "(cached) " >&6
  2655. else
  2656. ac_cv_prog_cc_c89=no
  2657. ac_save_CC=$CC
  2658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2659. /* end confdefs.h. */
  2660. #include <stdarg.h>
  2661. #include <stdio.h>
  2662. struct stat;
  2663. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2664. struct buf { int x; };
  2665. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2666. static char *e (p, i)
  2667. char **p;
  2668. int i;
  2669. {
  2670. return p[i];
  2671. }
  2672. static char *f (char * (*g) (char **, int), char **p, ...)
  2673. {
  2674. char *s;
  2675. va_list v;
  2676. va_start (v,p);
  2677. s = g (p, va_arg (v,int));
  2678. va_end (v);
  2679. return s;
  2680. }
  2681. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2682. function prototypes and stuff, but not '\xHH' hex character constants.
  2683. These don't provoke an error unfortunately, instead are silently treated
  2684. as 'x'. The following induces an error, until -std is added to get
  2685. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2686. array size at least. It's necessary to write '\x00'==0 to get something
  2687. that's true only with -std. */
  2688. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2689. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2690. inside strings and character constants. */
  2691. #define FOO(x) 'x'
  2692. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2693. int test (int i, double x);
  2694. struct s1 {int (*f) (int a);};
  2695. struct s2 {int (*f) (double a);};
  2696. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2697. int argc;
  2698. char **argv;
  2699. int
  2700. main ()
  2701. {
  2702. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2703. ;
  2704. return 0;
  2705. }
  2706. _ACEOF
  2707. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2708. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2709. do
  2710. CC="$ac_save_CC $ac_arg"
  2711. if ac_fn_c_try_compile "$LINENO"; then :
  2712. ac_cv_prog_cc_c89=$ac_arg
  2713. fi
  2714. rm -f core conftest.err conftest.$ac_objext
  2715. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2716. done
  2717. rm -f conftest.$ac_ext
  2718. CC=$ac_save_CC
  2719. fi
  2720. # AC_CACHE_VAL
  2721. case "x$ac_cv_prog_cc_c89" in
  2722. x)
  2723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2724. $as_echo "none needed" >&6; } ;;
  2725. xno)
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2727. $as_echo "unsupported" >&6; } ;;
  2728. *)
  2729. CC="$CC $ac_cv_prog_cc_c89"
  2730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2731. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2732. esac
  2733. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2734. fi
  2735. ac_ext=c
  2736. ac_cpp='$CPP $CPPFLAGS'
  2737. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2738. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2739. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2740. ac_ext=c
  2741. ac_cpp='$CPP $CPPFLAGS'
  2742. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2743. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2744. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  2746. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  2747. # On Suns, sometimes $CPP names a directory.
  2748. if test -n "$CPP" && test -d "$CPP"; then
  2749. CPP=
  2750. fi
  2751. if test -z "$CPP"; then
  2752. if ${ac_cv_prog_CPP+:} false; then :
  2753. $as_echo_n "(cached) " >&6
  2754. else
  2755. # Double quotes because CPP needs to be expanded
  2756. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2757. do
  2758. ac_preproc_ok=false
  2759. for ac_c_preproc_warn_flag in '' yes
  2760. do
  2761. # Use a header file that comes with gcc, so configuring glibc
  2762. # with a fresh cross-compiler works.
  2763. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2764. # <limits.h> exists even on freestanding compilers.
  2765. # On the NeXT, cc -E runs the code through the compiler's parser,
  2766. # not just through cpp. "Syntax error" is here to catch this case.
  2767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2768. /* end confdefs.h. */
  2769. #ifdef __STDC__
  2770. # include <limits.h>
  2771. #else
  2772. # include <assert.h>
  2773. #endif
  2774. Syntax error
  2775. _ACEOF
  2776. if ac_fn_c_try_cpp "$LINENO"; then :
  2777. else
  2778. # Broken: fails on valid input.
  2779. continue
  2780. fi
  2781. rm -f conftest.err conftest.i conftest.$ac_ext
  2782. # OK, works on sane cases. Now check whether nonexistent headers
  2783. # can be detected and how.
  2784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2785. /* end confdefs.h. */
  2786. #include <ac_nonexistent.h>
  2787. _ACEOF
  2788. if ac_fn_c_try_cpp "$LINENO"; then :
  2789. # Broken: success on invalid input.
  2790. continue
  2791. else
  2792. # Passes both tests.
  2793. ac_preproc_ok=:
  2794. break
  2795. fi
  2796. rm -f conftest.err conftest.i conftest.$ac_ext
  2797. done
  2798. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2799. rm -f conftest.i conftest.err conftest.$ac_ext
  2800. if $ac_preproc_ok; then :
  2801. break
  2802. fi
  2803. done
  2804. ac_cv_prog_CPP=$CPP
  2805. fi
  2806. CPP=$ac_cv_prog_CPP
  2807. else
  2808. ac_cv_prog_CPP=$CPP
  2809. fi
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  2811. $as_echo "$CPP" >&6; }
  2812. ac_preproc_ok=false
  2813. for ac_c_preproc_warn_flag in '' yes
  2814. do
  2815. # Use a header file that comes with gcc, so configuring glibc
  2816. # with a fresh cross-compiler works.
  2817. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2818. # <limits.h> exists even on freestanding compilers.
  2819. # On the NeXT, cc -E runs the code through the compiler's parser,
  2820. # not just through cpp. "Syntax error" is here to catch this case.
  2821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2822. /* end confdefs.h. */
  2823. #ifdef __STDC__
  2824. # include <limits.h>
  2825. #else
  2826. # include <assert.h>
  2827. #endif
  2828. Syntax error
  2829. _ACEOF
  2830. if ac_fn_c_try_cpp "$LINENO"; then :
  2831. else
  2832. # Broken: fails on valid input.
  2833. continue
  2834. fi
  2835. rm -f conftest.err conftest.i conftest.$ac_ext
  2836. # OK, works on sane cases. Now check whether nonexistent headers
  2837. # can be detected and how.
  2838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2839. /* end confdefs.h. */
  2840. #include <ac_nonexistent.h>
  2841. _ACEOF
  2842. if ac_fn_c_try_cpp "$LINENO"; then :
  2843. # Broken: success on invalid input.
  2844. continue
  2845. else
  2846. # Passes both tests.
  2847. ac_preproc_ok=:
  2848. break
  2849. fi
  2850. rm -f conftest.err conftest.i conftest.$ac_ext
  2851. done
  2852. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2853. rm -f conftest.i conftest.err conftest.$ac_ext
  2854. if $ac_preproc_ok; then :
  2855. else
  2856. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2857. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2858. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  2859. See \`config.log' for more details" "$LINENO" 5; }
  2860. fi
  2861. ac_ext=c
  2862. ac_cpp='$CPP $CPPFLAGS'
  2863. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2864. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2865. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  2867. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  2868. if ${ac_cv_path_GREP+:} false; then :
  2869. $as_echo_n "(cached) " >&6
  2870. else
  2871. if test -z "$GREP"; then
  2872. ac_path_GREP_found=false
  2873. # Loop through the user's path and test for each of PROGNAME-LIST
  2874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2875. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2876. do
  2877. IFS=$as_save_IFS
  2878. test -z "$as_dir" && as_dir=.
  2879. for ac_prog in grep ggrep; do
  2880. for ac_exec_ext in '' $ac_executable_extensions; do
  2881. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2882. as_fn_executable_p "$ac_path_GREP" || continue
  2883. # Check for GNU ac_path_GREP and select it if it is found.
  2884. # Check for GNU $ac_path_GREP
  2885. case `"$ac_path_GREP" --version 2>&1` in
  2886. *GNU*)
  2887. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2888. *)
  2889. ac_count=0
  2890. $as_echo_n 0123456789 >"conftest.in"
  2891. while :
  2892. do
  2893. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2894. mv "conftest.tmp" "conftest.in"
  2895. cp "conftest.in" "conftest.nl"
  2896. $as_echo 'GREP' >> "conftest.nl"
  2897. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2898. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2899. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2900. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2901. # Best one so far, save it but keep looking for a better one
  2902. ac_cv_path_GREP="$ac_path_GREP"
  2903. ac_path_GREP_max=$ac_count
  2904. fi
  2905. # 10*(2^10) chars as input seems more than enough
  2906. test $ac_count -gt 10 && break
  2907. done
  2908. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2909. esac
  2910. $ac_path_GREP_found && break 3
  2911. done
  2912. done
  2913. done
  2914. IFS=$as_save_IFS
  2915. if test -z "$ac_cv_path_GREP"; then
  2916. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2917. fi
  2918. else
  2919. ac_cv_path_GREP=$GREP
  2920. fi
  2921. fi
  2922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  2923. $as_echo "$ac_cv_path_GREP" >&6; }
  2924. GREP="$ac_cv_path_GREP"
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  2926. $as_echo_n "checking for egrep... " >&6; }
  2927. if ${ac_cv_path_EGREP+:} false; then :
  2928. $as_echo_n "(cached) " >&6
  2929. else
  2930. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2931. then ac_cv_path_EGREP="$GREP -E"
  2932. else
  2933. if test -z "$EGREP"; then
  2934. ac_path_EGREP_found=false
  2935. # Loop through the user's path and test for each of PROGNAME-LIST
  2936. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2937. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2938. do
  2939. IFS=$as_save_IFS
  2940. test -z "$as_dir" && as_dir=.
  2941. for ac_prog in egrep; do
  2942. for ac_exec_ext in '' $ac_executable_extensions; do
  2943. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2944. as_fn_executable_p "$ac_path_EGREP" || continue
  2945. # Check for GNU ac_path_EGREP and select it if it is found.
  2946. # Check for GNU $ac_path_EGREP
  2947. case `"$ac_path_EGREP" --version 2>&1` in
  2948. *GNU*)
  2949. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2950. *)
  2951. ac_count=0
  2952. $as_echo_n 0123456789 >"conftest.in"
  2953. while :
  2954. do
  2955. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2956. mv "conftest.tmp" "conftest.in"
  2957. cp "conftest.in" "conftest.nl"
  2958. $as_echo 'EGREP' >> "conftest.nl"
  2959. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2960. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2961. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2962. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2963. # Best one so far, save it but keep looking for a better one
  2964. ac_cv_path_EGREP="$ac_path_EGREP"
  2965. ac_path_EGREP_max=$ac_count
  2966. fi
  2967. # 10*(2^10) chars as input seems more than enough
  2968. test $ac_count -gt 10 && break
  2969. done
  2970. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2971. esac
  2972. $ac_path_EGREP_found && break 3
  2973. done
  2974. done
  2975. done
  2976. IFS=$as_save_IFS
  2977. if test -z "$ac_cv_path_EGREP"; then
  2978. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2979. fi
  2980. else
  2981. ac_cv_path_EGREP=$EGREP
  2982. fi
  2983. fi
  2984. fi
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  2986. $as_echo "$ac_cv_path_EGREP" >&6; }
  2987. EGREP="$ac_cv_path_EGREP"
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  2989. $as_echo_n "checking for ANSI C header files... " >&6; }
  2990. if ${ac_cv_header_stdc+:} false; then :
  2991. $as_echo_n "(cached) " >&6
  2992. else
  2993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2994. /* end confdefs.h. */
  2995. #include <stdlib.h>
  2996. #include <stdarg.h>
  2997. #include <string.h>
  2998. #include <float.h>
  2999. int
  3000. main ()
  3001. {
  3002. ;
  3003. return 0;
  3004. }
  3005. _ACEOF
  3006. if ac_fn_c_try_compile "$LINENO"; then :
  3007. ac_cv_header_stdc=yes
  3008. else
  3009. ac_cv_header_stdc=no
  3010. fi
  3011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3012. if test $ac_cv_header_stdc = yes; then
  3013. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3015. /* end confdefs.h. */
  3016. #include <string.h>
  3017. _ACEOF
  3018. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3019. $EGREP "memchr" >/dev/null 2>&1; then :
  3020. else
  3021. ac_cv_header_stdc=no
  3022. fi
  3023. rm -f conftest*
  3024. fi
  3025. if test $ac_cv_header_stdc = yes; then
  3026. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3028. /* end confdefs.h. */
  3029. #include <stdlib.h>
  3030. _ACEOF
  3031. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3032. $EGREP "free" >/dev/null 2>&1; then :
  3033. else
  3034. ac_cv_header_stdc=no
  3035. fi
  3036. rm -f conftest*
  3037. fi
  3038. if test $ac_cv_header_stdc = yes; then
  3039. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3040. if test "$cross_compiling" = yes; then :
  3041. :
  3042. else
  3043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3044. /* end confdefs.h. */
  3045. #include <ctype.h>
  3046. #include <stdlib.h>
  3047. #if ((' ' & 0x0FF) == 0x020)
  3048. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3049. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3050. #else
  3051. # define ISLOWER(c) \
  3052. (('a' <= (c) && (c) <= 'i') \
  3053. || ('j' <= (c) && (c) <= 'r') \
  3054. || ('s' <= (c) && (c) <= 'z'))
  3055. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3056. #endif
  3057. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3058. int
  3059. main ()
  3060. {
  3061. int i;
  3062. for (i = 0; i < 256; i++)
  3063. if (XOR (islower (i), ISLOWER (i))
  3064. || toupper (i) != TOUPPER (i))
  3065. return 2;
  3066. return 0;
  3067. }
  3068. _ACEOF
  3069. if ac_fn_c_try_run "$LINENO"; then :
  3070. else
  3071. ac_cv_header_stdc=no
  3072. fi
  3073. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3074. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3075. fi
  3076. fi
  3077. fi
  3078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3079. $as_echo "$ac_cv_header_stdc" >&6; }
  3080. if test $ac_cv_header_stdc = yes; then
  3081. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3082. fi
  3083. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3084. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3085. inttypes.h stdint.h unistd.h
  3086. do :
  3087. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3088. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3089. "
  3090. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3091. cat >>confdefs.h <<_ACEOF
  3092. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3093. _ACEOF
  3094. fi
  3095. done
  3096. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3097. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3098. MINIX=yes
  3099. else
  3100. MINIX=
  3101. fi
  3102. if test "$MINIX" = yes; then
  3103. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3104. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3105. $as_echo "#define _MINIX 1" >>confdefs.h
  3106. fi
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3108. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3109. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3110. $as_echo_n "(cached) " >&6
  3111. else
  3112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3113. /* end confdefs.h. */
  3114. # define __EXTENSIONS__ 1
  3115. $ac_includes_default
  3116. int
  3117. main ()
  3118. {
  3119. ;
  3120. return 0;
  3121. }
  3122. _ACEOF
  3123. if ac_fn_c_try_compile "$LINENO"; then :
  3124. ac_cv_safe_to_define___extensions__=yes
  3125. else
  3126. ac_cv_safe_to_define___extensions__=no
  3127. fi
  3128. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3129. fi
  3130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3131. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3132. test $ac_cv_safe_to_define___extensions__ = yes &&
  3133. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3134. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3135. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3136. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3137. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3138. ac_config_headers="$ac_config_headers config.h"
  3139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3140. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3141. set x ${MAKE-make}
  3142. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3143. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3144. $as_echo_n "(cached) " >&6
  3145. else
  3146. cat >conftest.make <<\_ACEOF
  3147. SHELL = /bin/sh
  3148. all:
  3149. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3150. _ACEOF
  3151. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3152. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3153. *@@@%%%=?*=@@@%%%*)
  3154. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3155. *)
  3156. eval ac_cv_prog_make_${ac_make}_set=no;;
  3157. esac
  3158. rm -f conftest.make
  3159. fi
  3160. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3162. $as_echo "yes" >&6; }
  3163. SET_MAKE=
  3164. else
  3165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3166. $as_echo "no" >&6; }
  3167. SET_MAKE="MAKE=${MAKE-make}"
  3168. fi
  3169. ac_aux_dir=
  3170. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3171. if test -f "$ac_dir/install-sh"; then
  3172. ac_aux_dir=$ac_dir
  3173. ac_install_sh="$ac_aux_dir/install-sh -c"
  3174. break
  3175. elif test -f "$ac_dir/install.sh"; then
  3176. ac_aux_dir=$ac_dir
  3177. ac_install_sh="$ac_aux_dir/install.sh -c"
  3178. break
  3179. elif test -f "$ac_dir/shtool"; then
  3180. ac_aux_dir=$ac_dir
  3181. ac_install_sh="$ac_aux_dir/shtool install -c"
  3182. break
  3183. fi
  3184. done
  3185. if test -z "$ac_aux_dir"; then
  3186. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3187. fi
  3188. # These three variables are undocumented and unsupported,
  3189. # and are intended to be withdrawn in a future Autoconf release.
  3190. # They can cause serious problems if a builder's source tree is in a directory
  3191. # whose full name contains unusual characters.
  3192. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3193. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3194. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3195. # Find a good install program. We prefer a C program (faster),
  3196. # so one script is as good as another. But avoid the broken or
  3197. # incompatible versions:
  3198. # SysV /etc/install, /usr/sbin/install
  3199. # SunOS /usr/etc/install
  3200. # IRIX /sbin/install
  3201. # AIX /bin/install
  3202. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3203. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3204. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3205. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3206. # OS/2's system install, which has a completely different semantic
  3207. # ./install, which can be erroneously created by make from ./install.sh.
  3208. # Reject install programs that cannot install multiple files.
  3209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3210. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3211. if test -z "$INSTALL"; then
  3212. if ${ac_cv_path_install+:} false; then :
  3213. $as_echo_n "(cached) " >&6
  3214. else
  3215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3216. for as_dir in $PATH
  3217. do
  3218. IFS=$as_save_IFS
  3219. test -z "$as_dir" && as_dir=.
  3220. # Account for people who put trailing slashes in PATH elements.
  3221. case $as_dir/ in #((
  3222. ./ | .// | /[cC]/* | \
  3223. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3224. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3225. /usr/ucb/* ) ;;
  3226. *)
  3227. # OSF1 and SCO ODT 3.0 have their own names for install.
  3228. # Don't use installbsd from OSF since it installs stuff as root
  3229. # by default.
  3230. for ac_prog in ginstall scoinst install; do
  3231. for ac_exec_ext in '' $ac_executable_extensions; do
  3232. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3233. if test $ac_prog = install &&
  3234. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3235. # AIX install. It has an incompatible calling convention.
  3236. :
  3237. elif test $ac_prog = install &&
  3238. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3239. # program-specific install script used by HP pwplus--don't use.
  3240. :
  3241. else
  3242. rm -rf conftest.one conftest.two conftest.dir
  3243. echo one > conftest.one
  3244. echo two > conftest.two
  3245. mkdir conftest.dir
  3246. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3247. test -s conftest.one && test -s conftest.two &&
  3248. test -s conftest.dir/conftest.one &&
  3249. test -s conftest.dir/conftest.two
  3250. then
  3251. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3252. break 3
  3253. fi
  3254. fi
  3255. fi
  3256. done
  3257. done
  3258. ;;
  3259. esac
  3260. done
  3261. IFS=$as_save_IFS
  3262. rm -rf conftest.one conftest.two conftest.dir
  3263. fi
  3264. if test "${ac_cv_path_install+set}" = set; then
  3265. INSTALL=$ac_cv_path_install
  3266. else
  3267. # As a last resort, use the slow shell script. Don't cache a
  3268. # value for INSTALL within a source directory, because that will
  3269. # break other packages using the cache if that directory is
  3270. # removed, or if the value is a relative name.
  3271. INSTALL=$ac_install_sh
  3272. fi
  3273. fi
  3274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3275. $as_echo "$INSTALL" >&6; }
  3276. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3277. # It thinks the first close brace ends the variable substitution.
  3278. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3279. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3280. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3281. MKINSTALLDIRS=
  3282. if test -n "$ac_aux_dir"; then
  3283. case "$ac_aux_dir" in
  3284. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  3285. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  3286. esac
  3287. fi
  3288. if test -z "$MKINSTALLDIRS"; then
  3289. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  3290. fi
  3291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  3292. $as_echo_n "checking whether NLS is requested... " >&6; }
  3293. # Check whether --enable-nls was given.
  3294. if test "${enable_nls+set}" = set; then :
  3295. enableval=$enable_nls; USE_NLS=$enableval
  3296. else
  3297. USE_NLS=yes
  3298. fi
  3299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  3300. $as_echo "$USE_NLS" >&6; }
  3301. # Prepare PATH_SEPARATOR.
  3302. # The user is always right.
  3303. if test "${PATH_SEPARATOR+set}" != set; then
  3304. echo "#! /bin/sh" >conf$$.sh
  3305. echo "exit 0" >>conf$$.sh
  3306. chmod +x conf$$.sh
  3307. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  3308. PATH_SEPARATOR=';'
  3309. else
  3310. PATH_SEPARATOR=:
  3311. fi
  3312. rm -f conf$$.sh
  3313. fi
  3314. # Find out how to test for executable files. Don't use a zero-byte file,
  3315. # as systems may use methods other than mode bits to determine executability.
  3316. cat >conf$$.file <<_ASEOF
  3317. #! /bin/sh
  3318. exit 0
  3319. _ASEOF
  3320. chmod +x conf$$.file
  3321. if test -x conf$$.file >/dev/null 2>&1; then
  3322. ac_executable_p="test -x"
  3323. else
  3324. ac_executable_p="test -f"
  3325. fi
  3326. rm -f conf$$.file
  3327. # Extract the first word of "msgfmt", so it can be a program name with args.
  3328. set dummy msgfmt; ac_word=$2
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3330. $as_echo_n "checking for $ac_word... " >&6; }
  3331. if ${ac_cv_path_MSGFMT+:} false; then :
  3332. $as_echo_n "(cached) " >&6
  3333. else
  3334. case "$MSGFMT" in
  3335. [\\/]* | ?:[\\/]*)
  3336. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  3337. ;;
  3338. *)
  3339. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  3340. for ac_dir in $PATH; do
  3341. IFS="$ac_save_IFS"
  3342. test -z "$ac_dir" && ac_dir=.
  3343. for ac_exec_ext in '' $ac_executable_extensions; do
  3344. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  3345. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  3346. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  3347. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  3348. break 2
  3349. fi
  3350. fi
  3351. done
  3352. done
  3353. IFS="$ac_save_IFS"
  3354. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  3355. ;;
  3356. esac
  3357. fi
  3358. MSGFMT="$ac_cv_path_MSGFMT"
  3359. if test "$MSGFMT" != ":"; then
  3360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  3361. $as_echo "$MSGFMT" >&6; }
  3362. else
  3363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3364. $as_echo "no" >&6; }
  3365. fi
  3366. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  3367. set dummy gmsgfmt; ac_word=$2
  3368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3369. $as_echo_n "checking for $ac_word... " >&6; }
  3370. if ${ac_cv_path_GMSGFMT+:} false; then :
  3371. $as_echo_n "(cached) " >&6
  3372. else
  3373. case $GMSGFMT in
  3374. [\\/]* | ?:[\\/]*)
  3375. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3376. ;;
  3377. *)
  3378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3379. for as_dir in $PATH
  3380. do
  3381. IFS=$as_save_IFS
  3382. test -z "$as_dir" && as_dir=.
  3383. for ac_exec_ext in '' $ac_executable_extensions; do
  3384. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3385. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  3386. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3387. break 2
  3388. fi
  3389. done
  3390. done
  3391. IFS=$as_save_IFS
  3392. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  3393. ;;
  3394. esac
  3395. fi
  3396. GMSGFMT=$ac_cv_path_GMSGFMT
  3397. if test -n "$GMSGFMT"; then
  3398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  3399. $as_echo "$GMSGFMT" >&6; }
  3400. else
  3401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3402. $as_echo "no" >&6; }
  3403. fi
  3404. # Prepare PATH_SEPARATOR.
  3405. # The user is always right.
  3406. if test "${PATH_SEPARATOR+set}" != set; then
  3407. echo "#! /bin/sh" >conf$$.sh
  3408. echo "exit 0" >>conf$$.sh
  3409. chmod +x conf$$.sh
  3410. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  3411. PATH_SEPARATOR=';'
  3412. else
  3413. PATH_SEPARATOR=:
  3414. fi
  3415. rm -f conf$$.sh
  3416. fi
  3417. # Find out how to test for executable files. Don't use a zero-byte file,
  3418. # as systems may use methods other than mode bits to determine executability.
  3419. cat >conf$$.file <<_ASEOF
  3420. #! /bin/sh
  3421. exit 0
  3422. _ASEOF
  3423. chmod +x conf$$.file
  3424. if test -x conf$$.file >/dev/null 2>&1; then
  3425. ac_executable_p="test -x"
  3426. else
  3427. ac_executable_p="test -f"
  3428. fi
  3429. rm -f conf$$.file
  3430. # Extract the first word of "xgettext", so it can be a program name with args.
  3431. set dummy xgettext; ac_word=$2
  3432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3433. $as_echo_n "checking for $ac_word... " >&6; }
  3434. if ${ac_cv_path_XGETTEXT+:} false; then :
  3435. $as_echo_n "(cached) " >&6
  3436. else
  3437. case "$XGETTEXT" in
  3438. [\\/]* | ?:[\\/]*)
  3439. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  3440. ;;
  3441. *)
  3442. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  3443. for ac_dir in $PATH; do
  3444. IFS="$ac_save_IFS"
  3445. test -z "$ac_dir" && ac_dir=.
  3446. for ac_exec_ext in '' $ac_executable_extensions; do
  3447. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  3448. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  3449. (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  3450. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  3451. break 2
  3452. fi
  3453. fi
  3454. done
  3455. done
  3456. IFS="$ac_save_IFS"
  3457. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  3458. ;;
  3459. esac
  3460. fi
  3461. XGETTEXT="$ac_cv_path_XGETTEXT"
  3462. if test "$XGETTEXT" != ":"; then
  3463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  3464. $as_echo "$XGETTEXT" >&6; }
  3465. else
  3466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3467. $as_echo "no" >&6; }
  3468. fi
  3469. rm -f messages.po
  3470. # Prepare PATH_SEPARATOR.
  3471. # The user is always right.
  3472. if test "${PATH_SEPARATOR+set}" != set; then
  3473. echo "#! /bin/sh" >conf$$.sh
  3474. echo "exit 0" >>conf$$.sh
  3475. chmod +x conf$$.sh
  3476. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  3477. PATH_SEPARATOR=';'
  3478. else
  3479. PATH_SEPARATOR=:
  3480. fi
  3481. rm -f conf$$.sh
  3482. fi
  3483. # Find out how to test for executable files. Don't use a zero-byte file,
  3484. # as systems may use methods other than mode bits to determine executability.
  3485. cat >conf$$.file <<_ASEOF
  3486. #! /bin/sh
  3487. exit 0
  3488. _ASEOF
  3489. chmod +x conf$$.file
  3490. if test -x conf$$.file >/dev/null 2>&1; then
  3491. ac_executable_p="test -x"
  3492. else
  3493. ac_executable_p="test -f"
  3494. fi
  3495. rm -f conf$$.file
  3496. # Extract the first word of "msgmerge", so it can be a program name with args.
  3497. set dummy msgmerge; ac_word=$2
  3498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3499. $as_echo_n "checking for $ac_word... " >&6; }
  3500. if ${ac_cv_path_MSGMERGE+:} false; then :
  3501. $as_echo_n "(cached) " >&6
  3502. else
  3503. case "$MSGMERGE" in
  3504. [\\/]* | ?:[\\/]*)
  3505. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  3506. ;;
  3507. *)
  3508. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  3509. for ac_dir in $PATH; do
  3510. IFS="$ac_save_IFS"
  3511. test -z "$ac_dir" && ac_dir=.
  3512. for ac_exec_ext in '' $ac_executable_extensions; do
  3513. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  3514. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  3515. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  3516. break 2
  3517. fi
  3518. fi
  3519. done
  3520. done
  3521. IFS="$ac_save_IFS"
  3522. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  3523. ;;
  3524. esac
  3525. fi
  3526. MSGMERGE="$ac_cv_path_MSGMERGE"
  3527. if test "$MSGMERGE" != ":"; then
  3528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  3529. $as_echo "$MSGMERGE" >&6; }
  3530. else
  3531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3532. $as_echo "no" >&6; }
  3533. fi
  3534. if test "$GMSGFMT" != ":"; then
  3535. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  3536. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  3537. : ;
  3538. else
  3539. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  3541. $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
  3542. GMSGFMT=":"
  3543. fi
  3544. fi
  3545. if test "$XGETTEXT" != ":"; then
  3546. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  3547. (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  3548. : ;
  3549. else
  3550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
  3551. $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
  3552. XGETTEXT=":"
  3553. fi
  3554. rm -f messages.po
  3555. fi
  3556. ac_config_commands="$ac_config_commands default-1"
  3557. # Make sure we can run config.sub.
  3558. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3559. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3561. $as_echo_n "checking build system type... " >&6; }
  3562. if ${ac_cv_build+:} false; then :
  3563. $as_echo_n "(cached) " >&6
  3564. else
  3565. ac_build_alias=$build_alias
  3566. test "x$ac_build_alias" = x &&
  3567. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3568. test "x$ac_build_alias" = x &&
  3569. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3570. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3571. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3572. fi
  3573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3574. $as_echo "$ac_cv_build" >&6; }
  3575. case $ac_cv_build in
  3576. *-*-*) ;;
  3577. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3578. esac
  3579. build=$ac_cv_build
  3580. ac_save_IFS=$IFS; IFS='-'
  3581. set x $ac_cv_build
  3582. shift
  3583. build_cpu=$1
  3584. build_vendor=$2
  3585. shift; shift
  3586. # Remember, the first character of IFS is used to create $*,
  3587. # except with old shells:
  3588. build_os=$*
  3589. IFS=$ac_save_IFS
  3590. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3592. $as_echo_n "checking host system type... " >&6; }
  3593. if ${ac_cv_host+:} false; then :
  3594. $as_echo_n "(cached) " >&6
  3595. else
  3596. if test "x$host_alias" = x; then
  3597. ac_cv_host=$ac_cv_build
  3598. else
  3599. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3600. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3601. fi
  3602. fi
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3604. $as_echo "$ac_cv_host" >&6; }
  3605. case $ac_cv_host in
  3606. *-*-*) ;;
  3607. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3608. esac
  3609. host=$ac_cv_host
  3610. ac_save_IFS=$IFS; IFS='-'
  3611. set x $ac_cv_host
  3612. shift
  3613. host_cpu=$1
  3614. host_vendor=$2
  3615. shift; shift
  3616. # Remember, the first character of IFS is used to create $*,
  3617. # except with old shells:
  3618. host_os=$*
  3619. IFS=$ac_save_IFS
  3620. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3621. if test -n "$ac_tool_prefix"; then
  3622. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3623. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3625. $as_echo_n "checking for $ac_word... " >&6; }
  3626. if ${ac_cv_prog_RANLIB+:} false; then :
  3627. $as_echo_n "(cached) " >&6
  3628. else
  3629. if test -n "$RANLIB"; then
  3630. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3631. else
  3632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3633. for as_dir in $PATH
  3634. do
  3635. IFS=$as_save_IFS
  3636. test -z "$as_dir" && as_dir=.
  3637. for ac_exec_ext in '' $ac_executable_extensions; do
  3638. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3639. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3640. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3641. break 2
  3642. fi
  3643. done
  3644. done
  3645. IFS=$as_save_IFS
  3646. fi
  3647. fi
  3648. RANLIB=$ac_cv_prog_RANLIB
  3649. if test -n "$RANLIB"; then
  3650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  3651. $as_echo "$RANLIB" >&6; }
  3652. else
  3653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3654. $as_echo "no" >&6; }
  3655. fi
  3656. fi
  3657. if test -z "$ac_cv_prog_RANLIB"; then
  3658. ac_ct_RANLIB=$RANLIB
  3659. # Extract the first word of "ranlib", so it can be a program name with args.
  3660. set dummy ranlib; ac_word=$2
  3661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3662. $as_echo_n "checking for $ac_word... " >&6; }
  3663. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  3664. $as_echo_n "(cached) " >&6
  3665. else
  3666. if test -n "$ac_ct_RANLIB"; then
  3667. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3668. else
  3669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3670. for as_dir in $PATH
  3671. do
  3672. IFS=$as_save_IFS
  3673. test -z "$as_dir" && as_dir=.
  3674. for ac_exec_ext in '' $ac_executable_extensions; do
  3675. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3676. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3677. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3678. break 2
  3679. fi
  3680. done
  3681. done
  3682. IFS=$as_save_IFS
  3683. fi
  3684. fi
  3685. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3686. if test -n "$ac_ct_RANLIB"; then
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  3688. $as_echo "$ac_ct_RANLIB" >&6; }
  3689. else
  3690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3691. $as_echo "no" >&6; }
  3692. fi
  3693. if test "x$ac_ct_RANLIB" = x; then
  3694. RANLIB=":"
  3695. else
  3696. case $cross_compiling:$ac_tool_warned in
  3697. yes:)
  3698. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3699. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3700. ac_tool_warned=yes ;;
  3701. esac
  3702. RANLIB=$ac_ct_RANLIB
  3703. fi
  3704. else
  3705. RANLIB="$ac_cv_prog_RANLIB"
  3706. fi
  3707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
  3708. $as_echo_n "checking for library containing strerror... " >&6; }
  3709. if ${ac_cv_search_strerror+:} false; then :
  3710. $as_echo_n "(cached) " >&6
  3711. else
  3712. ac_func_search_save_LIBS=$LIBS
  3713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3714. /* end confdefs.h. */
  3715. /* Override any GCC internal prototype to avoid an error.
  3716. Use char because int might match the return type of a GCC
  3717. builtin and then its argument prototype would still apply. */
  3718. #ifdef __cplusplus
  3719. extern "C"
  3720. #endif
  3721. char strerror ();
  3722. int
  3723. main ()
  3724. {
  3725. return strerror ();
  3726. ;
  3727. return 0;
  3728. }
  3729. _ACEOF
  3730. for ac_lib in '' cposix; do
  3731. if test -z "$ac_lib"; then
  3732. ac_res="none required"
  3733. else
  3734. ac_res=-l$ac_lib
  3735. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3736. fi
  3737. if ac_fn_c_try_link "$LINENO"; then :
  3738. ac_cv_search_strerror=$ac_res
  3739. fi
  3740. rm -f core conftest.err conftest.$ac_objext \
  3741. conftest$ac_exeext
  3742. if ${ac_cv_search_strerror+:} false; then :
  3743. break
  3744. fi
  3745. done
  3746. if ${ac_cv_search_strerror+:} false; then :
  3747. else
  3748. ac_cv_search_strerror=no
  3749. fi
  3750. rm conftest.$ac_ext
  3751. LIBS=$ac_func_search_save_LIBS
  3752. fi
  3753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
  3754. $as_echo "$ac_cv_search_strerror" >&6; }
  3755. ac_res=$ac_cv_search_strerror
  3756. if test "$ac_res" != no; then :
  3757. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3758. fi
  3759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  3760. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  3761. if ${ac_cv_c_const+:} false; then :
  3762. $as_echo_n "(cached) " >&6
  3763. else
  3764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3765. /* end confdefs.h. */
  3766. int
  3767. main ()
  3768. {
  3769. #ifndef __cplusplus
  3770. /* Ultrix mips cc rejects this sort of thing. */
  3771. typedef int charset[2];
  3772. const charset cs = { 0, 0 };
  3773. /* SunOS 4.1.1 cc rejects this. */
  3774. char const *const *pcpcc;
  3775. char **ppc;
  3776. /* NEC SVR4.0.2 mips cc rejects this. */
  3777. struct point {int x, y;};
  3778. static struct point const zero = {0,0};
  3779. /* AIX XL C 1.02.0.0 rejects this.
  3780. It does not let you subtract one const X* pointer from another in
  3781. an arm of an if-expression whose if-part is not a constant
  3782. expression */
  3783. const char *g = "string";
  3784. pcpcc = &g + (g ? g-g : 0);
  3785. /* HPUX 7.0 cc rejects these. */
  3786. ++pcpcc;
  3787. ppc = (char**) pcpcc;
  3788. pcpcc = (char const *const *) ppc;
  3789. { /* SCO 3.2v4 cc rejects this sort of thing. */
  3790. char tx;
  3791. char *t = &tx;
  3792. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3793. *t++ = 0;
  3794. if (s) return 0;
  3795. }
  3796. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3797. int x[] = {25, 17};
  3798. const int *foo = &x[0];
  3799. ++foo;
  3800. }
  3801. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3802. typedef const int *iptr;
  3803. iptr p = 0;
  3804. ++p;
  3805. }
  3806. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  3807. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3808. struct s { int j; const int *ap[3]; } bx;
  3809. struct s *b = &bx; b->j = 5;
  3810. }
  3811. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3812. const int foo = 10;
  3813. if (!foo) return 0;
  3814. }
  3815. return !cs[0] && !zero.x;
  3816. #endif
  3817. ;
  3818. return 0;
  3819. }
  3820. _ACEOF
  3821. if ac_fn_c_try_compile "$LINENO"; then :
  3822. ac_cv_c_const=yes
  3823. else
  3824. ac_cv_c_const=no
  3825. fi
  3826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3827. fi
  3828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  3829. $as_echo "$ac_cv_c_const" >&6; }
  3830. if test $ac_cv_c_const = no; then
  3831. $as_echo "#define const /**/" >>confdefs.h
  3832. fi
  3833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  3834. $as_echo_n "checking for inline... " >&6; }
  3835. if ${ac_cv_c_inline+:} false; then :
  3836. $as_echo_n "(cached) " >&6
  3837. else
  3838. ac_cv_c_inline=no
  3839. for ac_kw in inline __inline__ __inline; do
  3840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3841. /* end confdefs.h. */
  3842. #ifndef __cplusplus
  3843. typedef int foo_t;
  3844. static $ac_kw foo_t static_foo () {return 0; }
  3845. $ac_kw foo_t foo () {return 0; }
  3846. #endif
  3847. _ACEOF
  3848. if ac_fn_c_try_compile "$LINENO"; then :
  3849. ac_cv_c_inline=$ac_kw
  3850. fi
  3851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3852. test "$ac_cv_c_inline" != no && break
  3853. done
  3854. fi
  3855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  3856. $as_echo "$ac_cv_c_inline" >&6; }
  3857. case $ac_cv_c_inline in
  3858. inline | yes) ;;
  3859. *)
  3860. case $ac_cv_c_inline in
  3861. no) ac_val=;;
  3862. *) ac_val=$ac_cv_c_inline;;
  3863. esac
  3864. cat >>confdefs.h <<_ACEOF
  3865. #ifndef __cplusplus
  3866. #define inline $ac_val
  3867. #endif
  3868. _ACEOF
  3869. ;;
  3870. esac
  3871. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  3872. if test "x$ac_cv_type_off_t" = xyes; then :
  3873. else
  3874. cat >>confdefs.h <<_ACEOF
  3875. #define off_t long int
  3876. _ACEOF
  3877. fi
  3878. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  3879. if test "x$ac_cv_type_size_t" = xyes; then :
  3880. else
  3881. cat >>confdefs.h <<_ACEOF
  3882. #define size_t unsigned int
  3883. _ACEOF
  3884. fi
  3885. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  3886. # for constant arguments. Useless!
  3887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  3888. $as_echo_n "checking for working alloca.h... " >&6; }
  3889. if ${ac_cv_working_alloca_h+:} false; then :
  3890. $as_echo_n "(cached) " >&6
  3891. else
  3892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3893. /* end confdefs.h. */
  3894. #include <alloca.h>
  3895. int
  3896. main ()
  3897. {
  3898. char *p = (char *) alloca (2 * sizeof (int));
  3899. if (p) return 0;
  3900. ;
  3901. return 0;
  3902. }
  3903. _ACEOF
  3904. if ac_fn_c_try_link "$LINENO"; then :
  3905. ac_cv_working_alloca_h=yes
  3906. else
  3907. ac_cv_working_alloca_h=no
  3908. fi
  3909. rm -f core conftest.err conftest.$ac_objext \
  3910. conftest$ac_exeext conftest.$ac_ext
  3911. fi
  3912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  3913. $as_echo "$ac_cv_working_alloca_h" >&6; }
  3914. if test $ac_cv_working_alloca_h = yes; then
  3915. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  3916. fi
  3917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  3918. $as_echo_n "checking for alloca... " >&6; }
  3919. if ${ac_cv_func_alloca_works+:} false; then :
  3920. $as_echo_n "(cached) " >&6
  3921. else
  3922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3923. /* end confdefs.h. */
  3924. #ifdef __GNUC__
  3925. # define alloca __builtin_alloca
  3926. #else
  3927. # ifdef _MSC_VER
  3928. # include <malloc.h>
  3929. # define alloca _alloca
  3930. # else
  3931. # ifdef HAVE_ALLOCA_H
  3932. # include <alloca.h>
  3933. # else
  3934. # ifdef _AIX
  3935. #pragma alloca
  3936. # else
  3937. # ifndef alloca /* predefined by HP cc +Olibcalls */
  3938. void *alloca (size_t);
  3939. # endif
  3940. # endif
  3941. # endif
  3942. # endif
  3943. #endif
  3944. int
  3945. main ()
  3946. {
  3947. char *p = (char *) alloca (1);
  3948. if (p) return 0;
  3949. ;
  3950. return 0;
  3951. }
  3952. _ACEOF
  3953. if ac_fn_c_try_link "$LINENO"; then :
  3954. ac_cv_func_alloca_works=yes
  3955. else
  3956. ac_cv_func_alloca_works=no
  3957. fi
  3958. rm -f core conftest.err conftest.$ac_objext \
  3959. conftest$ac_exeext conftest.$ac_ext
  3960. fi
  3961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  3962. $as_echo "$ac_cv_func_alloca_works" >&6; }
  3963. if test $ac_cv_func_alloca_works = yes; then
  3964. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  3965. else
  3966. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  3967. # that cause trouble. Some versions do not even contain alloca or
  3968. # contain a buggy version. If you still want to use their alloca,
  3969. # use ar to extract alloca.o from them instead of compiling alloca.c.
  3970. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  3971. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  3972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  3973. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  3974. if ${ac_cv_os_cray+:} false; then :
  3975. $as_echo_n "(cached) " >&6
  3976. else
  3977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3978. /* end confdefs.h. */
  3979. #if defined CRAY && ! defined CRAY2
  3980. webecray
  3981. #else
  3982. wenotbecray
  3983. #endif
  3984. _ACEOF
  3985. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3986. $EGREP "webecray" >/dev/null 2>&1; then :
  3987. ac_cv_os_cray=yes
  3988. else
  3989. ac_cv_os_cray=no
  3990. fi
  3991. rm -f conftest*
  3992. fi
  3993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  3994. $as_echo "$ac_cv_os_cray" >&6; }
  3995. if test $ac_cv_os_cray = yes; then
  3996. for ac_func in _getb67 GETB67 getb67; do
  3997. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  3998. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  3999. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4000. cat >>confdefs.h <<_ACEOF
  4001. #define CRAY_STACKSEG_END $ac_func
  4002. _ACEOF
  4003. break
  4004. fi
  4005. done
  4006. fi
  4007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  4008. $as_echo_n "checking stack direction for C alloca... " >&6; }
  4009. if ${ac_cv_c_stack_direction+:} false; then :
  4010. $as_echo_n "(cached) " >&6
  4011. else
  4012. if test "$cross_compiling" = yes; then :
  4013. ac_cv_c_stack_direction=0
  4014. else
  4015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4016. /* end confdefs.h. */
  4017. $ac_includes_default
  4018. int
  4019. find_stack_direction (int *addr, int depth)
  4020. {
  4021. int dir, dummy = 0;
  4022. if (! addr)
  4023. addr = &dummy;
  4024. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  4025. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  4026. return dir + dummy;
  4027. }
  4028. int
  4029. main (int argc, char **argv)
  4030. {
  4031. return find_stack_direction (0, argc + !argv + 20) < 0;
  4032. }
  4033. _ACEOF
  4034. if ac_fn_c_try_run "$LINENO"; then :
  4035. ac_cv_c_stack_direction=1
  4036. else
  4037. ac_cv_c_stack_direction=-1
  4038. fi
  4039. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4040. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4041. fi
  4042. fi
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  4044. $as_echo "$ac_cv_c_stack_direction" >&6; }
  4045. cat >>confdefs.h <<_ACEOF
  4046. #define STACK_DIRECTION $ac_cv_c_stack_direction
  4047. _ACEOF
  4048. fi
  4049. for ac_header in $ac_header_list
  4050. do :
  4051. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4052. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4053. "
  4054. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4055. cat >>confdefs.h <<_ACEOF
  4056. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4057. _ACEOF
  4058. fi
  4059. done
  4060. for ac_func in getpagesize
  4061. do :
  4062. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  4063. if test "x$ac_cv_func_getpagesize" = xyes; then :
  4064. cat >>confdefs.h <<_ACEOF
  4065. #define HAVE_GETPAGESIZE 1
  4066. _ACEOF
  4067. fi
  4068. done
  4069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  4070. $as_echo_n "checking for working mmap... " >&6; }
  4071. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  4072. $as_echo_n "(cached) " >&6
  4073. else
  4074. if test "$cross_compiling" = yes; then :
  4075. ac_cv_func_mmap_fixed_mapped=no
  4076. else
  4077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4078. /* end confdefs.h. */
  4079. $ac_includes_default
  4080. /* malloc might have been renamed as rpl_malloc. */
  4081. #undef malloc
  4082. /* Thanks to Mike Haertel and Jim Avera for this test.
  4083. Here is a matrix of mmap possibilities:
  4084. mmap private not fixed
  4085. mmap private fixed at somewhere currently unmapped
  4086. mmap private fixed at somewhere already mapped
  4087. mmap shared not fixed
  4088. mmap shared fixed at somewhere currently unmapped
  4089. mmap shared fixed at somewhere already mapped
  4090. For private mappings, we should verify that changes cannot be read()
  4091. back from the file, nor mmap's back from the file at a different
  4092. address. (There have been systems where private was not correctly
  4093. implemented like the infamous i386 svr4.0, and systems where the
  4094. VM page cache was not coherent with the file system buffer cache
  4095. like early versions of FreeBSD and possibly contemporary NetBSD.)
  4096. For shared mappings, we should conversely verify that changes get
  4097. propagated back to all the places they're supposed to be.
  4098. Grep wants private fixed already mapped.
  4099. The main things grep needs to know about mmap are:
  4100. * does it exist and is it safe to write into the mmap'd area
  4101. * how to use it (BSD variants) */
  4102. #include <fcntl.h>
  4103. #include <sys/mman.h>
  4104. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  4105. char *malloc ();
  4106. #endif
  4107. /* This mess was copied from the GNU getpagesize.h. */
  4108. #ifndef HAVE_GETPAGESIZE
  4109. # ifdef _SC_PAGESIZE
  4110. # define getpagesize() sysconf(_SC_PAGESIZE)
  4111. # else /* no _SC_PAGESIZE */
  4112. # ifdef HAVE_SYS_PARAM_H
  4113. # include <sys/param.h>
  4114. # ifdef EXEC_PAGESIZE
  4115. # define getpagesize() EXEC_PAGESIZE
  4116. # else /* no EXEC_PAGESIZE */
  4117. # ifdef NBPG
  4118. # define getpagesize() NBPG * CLSIZE
  4119. # ifndef CLSIZE
  4120. # define CLSIZE 1
  4121. # endif /* no CLSIZE */
  4122. # else /* no NBPG */
  4123. # ifdef NBPC
  4124. # define getpagesize() NBPC
  4125. # else /* no NBPC */
  4126. # ifdef PAGESIZE
  4127. # define getpagesize() PAGESIZE
  4128. # endif /* PAGESIZE */
  4129. # endif /* no NBPC */
  4130. # endif /* no NBPG */
  4131. # endif /* no EXEC_PAGESIZE */
  4132. # else /* no HAVE_SYS_PARAM_H */
  4133. # define getpagesize() 8192 /* punt totally */
  4134. # endif /* no HAVE_SYS_PARAM_H */
  4135. # endif /* no _SC_PAGESIZE */
  4136. #endif /* no HAVE_GETPAGESIZE */
  4137. int
  4138. main ()
  4139. {
  4140. char *data, *data2, *data3;
  4141. const char *cdata2;
  4142. int i, pagesize;
  4143. int fd, fd2;
  4144. pagesize = getpagesize ();
  4145. /* First, make a file with some known garbage in it. */
  4146. data = (char *) malloc (pagesize);
  4147. if (!data)
  4148. return 1;
  4149. for (i = 0; i < pagesize; ++i)
  4150. *(data + i) = rand ();
  4151. umask (0);
  4152. fd = creat ("conftest.mmap", 0600);
  4153. if (fd < 0)
  4154. return 2;
  4155. if (write (fd, data, pagesize) != pagesize)
  4156. return 3;
  4157. close (fd);
  4158. /* Next, check that the tail of a page is zero-filled. File must have
  4159. non-zero length, otherwise we risk SIGBUS for entire page. */
  4160. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  4161. if (fd2 < 0)
  4162. return 4;
  4163. cdata2 = "";
  4164. if (write (fd2, cdata2, 1) != 1)
  4165. return 5;
  4166. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  4167. if (data2 == MAP_FAILED)
  4168. return 6;
  4169. for (i = 0; i < pagesize; ++i)
  4170. if (*(data2 + i))
  4171. return 7;
  4172. close (fd2);
  4173. if (munmap (data2, pagesize))
  4174. return 8;
  4175. /* Next, try to mmap the file at a fixed address which already has
  4176. something else allocated at it. If we can, also make sure that
  4177. we see the same garbage. */
  4178. fd = open ("conftest.mmap", O_RDWR);
  4179. if (fd < 0)
  4180. return 9;
  4181. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  4182. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  4183. return 10;
  4184. for (i = 0; i < pagesize; ++i)
  4185. if (*(data + i) != *(data2 + i))
  4186. return 11;
  4187. /* Finally, make sure that changes to the mapped area do not
  4188. percolate back to the file as seen by read(). (This is a bug on
  4189. some variants of i386 svr4.0.) */
  4190. for (i = 0; i < pagesize; ++i)
  4191. *(data2 + i) = *(data2 + i) + 1;
  4192. data3 = (char *) malloc (pagesize);
  4193. if (!data3)
  4194. return 12;
  4195. if (read (fd, data3, pagesize) != pagesize)
  4196. return 13;
  4197. for (i = 0; i < pagesize; ++i)
  4198. if (*(data + i) != *(data3 + i))
  4199. return 14;
  4200. close (fd);
  4201. return 0;
  4202. }
  4203. _ACEOF
  4204. if ac_fn_c_try_run "$LINENO"; then :
  4205. ac_cv_func_mmap_fixed_mapped=yes
  4206. else
  4207. ac_cv_func_mmap_fixed_mapped=no
  4208. fi
  4209. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4210. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4211. fi
  4212. fi
  4213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  4214. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  4215. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  4216. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  4217. fi
  4218. rm -f conftest.mmap conftest.txt
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
  4220. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  4221. if ${ac_cv_gnu_library_2_1+:} false; then :
  4222. $as_echo_n "(cached) " >&6
  4223. else
  4224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4225. /* end confdefs.h. */
  4226. #include <features.h>
  4227. #ifdef __GNU_LIBRARY__
  4228. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  4229. Lucky GNU user
  4230. #endif
  4231. #endif
  4232. _ACEOF
  4233. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4234. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  4235. ac_cv_gnu_library_2_1=yes
  4236. else
  4237. ac_cv_gnu_library_2_1=no
  4238. fi
  4239. rm -f conftest*
  4240. fi
  4241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
  4242. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  4243. GLIBC21="$ac_cv_gnu_library_2_1"
  4244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
  4245. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  4246. if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
  4247. $as_echo_n "(cached) " >&6
  4248. else
  4249. if test "$cross_compiling" = yes; then :
  4250. # Guess based on the CPU.
  4251. case "$host_cpu" in
  4252. alpha* | i3456786 | m68k | s390*)
  4253. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  4254. *)
  4255. gt_cv_int_divbyzero_sigfpe="guessing no";;
  4256. esac
  4257. else
  4258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4259. /* end confdefs.h. */
  4260. #include <stdlib.h>
  4261. #include <signal.h>
  4262. static void
  4263. #ifdef __cplusplus
  4264. sigfpe_handler (int sig)
  4265. #else
  4266. sigfpe_handler (sig) int sig;
  4267. #endif
  4268. {
  4269. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  4270. exit (sig != SIGFPE);
  4271. }
  4272. int x = 1;
  4273. int y = 0;
  4274. int z;
  4275. int nan;
  4276. int main ()
  4277. {
  4278. signal (SIGFPE, sigfpe_handler);
  4279. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  4280. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  4281. signal (SIGTRAP, sigfpe_handler);
  4282. #endif
  4283. /* Linux/SPARC yields signal SIGILL. */
  4284. #if defined (__sparc__) && defined (__linux__)
  4285. signal (SIGILL, sigfpe_handler);
  4286. #endif
  4287. z = x / y;
  4288. nan = y / y;
  4289. exit (1);
  4290. }
  4291. _ACEOF
  4292. if ac_fn_c_try_run "$LINENO"; then :
  4293. gt_cv_int_divbyzero_sigfpe=yes
  4294. else
  4295. gt_cv_int_divbyzero_sigfpe=no
  4296. fi
  4297. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4298. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4299. fi
  4300. fi
  4301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
  4302. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  4303. case "$gt_cv_int_divbyzero_sigfpe" in
  4304. *yes) value=1;;
  4305. *) value=0;;
  4306. esac
  4307. cat >>confdefs.h <<_ACEOF
  4308. #define INTDIV0_RAISES_SIGFPE $value
  4309. _ACEOF
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
  4311. $as_echo_n "checking for inttypes.h... " >&6; }
  4312. if ${jm_ac_cv_header_inttypes_h+:} false; then :
  4313. $as_echo_n "(cached) " >&6
  4314. else
  4315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4316. /* end confdefs.h. */
  4317. #include <sys/types.h>
  4318. #include <inttypes.h>
  4319. int
  4320. main ()
  4321. {
  4322. uintmax_t i = (uintmax_t) -1;
  4323. ;
  4324. return 0;
  4325. }
  4326. _ACEOF
  4327. if ac_fn_c_try_compile "$LINENO"; then :
  4328. jm_ac_cv_header_inttypes_h=yes
  4329. else
  4330. jm_ac_cv_header_inttypes_h=no
  4331. fi
  4332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4333. fi
  4334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
  4335. $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
  4336. if test $jm_ac_cv_header_inttypes_h = yes; then
  4337. cat >>confdefs.h <<_ACEOF
  4338. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  4339. _ACEOF
  4340. fi
  4341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
  4342. $as_echo_n "checking for stdint.h... " >&6; }
  4343. if ${jm_ac_cv_header_stdint_h+:} false; then :
  4344. $as_echo_n "(cached) " >&6
  4345. else
  4346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4347. /* end confdefs.h. */
  4348. #include <sys/types.h>
  4349. #include <stdint.h>
  4350. int
  4351. main ()
  4352. {
  4353. uintmax_t i = (uintmax_t) -1;
  4354. ;
  4355. return 0;
  4356. }
  4357. _ACEOF
  4358. if ac_fn_c_try_compile "$LINENO"; then :
  4359. jm_ac_cv_header_stdint_h=yes
  4360. else
  4361. jm_ac_cv_header_stdint_h=no
  4362. fi
  4363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4364. fi
  4365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
  4366. $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
  4367. if test $jm_ac_cv_header_stdint_h = yes; then
  4368. cat >>confdefs.h <<_ACEOF
  4369. #define HAVE_STDINT_H_WITH_UINTMAX 1
  4370. _ACEOF
  4371. fi
  4372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
  4373. $as_echo_n "checking for unsigned long long... " >&6; }
  4374. if ${ac_cv_type_unsigned_long_long+:} false; then :
  4375. $as_echo_n "(cached) " >&6
  4376. else
  4377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4378. /* end confdefs.h. */
  4379. unsigned long long ull = 1; int i = 63;
  4380. int
  4381. main ()
  4382. {
  4383. unsigned long long ullmax = (unsigned long long) -1;
  4384. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  4385. ;
  4386. return 0;
  4387. }
  4388. _ACEOF
  4389. if ac_fn_c_try_link "$LINENO"; then :
  4390. ac_cv_type_unsigned_long_long=yes
  4391. else
  4392. ac_cv_type_unsigned_long_long=no
  4393. fi
  4394. rm -f core conftest.err conftest.$ac_objext \
  4395. conftest$ac_exeext conftest.$ac_ext
  4396. fi
  4397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
  4398. $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
  4399. if test $ac_cv_type_unsigned_long_long = yes; then
  4400. $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
  4401. fi
  4402. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  4403. test $ac_cv_type_unsigned_long_long = yes \
  4404. && ac_type='unsigned long long' \
  4405. || ac_type='unsigned long'
  4406. cat >>confdefs.h <<_ACEOF
  4407. #define uintmax_t $ac_type
  4408. _ACEOF
  4409. else
  4410. $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
  4411. fi
  4412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
  4413. $as_echo_n "checking for inttypes.h... " >&6; }
  4414. if ${gt_cv_header_inttypes_h+:} false; then :
  4415. $as_echo_n "(cached) " >&6
  4416. else
  4417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4418. /* end confdefs.h. */
  4419. #include <sys/types.h>
  4420. #include <inttypes.h>
  4421. int
  4422. main ()
  4423. {
  4424. ;
  4425. return 0;
  4426. }
  4427. _ACEOF
  4428. if ac_fn_c_try_compile "$LINENO"; then :
  4429. gt_cv_header_inttypes_h=yes
  4430. else
  4431. gt_cv_header_inttypes_h=no
  4432. fi
  4433. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4434. fi
  4435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
  4436. $as_echo "$gt_cv_header_inttypes_h" >&6; }
  4437. if test $gt_cv_header_inttypes_h = yes; then
  4438. cat >>confdefs.h <<_ACEOF
  4439. #define HAVE_INTTYPES_H 1
  4440. _ACEOF
  4441. fi
  4442. if test $gt_cv_header_inttypes_h = yes; then
  4443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
  4444. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  4445. if ${gt_cv_inttypes_pri_broken+:} false; then :
  4446. $as_echo_n "(cached) " >&6
  4447. else
  4448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4449. /* end confdefs.h. */
  4450. #include <inttypes.h>
  4451. #ifdef PRId32
  4452. char *p = PRId32;
  4453. #endif
  4454. int
  4455. main ()
  4456. {
  4457. ;
  4458. return 0;
  4459. }
  4460. _ACEOF
  4461. if ac_fn_c_try_compile "$LINENO"; then :
  4462. gt_cv_inttypes_pri_broken=no
  4463. else
  4464. gt_cv_inttypes_pri_broken=yes
  4465. fi
  4466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4467. fi
  4468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
  4469. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  4470. fi
  4471. if test "$gt_cv_inttypes_pri_broken" = yes; then
  4472. cat >>confdefs.h <<_ACEOF
  4473. #define PRI_MACROS_BROKEN 1
  4474. _ACEOF
  4475. fi
  4476. if test "X$prefix" = "XNONE"; then
  4477. acl_final_prefix="$ac_default_prefix"
  4478. else
  4479. acl_final_prefix="$prefix"
  4480. fi
  4481. if test "X$exec_prefix" = "XNONE"; then
  4482. acl_final_exec_prefix='${prefix}'
  4483. else
  4484. acl_final_exec_prefix="$exec_prefix"
  4485. fi
  4486. acl_save_prefix="$prefix"
  4487. prefix="$acl_final_prefix"
  4488. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  4489. prefix="$acl_save_prefix"
  4490. # Check whether --with-gnu-ld was given.
  4491. if test "${with_gnu_ld+set}" = set; then :
  4492. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4493. else
  4494. with_gnu_ld=no
  4495. fi
  4496. # Prepare PATH_SEPARATOR.
  4497. # The user is always right.
  4498. if test "${PATH_SEPARATOR+set}" != set; then
  4499. echo "#! /bin/sh" >conf$$.sh
  4500. echo "exit 0" >>conf$$.sh
  4501. chmod +x conf$$.sh
  4502. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4503. PATH_SEPARATOR=';'
  4504. else
  4505. PATH_SEPARATOR=:
  4506. fi
  4507. rm -f conf$$.sh
  4508. fi
  4509. ac_prog=ld
  4510. if test "$GCC" = yes; then
  4511. # Check if gcc -print-prog-name=ld gives a path.
  4512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  4513. $as_echo_n "checking for ld used by GCC... " >&6; }
  4514. case $host in
  4515. *-*-mingw*)
  4516. # gcc leaves a trailing carriage return which upsets mingw
  4517. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4518. *)
  4519. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4520. esac
  4521. case $ac_prog in
  4522. # Accept absolute paths.
  4523. [\\/]* | [A-Za-z]:[\\/]*)
  4524. re_direlt='/[^/][^/]*/\.\./'
  4525. # Canonicalize the path of ld
  4526. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  4527. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  4528. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  4529. done
  4530. test -z "$LD" && LD="$ac_prog"
  4531. ;;
  4532. "")
  4533. # If it fails, then pretend we aren't using GCC.
  4534. ac_prog=ld
  4535. ;;
  4536. *)
  4537. # If it is relative, then search for the first ld in PATH.
  4538. with_gnu_ld=unknown
  4539. ;;
  4540. esac
  4541. elif test "$with_gnu_ld" = yes; then
  4542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4543. $as_echo_n "checking for GNU ld... " >&6; }
  4544. else
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4546. $as_echo_n "checking for non-GNU ld... " >&6; }
  4547. fi
  4548. if ${acl_cv_path_LD+:} false; then :
  4549. $as_echo_n "(cached) " >&6
  4550. else
  4551. if test -z "$LD"; then
  4552. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  4553. for ac_dir in $PATH; do
  4554. test -z "$ac_dir" && ac_dir=.
  4555. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4556. acl_cv_path_LD="$ac_dir/$ac_prog"
  4557. # Check to see if the program is GNU ld. I'd rather use --version,
  4558. # but apparently some GNU ld's only accept -v.
  4559. # Break only if it was the GNU/non-GNU ld that we prefer.
  4560. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  4561. test "$with_gnu_ld" != no && break
  4562. else
  4563. test "$with_gnu_ld" != yes && break
  4564. fi
  4565. fi
  4566. done
  4567. IFS="$ac_save_ifs"
  4568. else
  4569. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  4570. fi
  4571. fi
  4572. LD="$acl_cv_path_LD"
  4573. if test -n "$LD"; then
  4574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4575. $as_echo "$LD" >&6; }
  4576. else
  4577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4578. $as_echo "no" >&6; }
  4579. fi
  4580. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4582. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4583. if ${acl_cv_prog_gnu_ld+:} false; then :
  4584. $as_echo_n "(cached) " >&6
  4585. else
  4586. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  4587. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  4588. acl_cv_prog_gnu_ld=yes
  4589. else
  4590. acl_cv_prog_gnu_ld=no
  4591. fi
  4592. fi
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  4594. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  4595. with_gnu_ld=$acl_cv_prog_gnu_ld
  4596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  4597. $as_echo_n "checking for shared library run path origin... " >&6; }
  4598. if ${acl_cv_rpath+:} false; then :
  4599. $as_echo_n "(cached) " >&6
  4600. else
  4601. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  4602. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  4603. . ./conftest.sh
  4604. rm -f ./conftest.sh
  4605. acl_cv_rpath=done
  4606. fi
  4607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  4608. $as_echo "$acl_cv_rpath" >&6; }
  4609. wl="$acl_cv_wl"
  4610. libext="$acl_cv_libext"
  4611. shlibext="$acl_cv_shlibext"
  4612. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  4613. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  4614. hardcode_direct="$acl_cv_hardcode_direct"
  4615. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  4616. # Check whether --enable-rpath was given.
  4617. if test "${enable_rpath+set}" = set; then :
  4618. enableval=$enable_rpath; :
  4619. else
  4620. enable_rpath=yes
  4621. fi
  4622. use_additional=yes
  4623. acl_save_prefix="$prefix"
  4624. prefix="$acl_final_prefix"
  4625. acl_save_exec_prefix="$exec_prefix"
  4626. exec_prefix="$acl_final_exec_prefix"
  4627. eval additional_includedir=\"$includedir\"
  4628. eval additional_libdir=\"$libdir\"
  4629. exec_prefix="$acl_save_exec_prefix"
  4630. prefix="$acl_save_prefix"
  4631. # Check whether --with-libiconv-prefix was given.
  4632. if test "${with_libiconv_prefix+set}" = set; then :
  4633. withval=$with_libiconv_prefix;
  4634. if test "X$withval" = "Xno"; then
  4635. use_additional=no
  4636. else
  4637. if test "X$withval" = "X"; then
  4638. acl_save_prefix="$prefix"
  4639. prefix="$acl_final_prefix"
  4640. acl_save_exec_prefix="$exec_prefix"
  4641. exec_prefix="$acl_final_exec_prefix"
  4642. eval additional_includedir=\"$includedir\"
  4643. eval additional_libdir=\"$libdir\"
  4644. exec_prefix="$acl_save_exec_prefix"
  4645. prefix="$acl_save_prefix"
  4646. else
  4647. additional_includedir="$withval/include"
  4648. additional_libdir="$withval/lib"
  4649. fi
  4650. fi
  4651. fi
  4652. # Check whether --with-libiconv-type was given.
  4653. if test "${with_libiconv_type+set}" = set; then :
  4654. withval=$with_libiconv_type; with_libiconv_type=$withval
  4655. else
  4656. with_libiconv_type=auto
  4657. fi
  4658. lib_type=`eval echo \$with_libiconv_type`
  4659. LIBICONV=
  4660. LTLIBICONV=
  4661. INCICONV=
  4662. rpathdirs=
  4663. ltrpathdirs=
  4664. names_already_handled=
  4665. names_next_round='iconv '
  4666. while test -n "$names_next_round"; do
  4667. names_this_round="$names_next_round"
  4668. names_next_round=
  4669. for name in $names_this_round; do
  4670. already_handled=
  4671. for n in $names_already_handled; do
  4672. if test "$n" = "$name"; then
  4673. already_handled=yes
  4674. break
  4675. fi
  4676. done
  4677. if test -z "$already_handled"; then
  4678. names_already_handled="$names_already_handled $name"
  4679. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  4680. eval value=\"\$HAVE_LIB$uppername\"
  4681. if test -n "$value"; then
  4682. if test "$value" = yes; then
  4683. eval value=\"\$LIB$uppername\"
  4684. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  4685. eval value=\"\$LTLIB$uppername\"
  4686. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  4687. else
  4688. :
  4689. fi
  4690. else
  4691. found_dir=
  4692. found_la=
  4693. found_so=
  4694. found_a=
  4695. if test $use_additional = yes; then
  4696. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  4697. found_dir="$additional_libdir"
  4698. found_so="$additional_libdir/lib$name.$shlibext"
  4699. if test -f "$additional_libdir/lib$name.la"; then
  4700. found_la="$additional_libdir/lib$name.la"
  4701. fi
  4702. elif test x$lib_type != xshared; then
  4703. if test -f "$additional_libdir/lib$name.$libext"; then
  4704. found_dir="$additional_libdir"
  4705. found_a="$additional_libdir/lib$name.$libext"
  4706. if test -f "$additional_libdir/lib$name.la"; then
  4707. found_la="$additional_libdir/lib$name.la"
  4708. fi
  4709. fi
  4710. fi
  4711. fi
  4712. if test "X$found_dir" = "X"; then
  4713. for x in $LDFLAGS $LTLIBICONV; do
  4714. acl_save_prefix="$prefix"
  4715. prefix="$acl_final_prefix"
  4716. acl_save_exec_prefix="$exec_prefix"
  4717. exec_prefix="$acl_final_exec_prefix"
  4718. eval x=\"$x\"
  4719. exec_prefix="$acl_save_exec_prefix"
  4720. prefix="$acl_save_prefix"
  4721. case "$x" in
  4722. -L*)
  4723. dir=`echo "X$x" | sed -e 's/^X-L//'`
  4724. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  4725. found_dir="$dir"
  4726. found_so="$dir/lib$name.$shlibext"
  4727. if test -f "$dir/lib$name.la"; then
  4728. found_la="$dir/lib$name.la"
  4729. fi
  4730. elif test x$lib_type != xshared; then
  4731. if test -f "$dir/lib$name.$libext"; then
  4732. found_dir="$dir"
  4733. found_a="$dir/lib$name.$libext"
  4734. if test -f "$dir/lib$name.la"; then
  4735. found_la="$dir/lib$name.la"
  4736. fi
  4737. fi
  4738. fi
  4739. ;;
  4740. esac
  4741. if test "X$found_dir" != "X"; then
  4742. break
  4743. fi
  4744. done
  4745. fi
  4746. if test "X$found_dir" != "X"; then
  4747. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  4748. if test "X$found_so" != "X"; then
  4749. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  4750. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  4751. else
  4752. haveit=
  4753. for x in $ltrpathdirs; do
  4754. if test "X$x" = "X$found_dir"; then
  4755. haveit=yes
  4756. break
  4757. fi
  4758. done
  4759. if test -z "$haveit"; then
  4760. ltrpathdirs="$ltrpathdirs $found_dir"
  4761. fi
  4762. if test "$hardcode_direct" = yes; then
  4763. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  4764. else
  4765. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  4766. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  4767. haveit=
  4768. for x in $rpathdirs; do
  4769. if test "X$x" = "X$found_dir"; then
  4770. haveit=yes
  4771. break
  4772. fi
  4773. done
  4774. if test -z "$haveit"; then
  4775. rpathdirs="$rpathdirs $found_dir"
  4776. fi
  4777. else
  4778. haveit=
  4779. for x in $LDFLAGS $LIBICONV; do
  4780. acl_save_prefix="$prefix"
  4781. prefix="$acl_final_prefix"
  4782. acl_save_exec_prefix="$exec_prefix"
  4783. exec_prefix="$acl_final_exec_prefix"
  4784. eval x=\"$x\"
  4785. exec_prefix="$acl_save_exec_prefix"
  4786. prefix="$acl_save_prefix"
  4787. if test "X$x" = "X-L$found_dir"; then
  4788. haveit=yes
  4789. break
  4790. fi
  4791. done
  4792. if test -z "$haveit"; then
  4793. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  4794. fi
  4795. if test "$hardcode_minus_L" != no; then
  4796. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  4797. else
  4798. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  4799. fi
  4800. fi
  4801. fi
  4802. fi
  4803. else
  4804. if test "X$found_a" != "X"; then
  4805. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  4806. else
  4807. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  4808. fi
  4809. fi
  4810. additional_includedir=
  4811. case "$found_dir" in
  4812. */lib | */lib/)
  4813. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  4814. additional_includedir="$basedir/include"
  4815. ;;
  4816. esac
  4817. if test "X$additional_includedir" != "X"; then
  4818. if test "X$additional_includedir" != "X/usr/include"; then
  4819. haveit=
  4820. if test "X$additional_includedir" = "X/usr/local/include"; then
  4821. if test -n "$GCC"; then
  4822. case $host_os in
  4823. linux*) haveit=yes;;
  4824. esac
  4825. fi
  4826. fi
  4827. if test -z "$haveit"; then
  4828. for x in $CPPFLAGS $INCICONV; do
  4829. acl_save_prefix="$prefix"
  4830. prefix="$acl_final_prefix"
  4831. acl_save_exec_prefix="$exec_prefix"
  4832. exec_prefix="$acl_final_exec_prefix"
  4833. eval x=\"$x\"
  4834. exec_prefix="$acl_save_exec_prefix"
  4835. prefix="$acl_save_prefix"
  4836. if test "X$x" = "X-I$additional_includedir"; then
  4837. haveit=yes
  4838. break
  4839. fi
  4840. done
  4841. if test -z "$haveit"; then
  4842. if test -d "$additional_includedir"; then
  4843. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  4844. fi
  4845. fi
  4846. fi
  4847. fi
  4848. fi
  4849. if test -n "$found_la"; then
  4850. save_libdir="$libdir"
  4851. case "$found_la" in
  4852. */* | *\\*) . "$found_la" ;;
  4853. *) . "./$found_la" ;;
  4854. esac
  4855. libdir="$save_libdir"
  4856. for dep in $dependency_libs; do
  4857. case "$dep" in
  4858. -L*)
  4859. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  4860. if test "X$additional_libdir" != "X/usr/lib"; then
  4861. haveit=
  4862. if test "X$additional_libdir" = "X/usr/local/lib"; then
  4863. if test -n "$GCC"; then
  4864. case $host_os in
  4865. linux*) haveit=yes;;
  4866. esac
  4867. fi
  4868. fi
  4869. if test -z "$haveit"; then
  4870. haveit=
  4871. for x in $LDFLAGS $LIBICONV; do
  4872. acl_save_prefix="$prefix"
  4873. prefix="$acl_final_prefix"
  4874. acl_save_exec_prefix="$exec_prefix"
  4875. exec_prefix="$acl_final_exec_prefix"
  4876. eval x=\"$x\"
  4877. exec_prefix="$acl_save_exec_prefix"
  4878. prefix="$acl_save_prefix"
  4879. if test "X$x" = "X-L$additional_libdir"; then
  4880. haveit=yes
  4881. break
  4882. fi
  4883. done
  4884. if test -z "$haveit"; then
  4885. if test -d "$additional_libdir"; then
  4886. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  4887. fi
  4888. fi
  4889. haveit=
  4890. for x in $LDFLAGS $LTLIBICONV; do
  4891. acl_save_prefix="$prefix"
  4892. prefix="$acl_final_prefix"
  4893. acl_save_exec_prefix="$exec_prefix"
  4894. exec_prefix="$acl_final_exec_prefix"
  4895. eval x=\"$x\"
  4896. exec_prefix="$acl_save_exec_prefix"
  4897. prefix="$acl_save_prefix"
  4898. if test "X$x" = "X-L$additional_libdir"; then
  4899. haveit=yes
  4900. break
  4901. fi
  4902. done
  4903. if test -z "$haveit"; then
  4904. if test -d "$additional_libdir"; then
  4905. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  4906. fi
  4907. fi
  4908. fi
  4909. fi
  4910. ;;
  4911. -R*)
  4912. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  4913. if test "$enable_rpath" != no; then
  4914. haveit=
  4915. for x in $rpathdirs; do
  4916. if test "X$x" = "X$dir"; then
  4917. haveit=yes
  4918. break
  4919. fi
  4920. done
  4921. if test -z "$haveit"; then
  4922. rpathdirs="$rpathdirs $dir"
  4923. fi
  4924. haveit=
  4925. for x in $ltrpathdirs; do
  4926. if test "X$x" = "X$dir"; then
  4927. haveit=yes
  4928. break
  4929. fi
  4930. done
  4931. if test -z "$haveit"; then
  4932. ltrpathdirs="$ltrpathdirs $dir"
  4933. fi
  4934. fi
  4935. ;;
  4936. -l*)
  4937. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  4938. ;;
  4939. *.la)
  4940. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  4941. ;;
  4942. *)
  4943. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  4944. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  4945. ;;
  4946. esac
  4947. done
  4948. fi
  4949. else
  4950. if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
  4951. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  4952. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  4953. else
  4954. LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
  4955. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
  4956. fi
  4957. fi
  4958. fi
  4959. fi
  4960. done
  4961. done
  4962. if test "X$rpathdirs" != "X"; then
  4963. if test -n "$hardcode_libdir_separator"; then
  4964. alldirs=
  4965. for found_dir in $rpathdirs; do
  4966. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  4967. done
  4968. acl_save_libdir="$libdir"
  4969. libdir="$alldirs"
  4970. eval flag=\"$hardcode_libdir_flag_spec\"
  4971. libdir="$acl_save_libdir"
  4972. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  4973. else
  4974. for found_dir in $rpathdirs; do
  4975. acl_save_libdir="$libdir"
  4976. libdir="$found_dir"
  4977. eval flag=\"$hardcode_libdir_flag_spec\"
  4978. libdir="$acl_save_libdir"
  4979. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  4980. done
  4981. fi
  4982. fi
  4983. if test "X$ltrpathdirs" != "X"; then
  4984. for found_dir in $ltrpathdirs; do
  4985. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  4986. done
  4987. fi
  4988. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  4989. stdlib.h string.h unistd.h sys/param.h
  4990. do :
  4991. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4992. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4993. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4994. cat >>confdefs.h <<_ACEOF
  4995. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4996. _ACEOF
  4997. fi
  4998. done
  4999. for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
  5000. geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
  5001. strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
  5002. __fsetlocking
  5003. do :
  5004. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5005. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5006. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5007. cat >>confdefs.h <<_ACEOF
  5008. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5009. _ACEOF
  5010. fi
  5011. done
  5012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  5013. $as_echo_n "checking for iconv... " >&6; }
  5014. if ${am_cv_func_iconv+:} false; then :
  5015. $as_echo_n "(cached) " >&6
  5016. else
  5017. am_cv_func_iconv="no, consider installing GNU libiconv"
  5018. am_cv_lib_iconv=no
  5019. am_save_CPPFLAGS="$CPPFLAGS"
  5020. CPPFLAGS="$CPPFLAGS $INCICONV"
  5021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5022. /* end confdefs.h. */
  5023. #include <stdlib.h>
  5024. #include <iconv.h>
  5025. int
  5026. main ()
  5027. {
  5028. iconv_t cd = iconv_open("","");
  5029. iconv(cd,NULL,NULL,NULL,NULL);
  5030. iconv_close(cd);
  5031. ;
  5032. return 0;
  5033. }
  5034. _ACEOF
  5035. if ac_fn_c_try_link "$LINENO"; then :
  5036. am_cv_func_iconv=yes
  5037. fi
  5038. rm -f core conftest.err conftest.$ac_objext \
  5039. conftest$ac_exeext conftest.$ac_ext
  5040. CPPFLAGS="$am_save_CPPFLAGS"
  5041. if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
  5042. for _libs in .libs _libs; do
  5043. am_save_CPPFLAGS="$CPPFLAGS"
  5044. am_save_LIBS="$LIBS"
  5045. CPPFLAGS="$CPPFLAGS -I../libiconv/include"
  5046. LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
  5047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5048. /* end confdefs.h. */
  5049. #include <stdlib.h>
  5050. #include <iconv.h>
  5051. int
  5052. main ()
  5053. {
  5054. iconv_t cd = iconv_open("","");
  5055. iconv(cd,NULL,NULL,NULL,NULL);
  5056. iconv_close(cd);
  5057. ;
  5058. return 0;
  5059. }
  5060. _ACEOF
  5061. if ac_fn_c_try_link "$LINENO"; then :
  5062. INCICONV="-I../libiconv/include"
  5063. LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
  5064. LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
  5065. am_cv_lib_iconv=yes
  5066. am_cv_func_iconv=yes
  5067. fi
  5068. rm -f core conftest.err conftest.$ac_objext \
  5069. conftest$ac_exeext conftest.$ac_ext
  5070. CPPFLAGS="$am_save_CPPFLAGS"
  5071. LIBS="$am_save_LIBS"
  5072. if test "$am_cv_func_iconv" = "yes"; then
  5073. break
  5074. fi
  5075. done
  5076. fi
  5077. if test "$am_cv_func_iconv" != yes; then
  5078. am_save_CPPFLAGS="$CPPFLAGS"
  5079. am_save_LIBS="$LIBS"
  5080. CPPFLAGS="$CPPFLAGS $INCICONV"
  5081. LIBS="$LIBS $LIBICONV"
  5082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5083. /* end confdefs.h. */
  5084. #include <stdlib.h>
  5085. #include <iconv.h>
  5086. int
  5087. main ()
  5088. {
  5089. iconv_t cd = iconv_open("","");
  5090. iconv(cd,NULL,NULL,NULL,NULL);
  5091. iconv_close(cd);
  5092. ;
  5093. return 0;
  5094. }
  5095. _ACEOF
  5096. if ac_fn_c_try_link "$LINENO"; then :
  5097. am_cv_lib_iconv=yes
  5098. am_cv_func_iconv=yes
  5099. fi
  5100. rm -f core conftest.err conftest.$ac_objext \
  5101. conftest$ac_exeext conftest.$ac_ext
  5102. CPPFLAGS="$am_save_CPPFLAGS"
  5103. LIBS="$am_save_LIBS"
  5104. fi
  5105. fi
  5106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  5107. $as_echo "$am_cv_func_iconv" >&6; }
  5108. if test "$am_cv_func_iconv" = yes; then
  5109. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  5110. fi
  5111. if test "$am_cv_lib_iconv" = yes; then
  5112. for element in $INCICONV; do
  5113. haveit=
  5114. for x in $CPPFLAGS; do
  5115. acl_save_prefix="$prefix"
  5116. prefix="$acl_final_prefix"
  5117. acl_save_exec_prefix="$exec_prefix"
  5118. exec_prefix="$acl_final_exec_prefix"
  5119. eval x=\"$x\"
  5120. exec_prefix="$acl_save_exec_prefix"
  5121. prefix="$acl_save_prefix"
  5122. if test "X$x" = "X$element"; then
  5123. haveit=yes
  5124. break
  5125. fi
  5126. done
  5127. if test -z "$haveit"; then
  5128. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  5129. fi
  5130. done
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  5132. $as_echo_n "checking how to link with libiconv... " >&6; }
  5133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  5134. $as_echo "$LIBICONV" >&6; }
  5135. else
  5136. LIBICONV=
  5137. LTLIBICONV=
  5138. fi
  5139. if test "$am_cv_func_iconv" = yes; then
  5140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  5141. $as_echo_n "checking for iconv declaration... " >&6; }
  5142. if ${am_cv_proto_iconv+:} false; then :
  5143. $as_echo_n "(cached) " >&6
  5144. else
  5145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5146. /* end confdefs.h. */
  5147. #include <stdlib.h>
  5148. #include <iconv.h>
  5149. extern
  5150. #ifdef __cplusplus
  5151. "C"
  5152. #endif
  5153. #if defined(__STDC__) || defined(__cplusplus)
  5154. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  5155. #else
  5156. size_t iconv();
  5157. #endif
  5158. int
  5159. main ()
  5160. {
  5161. ;
  5162. return 0;
  5163. }
  5164. _ACEOF
  5165. if ac_fn_c_try_compile "$LINENO"; then :
  5166. am_cv_proto_iconv_arg1=""
  5167. else
  5168. am_cv_proto_iconv_arg1="const"
  5169. fi
  5170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5171. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  5172. fi
  5173. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  5174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  5175. }$am_cv_proto_iconv" >&5
  5176. $as_echo "${ac_t:-
  5177. }$am_cv_proto_iconv" >&6; }
  5178. cat >>confdefs.h <<_ACEOF
  5179. #define ICONV_CONST $am_cv_proto_iconv_arg1
  5180. _ACEOF
  5181. fi
  5182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  5183. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  5184. if ${am_cv_langinfo_codeset+:} false; then :
  5185. $as_echo_n "(cached) " >&6
  5186. else
  5187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5188. /* end confdefs.h. */
  5189. #include <langinfo.h>
  5190. int
  5191. main ()
  5192. {
  5193. char* cs = nl_langinfo(CODESET);
  5194. ;
  5195. return 0;
  5196. }
  5197. _ACEOF
  5198. if ac_fn_c_try_link "$LINENO"; then :
  5199. am_cv_langinfo_codeset=yes
  5200. else
  5201. am_cv_langinfo_codeset=no
  5202. fi
  5203. rm -f core conftest.err conftest.$ac_objext \
  5204. conftest$ac_exeext conftest.$ac_ext
  5205. fi
  5206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  5207. $as_echo "$am_cv_langinfo_codeset" >&6; }
  5208. if test $am_cv_langinfo_codeset = yes; then
  5209. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  5210. fi
  5211. if test $ac_cv_header_locale_h = yes; then
  5212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  5213. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  5214. if ${am_cv_val_LC_MESSAGES+:} false; then :
  5215. $as_echo_n "(cached) " >&6
  5216. else
  5217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5218. /* end confdefs.h. */
  5219. #include <locale.h>
  5220. int
  5221. main ()
  5222. {
  5223. return LC_MESSAGES
  5224. ;
  5225. return 0;
  5226. }
  5227. _ACEOF
  5228. if ac_fn_c_try_link "$LINENO"; then :
  5229. am_cv_val_LC_MESSAGES=yes
  5230. else
  5231. am_cv_val_LC_MESSAGES=no
  5232. fi
  5233. rm -f core conftest.err conftest.$ac_objext \
  5234. conftest$ac_exeext conftest.$ac_ext
  5235. fi
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
  5237. $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
  5238. if test $am_cv_val_LC_MESSAGES = yes; then
  5239. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  5240. fi
  5241. fi
  5242. for ac_prog in bison
  5243. do
  5244. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5245. set dummy $ac_prog; ac_word=$2
  5246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5247. $as_echo_n "checking for $ac_word... " >&6; }
  5248. if ${ac_cv_prog_INTLBISON+:} false; then :
  5249. $as_echo_n "(cached) " >&6
  5250. else
  5251. if test -n "$INTLBISON"; then
  5252. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  5253. else
  5254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5255. for as_dir in $PATH
  5256. do
  5257. IFS=$as_save_IFS
  5258. test -z "$as_dir" && as_dir=.
  5259. for ac_exec_ext in '' $ac_executable_extensions; do
  5260. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5261. ac_cv_prog_INTLBISON="$ac_prog"
  5262. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5263. break 2
  5264. fi
  5265. done
  5266. done
  5267. IFS=$as_save_IFS
  5268. fi
  5269. fi
  5270. INTLBISON=$ac_cv_prog_INTLBISON
  5271. if test -n "$INTLBISON"; then
  5272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
  5273. $as_echo "$INTLBISON" >&6; }
  5274. else
  5275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5276. $as_echo "no" >&6; }
  5277. fi
  5278. test -n "$INTLBISON" && break
  5279. done
  5280. if test -z "$INTLBISON"; then
  5281. ac_verc_fail=yes
  5282. else
  5283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
  5284. $as_echo_n "checking version of bison... " >&6; }
  5285. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  5286. case $ac_prog_version in
  5287. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  5288. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  5289. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  5290. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  5291. esac
  5292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  5293. $as_echo "$ac_prog_version" >&6; }
  5294. fi
  5295. if test $ac_verc_fail = yes; then
  5296. INTLBISON=:
  5297. fi
  5298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  5299. $as_echo_n "checking whether NLS is requested... " >&6; }
  5300. # Check whether --enable-nls was given.
  5301. if test "${enable_nls+set}" = set; then :
  5302. enableval=$enable_nls; USE_NLS=$enableval
  5303. else
  5304. USE_NLS=yes
  5305. fi
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  5307. $as_echo "$USE_NLS" >&6; }
  5308. BUILD_INCLUDED_LIBINTL=no
  5309. USE_INCLUDED_LIBINTL=no
  5310. LIBINTL=
  5311. LTLIBINTL=
  5312. POSUB=
  5313. if test "$USE_NLS" = "yes"; then
  5314. gt_use_preinstalled_gnugettext=no
  5315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
  5316. $as_echo_n "checking whether included gettext is requested... " >&6; }
  5317. # Check whether --with-included-gettext was given.
  5318. if test "${with_included_gettext+set}" = set; then :
  5319. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  5320. else
  5321. nls_cv_force_use_gnu_gettext=no
  5322. fi
  5323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
  5324. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  5325. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  5326. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  5327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  5328. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  5329. if ${gt_cv_func_gnugettext2_libc+:} false; then :
  5330. $as_echo_n "(cached) " >&6
  5331. else
  5332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5333. /* end confdefs.h. */
  5334. #include <libintl.h>
  5335. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  5336. extern int _nl_msg_cat_cntr;
  5337. extern int *_nl_domain_bindings;
  5338. #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
  5339. #else
  5340. #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
  5341. #endif
  5342. int
  5343. main ()
  5344. {
  5345. bindtextdomain ("", "");
  5346. return (int) gettext ("") + (int) ngettext ("", "", 0) + __GNU_GETTEXT_SYMBOL_EXPRESSION
  5347. ;
  5348. return 0;
  5349. }
  5350. _ACEOF
  5351. if ac_fn_c_try_link "$LINENO"; then :
  5352. gt_cv_func_gnugettext2_libc=yes
  5353. else
  5354. gt_cv_func_gnugettext2_libc=no
  5355. fi
  5356. rm -f core conftest.err conftest.$ac_objext \
  5357. conftest$ac_exeext conftest.$ac_ext
  5358. fi
  5359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
  5360. $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
  5361. if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
  5362. use_additional=yes
  5363. acl_save_prefix="$prefix"
  5364. prefix="$acl_final_prefix"
  5365. acl_save_exec_prefix="$exec_prefix"
  5366. exec_prefix="$acl_final_exec_prefix"
  5367. eval additional_includedir=\"$includedir\"
  5368. eval additional_libdir=\"$libdir\"
  5369. exec_prefix="$acl_save_exec_prefix"
  5370. prefix="$acl_save_prefix"
  5371. # Check whether --with-libintl-prefix was given.
  5372. if test "${with_libintl_prefix+set}" = set; then :
  5373. withval=$with_libintl_prefix;
  5374. if test "X$withval" = "Xno"; then
  5375. use_additional=no
  5376. else
  5377. if test "X$withval" = "X"; then
  5378. acl_save_prefix="$prefix"
  5379. prefix="$acl_final_prefix"
  5380. acl_save_exec_prefix="$exec_prefix"
  5381. exec_prefix="$acl_final_exec_prefix"
  5382. eval additional_includedir=\"$includedir\"
  5383. eval additional_libdir=\"$libdir\"
  5384. exec_prefix="$acl_save_exec_prefix"
  5385. prefix="$acl_save_prefix"
  5386. else
  5387. additional_includedir="$withval/include"
  5388. additional_libdir="$withval/lib"
  5389. fi
  5390. fi
  5391. fi
  5392. # Check whether --with-libintl-type was given.
  5393. if test "${with_libintl_type+set}" = set; then :
  5394. withval=$with_libintl_type; with_libintl_type=$withval
  5395. else
  5396. with_libintl_type=auto
  5397. fi
  5398. lib_type=`eval echo \$with_libintl_type`
  5399. LIBINTL=
  5400. LTLIBINTL=
  5401. INCINTL=
  5402. rpathdirs=
  5403. ltrpathdirs=
  5404. names_already_handled=
  5405. names_next_round='intl '
  5406. while test -n "$names_next_round"; do
  5407. names_this_round="$names_next_round"
  5408. names_next_round=
  5409. for name in $names_this_round; do
  5410. already_handled=
  5411. for n in $names_already_handled; do
  5412. if test "$n" = "$name"; then
  5413. already_handled=yes
  5414. break
  5415. fi
  5416. done
  5417. if test -z "$already_handled"; then
  5418. names_already_handled="$names_already_handled $name"
  5419. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  5420. eval value=\"\$HAVE_LIB$uppername\"
  5421. if test -n "$value"; then
  5422. if test "$value" = yes; then
  5423. eval value=\"\$LIB$uppername\"
  5424. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  5425. eval value=\"\$LTLIB$uppername\"
  5426. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  5427. else
  5428. :
  5429. fi
  5430. else
  5431. found_dir=
  5432. found_la=
  5433. found_so=
  5434. found_a=
  5435. if test $use_additional = yes; then
  5436. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  5437. found_dir="$additional_libdir"
  5438. found_so="$additional_libdir/lib$name.$shlibext"
  5439. if test -f "$additional_libdir/lib$name.la"; then
  5440. found_la="$additional_libdir/lib$name.la"
  5441. fi
  5442. elif test x$lib_type != xshared; then
  5443. if test -f "$additional_libdir/lib$name.$libext"; then
  5444. found_dir="$additional_libdir"
  5445. found_a="$additional_libdir/lib$name.$libext"
  5446. if test -f "$additional_libdir/lib$name.la"; then
  5447. found_la="$additional_libdir/lib$name.la"
  5448. fi
  5449. fi
  5450. fi
  5451. fi
  5452. if test "X$found_dir" = "X"; then
  5453. for x in $LDFLAGS $LTLIBINTL; do
  5454. acl_save_prefix="$prefix"
  5455. prefix="$acl_final_prefix"
  5456. acl_save_exec_prefix="$exec_prefix"
  5457. exec_prefix="$acl_final_exec_prefix"
  5458. eval x=\"$x\"
  5459. exec_prefix="$acl_save_exec_prefix"
  5460. prefix="$acl_save_prefix"
  5461. case "$x" in
  5462. -L*)
  5463. dir=`echo "X$x" | sed -e 's/^X-L//'`
  5464. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  5465. found_dir="$dir"
  5466. found_so="$dir/lib$name.$shlibext"
  5467. if test -f "$dir/lib$name.la"; then
  5468. found_la="$dir/lib$name.la"
  5469. fi
  5470. elif test x$lib_type != xshared; then
  5471. if test -f "$dir/lib$name.$libext"; then
  5472. found_dir="$dir"
  5473. found_a="$dir/lib$name.$libext"
  5474. if test -f "$dir/lib$name.la"; then
  5475. found_la="$dir/lib$name.la"
  5476. fi
  5477. fi
  5478. fi
  5479. ;;
  5480. esac
  5481. if test "X$found_dir" != "X"; then
  5482. break
  5483. fi
  5484. done
  5485. fi
  5486. if test "X$found_dir" != "X"; then
  5487. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  5488. if test "X$found_so" != "X"; then
  5489. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  5490. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  5491. else
  5492. haveit=
  5493. for x in $ltrpathdirs; do
  5494. if test "X$x" = "X$found_dir"; then
  5495. haveit=yes
  5496. break
  5497. fi
  5498. done
  5499. if test -z "$haveit"; then
  5500. ltrpathdirs="$ltrpathdirs $found_dir"
  5501. fi
  5502. if test "$hardcode_direct" = yes; then
  5503. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  5504. else
  5505. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  5506. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  5507. haveit=
  5508. for x in $rpathdirs; do
  5509. if test "X$x" = "X$found_dir"; then
  5510. haveit=yes
  5511. break
  5512. fi
  5513. done
  5514. if test -z "$haveit"; then
  5515. rpathdirs="$rpathdirs $found_dir"
  5516. fi
  5517. else
  5518. haveit=
  5519. for x in $LDFLAGS $LIBINTL; do
  5520. acl_save_prefix="$prefix"
  5521. prefix="$acl_final_prefix"
  5522. acl_save_exec_prefix="$exec_prefix"
  5523. exec_prefix="$acl_final_exec_prefix"
  5524. eval x=\"$x\"
  5525. exec_prefix="$acl_save_exec_prefix"
  5526. prefix="$acl_save_prefix"
  5527. if test "X$x" = "X-L$found_dir"; then
  5528. haveit=yes
  5529. break
  5530. fi
  5531. done
  5532. if test -z "$haveit"; then
  5533. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  5534. fi
  5535. if test "$hardcode_minus_L" != no; then
  5536. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  5537. else
  5538. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  5539. fi
  5540. fi
  5541. fi
  5542. fi
  5543. else
  5544. if test "X$found_a" != "X"; then
  5545. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  5546. else
  5547. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  5548. fi
  5549. fi
  5550. additional_includedir=
  5551. case "$found_dir" in
  5552. */lib | */lib/)
  5553. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  5554. additional_includedir="$basedir/include"
  5555. ;;
  5556. esac
  5557. if test "X$additional_includedir" != "X"; then
  5558. if test "X$additional_includedir" != "X/usr/include"; then
  5559. haveit=
  5560. if test "X$additional_includedir" = "X/usr/local/include"; then
  5561. if test -n "$GCC"; then
  5562. case $host_os in
  5563. linux*) haveit=yes;;
  5564. esac
  5565. fi
  5566. fi
  5567. if test -z "$haveit"; then
  5568. for x in $CPPFLAGS $INCINTL; do
  5569. acl_save_prefix="$prefix"
  5570. prefix="$acl_final_prefix"
  5571. acl_save_exec_prefix="$exec_prefix"
  5572. exec_prefix="$acl_final_exec_prefix"
  5573. eval x=\"$x\"
  5574. exec_prefix="$acl_save_exec_prefix"
  5575. prefix="$acl_save_prefix"
  5576. if test "X$x" = "X-I$additional_includedir"; then
  5577. haveit=yes
  5578. break
  5579. fi
  5580. done
  5581. if test -z "$haveit"; then
  5582. if test -d "$additional_includedir"; then
  5583. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  5584. fi
  5585. fi
  5586. fi
  5587. fi
  5588. fi
  5589. if test -n "$found_la"; then
  5590. save_libdir="$libdir"
  5591. case "$found_la" in
  5592. */* | *\\*) . "$found_la" ;;
  5593. *) . "./$found_la" ;;
  5594. esac
  5595. libdir="$save_libdir"
  5596. for dep in $dependency_libs; do
  5597. case "$dep" in
  5598. -L*)
  5599. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  5600. if test "X$additional_libdir" != "X/usr/lib"; then
  5601. haveit=
  5602. if test "X$additional_libdir" = "X/usr/local/lib"; then
  5603. if test -n "$GCC"; then
  5604. case $host_os in
  5605. linux*) haveit=yes;;
  5606. esac
  5607. fi
  5608. fi
  5609. if test -z "$haveit"; then
  5610. haveit=
  5611. for x in $LDFLAGS $LIBINTL; do
  5612. acl_save_prefix="$prefix"
  5613. prefix="$acl_final_prefix"
  5614. acl_save_exec_prefix="$exec_prefix"
  5615. exec_prefix="$acl_final_exec_prefix"
  5616. eval x=\"$x\"
  5617. exec_prefix="$acl_save_exec_prefix"
  5618. prefix="$acl_save_prefix"
  5619. if test "X$x" = "X-L$additional_libdir"; then
  5620. haveit=yes
  5621. break
  5622. fi
  5623. done
  5624. if test -z "$haveit"; then
  5625. if test -d "$additional_libdir"; then
  5626. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  5627. fi
  5628. fi
  5629. haveit=
  5630. for x in $LDFLAGS $LTLIBINTL; do
  5631. acl_save_prefix="$prefix"
  5632. prefix="$acl_final_prefix"
  5633. acl_save_exec_prefix="$exec_prefix"
  5634. exec_prefix="$acl_final_exec_prefix"
  5635. eval x=\"$x\"
  5636. exec_prefix="$acl_save_exec_prefix"
  5637. prefix="$acl_save_prefix"
  5638. if test "X$x" = "X-L$additional_libdir"; then
  5639. haveit=yes
  5640. break
  5641. fi
  5642. done
  5643. if test -z "$haveit"; then
  5644. if test -d "$additional_libdir"; then
  5645. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  5646. fi
  5647. fi
  5648. fi
  5649. fi
  5650. ;;
  5651. -R*)
  5652. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  5653. if test "$enable_rpath" != no; then
  5654. haveit=
  5655. for x in $rpathdirs; do
  5656. if test "X$x" = "X$dir"; then
  5657. haveit=yes
  5658. break
  5659. fi
  5660. done
  5661. if test -z "$haveit"; then
  5662. rpathdirs="$rpathdirs $dir"
  5663. fi
  5664. haveit=
  5665. for x in $ltrpathdirs; do
  5666. if test "X$x" = "X$dir"; then
  5667. haveit=yes
  5668. break
  5669. fi
  5670. done
  5671. if test -z "$haveit"; then
  5672. ltrpathdirs="$ltrpathdirs $dir"
  5673. fi
  5674. fi
  5675. ;;
  5676. -l*)
  5677. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  5678. ;;
  5679. *.la)
  5680. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  5681. ;;
  5682. *)
  5683. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  5684. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  5685. ;;
  5686. esac
  5687. done
  5688. fi
  5689. else
  5690. if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
  5691. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  5692. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  5693. else
  5694. LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
  5695. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
  5696. fi
  5697. fi
  5698. fi
  5699. fi
  5700. done
  5701. done
  5702. if test "X$rpathdirs" != "X"; then
  5703. if test -n "$hardcode_libdir_separator"; then
  5704. alldirs=
  5705. for found_dir in $rpathdirs; do
  5706. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  5707. done
  5708. acl_save_libdir="$libdir"
  5709. libdir="$alldirs"
  5710. eval flag=\"$hardcode_libdir_flag_spec\"
  5711. libdir="$acl_save_libdir"
  5712. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  5713. else
  5714. for found_dir in $rpathdirs; do
  5715. acl_save_libdir="$libdir"
  5716. libdir="$found_dir"
  5717. eval flag=\"$hardcode_libdir_flag_spec\"
  5718. libdir="$acl_save_libdir"
  5719. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  5720. done
  5721. fi
  5722. fi
  5723. if test "X$ltrpathdirs" != "X"; then
  5724. for found_dir in $ltrpathdirs; do
  5725. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  5726. done
  5727. fi
  5728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  5729. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  5730. if ${gt_cv_func_gnugettext2_libintl+:} false; then :
  5731. $as_echo_n "(cached) " >&6
  5732. else
  5733. gt_save_CPPFLAGS="$CPPFLAGS"
  5734. CPPFLAGS="$CPPFLAGS $INCINTL"
  5735. gt_save_LIBS="$LIBS"
  5736. LIBS="$LIBS $LIBINTL"
  5737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5738. /* end confdefs.h. */
  5739. #include <libintl.h>
  5740. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  5741. extern int _nl_msg_cat_cntr;
  5742. extern
  5743. #ifdef __cplusplus
  5744. "C"
  5745. #endif
  5746. const char *_nl_expand_alias ();
  5747. #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (0))
  5748. #else
  5749. #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
  5750. #endif
  5751. int
  5752. main ()
  5753. {
  5754. bindtextdomain ("", "");
  5755. return (int) gettext ("") + (int) ngettext ("", "", 0) + __GNU_GETTEXT_SYMBOL_EXPRESSION
  5756. ;
  5757. return 0;
  5758. }
  5759. _ACEOF
  5760. if ac_fn_c_try_link "$LINENO"; then :
  5761. gt_cv_func_gnugettext2_libintl=yes
  5762. else
  5763. gt_cv_func_gnugettext2_libintl=no
  5764. fi
  5765. rm -f core conftest.err conftest.$ac_objext \
  5766. conftest$ac_exeext conftest.$ac_ext
  5767. if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
  5768. LIBS="$LIBS $LIBICONV"
  5769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5770. /* end confdefs.h. */
  5771. #include <libintl.h>
  5772. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  5773. extern int _nl_msg_cat_cntr;
  5774. extern
  5775. #ifdef __cplusplus
  5776. "C"
  5777. #endif
  5778. const char *_nl_expand_alias ();
  5779. #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (0))
  5780. #else
  5781. #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
  5782. #endif
  5783. int
  5784. main ()
  5785. {
  5786. bindtextdomain ("", "");
  5787. return (int) gettext ("") + (int) ngettext ("", "", 0) + __GNU_GETTEXT_SYMBOL_EXPRESSION
  5788. ;
  5789. return 0;
  5790. }
  5791. _ACEOF
  5792. if ac_fn_c_try_link "$LINENO"; then :
  5793. LIBINTL="$LIBINTL $LIBICONV"
  5794. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  5795. gt_cv_func_gnugettext2_libintl=yes
  5796. fi
  5797. rm -f core conftest.err conftest.$ac_objext \
  5798. conftest$ac_exeext conftest.$ac_ext
  5799. fi
  5800. CPPFLAGS="$gt_save_CPPFLAGS"
  5801. LIBS="$gt_save_LIBS"
  5802. fi
  5803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
  5804. $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
  5805. fi
  5806. if test "$gt_cv_func_gnugettext2_libc" = "yes" \
  5807. || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
  5808. && test "$PACKAGE" != gettext-runtime \
  5809. && test "$PACKAGE" != gettext-tools; }; then
  5810. gt_use_preinstalled_gnugettext=yes
  5811. else
  5812. LIBINTL=
  5813. LTLIBINTL=
  5814. INCINTL=
  5815. fi
  5816. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  5817. nls_cv_use_gnu_gettext=yes
  5818. fi
  5819. fi
  5820. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  5821. BUILD_INCLUDED_LIBINTL=yes
  5822. USE_INCLUDED_LIBINTL=yes
  5823. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  5824. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  5825. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  5826. fi
  5827. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  5828. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  5829. CATOBJEXT=.gmo
  5830. fi
  5831. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  5832. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  5833. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  5834. else
  5835. USE_NLS=no
  5836. fi
  5837. fi
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  5839. $as_echo_n "checking whether to use NLS... " >&6; }
  5840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  5841. $as_echo "$USE_NLS" >&6; }
  5842. if test "$USE_NLS" = "yes"; then
  5843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  5844. $as_echo_n "checking where the gettext function comes from... " >&6; }
  5845. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  5846. if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
  5847. gt_source="external libintl"
  5848. else
  5849. gt_source="libc"
  5850. fi
  5851. else
  5852. gt_source="included intl directory"
  5853. fi
  5854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  5855. $as_echo "$gt_source" >&6; }
  5856. fi
  5857. if test "$USE_NLS" = "yes"; then
  5858. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  5859. if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
  5860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  5861. $as_echo_n "checking how to link with libintl... " >&6; }
  5862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  5863. $as_echo "$LIBINTL" >&6; }
  5864. for element in $INCINTL; do
  5865. haveit=
  5866. for x in $CPPFLAGS; do
  5867. acl_save_prefix="$prefix"
  5868. prefix="$acl_final_prefix"
  5869. acl_save_exec_prefix="$exec_prefix"
  5870. exec_prefix="$acl_final_exec_prefix"
  5871. eval x=\"$x\"
  5872. exec_prefix="$acl_save_exec_prefix"
  5873. prefix="$acl_save_prefix"
  5874. if test "X$x" = "X$element"; then
  5875. haveit=yes
  5876. break
  5877. fi
  5878. done
  5879. if test -z "$haveit"; then
  5880. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  5881. fi
  5882. done
  5883. fi
  5884. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  5885. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  5886. fi
  5887. POSUB=po
  5888. fi
  5889. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  5890. BUILD_INCLUDED_LIBINTL=yes
  5891. fi
  5892. nls_cv_header_intl=
  5893. nls_cv_header_libgt=
  5894. DATADIRNAME=share
  5895. INSTOBJEXT=.mo
  5896. GENCAT=gencat
  5897. if test "$USE_INCLUDED_LIBINTL" = yes; then
  5898. INTLOBJS="\$(GETTOBJS)"
  5899. fi
  5900. INTL_LIBTOOL_SUFFIX_PREFIX=
  5901. INTLLIBS="$LIBINTL"
  5902. # This replaces the extensive use of DEFS in the original Makefile.in.
  5903. $as_echo "#define IN_LIBINTL 1" >>confdefs.h
  5904. $as_echo "#define IN_LIBRARY 1" >>confdefs.h
  5905. $as_echo "#define DEPENDS_ON_LIBICONV 1" >>confdefs.h
  5906. $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
  5907. $as_echo "#define NO_XMALLOC 1" >>confdefs.h
  5908. $as_echo "#define set_relocation_prefix libintl_set_relocation_prefix" >>confdefs.h
  5909. $as_echo "#define relocate libintl_relocate" >>confdefs.h
  5910. MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
  5911. for ac_prog in aclocal
  5912. do
  5913. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5914. set dummy $ac_prog; ac_word=$2
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5916. $as_echo_n "checking for $ac_word... " >&6; }
  5917. if ${ac_cv_prog_ACLOCAL+:} false; then :
  5918. $as_echo_n "(cached) " >&6
  5919. else
  5920. if test -n "$ACLOCAL"; then
  5921. ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
  5922. else
  5923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5924. for as_dir in $PATH
  5925. do
  5926. IFS=$as_save_IFS
  5927. test -z "$as_dir" && as_dir=.
  5928. for ac_exec_ext in '' $ac_executable_extensions; do
  5929. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5930. ac_cv_prog_ACLOCAL="$ac_prog"
  5931. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5932. break 2
  5933. fi
  5934. done
  5935. done
  5936. IFS=$as_save_IFS
  5937. fi
  5938. fi
  5939. ACLOCAL=$ac_cv_prog_ACLOCAL
  5940. if test -n "$ACLOCAL"; then
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
  5942. $as_echo "$ACLOCAL" >&6; }
  5943. else
  5944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5945. $as_echo "no" >&6; }
  5946. fi
  5947. test -n "$ACLOCAL" && break
  5948. done
  5949. test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
  5950. for ac_prog in autoconf
  5951. do
  5952. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5953. set dummy $ac_prog; ac_word=$2
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5955. $as_echo_n "checking for $ac_word... " >&6; }
  5956. if ${ac_cv_prog_AUTOCONF+:} false; then :
  5957. $as_echo_n "(cached) " >&6
  5958. else
  5959. if test -n "$AUTOCONF"; then
  5960. ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
  5961. else
  5962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5963. for as_dir in $PATH
  5964. do
  5965. IFS=$as_save_IFS
  5966. test -z "$as_dir" && as_dir=.
  5967. for ac_exec_ext in '' $ac_executable_extensions; do
  5968. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5969. ac_cv_prog_AUTOCONF="$ac_prog"
  5970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5971. break 2
  5972. fi
  5973. done
  5974. done
  5975. IFS=$as_save_IFS
  5976. fi
  5977. fi
  5978. AUTOCONF=$ac_cv_prog_AUTOCONF
  5979. if test -n "$AUTOCONF"; then
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
  5981. $as_echo "$AUTOCONF" >&6; }
  5982. else
  5983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5984. $as_echo "no" >&6; }
  5985. fi
  5986. test -n "$AUTOCONF" && break
  5987. done
  5988. test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
  5989. for ac_prog in autoheader
  5990. do
  5991. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5992. set dummy $ac_prog; ac_word=$2
  5993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5994. $as_echo_n "checking for $ac_word... " >&6; }
  5995. if ${ac_cv_prog_AUTOHEADER+:} false; then :
  5996. $as_echo_n "(cached) " >&6
  5997. else
  5998. if test -n "$AUTOHEADER"; then
  5999. ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
  6000. else
  6001. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6002. for as_dir in $PATH
  6003. do
  6004. IFS=$as_save_IFS
  6005. test -z "$as_dir" && as_dir=.
  6006. for ac_exec_ext in '' $ac_executable_extensions; do
  6007. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6008. ac_cv_prog_AUTOHEADER="$ac_prog"
  6009. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6010. break 2
  6011. fi
  6012. done
  6013. done
  6014. IFS=$as_save_IFS
  6015. fi
  6016. fi
  6017. AUTOHEADER=$ac_cv_prog_AUTOHEADER
  6018. if test -n "$AUTOHEADER"; then
  6019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
  6020. $as_echo "$AUTOHEADER" >&6; }
  6021. else
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6023. $as_echo "no" >&6; }
  6024. fi
  6025. test -n "$AUTOHEADER" && break
  6026. done
  6027. test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
  6028. # Check whether --enable-maintainer-mode was given.
  6029. if test "${enable_maintainer_mode+set}" = set; then :
  6030. enableval=$enable_maintainer_mode;
  6031. else
  6032. enable_maintainer_mode=no
  6033. fi
  6034. if test "x$enable_maintainer_mode" = xno; then
  6035. MAINT='#'
  6036. else
  6037. MAINT=
  6038. fi
  6039. # Additional info for config.intl.
  6040. LIBINTL_DEP=
  6041. INCINTL=
  6042. case $USE_INCLUDED_LIBINTL in
  6043. yes)
  6044. LIBINTL=`echo $LIBINTL | sed 's,${top_builddir},-L&/..,; s,\.\./intl/libintl\.a,../intl -lintl,' `
  6045. LIBINTL_DEP='${top_builddir}/../intl/libintl.a'
  6046. INCINTL='-I${top_builddir}/../intl'
  6047. ;;
  6048. esac
  6049. # intl is sometimes linked into shared libraries even without --enable-shared
  6050. # (e.g. gdbsupport's inprocess agent): so always PICify, just in case.
  6051. case "${host}" in
  6052. # PIC is the default on some targets or must not be used.
  6053. *-*-darwin*)
  6054. # For darwin, common symbols are not allowed in MH_DYLIB files
  6055. case "${CFLAGS}" in
  6056. # If we are using a compiler supporting mdynamic-no-pic
  6057. # and the option has been tested as safe to add, then cancel
  6058. # it here, since the code generated is incompatible with shared
  6059. # libs.
  6060. *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
  6061. *) PICFLAG=-fno-common ;;
  6062. esac
  6063. ;;
  6064. alpha*-dec-osf5*)
  6065. # PIC is the default.
  6066. ;;
  6067. hppa*64*-*-hpux*)
  6068. # PIC is the default for 64-bit PA HP-UX.
  6069. ;;
  6070. i[34567]86-*-cygwin* | x86_64-*-cygwin*)
  6071. ;;
  6072. i[34567]86-*-mingw* | x86_64-*-mingw*)
  6073. ;;
  6074. i[34567]86-*-interix[3-9]*)
  6075. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6076. # Instead, we relocate shared libraries at runtime.
  6077. ;;
  6078. i[34567]86-*-nto-qnx*)
  6079. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6080. # it will coredump.
  6081. PICFLAG='-fPIC -shared'
  6082. ;;
  6083. i[34567]86-pc-msdosdjgpp*)
  6084. # DJGPP does not support shared libraries at all.
  6085. ;;
  6086. ia64*-*-hpux*)
  6087. # On IA64 HP-UX, PIC is the default but the pic flag
  6088. # sets the default TLS model and affects inlining.
  6089. PICFLAG=-fPIC
  6090. ;;
  6091. mips-sgi-irix6*)
  6092. # PIC is the default.
  6093. ;;
  6094. rs6000-ibm-aix* | powerpc-ibm-aix*)
  6095. # All AIX code is PIC.
  6096. ;;
  6097. # Some targets support both -fPIC and -fpic, but prefer the latter.
  6098. # FIXME: Why?
  6099. i[34567]86-*-* | x86_64-*-*)
  6100. PICFLAG=-fpic
  6101. ;;
  6102. # FIXME: Override -fPIC default in libgcc only?
  6103. sh-*-linux* | sh[2346lbe]*-*-linux*)
  6104. PICFLAG=-fpic
  6105. ;;
  6106. sh*-*-netbsd*)
  6107. PICFLAG=-fpic
  6108. ;;
  6109. # Default to -fPIC unless specified otherwise.
  6110. *)
  6111. PICFLAG=-fPIC
  6112. ;;
  6113. esac
  6114. # If the user explicitly uses -fpic/-fPIC, keep that.
  6115. case "${CFLAGS}" in
  6116. *-fpic*)
  6117. PICFLAG=-fpic
  6118. ;;
  6119. *-fPIC*)
  6120. PICFLAG=-fPIC
  6121. ;;
  6122. esac
  6123. BISON3_YES='#'
  6124. BISON3_NO=
  6125. if test "$INTLBISON" != :; then
  6126. ac_bison3=no
  6127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison 3 or later" >&5
  6128. $as_echo_n "checking bison 3 or later... " >&6; }
  6129. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  6130. case $ac_prog_version in
  6131. [3-9].*)
  6132. ac_prog_version="$ac_prog_version, bison3"; ac_bison3=yes;;
  6133. *) ac_prog_version="$ac_prog_version, old";;
  6134. esac
  6135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  6136. $as_echo "$ac_prog_version" >&6; }
  6137. if test $ac_bison3 = yes; then
  6138. BISON3_YES=
  6139. BISON3_NO='#'
  6140. fi
  6141. fi
  6142. ac_config_files="$ac_config_files Makefile config.intl"
  6143. cat >confcache <<\_ACEOF
  6144. # This file is a shell script that caches the results of configure
  6145. # tests run on this system so they can be shared between configure
  6146. # scripts and configure runs, see configure's option --config-cache.
  6147. # It is not useful on other systems. If it contains results you don't
  6148. # want to keep, you may remove or edit it.
  6149. #
  6150. # config.status only pays attention to the cache file if you give it
  6151. # the --recheck option to rerun configure.
  6152. #
  6153. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6154. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6155. # following values.
  6156. _ACEOF
  6157. # The following way of writing the cache mishandles newlines in values,
  6158. # but we know of no workaround that is simple, portable, and efficient.
  6159. # So, we kill variables containing newlines.
  6160. # Ultrix sh set writes to stderr and can't be redirected directly,
  6161. # and sets the high bit in the cache file unless we assign to the vars.
  6162. (
  6163. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6164. eval ac_val=\$$ac_var
  6165. case $ac_val in #(
  6166. *${as_nl}*)
  6167. case $ac_var in #(
  6168. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6169. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6170. esac
  6171. case $ac_var in #(
  6172. _ | IFS | as_nl) ;; #(
  6173. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6174. *) { eval $ac_var=; unset $ac_var;} ;;
  6175. esac ;;
  6176. esac
  6177. done
  6178. (set) 2>&1 |
  6179. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6180. *${as_nl}ac_space=\ *)
  6181. # `set' does not quote correctly, so add quotes: double-quote
  6182. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6183. sed -n \
  6184. "s/'/'\\\\''/g;
  6185. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6186. ;; #(
  6187. *)
  6188. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6189. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6190. ;;
  6191. esac |
  6192. sort
  6193. ) |
  6194. sed '
  6195. /^ac_cv_env_/b end
  6196. t clear
  6197. :clear
  6198. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6199. t end
  6200. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6201. :end' >>confcache
  6202. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6203. if test -w "$cache_file"; then
  6204. if test "x$cache_file" != "x/dev/null"; then
  6205. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6206. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6207. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6208. cat confcache >"$cache_file"
  6209. else
  6210. case $cache_file in #(
  6211. */* | ?:*)
  6212. mv -f confcache "$cache_file"$$ &&
  6213. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6214. *)
  6215. mv -f confcache "$cache_file" ;;
  6216. esac
  6217. fi
  6218. fi
  6219. else
  6220. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6221. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6222. fi
  6223. fi
  6224. rm -f confcache
  6225. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  6226. # Let make expand exec_prefix.
  6227. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6228. DEFS=-DHAVE_CONFIG_H
  6229. ac_libobjs=
  6230. ac_ltlibobjs=
  6231. U=
  6232. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  6233. # 1. Remove the extension, and $U if already installed.
  6234. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  6235. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  6236. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  6237. # will be set to the directory where LIBOBJS objects are built.
  6238. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  6239. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  6240. done
  6241. LIBOBJS=$ac_libobjs
  6242. LTLIBOBJS=$ac_ltlibobjs
  6243. : "${CONFIG_STATUS=./config.status}"
  6244. ac_write_fail=0
  6245. ac_clean_files_save=$ac_clean_files
  6246. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  6247. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  6248. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  6249. as_write_fail=0
  6250. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  6251. #! $SHELL
  6252. # Generated by $as_me.
  6253. # Run this file to recreate the current configuration.
  6254. # Compiler output produced by configure, useful for debugging
  6255. # configure, is in config.log if it exists.
  6256. debug=false
  6257. ac_cs_recheck=false
  6258. ac_cs_silent=false
  6259. SHELL=\${CONFIG_SHELL-$SHELL}
  6260. export SHELL
  6261. _ASEOF
  6262. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  6263. ## -------------------- ##
  6264. ## M4sh Initialization. ##
  6265. ## -------------------- ##
  6266. # Be more Bourne compatible
  6267. DUALCASE=1; export DUALCASE # for MKS sh
  6268. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  6269. emulate sh
  6270. NULLCMD=:
  6271. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  6272. # is contrary to our usage. Disable this feature.
  6273. alias -g '${1+"$@"}'='"$@"'
  6274. setopt NO_GLOB_SUBST
  6275. else
  6276. case `(set -o) 2>/dev/null` in #(
  6277. *posix*) :
  6278. set -o posix ;; #(
  6279. *) :
  6280. ;;
  6281. esac
  6282. fi
  6283. as_nl='
  6284. '
  6285. export as_nl
  6286. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  6287. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6288. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  6289. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  6290. # Prefer a ksh shell builtin over an external printf program on Solaris,
  6291. # but without wasting forks for bash or zsh.
  6292. if test -z "$BASH_VERSION$ZSH_VERSION" \
  6293. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  6294. as_echo='print -r --'
  6295. as_echo_n='print -rn --'
  6296. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  6297. as_echo='printf %s\n'
  6298. as_echo_n='printf %s'
  6299. else
  6300. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  6301. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  6302. as_echo_n='/usr/ucb/echo -n'
  6303. else
  6304. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  6305. as_echo_n_body='eval
  6306. arg=$1;
  6307. case $arg in #(
  6308. *"$as_nl"*)
  6309. expr "X$arg" : "X\\(.*\\)$as_nl";
  6310. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  6311. esac;
  6312. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  6313. '
  6314. export as_echo_n_body
  6315. as_echo_n='sh -c $as_echo_n_body as_echo'
  6316. fi
  6317. export as_echo_body
  6318. as_echo='sh -c $as_echo_body as_echo'
  6319. fi
  6320. # The user is always right.
  6321. if test "${PATH_SEPARATOR+set}" != set; then
  6322. PATH_SEPARATOR=:
  6323. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  6324. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  6325. PATH_SEPARATOR=';'
  6326. }
  6327. fi
  6328. # IFS
  6329. # We need space, tab and new line, in precisely that order. Quoting is
  6330. # there to prevent editors from complaining about space-tab.
  6331. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  6332. # splitting by setting IFS to empty value.)
  6333. IFS=" "" $as_nl"
  6334. # Find who we are. Look in the path if we contain no directory separator.
  6335. as_myself=
  6336. case $0 in #((
  6337. *[\\/]* ) as_myself=$0 ;;
  6338. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6339. for as_dir in $PATH
  6340. do
  6341. IFS=$as_save_IFS
  6342. test -z "$as_dir" && as_dir=.
  6343. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  6344. done
  6345. IFS=$as_save_IFS
  6346. ;;
  6347. esac
  6348. # We did not find ourselves, most probably we were run as `sh COMMAND'
  6349. # in which case we are not to be found in the path.
  6350. if test "x$as_myself" = x; then
  6351. as_myself=$0
  6352. fi
  6353. if test ! -f "$as_myself"; then
  6354. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  6355. exit 1
  6356. fi
  6357. # Unset variables that we do not need and which cause bugs (e.g. in
  6358. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  6359. # suppresses any "Segmentation fault" message there. '((' could
  6360. # trigger a bug in pdksh 5.2.14.
  6361. for as_var in BASH_ENV ENV MAIL MAILPATH
  6362. do eval test x\${$as_var+set} = xset \
  6363. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  6364. done
  6365. PS1='$ '
  6366. PS2='> '
  6367. PS4='+ '
  6368. # NLS nuisances.
  6369. LC_ALL=C
  6370. export LC_ALL
  6371. LANGUAGE=C
  6372. export LANGUAGE
  6373. # CDPATH.
  6374. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6375. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  6376. # ----------------------------------------
  6377. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  6378. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  6379. # script with STATUS, using 1 if that was 0.
  6380. as_fn_error ()
  6381. {
  6382. as_status=$1; test $as_status -eq 0 && as_status=1
  6383. if test "$4"; then
  6384. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6385. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  6386. fi
  6387. $as_echo "$as_me: error: $2" >&2
  6388. as_fn_exit $as_status
  6389. } # as_fn_error
  6390. # as_fn_set_status STATUS
  6391. # -----------------------
  6392. # Set $? to STATUS, without forking.
  6393. as_fn_set_status ()
  6394. {
  6395. return $1
  6396. } # as_fn_set_status
  6397. # as_fn_exit STATUS
  6398. # -----------------
  6399. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  6400. as_fn_exit ()
  6401. {
  6402. set +e
  6403. as_fn_set_status $1
  6404. exit $1
  6405. } # as_fn_exit
  6406. # as_fn_unset VAR
  6407. # ---------------
  6408. # Portably unset VAR.
  6409. as_fn_unset ()
  6410. {
  6411. { eval $1=; unset $1;}
  6412. }
  6413. as_unset=as_fn_unset
  6414. # as_fn_append VAR VALUE
  6415. # ----------------------
  6416. # Append the text in VALUE to the end of the definition contained in VAR. Take
  6417. # advantage of any shell optimizations that allow amortized linear growth over
  6418. # repeated appends, instead of the typical quadratic growth present in naive
  6419. # implementations.
  6420. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  6421. eval 'as_fn_append ()
  6422. {
  6423. eval $1+=\$2
  6424. }'
  6425. else
  6426. as_fn_append ()
  6427. {
  6428. eval $1=\$$1\$2
  6429. }
  6430. fi # as_fn_append
  6431. # as_fn_arith ARG...
  6432. # ------------------
  6433. # Perform arithmetic evaluation on the ARGs, and store the result in the
  6434. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  6435. # must be portable across $(()) and expr.
  6436. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  6437. eval 'as_fn_arith ()
  6438. {
  6439. as_val=$(( $* ))
  6440. }'
  6441. else
  6442. as_fn_arith ()
  6443. {
  6444. as_val=`expr "$@" || test $? -eq 1`
  6445. }
  6446. fi # as_fn_arith
  6447. if expr a : '\(a\)' >/dev/null 2>&1 &&
  6448. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  6449. as_expr=expr
  6450. else
  6451. as_expr=false
  6452. fi
  6453. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  6454. as_basename=basename
  6455. else
  6456. as_basename=false
  6457. fi
  6458. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  6459. as_dirname=dirname
  6460. else
  6461. as_dirname=false
  6462. fi
  6463. as_me=`$as_basename -- "$0" ||
  6464. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  6465. X"$0" : 'X\(//\)$' \| \
  6466. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  6467. $as_echo X/"$0" |
  6468. sed '/^.*\/\([^/][^/]*\)\/*$/{
  6469. s//\1/
  6470. q
  6471. }
  6472. /^X\/\(\/\/\)$/{
  6473. s//\1/
  6474. q
  6475. }
  6476. /^X\/\(\/\).*/{
  6477. s//\1/
  6478. q
  6479. }
  6480. s/.*/./; q'`
  6481. # Avoid depending upon Character Ranges.
  6482. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  6483. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  6484. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  6485. as_cr_digits='0123456789'
  6486. as_cr_alnum=$as_cr_Letters$as_cr_digits
  6487. ECHO_C= ECHO_N= ECHO_T=
  6488. case `echo -n x` in #(((((
  6489. -n*)
  6490. case `echo 'xy\c'` in
  6491. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  6492. xy) ECHO_C='\c';;
  6493. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  6494. ECHO_T=' ';;
  6495. esac;;
  6496. *)
  6497. ECHO_N='-n';;
  6498. esac
  6499. rm -f conf$$ conf$$.exe conf$$.file
  6500. if test -d conf$$.dir; then
  6501. rm -f conf$$.dir/conf$$.file
  6502. else
  6503. rm -f conf$$.dir
  6504. mkdir conf$$.dir 2>/dev/null
  6505. fi
  6506. if (echo >conf$$.file) 2>/dev/null; then
  6507. if ln -s conf$$.file conf$$ 2>/dev/null; then
  6508. as_ln_s='ln -s'
  6509. # ... but there are two gotchas:
  6510. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  6511. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  6512. # In both cases, we have to default to `cp -pR'.
  6513. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  6514. as_ln_s='cp -pR'
  6515. elif ln conf$$.file conf$$ 2>/dev/null; then
  6516. as_ln_s=ln
  6517. else
  6518. as_ln_s='cp -pR'
  6519. fi
  6520. else
  6521. as_ln_s='cp -pR'
  6522. fi
  6523. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  6524. rmdir conf$$.dir 2>/dev/null
  6525. # as_fn_mkdir_p
  6526. # -------------
  6527. # Create "$as_dir" as a directory, including parents if necessary.
  6528. as_fn_mkdir_p ()
  6529. {
  6530. case $as_dir in #(
  6531. -*) as_dir=./$as_dir;;
  6532. esac
  6533. test -d "$as_dir" || eval $as_mkdir_p || {
  6534. as_dirs=
  6535. while :; do
  6536. case $as_dir in #(
  6537. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  6538. *) as_qdir=$as_dir;;
  6539. esac
  6540. as_dirs="'$as_qdir' $as_dirs"
  6541. as_dir=`$as_dirname -- "$as_dir" ||
  6542. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6543. X"$as_dir" : 'X\(//\)[^/]' \| \
  6544. X"$as_dir" : 'X\(//\)$' \| \
  6545. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  6546. $as_echo X"$as_dir" |
  6547. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6548. s//\1/
  6549. q
  6550. }
  6551. /^X\(\/\/\)[^/].*/{
  6552. s//\1/
  6553. q
  6554. }
  6555. /^X\(\/\/\)$/{
  6556. s//\1/
  6557. q
  6558. }
  6559. /^X\(\/\).*/{
  6560. s//\1/
  6561. q
  6562. }
  6563. s/.*/./; q'`
  6564. test -d "$as_dir" && break
  6565. done
  6566. test -z "$as_dirs" || eval "mkdir $as_dirs"
  6567. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  6568. } # as_fn_mkdir_p
  6569. if mkdir -p . 2>/dev/null; then
  6570. as_mkdir_p='mkdir -p "$as_dir"'
  6571. else
  6572. test -d ./-p && rmdir ./-p
  6573. as_mkdir_p=false
  6574. fi
  6575. # as_fn_executable_p FILE
  6576. # -----------------------
  6577. # Test if FILE is an executable regular file.
  6578. as_fn_executable_p ()
  6579. {
  6580. test -f "$1" && test -x "$1"
  6581. } # as_fn_executable_p
  6582. as_test_x='test -x'
  6583. as_executable_p=as_fn_executable_p
  6584. # Sed expression to map a string onto a valid CPP name.
  6585. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  6586. # Sed expression to map a string onto a valid variable name.
  6587. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  6588. exec 6>&1
  6589. ## ----------------------------------- ##
  6590. ## Main body of $CONFIG_STATUS script. ##
  6591. ## ----------------------------------- ##
  6592. _ASEOF
  6593. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  6594. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6595. # Save the log message, to keep $0 and so on meaningful, and to
  6596. # report actual input values of CONFIG_FILES etc. instead of their
  6597. # values after options handling.
  6598. ac_log="
  6599. This file was extended by $as_me, which was
  6600. generated by GNU Autoconf 2.69. Invocation command line was
  6601. CONFIG_FILES = $CONFIG_FILES
  6602. CONFIG_HEADERS = $CONFIG_HEADERS
  6603. CONFIG_LINKS = $CONFIG_LINKS
  6604. CONFIG_COMMANDS = $CONFIG_COMMANDS
  6605. $ $0 $@
  6606. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  6607. "
  6608. _ACEOF
  6609. case $ac_config_files in *"
  6610. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  6611. esac
  6612. case $ac_config_headers in *"
  6613. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  6614. esac
  6615. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6616. # Files that config.status was made for.
  6617. config_files="$ac_config_files"
  6618. config_headers="$ac_config_headers"
  6619. config_commands="$ac_config_commands"
  6620. _ACEOF
  6621. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6622. ac_cs_usage="\
  6623. \`$as_me' instantiates files and other configuration actions
  6624. from templates according to the current configuration. Unless the files
  6625. and actions are specified as TAGs, all are instantiated by default.
  6626. Usage: $0 [OPTION]... [TAG]...
  6627. -h, --help print this help, then exit
  6628. -V, --version print version number and configuration settings, then exit
  6629. --config print configuration, then exit
  6630. -q, --quiet, --silent
  6631. do not print progress messages
  6632. -d, --debug don't remove temporary files
  6633. --recheck update $as_me by reconfiguring in the same conditions
  6634. --file=FILE[:TEMPLATE]
  6635. instantiate the configuration file FILE
  6636. --header=FILE[:TEMPLATE]
  6637. instantiate the configuration header FILE
  6638. Configuration files:
  6639. $config_files
  6640. Configuration headers:
  6641. $config_headers
  6642. Configuration commands:
  6643. $config_commands
  6644. Report bugs to the package provider."
  6645. _ACEOF
  6646. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6647. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  6648. ac_cs_version="\\
  6649. config.status
  6650. configured by $0, generated by GNU Autoconf 2.69,
  6651. with options \\"\$ac_cs_config\\"
  6652. Copyright (C) 2012 Free Software Foundation, Inc.
  6653. This config.status script is free software; the Free Software Foundation
  6654. gives unlimited permission to copy, distribute and modify it."
  6655. ac_pwd='$ac_pwd'
  6656. srcdir='$srcdir'
  6657. INSTALL='$INSTALL'
  6658. test -n "\$AWK" || AWK=awk
  6659. _ACEOF
  6660. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6661. # The default lists apply if the user does not specify any file.
  6662. ac_need_defaults=:
  6663. while test $# != 0
  6664. do
  6665. case $1 in
  6666. --*=?*)
  6667. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6668. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  6669. ac_shift=:
  6670. ;;
  6671. --*=)
  6672. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6673. ac_optarg=
  6674. ac_shift=:
  6675. ;;
  6676. *)
  6677. ac_option=$1
  6678. ac_optarg=$2
  6679. ac_shift=shift
  6680. ;;
  6681. esac
  6682. case $ac_option in
  6683. # Handling of the options.
  6684. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  6685. ac_cs_recheck=: ;;
  6686. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  6687. $as_echo "$ac_cs_version"; exit ;;
  6688. --config | --confi | --conf | --con | --co | --c )
  6689. $as_echo "$ac_cs_config"; exit ;;
  6690. --debug | --debu | --deb | --de | --d | -d )
  6691. debug=: ;;
  6692. --file | --fil | --fi | --f )
  6693. $ac_shift
  6694. case $ac_optarg in
  6695. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6696. '') as_fn_error $? "missing file argument" ;;
  6697. esac
  6698. as_fn_append CONFIG_FILES " '$ac_optarg'"
  6699. ac_need_defaults=false;;
  6700. --header | --heade | --head | --hea )
  6701. $ac_shift
  6702. case $ac_optarg in
  6703. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6704. esac
  6705. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  6706. ac_need_defaults=false;;
  6707. --he | --h)
  6708. # Conflict between --help and --header
  6709. as_fn_error $? "ambiguous option: \`$1'
  6710. Try \`$0 --help' for more information.";;
  6711. --help | --hel | -h )
  6712. $as_echo "$ac_cs_usage"; exit ;;
  6713. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  6714. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  6715. ac_cs_silent=: ;;
  6716. # This is an error.
  6717. -*) as_fn_error $? "unrecognized option: \`$1'
  6718. Try \`$0 --help' for more information." ;;
  6719. *) as_fn_append ac_config_targets " $1"
  6720. ac_need_defaults=false ;;
  6721. esac
  6722. shift
  6723. done
  6724. ac_configure_extra_args=
  6725. if $ac_cs_silent; then
  6726. exec 6>/dev/null
  6727. ac_configure_extra_args="$ac_configure_extra_args --silent"
  6728. fi
  6729. _ACEOF
  6730. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6731. if \$ac_cs_recheck; then
  6732. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  6733. shift
  6734. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  6735. CONFIG_SHELL='$SHELL'
  6736. export CONFIG_SHELL
  6737. exec "\$@"
  6738. fi
  6739. _ACEOF
  6740. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6741. exec 5>>config.log
  6742. {
  6743. echo
  6744. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  6745. ## Running $as_me. ##
  6746. _ASBOX
  6747. $as_echo "$ac_log"
  6748. } >&5
  6749. _ACEOF
  6750. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6751. #
  6752. # INIT-COMMANDS
  6753. #
  6754. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  6755. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  6756. # from automake.
  6757. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  6758. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  6759. LINGUAS="${LINGUAS-%UNSET%}"
  6760. _ACEOF
  6761. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6762. # Handling of arguments.
  6763. for ac_config_target in $ac_config_targets
  6764. do
  6765. case $ac_config_target in
  6766. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  6767. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  6768. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  6769. "config.intl") CONFIG_FILES="$CONFIG_FILES config.intl" ;;
  6770. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  6771. esac
  6772. done
  6773. # If the user did not use the arguments to specify the items to instantiate,
  6774. # then the envvar interface is used. Set only those that are not.
  6775. # We use the long form for the default assignment because of an extremely
  6776. # bizarre bug on SunOS 4.1.3.
  6777. if $ac_need_defaults; then
  6778. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  6779. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  6780. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  6781. fi
  6782. # Have a temporary directory for convenience. Make it in the build tree
  6783. # simply because there is no reason against having it here, and in addition,
  6784. # creating and moving files from /tmp can sometimes cause problems.
  6785. # Hook for its removal unless debugging.
  6786. # Note that there is a small window in which the directory will not be cleaned:
  6787. # after its creation but before its name has been assigned to `$tmp'.
  6788. $debug ||
  6789. {
  6790. tmp= ac_tmp=
  6791. trap 'exit_status=$?
  6792. : "${ac_tmp:=$tmp}"
  6793. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  6794. ' 0
  6795. trap 'as_fn_exit 1' 1 2 13 15
  6796. }
  6797. # Create a (secure) tmp directory for tmp files.
  6798. {
  6799. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  6800. test -d "$tmp"
  6801. } ||
  6802. {
  6803. tmp=./conf$$-$RANDOM
  6804. (umask 077 && mkdir "$tmp")
  6805. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  6806. ac_tmp=$tmp
  6807. # Set up the scripts for CONFIG_FILES section.
  6808. # No need to generate them if there are no CONFIG_FILES.
  6809. # This happens for instance with `./config.status config.h'.
  6810. if test -n "$CONFIG_FILES"; then
  6811. ac_cr=`echo X | tr X '\015'`
  6812. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  6813. # But we know of no other shell where ac_cr would be empty at this
  6814. # point, so we can use a bashism as a fallback.
  6815. if test "x$ac_cr" = x; then
  6816. eval ac_cr=\$\'\\r\'
  6817. fi
  6818. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  6819. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  6820. ac_cs_awk_cr='\\r'
  6821. else
  6822. ac_cs_awk_cr=$ac_cr
  6823. fi
  6824. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  6825. _ACEOF
  6826. {
  6827. echo "cat >conf$$subs.awk <<_ACEOF" &&
  6828. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  6829. echo "_ACEOF"
  6830. } >conf$$subs.sh ||
  6831. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6832. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  6833. ac_delim='%!_!# '
  6834. for ac_last_try in false false false false false :; do
  6835. . ./conf$$subs.sh ||
  6836. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6837. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  6838. if test $ac_delim_n = $ac_delim_num; then
  6839. break
  6840. elif $ac_last_try; then
  6841. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6842. else
  6843. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  6844. fi
  6845. done
  6846. rm -f conf$$subs.sh
  6847. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6848. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  6849. _ACEOF
  6850. sed -n '
  6851. h
  6852. s/^/S["/; s/!.*/"]=/
  6853. p
  6854. g
  6855. s/^[^!]*!//
  6856. :repl
  6857. t repl
  6858. s/'"$ac_delim"'$//
  6859. t delim
  6860. :nl
  6861. h
  6862. s/\(.\{148\}\)..*/\1/
  6863. t more1
  6864. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  6865. p
  6866. n
  6867. b repl
  6868. :more1
  6869. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  6870. p
  6871. g
  6872. s/.\{148\}//
  6873. t nl
  6874. :delim
  6875. h
  6876. s/\(.\{148\}\)..*/\1/
  6877. t more2
  6878. s/["\\]/\\&/g; s/^/"/; s/$/"/
  6879. p
  6880. b
  6881. :more2
  6882. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  6883. p
  6884. g
  6885. s/.\{148\}//
  6886. t delim
  6887. ' <conf$$subs.awk | sed '
  6888. /^[^""]/{
  6889. N
  6890. s/\n//
  6891. }
  6892. ' >>$CONFIG_STATUS || ac_write_fail=1
  6893. rm -f conf$$subs.awk
  6894. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6895. _ACAWK
  6896. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  6897. for (key in S) S_is_set[key] = 1
  6898. FS = ""
  6899. }
  6900. {
  6901. line = $ 0
  6902. nfields = split(line, field, "@")
  6903. substed = 0
  6904. len = length(field[1])
  6905. for (i = 2; i < nfields; i++) {
  6906. key = field[i]
  6907. keylen = length(key)
  6908. if (S_is_set[key]) {
  6909. value = S[key]
  6910. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  6911. len += length(value) + length(field[++i])
  6912. substed = 1
  6913. } else
  6914. len += 1 + keylen
  6915. }
  6916. print line
  6917. }
  6918. _ACAWK
  6919. _ACEOF
  6920. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6921. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  6922. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  6923. else
  6924. cat
  6925. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  6926. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  6927. _ACEOF
  6928. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  6929. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  6930. # trailing colons and then remove the whole line if VPATH becomes empty
  6931. # (actually we leave an empty line to preserve line numbers).
  6932. if test "x$srcdir" = x.; then
  6933. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  6934. h
  6935. s///
  6936. s/^/:/
  6937. s/[ ]*$/:/
  6938. s/:\$(srcdir):/:/g
  6939. s/:\${srcdir}:/:/g
  6940. s/:@srcdir@:/:/g
  6941. s/^:*//
  6942. s/:*$//
  6943. x
  6944. s/\(=[ ]*\).*/\1/
  6945. G
  6946. s/\n//
  6947. s/^[^=]*=[ ]*$//
  6948. }'
  6949. fi
  6950. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6951. fi # test -n "$CONFIG_FILES"
  6952. # Set up the scripts for CONFIG_HEADERS section.
  6953. # No need to generate them if there are no CONFIG_HEADERS.
  6954. # This happens for instance with `./config.status Makefile'.
  6955. if test -n "$CONFIG_HEADERS"; then
  6956. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  6957. BEGIN {
  6958. _ACEOF
  6959. # Transform confdefs.h into an awk script `defines.awk', embedded as
  6960. # here-document in config.status, that substitutes the proper values into
  6961. # config.h.in to produce config.h.
  6962. # Create a delimiter string that does not exist in confdefs.h, to ease
  6963. # handling of long lines.
  6964. ac_delim='%!_!# '
  6965. for ac_last_try in false false :; do
  6966. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  6967. if test -z "$ac_tt"; then
  6968. break
  6969. elif $ac_last_try; then
  6970. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  6971. else
  6972. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  6973. fi
  6974. done
  6975. # For the awk script, D is an array of macro values keyed by name,
  6976. # likewise P contains macro parameters if any. Preserve backslash
  6977. # newline sequences.
  6978. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  6979. sed -n '
  6980. s/.\{148\}/&'"$ac_delim"'/g
  6981. t rset
  6982. :rset
  6983. s/^[ ]*#[ ]*define[ ][ ]*/ /
  6984. t def
  6985. d
  6986. :def
  6987. s/\\$//
  6988. t bsnl
  6989. s/["\\]/\\&/g
  6990. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  6991. D["\1"]=" \3"/p
  6992. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  6993. d
  6994. :bsnl
  6995. s/["\\]/\\&/g
  6996. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  6997. D["\1"]=" \3\\\\\\n"\\/p
  6998. t cont
  6999. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  7000. t cont
  7001. d
  7002. :cont
  7003. n
  7004. s/.\{148\}/&'"$ac_delim"'/g
  7005. t clear
  7006. :clear
  7007. s/\\$//
  7008. t bsnlc
  7009. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  7010. d
  7011. :bsnlc
  7012. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  7013. b cont
  7014. ' <confdefs.h | sed '
  7015. s/'"$ac_delim"'/"\\\
  7016. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  7017. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7018. for (key in D) D_is_set[key] = 1
  7019. FS = ""
  7020. }
  7021. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  7022. line = \$ 0
  7023. split(line, arg, " ")
  7024. if (arg[1] == "#") {
  7025. defundef = arg[2]
  7026. mac1 = arg[3]
  7027. } else {
  7028. defundef = substr(arg[1], 2)
  7029. mac1 = arg[2]
  7030. }
  7031. split(mac1, mac2, "(") #)
  7032. macro = mac2[1]
  7033. prefix = substr(line, 1, index(line, defundef) - 1)
  7034. if (D_is_set[macro]) {
  7035. # Preserve the white space surrounding the "#".
  7036. print prefix "define", macro P[macro] D[macro]
  7037. next
  7038. } else {
  7039. # Replace #undef with comments. This is necessary, for example,
  7040. # in the case of _POSIX_SOURCE, which is predefined and required
  7041. # on some systems where configure will not decide to define it.
  7042. if (defundef == "undef") {
  7043. print "/*", prefix defundef, macro, "*/"
  7044. next
  7045. }
  7046. }
  7047. }
  7048. { print }
  7049. _ACAWK
  7050. _ACEOF
  7051. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7052. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  7053. fi # test -n "$CONFIG_HEADERS"
  7054. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  7055. shift
  7056. for ac_tag
  7057. do
  7058. case $ac_tag in
  7059. :[FHLC]) ac_mode=$ac_tag; continue;;
  7060. esac
  7061. case $ac_mode$ac_tag in
  7062. :[FHL]*:*);;
  7063. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  7064. :[FH]-) ac_tag=-:-;;
  7065. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  7066. esac
  7067. ac_save_IFS=$IFS
  7068. IFS=:
  7069. set x $ac_tag
  7070. IFS=$ac_save_IFS
  7071. shift
  7072. ac_file=$1
  7073. shift
  7074. case $ac_mode in
  7075. :L) ac_source=$1;;
  7076. :[FH])
  7077. ac_file_inputs=
  7078. for ac_f
  7079. do
  7080. case $ac_f in
  7081. -) ac_f="$ac_tmp/stdin";;
  7082. *) # Look for the file first in the build tree, then in the source tree
  7083. # (if the path is not absolute). The absolute path cannot be DOS-style,
  7084. # because $ac_f cannot contain `:'.
  7085. test -f "$ac_f" ||
  7086. case $ac_f in
  7087. [\\/$]*) false;;
  7088. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  7089. esac ||
  7090. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  7091. esac
  7092. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  7093. as_fn_append ac_file_inputs " '$ac_f'"
  7094. done
  7095. # Let's still pretend it is `configure' which instantiates (i.e., don't
  7096. # use $as_me), people would be surprised to read:
  7097. # /* config.h. Generated by config.status. */
  7098. configure_input='Generated from '`
  7099. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  7100. `' by configure.'
  7101. if test x"$ac_file" != x-; then
  7102. configure_input="$ac_file. $configure_input"
  7103. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  7104. $as_echo "$as_me: creating $ac_file" >&6;}
  7105. fi
  7106. # Neutralize special characters interpreted by sed in replacement strings.
  7107. case $configure_input in #(
  7108. *\&* | *\|* | *\\* )
  7109. ac_sed_conf_input=`$as_echo "$configure_input" |
  7110. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  7111. *) ac_sed_conf_input=$configure_input;;
  7112. esac
  7113. case $ac_tag in
  7114. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  7115. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  7116. esac
  7117. ;;
  7118. esac
  7119. ac_dir=`$as_dirname -- "$ac_file" ||
  7120. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7121. X"$ac_file" : 'X\(//\)[^/]' \| \
  7122. X"$ac_file" : 'X\(//\)$' \| \
  7123. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  7124. $as_echo X"$ac_file" |
  7125. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7126. s//\1/
  7127. q
  7128. }
  7129. /^X\(\/\/\)[^/].*/{
  7130. s//\1/
  7131. q
  7132. }
  7133. /^X\(\/\/\)$/{
  7134. s//\1/
  7135. q
  7136. }
  7137. /^X\(\/\).*/{
  7138. s//\1/
  7139. q
  7140. }
  7141. s/.*/./; q'`
  7142. as_dir="$ac_dir"; as_fn_mkdir_p
  7143. ac_builddir=.
  7144. case "$ac_dir" in
  7145. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7146. *)
  7147. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  7148. # A ".." for each directory in $ac_dir_suffix.
  7149. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  7150. case $ac_top_builddir_sub in
  7151. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7152. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  7153. esac ;;
  7154. esac
  7155. ac_abs_top_builddir=$ac_pwd
  7156. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  7157. # for backward compatibility:
  7158. ac_top_builddir=$ac_top_build_prefix
  7159. case $srcdir in
  7160. .) # We are building in place.
  7161. ac_srcdir=.
  7162. ac_top_srcdir=$ac_top_builddir_sub
  7163. ac_abs_top_srcdir=$ac_pwd ;;
  7164. [\\/]* | ?:[\\/]* ) # Absolute name.
  7165. ac_srcdir=$srcdir$ac_dir_suffix;
  7166. ac_top_srcdir=$srcdir
  7167. ac_abs_top_srcdir=$srcdir ;;
  7168. *) # Relative name.
  7169. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  7170. ac_top_srcdir=$ac_top_build_prefix$srcdir
  7171. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  7172. esac
  7173. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  7174. case $ac_mode in
  7175. :F)
  7176. #
  7177. # CONFIG_FILE
  7178. #
  7179. case $INSTALL in
  7180. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  7181. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  7182. esac
  7183. _ACEOF
  7184. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7185. # If the template does not know about datarootdir, expand it.
  7186. # FIXME: This hack should be removed a few years after 2.60.
  7187. ac_datarootdir_hack=; ac_datarootdir_seen=
  7188. ac_sed_dataroot='
  7189. /datarootdir/ {
  7190. p
  7191. q
  7192. }
  7193. /@datadir@/p
  7194. /@docdir@/p
  7195. /@infodir@/p
  7196. /@localedir@/p
  7197. /@mandir@/p'
  7198. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  7199. *datarootdir*) ac_datarootdir_seen=yes;;
  7200. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  7201. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  7202. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  7203. _ACEOF
  7204. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7205. ac_datarootdir_hack='
  7206. s&@datadir@&$datadir&g
  7207. s&@docdir@&$docdir&g
  7208. s&@infodir@&$infodir&g
  7209. s&@localedir@&$localedir&g
  7210. s&@mandir@&$mandir&g
  7211. s&\\\${datarootdir}&$datarootdir&g' ;;
  7212. esac
  7213. _ACEOF
  7214. # Neutralize VPATH when `$srcdir' = `.'.
  7215. # Shell code in configure.ac might set extrasub.
  7216. # FIXME: do we really want to maintain this feature?
  7217. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7218. ac_sed_extra="$ac_vpsub
  7219. $extrasub
  7220. _ACEOF
  7221. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7222. :t
  7223. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  7224. s|@configure_input@|$ac_sed_conf_input|;t t
  7225. s&@top_builddir@&$ac_top_builddir_sub&;t t
  7226. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  7227. s&@srcdir@&$ac_srcdir&;t t
  7228. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  7229. s&@top_srcdir@&$ac_top_srcdir&;t t
  7230. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  7231. s&@builddir@&$ac_builddir&;t t
  7232. s&@abs_builddir@&$ac_abs_builddir&;t t
  7233. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  7234. s&@INSTALL@&$ac_INSTALL&;t t
  7235. $ac_datarootdir_hack
  7236. "
  7237. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  7238. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7239. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  7240. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  7241. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  7242. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  7243. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7244. which seems to be undefined. Please make sure it is defined" >&5
  7245. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7246. which seems to be undefined. Please make sure it is defined" >&2;}
  7247. rm -f "$ac_tmp/stdin"
  7248. case $ac_file in
  7249. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  7250. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  7251. esac \
  7252. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7253. ;;
  7254. :H)
  7255. #
  7256. # CONFIG_HEADER
  7257. #
  7258. if test x"$ac_file" != x-; then
  7259. {
  7260. $as_echo "/* $configure_input */" \
  7261. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  7262. } >"$ac_tmp/config.h" \
  7263. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7264. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  7265. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  7266. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  7267. else
  7268. rm -f "$ac_file"
  7269. mv "$ac_tmp/config.h" "$ac_file" \
  7270. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7271. fi
  7272. else
  7273. $as_echo "/* $configure_input */" \
  7274. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  7275. || as_fn_error $? "could not create -" "$LINENO" 5
  7276. fi
  7277. ;;
  7278. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  7279. $as_echo "$as_me: executing $ac_file commands" >&6;}
  7280. ;;
  7281. esac
  7282. case $ac_file$ac_mode in
  7283. "default-1":C)
  7284. for ac_file in $CONFIG_FILES; do
  7285. # Support "outfile[:infile[:infile...]]"
  7286. case "$ac_file" in
  7287. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  7288. esac
  7289. # PO directories have a Makefile.in generated from Makefile.in.in.
  7290. case "$ac_file" in */Makefile.in)
  7291. # Adjust a relative srcdir.
  7292. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  7293. ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
  7294. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  7295. # In autoconf-2.13 it is called $ac_given_srcdir.
  7296. # In autoconf-2.50 it is called $srcdir.
  7297. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  7298. case "$ac_given_srcdir" in
  7299. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  7300. /*) top_srcdir="$ac_given_srcdir" ;;
  7301. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  7302. esac
  7303. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  7304. rm -f "$ac_dir/POTFILES"
  7305. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  7306. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  7307. POMAKEFILEDEPS="POTFILES.in"
  7308. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  7309. # on $ac_dir but don't depend on user-specified configuration
  7310. # parameters.
  7311. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  7312. # The LINGUAS file contains the set of available languages.
  7313. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  7314. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
  7315. fi
  7316. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  7317. # Hide the ALL_LINGUAS assigment from automake.
  7318. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  7319. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  7320. else
  7321. # The set of available languages was given in configure.ac.
  7322. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  7323. fi
  7324. case "$ac_given_srcdir" in
  7325. .) srcdirpre= ;;
  7326. *) srcdirpre='$(srcdir)/' ;;
  7327. esac
  7328. POFILES=
  7329. GMOFILES=
  7330. UPDATEPOFILES=
  7331. DUMMYPOFILES=
  7332. for lang in $ALL_LINGUAS; do
  7333. POFILES="$POFILES $srcdirpre$lang.po"
  7334. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  7335. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  7336. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  7337. done
  7338. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  7339. # environment variable.
  7340. INST_LINGUAS=
  7341. if test -n "$ALL_LINGUAS"; then
  7342. for presentlang in $ALL_LINGUAS; do
  7343. useit=no
  7344. if test "%UNSET%" != "$LINGUAS"; then
  7345. desiredlanguages="$LINGUAS"
  7346. else
  7347. desiredlanguages="$ALL_LINGUAS"
  7348. fi
  7349. for desiredlang in $desiredlanguages; do
  7350. # Use the presentlang catalog if desiredlang is
  7351. # a. equal to presentlang, or
  7352. # b. a variant of presentlang (because in this case,
  7353. # presentlang can be used as a fallback for messages
  7354. # which are not translated in the desiredlang catalog).
  7355. case "$desiredlang" in
  7356. "$presentlang"*) useit=yes;;
  7357. esac
  7358. done
  7359. if test $useit = yes; then
  7360. INST_LINGUAS="$INST_LINGUAS $presentlang"
  7361. fi
  7362. done
  7363. fi
  7364. CATALOGS=
  7365. if test -n "$INST_LINGUAS"; then
  7366. for lang in $INST_LINGUAS; do
  7367. CATALOGS="$CATALOGS $lang.gmo"
  7368. done
  7369. fi
  7370. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  7371. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  7372. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  7373. if test -f "$f"; then
  7374. case "$f" in
  7375. *.orig | *.bak | *~) ;;
  7376. *) cat "$f" >> "$ac_dir/Makefile" ;;
  7377. esac
  7378. fi
  7379. done
  7380. fi
  7381. ;;
  7382. esac
  7383. done ;;
  7384. esac
  7385. done # for ac_tag
  7386. as_fn_exit 0
  7387. _ACEOF
  7388. ac_clean_files=$ac_clean_files_save
  7389. test $ac_write_fail = 0 ||
  7390. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  7391. # configure is writing to config.log, and then calls config.status.
  7392. # config.status does its own redirection, appending to config.log.
  7393. # Unfortunately, on DOS this fails, as config.log is still kept open
  7394. # by configure, so config.status won't be able to write to it; its
  7395. # output is simply discarded. So we exec the FD to /dev/null,
  7396. # effectively closing config.log, so it can be properly (re)opened and
  7397. # appended to by config.status. When coming back to configure, we
  7398. # need to make the FD available again.
  7399. if test "$no_create" != yes; then
  7400. ac_cs_success=:
  7401. ac_config_status_args=
  7402. test "$silent" = yes &&
  7403. ac_config_status_args="$ac_config_status_args --quiet"
  7404. exec 5>/dev/null
  7405. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  7406. exec 5>>config.log
  7407. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  7408. # would make configure fail if this is the last instruction.
  7409. $ac_cs_success || as_fn_exit 1
  7410. fi
  7411. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  7412. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  7413. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  7414. fi