configure 690 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for aria2 1.3.3.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  43. as_echo='printf %s\n'
  44. as_echo_n='printf %s'
  45. else
  46. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  47. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  48. as_echo_n='/usr/ucb/echo -n'
  49. else
  50. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  51. as_echo_n_body='eval
  52. arg=$1;
  53. case $arg in
  54. *"$as_nl"*)
  55. expr "X$arg" : "X\\(.*\\)$as_nl";
  56. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  57. esac;
  58. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  59. '
  60. export as_echo_n_body
  61. as_echo_n='sh -c $as_echo_n_body as_echo'
  62. fi
  63. export as_echo_body
  64. as_echo='sh -c $as_echo_body as_echo'
  65. fi
  66. # The user is always right.
  67. if test "${PATH_SEPARATOR+set}" != set; then
  68. PATH_SEPARATOR=:
  69. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  70. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  71. PATH_SEPARATOR=';'
  72. }
  73. fi
  74. # Support unset when possible.
  75. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  76. as_unset=unset
  77. else
  78. as_unset=false
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. { (exit 1); exit 1; }
  107. fi
  108. # Work around bugs in pre-3.0 UWIN ksh.
  109. for as_var in ENV MAIL MAILPATH
  110. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # Required to use basename.
  121. if expr a : '\(a\)' >/dev/null 2>&1 &&
  122. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  123. as_expr=expr
  124. else
  125. as_expr=false
  126. fi
  127. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  128. as_basename=basename
  129. else
  130. as_basename=false
  131. fi
  132. # Name of the executable.
  133. as_me=`$as_basename -- "$0" ||
  134. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  135. X"$0" : 'X\(//\)$' \| \
  136. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  137. $as_echo X/"$0" |
  138. sed '/^.*\/\([^/][^/]*\)\/*$/{
  139. s//\1/
  140. q
  141. }
  142. /^X\/\(\/\/\)$/{
  143. s//\1/
  144. q
  145. }
  146. /^X\/\(\/\).*/{
  147. s//\1/
  148. q
  149. }
  150. s/.*/./; q'`
  151. # CDPATH.
  152. $as_unset CDPATH
  153. if test "x$CONFIG_SHELL" = x; then
  154. if (eval ":") 2>/dev/null; then
  155. as_have_required=yes
  156. else
  157. as_have_required=no
  158. fi
  159. if test $as_have_required = yes && (eval ":
  160. (as_func_return () {
  161. (exit \$1)
  162. }
  163. as_func_success () {
  164. as_func_return 0
  165. }
  166. as_func_failure () {
  167. as_func_return 1
  168. }
  169. as_func_ret_success () {
  170. return 0
  171. }
  172. as_func_ret_failure () {
  173. return 1
  174. }
  175. exitcode=0
  176. if as_func_success; then
  177. :
  178. else
  179. exitcode=1
  180. echo as_func_success failed.
  181. fi
  182. if as_func_failure; then
  183. exitcode=1
  184. echo as_func_failure succeeded.
  185. fi
  186. if as_func_ret_success; then
  187. :
  188. else
  189. exitcode=1
  190. echo as_func_ret_success failed.
  191. fi
  192. if as_func_ret_failure; then
  193. exitcode=1
  194. echo as_func_ret_failure succeeded.
  195. fi
  196. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  197. :
  198. else
  199. exitcode=1
  200. echo positional parameters were not saved.
  201. fi
  202. test \$exitcode = 0) || { (exit 1); exit 1; }
  203. (
  204. as_lineno_1=\$LINENO
  205. as_lineno_2=\$LINENO
  206. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  207. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  208. ") 2> /dev/null; then
  209. :
  210. else
  211. as_candidate_shells=
  212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  213. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  214. do
  215. IFS=$as_save_IFS
  216. test -z "$as_dir" && as_dir=.
  217. case $as_dir in
  218. /*)
  219. for as_base in sh bash ksh sh5; do
  220. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  221. done;;
  222. esac
  223. done
  224. IFS=$as_save_IFS
  225. for as_shell in $as_candidate_shells $SHELL; do
  226. # Try only shells that exist, to save several forks.
  227. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  228. { ("$as_shell") 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. _ASEOF
  243. }; then
  244. CONFIG_SHELL=$as_shell
  245. as_have_required=yes
  246. if { "$as_shell" 2> /dev/null <<\_ASEOF
  247. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  248. emulate sh
  249. NULLCMD=:
  250. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  251. # is contrary to our usage. Disable this feature.
  252. alias -g '${1+"$@"}'='"$@"'
  253. setopt NO_GLOB_SUBST
  254. else
  255. case `(set -o) 2>/dev/null` in
  256. *posix*) set -o posix ;;
  257. esac
  258. fi
  259. :
  260. (as_func_return () {
  261. (exit $1)
  262. }
  263. as_func_success () {
  264. as_func_return 0
  265. }
  266. as_func_failure () {
  267. as_func_return 1
  268. }
  269. as_func_ret_success () {
  270. return 0
  271. }
  272. as_func_ret_failure () {
  273. return 1
  274. }
  275. exitcode=0
  276. if as_func_success; then
  277. :
  278. else
  279. exitcode=1
  280. echo as_func_success failed.
  281. fi
  282. if as_func_failure; then
  283. exitcode=1
  284. echo as_func_failure succeeded.
  285. fi
  286. if as_func_ret_success; then
  287. :
  288. else
  289. exitcode=1
  290. echo as_func_ret_success failed.
  291. fi
  292. if as_func_ret_failure; then
  293. exitcode=1
  294. echo as_func_ret_failure succeeded.
  295. fi
  296. if ( set x; as_func_ret_success y && test x = "$1" ); then
  297. :
  298. else
  299. exitcode=1
  300. echo positional parameters were not saved.
  301. fi
  302. test $exitcode = 0) || { (exit 1); exit 1; }
  303. (
  304. as_lineno_1=$LINENO
  305. as_lineno_2=$LINENO
  306. test "x$as_lineno_1" != "x$as_lineno_2" &&
  307. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  308. _ASEOF
  309. }; then
  310. break
  311. fi
  312. fi
  313. done
  314. if test "x$CONFIG_SHELL" != x; then
  315. for as_var in BASH_ENV ENV
  316. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  317. done
  318. export CONFIG_SHELL
  319. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  320. fi
  321. if test $as_have_required = no; then
  322. echo This script requires a shell more modern than all the
  323. echo shells that I found on your system. Please install a
  324. echo modern shell, or manually run the script under such a
  325. echo shell if you do have one.
  326. { (exit 1); exit 1; }
  327. fi
  328. fi
  329. fi
  330. (eval "as_func_return () {
  331. (exit \$1)
  332. }
  333. as_func_success () {
  334. as_func_return 0
  335. }
  336. as_func_failure () {
  337. as_func_return 1
  338. }
  339. as_func_ret_success () {
  340. return 0
  341. }
  342. as_func_ret_failure () {
  343. return 1
  344. }
  345. exitcode=0
  346. if as_func_success; then
  347. :
  348. else
  349. exitcode=1
  350. echo as_func_success failed.
  351. fi
  352. if as_func_failure; then
  353. exitcode=1
  354. echo as_func_failure succeeded.
  355. fi
  356. if as_func_ret_success; then
  357. :
  358. else
  359. exitcode=1
  360. echo as_func_ret_success failed.
  361. fi
  362. if as_func_ret_failure; then
  363. exitcode=1
  364. echo as_func_ret_failure succeeded.
  365. fi
  366. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  367. :
  368. else
  369. exitcode=1
  370. echo positional parameters were not saved.
  371. fi
  372. test \$exitcode = 0") || {
  373. echo No shell found that supports shell functions.
  374. echo Please tell bug-autoconf@gnu.org about your system,
  375. echo including any error possibly output before this message.
  376. echo This can help us improve future autoconf versions.
  377. echo Configuration will now proceed without shell functions.
  378. }
  379. as_lineno_1=$LINENO
  380. as_lineno_2=$LINENO
  381. test "x$as_lineno_1" != "x$as_lineno_2" &&
  382. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  383. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  384. # uniformly replaced by the line number. The first 'sed' inserts a
  385. # line-number line after each line using $LINENO; the second 'sed'
  386. # does the real work. The second script uses 'N' to pair each
  387. # line-number line with the line containing $LINENO, and appends
  388. # trailing '-' during substitution so that $LINENO is not a special
  389. # case at line end.
  390. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  391. # scripts with optimization help from Paolo Bonzini. Blame Lee
  392. # E. McMahon (1931-1989) for sed's syntax. :-)
  393. sed -n '
  394. p
  395. /[$]LINENO/=
  396. ' <$as_myself |
  397. sed '
  398. s/[$]LINENO.*/&-/
  399. t lineno
  400. b
  401. :lineno
  402. N
  403. :loop
  404. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  405. t loop
  406. s/-\n.*//
  407. ' >$as_me.lineno &&
  408. chmod +x "$as_me.lineno" ||
  409. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  410. { (exit 1); exit 1; }; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  419. as_dirname=dirname
  420. else
  421. as_dirname=false
  422. fi
  423. ECHO_C= ECHO_N= ECHO_T=
  424. case `echo -n x` in
  425. -n*)
  426. case `echo 'x\c'` in
  427. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  428. *) ECHO_C='\c';;
  429. esac;;
  430. *)
  431. ECHO_N='-n';;
  432. esac
  433. if expr a : '\(a\)' >/dev/null 2>&1 &&
  434. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  435. as_expr=expr
  436. else
  437. as_expr=false
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.file
  440. if test -d conf$$.dir; then
  441. rm -f conf$$.dir/conf$$.file
  442. else
  443. rm -f conf$$.dir
  444. mkdir conf$$.dir 2>/dev/null
  445. fi
  446. if (echo >conf$$.file) 2>/dev/null; then
  447. if ln -s conf$$.file conf$$ 2>/dev/null; then
  448. as_ln_s='ln -s'
  449. # ... but there are two gotchas:
  450. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  451. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  452. # In both cases, we have to default to `cp -p'.
  453. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  454. as_ln_s='cp -p'
  455. elif ln conf$$.file conf$$ 2>/dev/null; then
  456. as_ln_s=ln
  457. else
  458. as_ln_s='cp -p'
  459. fi
  460. else
  461. as_ln_s='cp -p'
  462. fi
  463. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  464. rmdir conf$$.dir 2>/dev/null
  465. if mkdir -p . 2>/dev/null; then
  466. as_mkdir_p=:
  467. else
  468. test -d ./-p && rmdir ./-p
  469. as_mkdir_p=false
  470. fi
  471. if test -x / >/dev/null 2>&1; then
  472. as_test_x='test -x'
  473. else
  474. if ls -dL / >/dev/null 2>&1; then
  475. as_ls_L_option=L
  476. else
  477. as_ls_L_option=
  478. fi
  479. as_test_x='
  480. eval sh -c '\''
  481. if test -d "$1"; then
  482. test -d "$1/.";
  483. else
  484. case $1 in
  485. -*)set "./$1";;
  486. esac;
  487. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  488. ???[sx]*):;;*)false;;esac;fi
  489. '\'' sh
  490. '
  491. fi
  492. as_executable_p=$as_test_x
  493. # Sed expression to map a string onto a valid CPP name.
  494. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  495. # Sed expression to map a string onto a valid variable name.
  496. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  497. exec 7<&0 </dev/null 6>&1
  498. # Name of the host.
  499. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  500. # so uname gets run too.
  501. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  502. #
  503. # Initializations.
  504. #
  505. ac_default_prefix=/usr/local
  506. ac_clean_files=
  507. ac_config_libobj_dir=.
  508. LIBOBJS=
  509. cross_compiling=no
  510. subdirs=
  511. MFLAGS=
  512. MAKEFLAGS=
  513. SHELL=${CONFIG_SHELL-/bin/sh}
  514. # Identity of this package.
  515. PACKAGE_NAME='aria2'
  516. PACKAGE_TARNAME='aria2'
  517. PACKAGE_VERSION='1.3.3'
  518. PACKAGE_STRING='aria2 1.3.3'
  519. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  520. ac_unique_file="src/Socket.h"
  521. # Factoring default headers for most tests.
  522. ac_includes_default="\
  523. #include <stdio.h>
  524. #ifdef HAVE_SYS_TYPES_H
  525. # include <sys/types.h>
  526. #endif
  527. #ifdef HAVE_SYS_STAT_H
  528. # include <sys/stat.h>
  529. #endif
  530. #ifdef STDC_HEADERS
  531. # include <stdlib.h>
  532. # include <stddef.h>
  533. #else
  534. # ifdef HAVE_STDLIB_H
  535. # include <stdlib.h>
  536. # endif
  537. #endif
  538. #ifdef HAVE_STRING_H
  539. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  540. # include <memory.h>
  541. # endif
  542. # include <string.h>
  543. #endif
  544. #ifdef HAVE_STRINGS_H
  545. # include <strings.h>
  546. #endif
  547. #ifdef HAVE_INTTYPES_H
  548. # include <inttypes.h>
  549. #endif
  550. #ifdef HAVE_STDINT_H
  551. # include <stdint.h>
  552. #endif
  553. #ifdef HAVE_UNISTD_H
  554. # include <unistd.h>
  555. #endif"
  556. gt_needs=
  557. ac_header_list=
  558. ac_func_list=
  559. ac_subst_vars='LTLIBOBJS
  560. HAVE_TIMEGM_FALSE
  561. HAVE_TIMEGM_TRUE
  562. HAVE_STRPTIME_FALSE
  563. HAVE_STRPTIME_TRUE
  564. HAVE_LOCALTIME_R_FALSE
  565. HAVE_LOCALTIME_R_TRUE
  566. HAVE_INET_ATON_FALSE
  567. HAVE_INET_ATON_TRUE
  568. HAVE_GETTIMEOFDAY_FALSE
  569. HAVE_GETTIMEOFDAY_TRUE
  570. HAVE_GETADDRINFO_FALSE
  571. HAVE_GETADDRINFO_TRUE
  572. HAVE_GAI_STRERROR_FALSE
  573. HAVE_GAI_STRERROR_TRUE
  574. HAVE_BASENAME_FALSE
  575. HAVE_BASENAME_TRUE
  576. HAVE_ASCTIME_R_FALSE
  577. HAVE_ASCTIME_R_TRUE
  578. HAVE_POSIX_FALLOCATE_FALSE
  579. HAVE_POSIX_FALLOCATE_TRUE
  580. HAVE_EPOLL_FALSE
  581. HAVE_EPOLL_TRUE
  582. LIBOBJS
  583. POSUB
  584. LTLIBINTL
  585. LIBINTL
  586. INTLLIBS
  587. INTL_LIBTOOL_SUFFIX_PREFIX
  588. INTLOBJS
  589. GENCAT
  590. INSTOBJEXT
  591. DATADIRNAME
  592. CATOBJEXT
  593. USE_INCLUDED_LIBINTL
  594. BUILD_INCLUDED_LIBINTL
  595. LTLIBC
  596. WINDRES
  597. WOE32
  598. WOE32DLL
  599. HAVE_WPRINTF
  600. HAVE_SNPRINTF
  601. HAVE_ASPRINTF
  602. HAVE_POSIX_PRINTF
  603. INTL_MACOSX_LIBS
  604. GLIBC21
  605. INTLBISON
  606. LTLIBICONV
  607. LIBICONV
  608. LTLIBMULTITHREAD
  609. LIBMULTITHREAD
  610. LTLIBTHREAD
  611. LIBTHREAD
  612. LIBPTH_PREFIX
  613. LTLIBPTH
  614. LIBPTH
  615. PRI_MACROS_BROKEN
  616. HAVE_VISIBILITY
  617. CFLAG_VISIBILITY
  618. GLIBC2
  619. XGETTEXT_EXTRA_OPTIONS
  620. MSGMERGE
  621. XGETTEXT_015
  622. XGETTEXT
  623. GMSGFMT_015
  624. MSGFMT_015
  625. GMSGFMT
  626. MSGFMT
  627. GETTEXT_MACRO_VERSION
  628. USE_NLS
  629. ALLOCA
  630. HAVE_SQLITE3_FALSE
  631. HAVE_SQLITE3_TRUE
  632. HAVE_LIBZ_FALSE
  633. HAVE_LIBZ_TRUE
  634. ENABLE_ASYNC_DNS_FALSE
  635. ENABLE_ASYNC_DNS_TRUE
  636. HAVE_LIBEXPAT_FALSE
  637. HAVE_LIBEXPAT_TRUE
  638. HAVE_LIBXML2_FALSE
  639. HAVE_LIBXML2_TRUE
  640. ENABLE_XML_RPC_FALSE
  641. ENABLE_XML_RPC_TRUE
  642. ENABLE_METALINK_LIBEXPAT_FALSE
  643. ENABLE_METALINK_LIBEXPAT_TRUE
  644. ENABLE_METALINK_LIBXML2_FALSE
  645. ENABLE_METALINK_LIBXML2_TRUE
  646. ENABLE_METALINK_FALSE
  647. ENABLE_METALINK_TRUE
  648. ENABLE_BITTORRENT_FALSE
  649. ENABLE_BITTORRENT_TRUE
  650. ENABLE_MESSAGE_DIGEST_FALSE
  651. ENABLE_MESSAGE_DIGEST_TRUE
  652. HAVE_LIBSSL_FALSE
  653. HAVE_LIBSSL_TRUE
  654. HAVE_LIBGNUTLS_FALSE
  655. HAVE_LIBGNUTLS_TRUE
  656. ca_bundle
  657. ENABLE_SSL_FALSE
  658. ENABLE_SSL_TRUE
  659. LIBZ_CPPFLAGS
  660. LIBZ_LIBS
  661. LIBCARES_CPPFLAGS
  662. LIBCARES_LIBS
  663. OPENSSL_CFLAGS
  664. OPENSSL_LIBS
  665. LIBGCRYPT_LIBS
  666. LIBGCRYPT_CFLAGS
  667. LIBGCRYPT_CONFIG
  668. LIBGNUTLS_LIBS
  669. LIBGNUTLS_CFLAGS
  670. LIBGNUTLS_CONFIG
  671. SQLITE3_CPPFLAGS
  672. SQLITE3_LIBS
  673. LIBEXPAT_CPPFLAGS
  674. LIBEXPAT_LIBS
  675. XML_LIBS
  676. XML_CPPFLAGS
  677. XML2_CONFIG
  678. EGREP
  679. GREP
  680. CXXCPP
  681. YFLAGS
  682. YACC
  683. RANLIB
  684. am__fastdepCC_FALSE
  685. am__fastdepCC_TRUE
  686. CCDEPMODE
  687. ac_ct_CC
  688. CFLAGS
  689. CC
  690. am__fastdepCXX_FALSE
  691. am__fastdepCXX_TRUE
  692. CXXDEPMODE
  693. AMDEPBACKSLASH
  694. AMDEP_FALSE
  695. AMDEP_TRUE
  696. am__quote
  697. am__include
  698. DEPDIR
  699. OBJEXT
  700. EXEEXT
  701. ac_ct_CXX
  702. CPPFLAGS
  703. LDFLAGS
  704. CXXFLAGS
  705. CXX
  706. WINSOCK_LIBS
  707. CPPUNIT_LIBS
  708. CPPUNIT_CFLAGS
  709. CPPUNIT_CONFIG
  710. am__untar
  711. am__tar
  712. AMTAR
  713. am__leading_dot
  714. SET_MAKE
  715. AWK
  716. mkdir_p
  717. MKDIR_P
  718. INSTALL_STRIP_PROGRAM
  719. STRIP
  720. install_sh
  721. MAKEINFO
  722. AUTOHEADER
  723. AUTOMAKE
  724. AUTOCONF
  725. ACLOCAL
  726. VERSION
  727. PACKAGE
  728. CYGPATH_W
  729. am__isrc
  730. INSTALL_DATA
  731. INSTALL_SCRIPT
  732. INSTALL_PROGRAM
  733. target_os
  734. target_vendor
  735. target_cpu
  736. target
  737. host_os
  738. host_vendor
  739. host_cpu
  740. host
  741. build_os
  742. build_vendor
  743. build_cpu
  744. build
  745. target_alias
  746. host_alias
  747. build_alias
  748. LIBS
  749. ECHO_T
  750. ECHO_N
  751. ECHO_C
  752. DEFS
  753. mandir
  754. localedir
  755. libdir
  756. psdir
  757. pdfdir
  758. dvidir
  759. htmldir
  760. infodir
  761. docdir
  762. oldincludedir
  763. includedir
  764. localstatedir
  765. sharedstatedir
  766. sysconfdir
  767. datadir
  768. datarootdir
  769. libexecdir
  770. sbindir
  771. bindir
  772. program_transform_name
  773. prefix
  774. exec_prefix
  775. PACKAGE_BUGREPORT
  776. PACKAGE_STRING
  777. PACKAGE_VERSION
  778. PACKAGE_TARNAME
  779. PACKAGE_NAME
  780. PATH_SEPARATOR
  781. SHELL'
  782. ac_subst_files=''
  783. ac_user_opts='
  784. enable_option_checking
  785. with_cppunit_prefix
  786. with_cppunit_exec_prefix
  787. with_gnutls
  788. with_openssl
  789. with_sqlite3
  790. with_libxml2
  791. with_libexpat
  792. with_libcares
  793. with_libz
  794. enable_bittorrent
  795. enable_metalink
  796. enable_epoll
  797. with_ca_bundle
  798. enable_dependency_tracking
  799. with_xml_prefix
  800. with_xml_exec_prefix
  801. enable_xmltest
  802. with_libexpat_prefix
  803. with_sqlite3_prefix
  804. with_libgnutls_prefix
  805. with_libgcrypt_prefix
  806. with_openssl_prefix
  807. with_libcares_prefix
  808. with_libz_prefix
  809. enable_largefile
  810. enable_nls
  811. enable_threads
  812. with_gnu_ld
  813. enable_rpath
  814. with_libpth_prefix
  815. with_libiconv_prefix
  816. with_included_gettext
  817. with_libintl_prefix
  818. '
  819. ac_precious_vars='build_alias
  820. host_alias
  821. target_alias
  822. CXX
  823. CXXFLAGS
  824. LDFLAGS
  825. LIBS
  826. CPPFLAGS
  827. CCC
  828. CC
  829. CFLAGS
  830. YACC
  831. YFLAGS
  832. CXXCPP'
  833. # Initialize some variables set by options.
  834. ac_init_help=
  835. ac_init_version=false
  836. ac_unrecognized_opts=
  837. ac_unrecognized_sep=
  838. # The variables have the same names as the options, with
  839. # dashes changed to underlines.
  840. cache_file=/dev/null
  841. exec_prefix=NONE
  842. no_create=
  843. no_recursion=
  844. prefix=NONE
  845. program_prefix=NONE
  846. program_suffix=NONE
  847. program_transform_name=s,x,x,
  848. silent=
  849. site=
  850. srcdir=
  851. verbose=
  852. x_includes=NONE
  853. x_libraries=NONE
  854. # Installation directory options.
  855. # These are left unexpanded so users can "make install exec_prefix=/foo"
  856. # and all the variables that are supposed to be based on exec_prefix
  857. # by default will actually change.
  858. # Use braces instead of parens because sh, perl, etc. also accept them.
  859. # (The list follows the same order as the GNU Coding Standards.)
  860. bindir='${exec_prefix}/bin'
  861. sbindir='${exec_prefix}/sbin'
  862. libexecdir='${exec_prefix}/libexec'
  863. datarootdir='${prefix}/share'
  864. datadir='${datarootdir}'
  865. sysconfdir='${prefix}/etc'
  866. sharedstatedir='${prefix}/com'
  867. localstatedir='${prefix}/var'
  868. includedir='${prefix}/include'
  869. oldincludedir='/usr/include'
  870. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  871. infodir='${datarootdir}/info'
  872. htmldir='${docdir}'
  873. dvidir='${docdir}'
  874. pdfdir='${docdir}'
  875. psdir='${docdir}'
  876. libdir='${exec_prefix}/lib'
  877. localedir='${datarootdir}/locale'
  878. mandir='${datarootdir}/man'
  879. ac_prev=
  880. ac_dashdash=
  881. for ac_option
  882. do
  883. # If the previous option needs an argument, assign it.
  884. if test -n "$ac_prev"; then
  885. eval $ac_prev=\$ac_option
  886. ac_prev=
  887. continue
  888. fi
  889. case $ac_option in
  890. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  891. *) ac_optarg=yes ;;
  892. esac
  893. # Accept the important Cygnus configure options, so we can diagnose typos.
  894. case $ac_dashdash$ac_option in
  895. --)
  896. ac_dashdash=yes ;;
  897. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  898. ac_prev=bindir ;;
  899. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  900. bindir=$ac_optarg ;;
  901. -build | --build | --buil | --bui | --bu)
  902. ac_prev=build_alias ;;
  903. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  904. build_alias=$ac_optarg ;;
  905. -cache-file | --cache-file | --cache-fil | --cache-fi \
  906. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  907. ac_prev=cache_file ;;
  908. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  909. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  910. cache_file=$ac_optarg ;;
  911. --config-cache | -C)
  912. cache_file=config.cache ;;
  913. -datadir | --datadir | --datadi | --datad)
  914. ac_prev=datadir ;;
  915. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  916. datadir=$ac_optarg ;;
  917. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  918. | --dataroo | --dataro | --datar)
  919. ac_prev=datarootdir ;;
  920. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  921. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  922. datarootdir=$ac_optarg ;;
  923. -disable-* | --disable-*)
  924. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  925. # Reject names that are not valid shell variable names.
  926. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  927. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  928. { (exit 1); exit 1; }; }
  929. ac_useropt_orig=$ac_useropt
  930. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  931. case $ac_user_opts in
  932. *"
  933. "enable_$ac_useropt"
  934. "*) ;;
  935. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  936. ac_unrecognized_sep=', ';;
  937. esac
  938. eval enable_$ac_useropt=no ;;
  939. -docdir | --docdir | --docdi | --doc | --do)
  940. ac_prev=docdir ;;
  941. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  942. docdir=$ac_optarg ;;
  943. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  944. ac_prev=dvidir ;;
  945. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  946. dvidir=$ac_optarg ;;
  947. -enable-* | --enable-*)
  948. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  949. # Reject names that are not valid shell variable names.
  950. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  951. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  952. { (exit 1); exit 1; }; }
  953. ac_useropt_orig=$ac_useropt
  954. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  955. case $ac_user_opts in
  956. *"
  957. "enable_$ac_useropt"
  958. "*) ;;
  959. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  960. ac_unrecognized_sep=', ';;
  961. esac
  962. eval enable_$ac_useropt=\$ac_optarg ;;
  963. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  964. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  965. | --exec | --exe | --ex)
  966. ac_prev=exec_prefix ;;
  967. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  968. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  969. | --exec=* | --exe=* | --ex=*)
  970. exec_prefix=$ac_optarg ;;
  971. -gas | --gas | --ga | --g)
  972. # Obsolete; use --with-gas.
  973. with_gas=yes ;;
  974. -help | --help | --hel | --he | -h)
  975. ac_init_help=long ;;
  976. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  977. ac_init_help=recursive ;;
  978. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  979. ac_init_help=short ;;
  980. -host | --host | --hos | --ho)
  981. ac_prev=host_alias ;;
  982. -host=* | --host=* | --hos=* | --ho=*)
  983. host_alias=$ac_optarg ;;
  984. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  985. ac_prev=htmldir ;;
  986. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  987. | --ht=*)
  988. htmldir=$ac_optarg ;;
  989. -includedir | --includedir | --includedi | --included | --include \
  990. | --includ | --inclu | --incl | --inc)
  991. ac_prev=includedir ;;
  992. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  993. | --includ=* | --inclu=* | --incl=* | --inc=*)
  994. includedir=$ac_optarg ;;
  995. -infodir | --infodir | --infodi | --infod | --info | --inf)
  996. ac_prev=infodir ;;
  997. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  998. infodir=$ac_optarg ;;
  999. -libdir | --libdir | --libdi | --libd)
  1000. ac_prev=libdir ;;
  1001. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1002. libdir=$ac_optarg ;;
  1003. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1004. | --libexe | --libex | --libe)
  1005. ac_prev=libexecdir ;;
  1006. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1007. | --libexe=* | --libex=* | --libe=*)
  1008. libexecdir=$ac_optarg ;;
  1009. -localedir | --localedir | --localedi | --localed | --locale)
  1010. ac_prev=localedir ;;
  1011. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1012. localedir=$ac_optarg ;;
  1013. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1014. | --localstate | --localstat | --localsta | --localst | --locals)
  1015. ac_prev=localstatedir ;;
  1016. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1017. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1018. localstatedir=$ac_optarg ;;
  1019. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1020. ac_prev=mandir ;;
  1021. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1022. mandir=$ac_optarg ;;
  1023. -nfp | --nfp | --nf)
  1024. # Obsolete; use --without-fp.
  1025. with_fp=no ;;
  1026. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1027. | --no-cr | --no-c | -n)
  1028. no_create=yes ;;
  1029. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1030. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1031. no_recursion=yes ;;
  1032. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1033. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1034. | --oldin | --oldi | --old | --ol | --o)
  1035. ac_prev=oldincludedir ;;
  1036. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1037. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1038. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1039. oldincludedir=$ac_optarg ;;
  1040. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1041. ac_prev=prefix ;;
  1042. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1043. prefix=$ac_optarg ;;
  1044. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1045. | --program-pre | --program-pr | --program-p)
  1046. ac_prev=program_prefix ;;
  1047. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1048. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1049. program_prefix=$ac_optarg ;;
  1050. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1051. | --program-suf | --program-su | --program-s)
  1052. ac_prev=program_suffix ;;
  1053. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1054. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1055. program_suffix=$ac_optarg ;;
  1056. -program-transform-name | --program-transform-name \
  1057. | --program-transform-nam | --program-transform-na \
  1058. | --program-transform-n | --program-transform- \
  1059. | --program-transform | --program-transfor \
  1060. | --program-transfo | --program-transf \
  1061. | --program-trans | --program-tran \
  1062. | --progr-tra | --program-tr | --program-t)
  1063. ac_prev=program_transform_name ;;
  1064. -program-transform-name=* | --program-transform-name=* \
  1065. | --program-transform-nam=* | --program-transform-na=* \
  1066. | --program-transform-n=* | --program-transform-=* \
  1067. | --program-transform=* | --program-transfor=* \
  1068. | --program-transfo=* | --program-transf=* \
  1069. | --program-trans=* | --program-tran=* \
  1070. | --progr-tra=* | --program-tr=* | --program-t=*)
  1071. program_transform_name=$ac_optarg ;;
  1072. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1073. ac_prev=pdfdir ;;
  1074. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1075. pdfdir=$ac_optarg ;;
  1076. -psdir | --psdir | --psdi | --psd | --ps)
  1077. ac_prev=psdir ;;
  1078. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1079. psdir=$ac_optarg ;;
  1080. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1081. | -silent | --silent | --silen | --sile | --sil)
  1082. silent=yes ;;
  1083. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1084. ac_prev=sbindir ;;
  1085. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1086. | --sbi=* | --sb=*)
  1087. sbindir=$ac_optarg ;;
  1088. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1089. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1090. | --sharedst | --shareds | --shared | --share | --shar \
  1091. | --sha | --sh)
  1092. ac_prev=sharedstatedir ;;
  1093. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1094. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1095. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1096. | --sha=* | --sh=*)
  1097. sharedstatedir=$ac_optarg ;;
  1098. -site | --site | --sit)
  1099. ac_prev=site ;;
  1100. -site=* | --site=* | --sit=*)
  1101. site=$ac_optarg ;;
  1102. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1103. ac_prev=srcdir ;;
  1104. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1105. srcdir=$ac_optarg ;;
  1106. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1107. | --syscon | --sysco | --sysc | --sys | --sy)
  1108. ac_prev=sysconfdir ;;
  1109. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1110. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1111. sysconfdir=$ac_optarg ;;
  1112. -target | --target | --targe | --targ | --tar | --ta | --t)
  1113. ac_prev=target_alias ;;
  1114. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1115. target_alias=$ac_optarg ;;
  1116. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1117. verbose=yes ;;
  1118. -version | --version | --versio | --versi | --vers | -V)
  1119. ac_init_version=: ;;
  1120. -with-* | --with-*)
  1121. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1122. # Reject names that are not valid shell variable names.
  1123. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1124. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1125. { (exit 1); exit 1; }; }
  1126. ac_useropt_orig=$ac_useropt
  1127. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1128. case $ac_user_opts in
  1129. *"
  1130. "with_$ac_useropt"
  1131. "*) ;;
  1132. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1133. ac_unrecognized_sep=', ';;
  1134. esac
  1135. eval with_$ac_useropt=\$ac_optarg ;;
  1136. -without-* | --without-*)
  1137. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1138. # Reject names that are not valid shell variable names.
  1139. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1140. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1141. { (exit 1); exit 1; }; }
  1142. ac_useropt_orig=$ac_useropt
  1143. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1144. case $ac_user_opts in
  1145. *"
  1146. "with_$ac_useropt"
  1147. "*) ;;
  1148. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1149. ac_unrecognized_sep=', ';;
  1150. esac
  1151. eval with_$ac_useropt=no ;;
  1152. --x)
  1153. # Obsolete; use --with-x.
  1154. with_x=yes ;;
  1155. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1156. | --x-incl | --x-inc | --x-in | --x-i)
  1157. ac_prev=x_includes ;;
  1158. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1159. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1160. x_includes=$ac_optarg ;;
  1161. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1162. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1163. ac_prev=x_libraries ;;
  1164. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1165. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1166. x_libraries=$ac_optarg ;;
  1167. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1168. Try \`$0 --help' for more information." >&2
  1169. { (exit 1); exit 1; }; }
  1170. ;;
  1171. *=*)
  1172. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1173. # Reject names that are not valid shell variable names.
  1174. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1175. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1176. { (exit 1); exit 1; }; }
  1177. eval $ac_envvar=\$ac_optarg
  1178. export $ac_envvar ;;
  1179. *)
  1180. # FIXME: should be removed in autoconf 3.0.
  1181. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1182. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1183. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1184. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1185. ;;
  1186. esac
  1187. done
  1188. if test -n "$ac_prev"; then
  1189. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1190. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1191. { (exit 1); exit 1; }; }
  1192. fi
  1193. if test -n "$ac_unrecognized_opts"; then
  1194. case $enable_option_checking in
  1195. no) ;;
  1196. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1197. { (exit 1); exit 1; }; } ;;
  1198. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1199. esac
  1200. fi
  1201. # Check all directory arguments for consistency.
  1202. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1203. datadir sysconfdir sharedstatedir localstatedir includedir \
  1204. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1205. libdir localedir mandir
  1206. do
  1207. eval ac_val=\$$ac_var
  1208. # Remove trailing slashes.
  1209. case $ac_val in
  1210. */ )
  1211. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1212. eval $ac_var=\$ac_val;;
  1213. esac
  1214. # Be sure to have absolute directory names.
  1215. case $ac_val in
  1216. [\\/$]* | ?:[\\/]* ) continue;;
  1217. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1218. esac
  1219. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1220. { (exit 1); exit 1; }; }
  1221. done
  1222. # There might be people who depend on the old broken behavior: `$host'
  1223. # used to hold the argument of --host etc.
  1224. # FIXME: To remove some day.
  1225. build=$build_alias
  1226. host=$host_alias
  1227. target=$target_alias
  1228. # FIXME: To remove some day.
  1229. if test "x$host_alias" != x; then
  1230. if test "x$build_alias" = x; then
  1231. cross_compiling=maybe
  1232. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1233. If a cross compiler is detected then cross compile mode will be used." >&2
  1234. elif test "x$build_alias" != "x$host_alias"; then
  1235. cross_compiling=yes
  1236. fi
  1237. fi
  1238. ac_tool_prefix=
  1239. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1240. test "$silent" = yes && exec 6>/dev/null
  1241. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1242. ac_ls_di=`ls -di .` &&
  1243. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1244. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1245. { (exit 1); exit 1; }; }
  1246. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1247. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1248. { (exit 1); exit 1; }; }
  1249. # Find the source files, if location was not specified.
  1250. if test -z "$srcdir"; then
  1251. ac_srcdir_defaulted=yes
  1252. # Try the directory containing this script, then the parent directory.
  1253. ac_confdir=`$as_dirname -- "$as_myself" ||
  1254. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1255. X"$as_myself" : 'X\(//\)[^/]' \| \
  1256. X"$as_myself" : 'X\(//\)$' \| \
  1257. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1258. $as_echo X"$as_myself" |
  1259. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1260. s//\1/
  1261. q
  1262. }
  1263. /^X\(\/\/\)[^/].*/{
  1264. s//\1/
  1265. q
  1266. }
  1267. /^X\(\/\/\)$/{
  1268. s//\1/
  1269. q
  1270. }
  1271. /^X\(\/\).*/{
  1272. s//\1/
  1273. q
  1274. }
  1275. s/.*/./; q'`
  1276. srcdir=$ac_confdir
  1277. if test ! -r "$srcdir/$ac_unique_file"; then
  1278. srcdir=..
  1279. fi
  1280. else
  1281. ac_srcdir_defaulted=no
  1282. fi
  1283. if test ! -r "$srcdir/$ac_unique_file"; then
  1284. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1285. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1286. { (exit 1); exit 1; }; }
  1287. fi
  1288. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1289. ac_abs_confdir=`(
  1290. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1291. { (exit 1); exit 1; }; }
  1292. pwd)`
  1293. # When building in place, set srcdir=.
  1294. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1295. srcdir=.
  1296. fi
  1297. # Remove unnecessary trailing slashes from srcdir.
  1298. # Double slashes in file names in object file debugging info
  1299. # mess up M-x gdb in Emacs.
  1300. case $srcdir in
  1301. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1302. esac
  1303. for ac_var in $ac_precious_vars; do
  1304. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1305. eval ac_env_${ac_var}_value=\$${ac_var}
  1306. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1307. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1308. done
  1309. #
  1310. # Report the --help message.
  1311. #
  1312. if test "$ac_init_help" = "long"; then
  1313. # Omit some internal or obsolete options to make the list less imposing.
  1314. # This message is too long to be a string in the A/UX 3.1 sh.
  1315. cat <<_ACEOF
  1316. \`configure' configures aria2 1.3.3 to adapt to many kinds of systems.
  1317. Usage: $0 [OPTION]... [VAR=VALUE]...
  1318. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1319. VAR=VALUE. See below for descriptions of some of the useful variables.
  1320. Defaults for the options are specified in brackets.
  1321. Configuration:
  1322. -h, --help display this help and exit
  1323. --help=short display options specific to this package
  1324. --help=recursive display the short help of all the included packages
  1325. -V, --version display version information and exit
  1326. -q, --quiet, --silent do not print \`checking...' messages
  1327. --cache-file=FILE cache test results in FILE [disabled]
  1328. -C, --config-cache alias for \`--cache-file=config.cache'
  1329. -n, --no-create do not create output files
  1330. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1331. Installation directories:
  1332. --prefix=PREFIX install architecture-independent files in PREFIX
  1333. [$ac_default_prefix]
  1334. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1335. [PREFIX]
  1336. By default, \`make install' will install all the files in
  1337. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1338. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1339. for instance \`--prefix=\$HOME'.
  1340. For better control, use the options below.
  1341. Fine tuning of the installation directories:
  1342. --bindir=DIR user executables [EPREFIX/bin]
  1343. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1344. --libexecdir=DIR program executables [EPREFIX/libexec]
  1345. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1346. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1347. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1348. --libdir=DIR object code libraries [EPREFIX/lib]
  1349. --includedir=DIR C header files [PREFIX/include]
  1350. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1351. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1352. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1353. --infodir=DIR info documentation [DATAROOTDIR/info]
  1354. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1355. --mandir=DIR man documentation [DATAROOTDIR/man]
  1356. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
  1357. --htmldir=DIR html documentation [DOCDIR]
  1358. --dvidir=DIR dvi documentation [DOCDIR]
  1359. --pdfdir=DIR pdf documentation [DOCDIR]
  1360. --psdir=DIR ps documentation [DOCDIR]
  1361. _ACEOF
  1362. cat <<\_ACEOF
  1363. Program names:
  1364. --program-prefix=PREFIX prepend PREFIX to installed program names
  1365. --program-suffix=SUFFIX append SUFFIX to installed program names
  1366. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1367. System types:
  1368. --build=BUILD configure for building on BUILD [guessed]
  1369. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1370. --target=TARGET configure for building compilers for TARGET [HOST]
  1371. _ACEOF
  1372. fi
  1373. if test -n "$ac_init_help"; then
  1374. case $ac_init_help in
  1375. short | recursive ) echo "Configuration of aria2 1.3.3:";;
  1376. esac
  1377. cat <<\_ACEOF
  1378. Optional Features:
  1379. --disable-option-checking ignore unrecognized --enable/--with options
  1380. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1381. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1382. --enable-bittorrent enable bittorrent support.
  1383. --enable-metalink enable metalink support.
  1384. --enable-epoll enable epoll support.
  1385. --disable-dependency-tracking speeds up one-time build
  1386. --enable-dependency-tracking do not reject slow dependency extractors
  1387. --disable-xmltest Do not try to compile and run a test LIBXML program
  1388. --disable-largefile omit support for large files
  1389. --disable-nls do not use Native Language Support
  1390. --enable-threads={posix|solaris|pth|win32}
  1391. specify multithreading API
  1392. --disable-threads build without multithread safety
  1393. --disable-rpath do not hardcode runtime library paths
  1394. Optional Packages:
  1395. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1396. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1397. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1398. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1399. --with-gnutls use gnutls if it is installed.
  1400. --with-openssl use openssl if it is installed.
  1401. --with-sqlite3 use sqlite3 if it is installed.
  1402. --with-libxml2 use libxml2 if it is installed.
  1403. --with-libexpat use libexpat if it is installed.
  1404. --with-libcares use libcares if it is installed.
  1405. --with-libz use libz if it is installed.
  1406. --with-ca-bundle=FILE Use FILE as default CA bundle.
  1407. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1408. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1409. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1410. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1411. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1412. --with-libgcrypt-prefix=PFX
  1413. prefix where LIBGCRYPT is installed (optional)
  1414. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1415. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1416. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1417. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1418. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1419. --without-libpth-prefix don't search for libpth in includedir and libdir
  1420. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1421. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1422. --with-included-gettext use the GNU gettext library included here
  1423. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1424. --without-libintl-prefix don't search for libintl in includedir and libdir
  1425. Some influential environment variables:
  1426. CXX C++ compiler command
  1427. CXXFLAGS C++ compiler flags
  1428. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1429. nonstandard directory <lib dir>
  1430. LIBS libraries to pass to the linker, e.g. -l<library>
  1431. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1432. you have headers in a nonstandard directory <include dir>
  1433. CC C compiler command
  1434. CFLAGS C compiler flags
  1435. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1436. the first program found out of: `bison -y', `byacc', `yacc'.
  1437. YFLAGS The list of arguments that will be passed by default to $YACC.
  1438. This script will default YFLAGS to the empty string to avoid a
  1439. default value of `-d' given by some make applications.
  1440. CXXCPP C++ preprocessor
  1441. Use these variables to override the choices made by `configure' or to help
  1442. it to find libraries and programs with nonstandard names/locations.
  1443. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1444. _ACEOF
  1445. ac_status=$?
  1446. fi
  1447. if test "$ac_init_help" = "recursive"; then
  1448. # If there are subdirs, report their specific --help.
  1449. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1450. test -d "$ac_dir" ||
  1451. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1452. continue
  1453. ac_builddir=.
  1454. case "$ac_dir" in
  1455. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1456. *)
  1457. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1458. # A ".." for each directory in $ac_dir_suffix.
  1459. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1460. case $ac_top_builddir_sub in
  1461. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1462. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1463. esac ;;
  1464. esac
  1465. ac_abs_top_builddir=$ac_pwd
  1466. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1467. # for backward compatibility:
  1468. ac_top_builddir=$ac_top_build_prefix
  1469. case $srcdir in
  1470. .) # We are building in place.
  1471. ac_srcdir=.
  1472. ac_top_srcdir=$ac_top_builddir_sub
  1473. ac_abs_top_srcdir=$ac_pwd ;;
  1474. [\\/]* | ?:[\\/]* ) # Absolute name.
  1475. ac_srcdir=$srcdir$ac_dir_suffix;
  1476. ac_top_srcdir=$srcdir
  1477. ac_abs_top_srcdir=$srcdir ;;
  1478. *) # Relative name.
  1479. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1480. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1481. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1482. esac
  1483. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1484. cd "$ac_dir" || { ac_status=$?; continue; }
  1485. # Check for guested configure.
  1486. if test -f "$ac_srcdir/configure.gnu"; then
  1487. echo &&
  1488. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1489. elif test -f "$ac_srcdir/configure"; then
  1490. echo &&
  1491. $SHELL "$ac_srcdir/configure" --help=recursive
  1492. else
  1493. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1494. fi || ac_status=$?
  1495. cd "$ac_pwd" || { ac_status=$?; break; }
  1496. done
  1497. fi
  1498. test -n "$ac_init_help" && exit $ac_status
  1499. if $ac_init_version; then
  1500. cat <<\_ACEOF
  1501. aria2 configure 1.3.3
  1502. generated by GNU Autoconf 2.63
  1503. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1504. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1505. This configure script is free software; the Free Software Foundation
  1506. gives unlimited permission to copy, distribute and modify it.
  1507. _ACEOF
  1508. exit
  1509. fi
  1510. cat >config.log <<_ACEOF
  1511. This file contains any messages produced by compilers while
  1512. running configure, to aid debugging if configure makes a mistake.
  1513. It was created by aria2 $as_me 1.3.3, which was
  1514. generated by GNU Autoconf 2.63. Invocation command line was
  1515. $ $0 $@
  1516. _ACEOF
  1517. exec 5>>config.log
  1518. {
  1519. cat <<_ASUNAME
  1520. ## --------- ##
  1521. ## Platform. ##
  1522. ## --------- ##
  1523. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1524. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1525. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1526. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1527. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1528. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1529. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1530. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1531. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1532. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1533. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1534. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1535. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1536. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1537. _ASUNAME
  1538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1539. for as_dir in $PATH
  1540. do
  1541. IFS=$as_save_IFS
  1542. test -z "$as_dir" && as_dir=.
  1543. $as_echo "PATH: $as_dir"
  1544. done
  1545. IFS=$as_save_IFS
  1546. } >&5
  1547. cat >&5 <<_ACEOF
  1548. ## ----------- ##
  1549. ## Core tests. ##
  1550. ## ----------- ##
  1551. _ACEOF
  1552. # Keep a trace of the command line.
  1553. # Strip out --no-create and --no-recursion so they do not pile up.
  1554. # Strip out --silent because we don't want to record it for future runs.
  1555. # Also quote any args containing shell meta-characters.
  1556. # Make two passes to allow for proper duplicate-argument suppression.
  1557. ac_configure_args=
  1558. ac_configure_args0=
  1559. ac_configure_args1=
  1560. ac_must_keep_next=false
  1561. for ac_pass in 1 2
  1562. do
  1563. for ac_arg
  1564. do
  1565. case $ac_arg in
  1566. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1567. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1568. | -silent | --silent | --silen | --sile | --sil)
  1569. continue ;;
  1570. *\'*)
  1571. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1572. esac
  1573. case $ac_pass in
  1574. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1575. 2)
  1576. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1577. if test $ac_must_keep_next = true; then
  1578. ac_must_keep_next=false # Got value, back to normal.
  1579. else
  1580. case $ac_arg in
  1581. *=* | --config-cache | -C | -disable-* | --disable-* \
  1582. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1583. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1584. | -with-* | --with-* | -without-* | --without-* | --x)
  1585. case "$ac_configure_args0 " in
  1586. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1587. esac
  1588. ;;
  1589. -* ) ac_must_keep_next=true ;;
  1590. esac
  1591. fi
  1592. ac_configure_args="$ac_configure_args '$ac_arg'"
  1593. ;;
  1594. esac
  1595. done
  1596. done
  1597. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1598. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1599. # When interrupted or exit'd, cleanup temporary files, and complete
  1600. # config.log. We remove comments because anyway the quotes in there
  1601. # would cause problems or look ugly.
  1602. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1603. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1604. trap 'exit_status=$?
  1605. # Save into config.log some information that might help in debugging.
  1606. {
  1607. echo
  1608. cat <<\_ASBOX
  1609. ## ---------------- ##
  1610. ## Cache variables. ##
  1611. ## ---------------- ##
  1612. _ASBOX
  1613. echo
  1614. # The following way of writing the cache mishandles newlines in values,
  1615. (
  1616. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1617. eval ac_val=\$$ac_var
  1618. case $ac_val in #(
  1619. *${as_nl}*)
  1620. case $ac_var in #(
  1621. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1622. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1623. esac
  1624. case $ac_var in #(
  1625. _ | IFS | as_nl) ;; #(
  1626. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1627. *) $as_unset $ac_var ;;
  1628. esac ;;
  1629. esac
  1630. done
  1631. (set) 2>&1 |
  1632. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1633. *${as_nl}ac_space=\ *)
  1634. sed -n \
  1635. "s/'\''/'\''\\\\'\'''\''/g;
  1636. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1637. ;; #(
  1638. *)
  1639. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1640. ;;
  1641. esac |
  1642. sort
  1643. )
  1644. echo
  1645. cat <<\_ASBOX
  1646. ## ----------------- ##
  1647. ## Output variables. ##
  1648. ## ----------------- ##
  1649. _ASBOX
  1650. echo
  1651. for ac_var in $ac_subst_vars
  1652. do
  1653. eval ac_val=\$$ac_var
  1654. case $ac_val in
  1655. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1656. esac
  1657. $as_echo "$ac_var='\''$ac_val'\''"
  1658. done | sort
  1659. echo
  1660. if test -n "$ac_subst_files"; then
  1661. cat <<\_ASBOX
  1662. ## ------------------- ##
  1663. ## File substitutions. ##
  1664. ## ------------------- ##
  1665. _ASBOX
  1666. echo
  1667. for ac_var in $ac_subst_files
  1668. do
  1669. eval ac_val=\$$ac_var
  1670. case $ac_val in
  1671. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1672. esac
  1673. $as_echo "$ac_var='\''$ac_val'\''"
  1674. done | sort
  1675. echo
  1676. fi
  1677. if test -s confdefs.h; then
  1678. cat <<\_ASBOX
  1679. ## ----------- ##
  1680. ## confdefs.h. ##
  1681. ## ----------- ##
  1682. _ASBOX
  1683. echo
  1684. cat confdefs.h
  1685. echo
  1686. fi
  1687. test "$ac_signal" != 0 &&
  1688. $as_echo "$as_me: caught signal $ac_signal"
  1689. $as_echo "$as_me: exit $exit_status"
  1690. } >&5
  1691. rm -f core *.core core.conftest.* &&
  1692. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1693. exit $exit_status
  1694. ' 0
  1695. for ac_signal in 1 2 13 15; do
  1696. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1697. done
  1698. ac_signal=0
  1699. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1700. rm -f -r conftest* confdefs.h
  1701. # Predefined preprocessor variables.
  1702. cat >>confdefs.h <<_ACEOF
  1703. #define PACKAGE_NAME "$PACKAGE_NAME"
  1704. _ACEOF
  1705. cat >>confdefs.h <<_ACEOF
  1706. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1707. _ACEOF
  1708. cat >>confdefs.h <<_ACEOF
  1709. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1710. _ACEOF
  1711. cat >>confdefs.h <<_ACEOF
  1712. #define PACKAGE_STRING "$PACKAGE_STRING"
  1713. _ACEOF
  1714. cat >>confdefs.h <<_ACEOF
  1715. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1716. _ACEOF
  1717. # Let the site file select an alternate cache file if it wants to.
  1718. # Prefer an explicitly selected file to automatically selected ones.
  1719. ac_site_file1=NONE
  1720. ac_site_file2=NONE
  1721. if test -n "$CONFIG_SITE"; then
  1722. ac_site_file1=$CONFIG_SITE
  1723. elif test "x$prefix" != xNONE; then
  1724. ac_site_file1=$prefix/share/config.site
  1725. ac_site_file2=$prefix/etc/config.site
  1726. else
  1727. ac_site_file1=$ac_default_prefix/share/config.site
  1728. ac_site_file2=$ac_default_prefix/etc/config.site
  1729. fi
  1730. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1731. do
  1732. test "x$ac_site_file" = xNONE && continue
  1733. if test -r "$ac_site_file"; then
  1734. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1735. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1736. sed 's/^/| /' "$ac_site_file" >&5
  1737. . "$ac_site_file"
  1738. fi
  1739. done
  1740. if test -r "$cache_file"; then
  1741. # Some versions of bash will fail to source /dev/null (special
  1742. # files actually), so we avoid doing that.
  1743. if test -f "$cache_file"; then
  1744. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1745. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1746. case $cache_file in
  1747. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1748. *) . "./$cache_file";;
  1749. esac
  1750. fi
  1751. else
  1752. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1753. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1754. >$cache_file
  1755. fi
  1756. gt_needs="$gt_needs "
  1757. ac_header_list="$ac_header_list sys/time.h"
  1758. ac_header_list="$ac_header_list unistd.h"
  1759. ac_func_list="$ac_func_list alarm"
  1760. # Check that the precious variables saved in the cache have kept the same
  1761. # value.
  1762. ac_cache_corrupted=false
  1763. for ac_var in $ac_precious_vars; do
  1764. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1765. eval ac_new_set=\$ac_env_${ac_var}_set
  1766. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1767. eval ac_new_val=\$ac_env_${ac_var}_value
  1768. case $ac_old_set,$ac_new_set in
  1769. set,)
  1770. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1771. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1772. ac_cache_corrupted=: ;;
  1773. ,set)
  1774. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1775. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1776. ac_cache_corrupted=: ;;
  1777. ,);;
  1778. *)
  1779. if test "x$ac_old_val" != "x$ac_new_val"; then
  1780. # differences in whitespace do not lead to failure.
  1781. ac_old_val_w=`echo x $ac_old_val`
  1782. ac_new_val_w=`echo x $ac_new_val`
  1783. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1784. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1785. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1786. ac_cache_corrupted=:
  1787. else
  1788. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1789. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1790. eval $ac_var=\$ac_old_val
  1791. fi
  1792. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1793. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1794. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1795. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1796. fi;;
  1797. esac
  1798. # Pass precious variables to config.status.
  1799. if test "$ac_new_set" = set; then
  1800. case $ac_new_val in
  1801. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1802. *) ac_arg=$ac_var=$ac_new_val ;;
  1803. esac
  1804. case " $ac_configure_args " in
  1805. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1806. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1807. esac
  1808. fi
  1809. done
  1810. if $ac_cache_corrupted; then
  1811. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1812. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1813. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1814. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1815. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1816. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1817. { (exit 1); exit 1; }; }
  1818. fi
  1819. ac_ext=c
  1820. ac_cpp='$CPP $CPPFLAGS'
  1821. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1822. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1823. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1824. ac_aux_dir=
  1825. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1826. if test -f "$ac_dir/install-sh"; then
  1827. ac_aux_dir=$ac_dir
  1828. ac_install_sh="$ac_aux_dir/install-sh -c"
  1829. break
  1830. elif test -f "$ac_dir/install.sh"; then
  1831. ac_aux_dir=$ac_dir
  1832. ac_install_sh="$ac_aux_dir/install.sh -c"
  1833. break
  1834. elif test -f "$ac_dir/shtool"; then
  1835. ac_aux_dir=$ac_dir
  1836. ac_install_sh="$ac_aux_dir/shtool install -c"
  1837. break
  1838. fi
  1839. done
  1840. if test -z "$ac_aux_dir"; then
  1841. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1842. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1843. { (exit 1); exit 1; }; }
  1844. fi
  1845. # These three variables are undocumented and unsupported,
  1846. # and are intended to be withdrawn in a future Autoconf release.
  1847. # They can cause serious problems if a builder's source tree is in a directory
  1848. # whose full name contains unusual characters.
  1849. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1850. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1851. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1852. # Make sure we can run config.sub.
  1853. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1854. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1855. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1856. { (exit 1); exit 1; }; }
  1857. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  1858. $as_echo_n "checking build system type... " >&6; }
  1859. if test "${ac_cv_build+set}" = set; then
  1860. $as_echo_n "(cached) " >&6
  1861. else
  1862. ac_build_alias=$build_alias
  1863. test "x$ac_build_alias" = x &&
  1864. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1865. test "x$ac_build_alias" = x &&
  1866. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1867. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1868. { (exit 1); exit 1; }; }
  1869. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1870. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1871. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1872. { (exit 1); exit 1; }; }
  1873. fi
  1874. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1875. $as_echo "$ac_cv_build" >&6; }
  1876. case $ac_cv_build in
  1877. *-*-*) ;;
  1878. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1879. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  1880. { (exit 1); exit 1; }; };;
  1881. esac
  1882. build=$ac_cv_build
  1883. ac_save_IFS=$IFS; IFS='-'
  1884. set x $ac_cv_build
  1885. shift
  1886. build_cpu=$1
  1887. build_vendor=$2
  1888. shift; shift
  1889. # Remember, the first character of IFS is used to create $*,
  1890. # except with old shells:
  1891. build_os=$*
  1892. IFS=$ac_save_IFS
  1893. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1894. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  1895. $as_echo_n "checking host system type... " >&6; }
  1896. if test "${ac_cv_host+set}" = set; then
  1897. $as_echo_n "(cached) " >&6
  1898. else
  1899. if test "x$host_alias" = x; then
  1900. ac_cv_host=$ac_cv_build
  1901. else
  1902. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1903. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1904. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1905. { (exit 1); exit 1; }; }
  1906. fi
  1907. fi
  1908. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1909. $as_echo "$ac_cv_host" >&6; }
  1910. case $ac_cv_host in
  1911. *-*-*) ;;
  1912. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1913. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  1914. { (exit 1); exit 1; }; };;
  1915. esac
  1916. host=$ac_cv_host
  1917. ac_save_IFS=$IFS; IFS='-'
  1918. set x $ac_cv_host
  1919. shift
  1920. host_cpu=$1
  1921. host_vendor=$2
  1922. shift; shift
  1923. # Remember, the first character of IFS is used to create $*,
  1924. # except with old shells:
  1925. host_os=$*
  1926. IFS=$ac_save_IFS
  1927. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1928. { $as_echo "$as_me:$LINENO: checking target system type" >&5
  1929. $as_echo_n "checking target system type... " >&6; }
  1930. if test "${ac_cv_target+set}" = set; then
  1931. $as_echo_n "(cached) " >&6
  1932. else
  1933. if test "x$target_alias" = x; then
  1934. ac_cv_target=$ac_cv_host
  1935. else
  1936. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1937. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1938. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1939. { (exit 1); exit 1; }; }
  1940. fi
  1941. fi
  1942. { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1943. $as_echo "$ac_cv_target" >&6; }
  1944. case $ac_cv_target in
  1945. *-*-*) ;;
  1946. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1947. $as_echo "$as_me: error: invalid value of canonical target" >&2;}
  1948. { (exit 1); exit 1; }; };;
  1949. esac
  1950. target=$ac_cv_target
  1951. ac_save_IFS=$IFS; IFS='-'
  1952. set x $ac_cv_target
  1953. shift
  1954. target_cpu=$1
  1955. target_vendor=$2
  1956. shift; shift
  1957. # Remember, the first character of IFS is used to create $*,
  1958. # except with old shells:
  1959. target_os=$*
  1960. IFS=$ac_save_IFS
  1961. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1962. # The aliases save the names the user supplied, while $host etc.
  1963. # will get canonicalized.
  1964. test -n "$target_alias" &&
  1965. test "$program_prefix$program_suffix$program_transform_name" = \
  1966. NONENONEs,x,x, &&
  1967. program_prefix=${target_alias}-
  1968. am__api_version='1.10'
  1969. # Find a good install program. We prefer a C program (faster),
  1970. # so one script is as good as another. But avoid the broken or
  1971. # incompatible versions:
  1972. # SysV /etc/install, /usr/sbin/install
  1973. # SunOS /usr/etc/install
  1974. # IRIX /sbin/install
  1975. # AIX /bin/install
  1976. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1977. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1978. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1979. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1980. # OS/2's system install, which has a completely different semantic
  1981. # ./install, which can be erroneously created by make from ./install.sh.
  1982. # Reject install programs that cannot install multiple files.
  1983. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1984. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1985. if test -z "$INSTALL"; then
  1986. if test "${ac_cv_path_install+set}" = set; then
  1987. $as_echo_n "(cached) " >&6
  1988. else
  1989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1990. for as_dir in $PATH
  1991. do
  1992. IFS=$as_save_IFS
  1993. test -z "$as_dir" && as_dir=.
  1994. # Account for people who put trailing slashes in PATH elements.
  1995. case $as_dir/ in
  1996. ./ | .// | /cC/* | \
  1997. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1998. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1999. /usr/ucb/* ) ;;
  2000. *)
  2001. # OSF1 and SCO ODT 3.0 have their own names for install.
  2002. # Don't use installbsd from OSF since it installs stuff as root
  2003. # by default.
  2004. for ac_prog in ginstall scoinst install; do
  2005. for ac_exec_ext in '' $ac_executable_extensions; do
  2006. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2007. if test $ac_prog = install &&
  2008. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2009. # AIX install. It has an incompatible calling convention.
  2010. :
  2011. elif test $ac_prog = install &&
  2012. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2013. # program-specific install script used by HP pwplus--don't use.
  2014. :
  2015. else
  2016. rm -rf conftest.one conftest.two conftest.dir
  2017. echo one > conftest.one
  2018. echo two > conftest.two
  2019. mkdir conftest.dir
  2020. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2021. test -s conftest.one && test -s conftest.two &&
  2022. test -s conftest.dir/conftest.one &&
  2023. test -s conftest.dir/conftest.two
  2024. then
  2025. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2026. break 3
  2027. fi
  2028. fi
  2029. fi
  2030. done
  2031. done
  2032. ;;
  2033. esac
  2034. done
  2035. IFS=$as_save_IFS
  2036. rm -rf conftest.one conftest.two conftest.dir
  2037. fi
  2038. if test "${ac_cv_path_install+set}" = set; then
  2039. INSTALL=$ac_cv_path_install
  2040. else
  2041. # As a last resort, use the slow shell script. Don't cache a
  2042. # value for INSTALL within a source directory, because that will
  2043. # break other packages using the cache if that directory is
  2044. # removed, or if the value is a relative name.
  2045. INSTALL=$ac_install_sh
  2046. fi
  2047. fi
  2048. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2049. $as_echo "$INSTALL" >&6; }
  2050. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2051. # It thinks the first close brace ends the variable substitution.
  2052. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2053. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2054. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2055. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2056. $as_echo_n "checking whether build environment is sane... " >&6; }
  2057. # Just in case
  2058. sleep 1
  2059. echo timestamp > conftest.file
  2060. # Do `set' in a subshell so we don't clobber the current shell's
  2061. # arguments. Must try -L first in case configure is actually a
  2062. # symlink; some systems play weird games with the mod time of symlinks
  2063. # (eg FreeBSD returns the mod time of the symlink's containing
  2064. # directory).
  2065. if (
  2066. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2067. if test "$*" = "X"; then
  2068. # -L didn't work.
  2069. set X `ls -t $srcdir/configure conftest.file`
  2070. fi
  2071. rm -f conftest.file
  2072. if test "$*" != "X $srcdir/configure conftest.file" \
  2073. && test "$*" != "X conftest.file $srcdir/configure"; then
  2074. # If neither matched, then we have a broken ls. This can happen
  2075. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2076. # broken ls alias from the environment. This has actually
  2077. # happened. Such a system could not be considered "sane".
  2078. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2079. alias in your environment" >&5
  2080. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2081. alias in your environment" >&2;}
  2082. { (exit 1); exit 1; }; }
  2083. fi
  2084. test "$2" = conftest.file
  2085. )
  2086. then
  2087. # Ok.
  2088. :
  2089. else
  2090. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2091. Check your system clock" >&5
  2092. $as_echo "$as_me: error: newly created file is older than distributed files!
  2093. Check your system clock" >&2;}
  2094. { (exit 1); exit 1; }; }
  2095. fi
  2096. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2097. $as_echo "yes" >&6; }
  2098. test "$program_prefix" != NONE &&
  2099. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2100. # Use a double $ so make ignores it.
  2101. test "$program_suffix" != NONE &&
  2102. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2103. # Double any \ or $.
  2104. # By default was `s,x,x', remove it if useless.
  2105. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2106. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2107. # expand $ac_aux_dir to an absolute path
  2108. am_aux_dir=`cd $ac_aux_dir && pwd`
  2109. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2110. # Use eval to expand $SHELL
  2111. if eval "$MISSING --run true"; then
  2112. am_missing_run="$MISSING --run "
  2113. else
  2114. am_missing_run=
  2115. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2116. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2117. fi
  2118. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2119. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2120. if test -z "$MKDIR_P"; then
  2121. if test "${ac_cv_path_mkdir+set}" = set; then
  2122. $as_echo_n "(cached) " >&6
  2123. else
  2124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2125. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2126. do
  2127. IFS=$as_save_IFS
  2128. test -z "$as_dir" && as_dir=.
  2129. for ac_prog in mkdir gmkdir; do
  2130. for ac_exec_ext in '' $ac_executable_extensions; do
  2131. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2132. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2133. 'mkdir (GNU coreutils) '* | \
  2134. 'mkdir (coreutils) '* | \
  2135. 'mkdir (fileutils) '4.1*)
  2136. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2137. break 3;;
  2138. esac
  2139. done
  2140. done
  2141. done
  2142. IFS=$as_save_IFS
  2143. fi
  2144. if test "${ac_cv_path_mkdir+set}" = set; then
  2145. MKDIR_P="$ac_cv_path_mkdir -p"
  2146. else
  2147. # As a last resort, use the slow shell script. Don't cache a
  2148. # value for MKDIR_P within a source directory, because that will
  2149. # break other packages using the cache if that directory is
  2150. # removed, or if the value is a relative name.
  2151. test -d ./--version && rmdir ./--version
  2152. MKDIR_P="$ac_install_sh -d"
  2153. fi
  2154. fi
  2155. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2156. $as_echo "$MKDIR_P" >&6; }
  2157. mkdir_p="$MKDIR_P"
  2158. case $mkdir_p in
  2159. [\\/$]* | ?:[\\/]*) ;;
  2160. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2161. esac
  2162. for ac_prog in gawk mawk nawk awk
  2163. do
  2164. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2165. set dummy $ac_prog; ac_word=$2
  2166. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2167. $as_echo_n "checking for $ac_word... " >&6; }
  2168. if test "${ac_cv_prog_AWK+set}" = set; then
  2169. $as_echo_n "(cached) " >&6
  2170. else
  2171. if test -n "$AWK"; then
  2172. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2173. else
  2174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2175. for as_dir in $PATH
  2176. do
  2177. IFS=$as_save_IFS
  2178. test -z "$as_dir" && as_dir=.
  2179. for ac_exec_ext in '' $ac_executable_extensions; do
  2180. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2181. ac_cv_prog_AWK="$ac_prog"
  2182. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2183. break 2
  2184. fi
  2185. done
  2186. done
  2187. IFS=$as_save_IFS
  2188. fi
  2189. fi
  2190. AWK=$ac_cv_prog_AWK
  2191. if test -n "$AWK"; then
  2192. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2193. $as_echo "$AWK" >&6; }
  2194. else
  2195. { $as_echo "$as_me:$LINENO: result: no" >&5
  2196. $as_echo "no" >&6; }
  2197. fi
  2198. test -n "$AWK" && break
  2199. done
  2200. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2201. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2202. set x ${MAKE-make}
  2203. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2204. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2205. $as_echo_n "(cached) " >&6
  2206. else
  2207. cat >conftest.make <<\_ACEOF
  2208. SHELL = /bin/sh
  2209. all:
  2210. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2211. _ACEOF
  2212. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2213. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2214. *@@@%%%=?*=@@@%%%*)
  2215. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2216. *)
  2217. eval ac_cv_prog_make_${ac_make}_set=no;;
  2218. esac
  2219. rm -f conftest.make
  2220. fi
  2221. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2222. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2223. $as_echo "yes" >&6; }
  2224. SET_MAKE=
  2225. else
  2226. { $as_echo "$as_me:$LINENO: result: no" >&5
  2227. $as_echo "no" >&6; }
  2228. SET_MAKE="MAKE=${MAKE-make}"
  2229. fi
  2230. rm -rf .tst 2>/dev/null
  2231. mkdir .tst 2>/dev/null
  2232. if test -d .tst; then
  2233. am__leading_dot=.
  2234. else
  2235. am__leading_dot=_
  2236. fi
  2237. rmdir .tst 2>/dev/null
  2238. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2239. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2240. # is not polluted with repeated "-I."
  2241. am__isrc=' -I$(srcdir)'
  2242. # test to see if srcdir already configured
  2243. if test -f $srcdir/config.status; then
  2244. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2245. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2246. { (exit 1); exit 1; }; }
  2247. fi
  2248. fi
  2249. # test whether we have cygpath
  2250. if test -z "$CYGPATH_W"; then
  2251. if (cygpath --version) >/dev/null 2>/dev/null; then
  2252. CYGPATH_W='cygpath -w'
  2253. else
  2254. CYGPATH_W=echo
  2255. fi
  2256. fi
  2257. # Define the identity of the package.
  2258. PACKAGE='aria2'
  2259. VERSION='1.3.3'
  2260. cat >>confdefs.h <<_ACEOF
  2261. #define PACKAGE "$PACKAGE"
  2262. _ACEOF
  2263. cat >>confdefs.h <<_ACEOF
  2264. #define VERSION "$VERSION"
  2265. _ACEOF
  2266. # Some tools Automake needs.
  2267. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2268. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2269. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2270. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2271. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2272. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2273. # Installed binaries are usually stripped using `strip' when the user
  2274. # run `make install-strip'. However `strip' might not be the right
  2275. # tool to use in cross-compilation environments, therefore Automake
  2276. # will honor the `STRIP' environment variable to overrule this program.
  2277. if test "$cross_compiling" != no; then
  2278. if test -n "$ac_tool_prefix"; then
  2279. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2280. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2281. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2282. $as_echo_n "checking for $ac_word... " >&6; }
  2283. if test "${ac_cv_prog_STRIP+set}" = set; then
  2284. $as_echo_n "(cached) " >&6
  2285. else
  2286. if test -n "$STRIP"; then
  2287. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2288. else
  2289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2290. for as_dir in $PATH
  2291. do
  2292. IFS=$as_save_IFS
  2293. test -z "$as_dir" && as_dir=.
  2294. for ac_exec_ext in '' $ac_executable_extensions; do
  2295. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2296. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2297. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2298. break 2
  2299. fi
  2300. done
  2301. done
  2302. IFS=$as_save_IFS
  2303. fi
  2304. fi
  2305. STRIP=$ac_cv_prog_STRIP
  2306. if test -n "$STRIP"; then
  2307. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2308. $as_echo "$STRIP" >&6; }
  2309. else
  2310. { $as_echo "$as_me:$LINENO: result: no" >&5
  2311. $as_echo "no" >&6; }
  2312. fi
  2313. fi
  2314. if test -z "$ac_cv_prog_STRIP"; then
  2315. ac_ct_STRIP=$STRIP
  2316. # Extract the first word of "strip", so it can be a program name with args.
  2317. set dummy strip; ac_word=$2
  2318. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2319. $as_echo_n "checking for $ac_word... " >&6; }
  2320. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2321. $as_echo_n "(cached) " >&6
  2322. else
  2323. if test -n "$ac_ct_STRIP"; then
  2324. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2325. else
  2326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2327. for as_dir in $PATH
  2328. do
  2329. IFS=$as_save_IFS
  2330. test -z "$as_dir" && as_dir=.
  2331. for ac_exec_ext in '' $ac_executable_extensions; do
  2332. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2333. ac_cv_prog_ac_ct_STRIP="strip"
  2334. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2335. break 2
  2336. fi
  2337. done
  2338. done
  2339. IFS=$as_save_IFS
  2340. fi
  2341. fi
  2342. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2343. if test -n "$ac_ct_STRIP"; then
  2344. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2345. $as_echo "$ac_ct_STRIP" >&6; }
  2346. else
  2347. { $as_echo "$as_me:$LINENO: result: no" >&5
  2348. $as_echo "no" >&6; }
  2349. fi
  2350. if test "x$ac_ct_STRIP" = x; then
  2351. STRIP=":"
  2352. else
  2353. case $cross_compiling:$ac_tool_warned in
  2354. yes:)
  2355. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2356. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2357. ac_tool_warned=yes ;;
  2358. esac
  2359. STRIP=$ac_ct_STRIP
  2360. fi
  2361. else
  2362. STRIP="$ac_cv_prog_STRIP"
  2363. fi
  2364. fi
  2365. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2366. # We need awk for the "check" target. The system "awk" is bad on
  2367. # some platforms.
  2368. # Always define AMTAR for backward compatibility.
  2369. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2370. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2371. # Check whether --with-cppunit-prefix was given.
  2372. if test "${with_cppunit_prefix+set}" = set; then
  2373. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2374. else
  2375. cppunit_config_prefix=""
  2376. fi
  2377. # Check whether --with-cppunit-exec-prefix was given.
  2378. if test "${with_cppunit_exec_prefix+set}" = set; then
  2379. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2380. else
  2381. cppunit_config_exec_prefix=""
  2382. fi
  2383. if test x$cppunit_config_exec_prefix != x ; then
  2384. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2385. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2386. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2387. fi
  2388. fi
  2389. if test x$cppunit_config_prefix != x ; then
  2390. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2391. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2392. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2393. fi
  2394. fi
  2395. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2396. set dummy cppunit-config; ac_word=$2
  2397. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2398. $as_echo_n "checking for $ac_word... " >&6; }
  2399. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2400. $as_echo_n "(cached) " >&6
  2401. else
  2402. case $CPPUNIT_CONFIG in
  2403. [\\/]* | ?:[\\/]*)
  2404. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2405. ;;
  2406. *)
  2407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2408. for as_dir in $PATH
  2409. do
  2410. IFS=$as_save_IFS
  2411. test -z "$as_dir" && as_dir=.
  2412. for ac_exec_ext in '' $ac_executable_extensions; do
  2413. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2414. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2415. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2416. break 2
  2417. fi
  2418. done
  2419. done
  2420. IFS=$as_save_IFS
  2421. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2422. ;;
  2423. esac
  2424. fi
  2425. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2426. if test -n "$CPPUNIT_CONFIG"; then
  2427. { $as_echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2428. $as_echo "$CPPUNIT_CONFIG" >&6; }
  2429. else
  2430. { $as_echo "$as_me:$LINENO: result: no" >&5
  2431. $as_echo "no" >&6; }
  2432. fi
  2433. cppunit_version_min=1.10.2
  2434. { $as_echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2435. $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
  2436. no_cppunit=""
  2437. if test "$CPPUNIT_CONFIG" = "no" ; then
  2438. { $as_echo "$as_me:$LINENO: result: no" >&5
  2439. $as_echo "no" >&6; }
  2440. no_cppunit=yes
  2441. else
  2442. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2443. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2444. cppunit_version=`$CPPUNIT_CONFIG --version`
  2445. cppunit_major_version=`echo $cppunit_version | \
  2446. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2447. cppunit_minor_version=`echo $cppunit_version | \
  2448. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2449. cppunit_micro_version=`echo $cppunit_version | \
  2450. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2451. cppunit_major_min=`echo $cppunit_version_min | \
  2452. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2453. if test "x${cppunit_major_min}" = "x" ; then
  2454. cppunit_major_min=0
  2455. fi
  2456. cppunit_minor_min=`echo $cppunit_version_min | \
  2457. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2458. if test "x${cppunit_minor_min}" = "x" ; then
  2459. cppunit_minor_min=0
  2460. fi
  2461. cppunit_micro_min=`echo $cppunit_version_min | \
  2462. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2463. if test "x${cppunit_micro_min}" = "x" ; then
  2464. cppunit_micro_min=0
  2465. fi
  2466. cppunit_version_proper=`expr \
  2467. $cppunit_major_version \> $cppunit_major_min \| \
  2468. $cppunit_major_version \= $cppunit_major_min \& \
  2469. $cppunit_minor_version \> $cppunit_minor_min \| \
  2470. $cppunit_major_version \= $cppunit_major_min \& \
  2471. $cppunit_minor_version \= $cppunit_minor_min \& \
  2472. $cppunit_micro_version \>= $cppunit_micro_min `
  2473. if test "$cppunit_version_proper" = "1" ; then
  2474. { $as_echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2475. $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2476. else
  2477. { $as_echo "$as_me:$LINENO: result: no" >&5
  2478. $as_echo "no" >&6; }
  2479. no_cppunit=yes
  2480. fi
  2481. fi
  2482. if test "x$no_cppunit" = x ; then
  2483. :
  2484. else
  2485. CPPUNIT_CFLAGS=""
  2486. CPPUNIT_LIBS=""
  2487. :
  2488. fi
  2489. ac_config_headers="$ac_config_headers config.h"
  2490. case "$target" in
  2491. *mingw*|*cygwin*)
  2492. WINSOCK_LIBS="-lws2_32 -lpthread"
  2493. ;;
  2494. esac
  2495. cat >>confdefs.h <<_ACEOF
  2496. #define TARGET "$target"
  2497. _ACEOF
  2498. # Set localedir
  2499. localedir=${datadir}/locale
  2500. # Checks for arguments.
  2501. # Check whether --with-gnutls was given.
  2502. if test "${with_gnutls+set}" = set; then
  2503. withval=$with_gnutls; with_gnutls=$withval
  2504. else
  2505. with_gnutls=yes
  2506. fi
  2507. # Check whether --with-openssl was given.
  2508. if test "${with_openssl+set}" = set; then
  2509. withval=$with_openssl; with_openssl=$withval
  2510. else
  2511. with_openssl=yes
  2512. fi
  2513. # Check whether --with-sqlite3 was given.
  2514. if test "${with_sqlite3+set}" = set; then
  2515. withval=$with_sqlite3; with_sqlite3=$withval
  2516. else
  2517. with_sqlite3=yes
  2518. fi
  2519. # Check whether --with-libxml2 was given.
  2520. if test "${with_libxml2+set}" = set; then
  2521. withval=$with_libxml2; with_libxml2=$withval
  2522. else
  2523. with_libxml2=yes
  2524. fi
  2525. # Check whether --with-libexpat was given.
  2526. if test "${with_libexpat+set}" = set; then
  2527. withval=$with_libexpat; with_libexpat=$withval
  2528. else
  2529. with_libexpat=yes
  2530. fi
  2531. # Check whether --with-libcares was given.
  2532. if test "${with_libcares+set}" = set; then
  2533. withval=$with_libcares; with_libcares=$withval
  2534. else
  2535. with_libcares=yes
  2536. fi
  2537. # Check whether --with-libz was given.
  2538. if test "${with_libz+set}" = set; then
  2539. withval=$with_libz; with_libz=$withval
  2540. else
  2541. with_libz=yes
  2542. fi
  2543. # Check whether --enable-bittorrent was given.
  2544. if test "${enable_bittorrent+set}" = set; then
  2545. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2546. else
  2547. enable_bittorrent=yes
  2548. fi
  2549. # Check whether --enable-metalink was given.
  2550. if test "${enable_metalink+set}" = set; then
  2551. enableval=$enable_metalink; enable_metalink=$enableval
  2552. else
  2553. enable_metalink=yes
  2554. fi
  2555. # Check whether --enable-epoll was given.
  2556. if test "${enable_epoll+set}" = set; then
  2557. enableval=$enable_epoll; enable_epoll=$enableval
  2558. else
  2559. enable_epoll=yes
  2560. fi
  2561. # Check whether --with-ca-bundle was given.
  2562. if test "${with_ca_bundle+set}" = set; then
  2563. withval=$with_ca_bundle; ca_bundle=$withval
  2564. else
  2565. ca_bundle=""
  2566. fi
  2567. # Checks for programs.
  2568. ac_ext=cpp
  2569. ac_cpp='$CXXCPP $CPPFLAGS'
  2570. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2571. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2572. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2573. if test -z "$CXX"; then
  2574. if test -n "$CCC"; then
  2575. CXX=$CCC
  2576. else
  2577. if test -n "$ac_tool_prefix"; then
  2578. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2579. do
  2580. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2581. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2582. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2583. $as_echo_n "checking for $ac_word... " >&6; }
  2584. if test "${ac_cv_prog_CXX+set}" = set; then
  2585. $as_echo_n "(cached) " >&6
  2586. else
  2587. if test -n "$CXX"; then
  2588. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2589. else
  2590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2591. for as_dir in $PATH
  2592. do
  2593. IFS=$as_save_IFS
  2594. test -z "$as_dir" && as_dir=.
  2595. for ac_exec_ext in '' $ac_executable_extensions; do
  2596. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2597. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2598. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2599. break 2
  2600. fi
  2601. done
  2602. done
  2603. IFS=$as_save_IFS
  2604. fi
  2605. fi
  2606. CXX=$ac_cv_prog_CXX
  2607. if test -n "$CXX"; then
  2608. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  2609. $as_echo "$CXX" >&6; }
  2610. else
  2611. { $as_echo "$as_me:$LINENO: result: no" >&5
  2612. $as_echo "no" >&6; }
  2613. fi
  2614. test -n "$CXX" && break
  2615. done
  2616. fi
  2617. if test -z "$CXX"; then
  2618. ac_ct_CXX=$CXX
  2619. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2620. do
  2621. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2622. set dummy $ac_prog; ac_word=$2
  2623. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2624. $as_echo_n "checking for $ac_word... " >&6; }
  2625. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2626. $as_echo_n "(cached) " >&6
  2627. else
  2628. if test -n "$ac_ct_CXX"; then
  2629. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2630. else
  2631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2632. for as_dir in $PATH
  2633. do
  2634. IFS=$as_save_IFS
  2635. test -z "$as_dir" && as_dir=.
  2636. for ac_exec_ext in '' $ac_executable_extensions; do
  2637. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2638. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2639. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2640. break 2
  2641. fi
  2642. done
  2643. done
  2644. IFS=$as_save_IFS
  2645. fi
  2646. fi
  2647. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2648. if test -n "$ac_ct_CXX"; then
  2649. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2650. $as_echo "$ac_ct_CXX" >&6; }
  2651. else
  2652. { $as_echo "$as_me:$LINENO: result: no" >&5
  2653. $as_echo "no" >&6; }
  2654. fi
  2655. test -n "$ac_ct_CXX" && break
  2656. done
  2657. if test "x$ac_ct_CXX" = x; then
  2658. CXX="g++"
  2659. else
  2660. case $cross_compiling:$ac_tool_warned in
  2661. yes:)
  2662. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2663. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2664. ac_tool_warned=yes ;;
  2665. esac
  2666. CXX=$ac_ct_CXX
  2667. fi
  2668. fi
  2669. fi
  2670. fi
  2671. # Provide some information about the compiler.
  2672. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2673. set X $ac_compile
  2674. ac_compiler=$2
  2675. { (ac_try="$ac_compiler --version >&5"
  2676. case "(($ac_try" in
  2677. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2678. *) ac_try_echo=$ac_try;;
  2679. esac
  2680. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2681. $as_echo "$ac_try_echo") >&5
  2682. (eval "$ac_compiler --version >&5") 2>&5
  2683. ac_status=$?
  2684. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2685. (exit $ac_status); }
  2686. { (ac_try="$ac_compiler -v >&5"
  2687. case "(($ac_try" in
  2688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2689. *) ac_try_echo=$ac_try;;
  2690. esac
  2691. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2692. $as_echo "$ac_try_echo") >&5
  2693. (eval "$ac_compiler -v >&5") 2>&5
  2694. ac_status=$?
  2695. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2696. (exit $ac_status); }
  2697. { (ac_try="$ac_compiler -V >&5"
  2698. case "(($ac_try" in
  2699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2700. *) ac_try_echo=$ac_try;;
  2701. esac
  2702. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2703. $as_echo "$ac_try_echo") >&5
  2704. (eval "$ac_compiler -V >&5") 2>&5
  2705. ac_status=$?
  2706. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2707. (exit $ac_status); }
  2708. cat >conftest.$ac_ext <<_ACEOF
  2709. /* confdefs.h. */
  2710. _ACEOF
  2711. cat confdefs.h >>conftest.$ac_ext
  2712. cat >>conftest.$ac_ext <<_ACEOF
  2713. /* end confdefs.h. */
  2714. int
  2715. main ()
  2716. {
  2717. ;
  2718. return 0;
  2719. }
  2720. _ACEOF
  2721. ac_clean_files_save=$ac_clean_files
  2722. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2723. # Try to create an executable without -o first, disregard a.out.
  2724. # It will help us diagnose broken compilers, and finding out an intuition
  2725. # of exeext.
  2726. { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2727. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2728. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2729. # The possible output files:
  2730. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2731. ac_rmfiles=
  2732. for ac_file in $ac_files
  2733. do
  2734. case $ac_file in
  2735. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2736. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2737. esac
  2738. done
  2739. rm -f $ac_rmfiles
  2740. if { (ac_try="$ac_link_default"
  2741. case "(($ac_try" in
  2742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2743. *) ac_try_echo=$ac_try;;
  2744. esac
  2745. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2746. $as_echo "$ac_try_echo") >&5
  2747. (eval "$ac_link_default") 2>&5
  2748. ac_status=$?
  2749. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2750. (exit $ac_status); }; then
  2751. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2752. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2753. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2754. # so that the user can short-circuit this test for compilers unknown to
  2755. # Autoconf.
  2756. for ac_file in $ac_files ''
  2757. do
  2758. test -f "$ac_file" || continue
  2759. case $ac_file in
  2760. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2761. ;;
  2762. [ab].out )
  2763. # We found the default executable, but exeext='' is most
  2764. # certainly right.
  2765. break;;
  2766. *.* )
  2767. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2768. then :; else
  2769. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2770. fi
  2771. # We set ac_cv_exeext here because the later test for it is not
  2772. # safe: cross compilers may not add the suffix if given an `-o'
  2773. # argument, so we may need to know it at that point already.
  2774. # Even if this section looks crufty: it has the advantage of
  2775. # actually working.
  2776. break;;
  2777. * )
  2778. break;;
  2779. esac
  2780. done
  2781. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2782. else
  2783. ac_file=''
  2784. fi
  2785. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2786. $as_echo "$ac_file" >&6; }
  2787. if test -z "$ac_file"; then
  2788. $as_echo "$as_me: failed program was:" >&5
  2789. sed 's/^/| /' conftest.$ac_ext >&5
  2790. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2791. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2792. { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2793. See \`config.log' for more details." >&5
  2794. $as_echo "$as_me: error: C++ compiler cannot create executables
  2795. See \`config.log' for more details." >&2;}
  2796. { (exit 77); exit 77; }; }; }
  2797. fi
  2798. ac_exeext=$ac_cv_exeext
  2799. # Check that the compiler produces executables we can run. If not, either
  2800. # the compiler is broken, or we cross compile.
  2801. { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2802. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2803. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2804. # If not cross compiling, check that we can run a simple program.
  2805. if test "$cross_compiling" != yes; then
  2806. if { ac_try='./$ac_file'
  2807. { (case "(($ac_try" in
  2808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2809. *) ac_try_echo=$ac_try;;
  2810. esac
  2811. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2812. $as_echo "$ac_try_echo") >&5
  2813. (eval "$ac_try") 2>&5
  2814. ac_status=$?
  2815. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2816. (exit $ac_status); }; }; then
  2817. cross_compiling=no
  2818. else
  2819. if test "$cross_compiling" = maybe; then
  2820. cross_compiling=yes
  2821. else
  2822. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2823. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2824. { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2825. If you meant to cross compile, use \`--host'.
  2826. See \`config.log' for more details." >&5
  2827. $as_echo "$as_me: error: cannot run C++ compiled programs.
  2828. If you meant to cross compile, use \`--host'.
  2829. See \`config.log' for more details." >&2;}
  2830. { (exit 1); exit 1; }; }; }
  2831. fi
  2832. fi
  2833. fi
  2834. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2835. $as_echo "yes" >&6; }
  2836. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2837. ac_clean_files=$ac_clean_files_save
  2838. # Check that the compiler produces executables we can run. If not, either
  2839. # the compiler is broken, or we cross compile.
  2840. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2841. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2842. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2843. $as_echo "$cross_compiling" >&6; }
  2844. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2845. $as_echo_n "checking for suffix of executables... " >&6; }
  2846. if { (ac_try="$ac_link"
  2847. case "(($ac_try" in
  2848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2849. *) ac_try_echo=$ac_try;;
  2850. esac
  2851. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2852. $as_echo "$ac_try_echo") >&5
  2853. (eval "$ac_link") 2>&5
  2854. ac_status=$?
  2855. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2856. (exit $ac_status); }; then
  2857. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2858. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2859. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2860. # `rm'.
  2861. for ac_file in conftest.exe conftest conftest.*; do
  2862. test -f "$ac_file" || continue
  2863. case $ac_file in
  2864. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2865. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2866. break;;
  2867. * ) break;;
  2868. esac
  2869. done
  2870. else
  2871. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2872. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2873. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2874. See \`config.log' for more details." >&5
  2875. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2876. See \`config.log' for more details." >&2;}
  2877. { (exit 1); exit 1; }; }; }
  2878. fi
  2879. rm -f conftest$ac_cv_exeext
  2880. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2881. $as_echo "$ac_cv_exeext" >&6; }
  2882. rm -f conftest.$ac_ext
  2883. EXEEXT=$ac_cv_exeext
  2884. ac_exeext=$EXEEXT
  2885. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2886. $as_echo_n "checking for suffix of object files... " >&6; }
  2887. if test "${ac_cv_objext+set}" = set; then
  2888. $as_echo_n "(cached) " >&6
  2889. else
  2890. cat >conftest.$ac_ext <<_ACEOF
  2891. /* confdefs.h. */
  2892. _ACEOF
  2893. cat confdefs.h >>conftest.$ac_ext
  2894. cat >>conftest.$ac_ext <<_ACEOF
  2895. /* end confdefs.h. */
  2896. int
  2897. main ()
  2898. {
  2899. ;
  2900. return 0;
  2901. }
  2902. _ACEOF
  2903. rm -f conftest.o conftest.obj
  2904. if { (ac_try="$ac_compile"
  2905. case "(($ac_try" in
  2906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2907. *) ac_try_echo=$ac_try;;
  2908. esac
  2909. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2910. $as_echo "$ac_try_echo") >&5
  2911. (eval "$ac_compile") 2>&5
  2912. ac_status=$?
  2913. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2914. (exit $ac_status); }; then
  2915. for ac_file in conftest.o conftest.obj conftest.*; do
  2916. test -f "$ac_file" || continue;
  2917. case $ac_file in
  2918. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2919. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2920. break;;
  2921. esac
  2922. done
  2923. else
  2924. $as_echo "$as_me: failed program was:" >&5
  2925. sed 's/^/| /' conftest.$ac_ext >&5
  2926. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2927. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2928. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2929. See \`config.log' for more details." >&5
  2930. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2931. See \`config.log' for more details." >&2;}
  2932. { (exit 1); exit 1; }; }; }
  2933. fi
  2934. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2935. fi
  2936. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2937. $as_echo "$ac_cv_objext" >&6; }
  2938. OBJEXT=$ac_cv_objext
  2939. ac_objext=$OBJEXT
  2940. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2941. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2942. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2943. $as_echo_n "(cached) " >&6
  2944. else
  2945. cat >conftest.$ac_ext <<_ACEOF
  2946. /* confdefs.h. */
  2947. _ACEOF
  2948. cat confdefs.h >>conftest.$ac_ext
  2949. cat >>conftest.$ac_ext <<_ACEOF
  2950. /* end confdefs.h. */
  2951. int
  2952. main ()
  2953. {
  2954. #ifndef __GNUC__
  2955. choke me
  2956. #endif
  2957. ;
  2958. return 0;
  2959. }
  2960. _ACEOF
  2961. rm -f conftest.$ac_objext
  2962. if { (ac_try="$ac_compile"
  2963. case "(($ac_try" in
  2964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2965. *) ac_try_echo=$ac_try;;
  2966. esac
  2967. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2968. $as_echo "$ac_try_echo") >&5
  2969. (eval "$ac_compile") 2>conftest.er1
  2970. ac_status=$?
  2971. grep -v '^ *+' conftest.er1 >conftest.err
  2972. rm -f conftest.er1
  2973. cat conftest.err >&5
  2974. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2975. (exit $ac_status); } && {
  2976. test -z "$ac_cxx_werror_flag" ||
  2977. test ! -s conftest.err
  2978. } && test -s conftest.$ac_objext; then
  2979. ac_compiler_gnu=yes
  2980. else
  2981. $as_echo "$as_me: failed program was:" >&5
  2982. sed 's/^/| /' conftest.$ac_ext >&5
  2983. ac_compiler_gnu=no
  2984. fi
  2985. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2986. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2987. fi
  2988. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2989. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2990. if test $ac_compiler_gnu = yes; then
  2991. GXX=yes
  2992. else
  2993. GXX=
  2994. fi
  2995. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2996. ac_save_CXXFLAGS=$CXXFLAGS
  2997. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2998. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2999. if test "${ac_cv_prog_cxx_g+set}" = set; then
  3000. $as_echo_n "(cached) " >&6
  3001. else
  3002. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3003. ac_cxx_werror_flag=yes
  3004. ac_cv_prog_cxx_g=no
  3005. CXXFLAGS="-g"
  3006. cat >conftest.$ac_ext <<_ACEOF
  3007. /* confdefs.h. */
  3008. _ACEOF
  3009. cat confdefs.h >>conftest.$ac_ext
  3010. cat >>conftest.$ac_ext <<_ACEOF
  3011. /* end confdefs.h. */
  3012. int
  3013. main ()
  3014. {
  3015. ;
  3016. return 0;
  3017. }
  3018. _ACEOF
  3019. rm -f conftest.$ac_objext
  3020. if { (ac_try="$ac_compile"
  3021. case "(($ac_try" in
  3022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3023. *) ac_try_echo=$ac_try;;
  3024. esac
  3025. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3026. $as_echo "$ac_try_echo") >&5
  3027. (eval "$ac_compile") 2>conftest.er1
  3028. ac_status=$?
  3029. grep -v '^ *+' conftest.er1 >conftest.err
  3030. rm -f conftest.er1
  3031. cat conftest.err >&5
  3032. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3033. (exit $ac_status); } && {
  3034. test -z "$ac_cxx_werror_flag" ||
  3035. test ! -s conftest.err
  3036. } && test -s conftest.$ac_objext; then
  3037. ac_cv_prog_cxx_g=yes
  3038. else
  3039. $as_echo "$as_me: failed program was:" >&5
  3040. sed 's/^/| /' conftest.$ac_ext >&5
  3041. CXXFLAGS=""
  3042. cat >conftest.$ac_ext <<_ACEOF
  3043. /* confdefs.h. */
  3044. _ACEOF
  3045. cat confdefs.h >>conftest.$ac_ext
  3046. cat >>conftest.$ac_ext <<_ACEOF
  3047. /* end confdefs.h. */
  3048. int
  3049. main ()
  3050. {
  3051. ;
  3052. return 0;
  3053. }
  3054. _ACEOF
  3055. rm -f conftest.$ac_objext
  3056. if { (ac_try="$ac_compile"
  3057. case "(($ac_try" in
  3058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3059. *) ac_try_echo=$ac_try;;
  3060. esac
  3061. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3062. $as_echo "$ac_try_echo") >&5
  3063. (eval "$ac_compile") 2>conftest.er1
  3064. ac_status=$?
  3065. grep -v '^ *+' conftest.er1 >conftest.err
  3066. rm -f conftest.er1
  3067. cat conftest.err >&5
  3068. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3069. (exit $ac_status); } && {
  3070. test -z "$ac_cxx_werror_flag" ||
  3071. test ! -s conftest.err
  3072. } && test -s conftest.$ac_objext; then
  3073. :
  3074. else
  3075. $as_echo "$as_me: failed program was:" >&5
  3076. sed 's/^/| /' conftest.$ac_ext >&5
  3077. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3078. CXXFLAGS="-g"
  3079. cat >conftest.$ac_ext <<_ACEOF
  3080. /* confdefs.h. */
  3081. _ACEOF
  3082. cat confdefs.h >>conftest.$ac_ext
  3083. cat >>conftest.$ac_ext <<_ACEOF
  3084. /* end confdefs.h. */
  3085. int
  3086. main ()
  3087. {
  3088. ;
  3089. return 0;
  3090. }
  3091. _ACEOF
  3092. rm -f conftest.$ac_objext
  3093. if { (ac_try="$ac_compile"
  3094. case "(($ac_try" in
  3095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3096. *) ac_try_echo=$ac_try;;
  3097. esac
  3098. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3099. $as_echo "$ac_try_echo") >&5
  3100. (eval "$ac_compile") 2>conftest.er1
  3101. ac_status=$?
  3102. grep -v '^ *+' conftest.er1 >conftest.err
  3103. rm -f conftest.er1
  3104. cat conftest.err >&5
  3105. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3106. (exit $ac_status); } && {
  3107. test -z "$ac_cxx_werror_flag" ||
  3108. test ! -s conftest.err
  3109. } && test -s conftest.$ac_objext; then
  3110. ac_cv_prog_cxx_g=yes
  3111. else
  3112. $as_echo "$as_me: failed program was:" >&5
  3113. sed 's/^/| /' conftest.$ac_ext >&5
  3114. fi
  3115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3116. fi
  3117. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3118. fi
  3119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3120. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3121. fi
  3122. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  3123. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3124. if test "$ac_test_CXXFLAGS" = set; then
  3125. CXXFLAGS=$ac_save_CXXFLAGS
  3126. elif test $ac_cv_prog_cxx_g = yes; then
  3127. if test "$GXX" = yes; then
  3128. CXXFLAGS="-g -O2"
  3129. else
  3130. CXXFLAGS="-g"
  3131. fi
  3132. else
  3133. if test "$GXX" = yes; then
  3134. CXXFLAGS="-O2"
  3135. else
  3136. CXXFLAGS=
  3137. fi
  3138. fi
  3139. ac_ext=c
  3140. ac_cpp='$CPP $CPPFLAGS'
  3141. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3142. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3143. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3144. DEPDIR="${am__leading_dot}deps"
  3145. ac_config_commands="$ac_config_commands depfiles"
  3146. am_make=${MAKE-make}
  3147. cat > confinc << 'END'
  3148. am__doit:
  3149. @echo done
  3150. .PHONY: am__doit
  3151. END
  3152. # If we don't find an include directive, just comment out the code.
  3153. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3154. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3155. am__include="#"
  3156. am__quote=
  3157. _am_result=none
  3158. # First try GNU make style include.
  3159. echo "include confinc" > confmf
  3160. # We grep out `Entering directory' and `Leaving directory'
  3161. # messages which can occur if `w' ends up in MAKEFLAGS.
  3162. # In particular we don't look at `^make:' because GNU make might
  3163. # be invoked under some other name (usually "gmake"), in which
  3164. # case it prints its new name instead of `make'.
  3165. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3166. am__include=include
  3167. am__quote=
  3168. _am_result=GNU
  3169. fi
  3170. # Now try BSD make style include.
  3171. if test "$am__include" = "#"; then
  3172. echo '.include "confinc"' > confmf
  3173. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3174. am__include=.include
  3175. am__quote="\""
  3176. _am_result=BSD
  3177. fi
  3178. fi
  3179. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  3180. $as_echo "$_am_result" >&6; }
  3181. rm -f confinc confmf
  3182. # Check whether --enable-dependency-tracking was given.
  3183. if test "${enable_dependency_tracking+set}" = set; then
  3184. enableval=$enable_dependency_tracking;
  3185. fi
  3186. if test "x$enable_dependency_tracking" != xno; then
  3187. am_depcomp="$ac_aux_dir/depcomp"
  3188. AMDEPBACKSLASH='\'
  3189. fi
  3190. if test "x$enable_dependency_tracking" != xno; then
  3191. AMDEP_TRUE=
  3192. AMDEP_FALSE='#'
  3193. else
  3194. AMDEP_TRUE='#'
  3195. AMDEP_FALSE=
  3196. fi
  3197. depcc="$CXX" am_compiler_list=
  3198. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3199. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3200. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3201. $as_echo_n "(cached) " >&6
  3202. else
  3203. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3204. # We make a subdir and do the tests there. Otherwise we can end up
  3205. # making bogus files that we don't know about and never remove. For
  3206. # instance it was reported that on HP-UX the gcc test will end up
  3207. # making a dummy file named `D' -- because `-MD' means `put the output
  3208. # in D'.
  3209. mkdir conftest.dir
  3210. # Copy depcomp to subdir because otherwise we won't find it if we're
  3211. # using a relative directory.
  3212. cp "$am_depcomp" conftest.dir
  3213. cd conftest.dir
  3214. # We will build objects and dependencies in a subdirectory because
  3215. # it helps to detect inapplicable dependency modes. For instance
  3216. # both Tru64's cc and ICC support -MD to output dependencies as a
  3217. # side effect of compilation, but ICC will put the dependencies in
  3218. # the current directory while Tru64 will put them in the object
  3219. # directory.
  3220. mkdir sub
  3221. am_cv_CXX_dependencies_compiler_type=none
  3222. if test "$am_compiler_list" = ""; then
  3223. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3224. fi
  3225. for depmode in $am_compiler_list; do
  3226. # Setup a source with many dependencies, because some compilers
  3227. # like to wrap large dependency lists on column 80 (with \), and
  3228. # we should not choose a depcomp mode which is confused by this.
  3229. #
  3230. # We need to recreate these files for each test, as the compiler may
  3231. # overwrite some of them when testing with obscure command lines.
  3232. # This happens at least with the AIX C compiler.
  3233. : > sub/conftest.c
  3234. for i in 1 2 3 4 5 6; do
  3235. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3236. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3237. # Solaris 8's {/usr,}/bin/sh.
  3238. touch sub/conftst$i.h
  3239. done
  3240. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3241. case $depmode in
  3242. nosideeffect)
  3243. # after this tag, mechanisms are not by side-effect, so they'll
  3244. # only be used when explicitly requested
  3245. if test "x$enable_dependency_tracking" = xyes; then
  3246. continue
  3247. else
  3248. break
  3249. fi
  3250. ;;
  3251. none) break ;;
  3252. esac
  3253. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3254. # mode. It turns out that the SunPro C++ compiler does not properly
  3255. # handle `-M -o', and we need to detect this.
  3256. if depmode=$depmode \
  3257. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3258. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3259. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3260. >/dev/null 2>conftest.err &&
  3261. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3262. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3263. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3264. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3265. # icc doesn't choke on unknown options, it will just issue warnings
  3266. # or remarks (even with -Werror). So we grep stderr for any message
  3267. # that says an option was ignored or not supported.
  3268. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3269. # icc: Command line warning: ignoring option '-M'; no argument required
  3270. # The diagnosis changed in icc 8.0:
  3271. # icc: Command line remark: option '-MP' not supported
  3272. if (grep 'ignoring option' conftest.err ||
  3273. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3274. am_cv_CXX_dependencies_compiler_type=$depmode
  3275. break
  3276. fi
  3277. fi
  3278. done
  3279. cd ..
  3280. rm -rf conftest.dir
  3281. else
  3282. am_cv_CXX_dependencies_compiler_type=none
  3283. fi
  3284. fi
  3285. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3286. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3287. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3288. if
  3289. test "x$enable_dependency_tracking" != xno \
  3290. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3291. am__fastdepCXX_TRUE=
  3292. am__fastdepCXX_FALSE='#'
  3293. else
  3294. am__fastdepCXX_TRUE='#'
  3295. am__fastdepCXX_FALSE=
  3296. fi
  3297. ac_ext=c
  3298. ac_cpp='$CPP $CPPFLAGS'
  3299. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3300. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3301. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3302. if test -n "$ac_tool_prefix"; then
  3303. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3304. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3305. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3306. $as_echo_n "checking for $ac_word... " >&6; }
  3307. if test "${ac_cv_prog_CC+set}" = set; then
  3308. $as_echo_n "(cached) " >&6
  3309. else
  3310. if test -n "$CC"; then
  3311. ac_cv_prog_CC="$CC" # Let the user override the test.
  3312. else
  3313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3314. for as_dir in $PATH
  3315. do
  3316. IFS=$as_save_IFS
  3317. test -z "$as_dir" && as_dir=.
  3318. for ac_exec_ext in '' $ac_executable_extensions; do
  3319. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3320. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3321. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3322. break 2
  3323. fi
  3324. done
  3325. done
  3326. IFS=$as_save_IFS
  3327. fi
  3328. fi
  3329. CC=$ac_cv_prog_CC
  3330. if test -n "$CC"; then
  3331. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3332. $as_echo "$CC" >&6; }
  3333. else
  3334. { $as_echo "$as_me:$LINENO: result: no" >&5
  3335. $as_echo "no" >&6; }
  3336. fi
  3337. fi
  3338. if test -z "$ac_cv_prog_CC"; then
  3339. ac_ct_CC=$CC
  3340. # Extract the first word of "gcc", so it can be a program name with args.
  3341. set dummy gcc; ac_word=$2
  3342. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3343. $as_echo_n "checking for $ac_word... " >&6; }
  3344. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3345. $as_echo_n "(cached) " >&6
  3346. else
  3347. if test -n "$ac_ct_CC"; then
  3348. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3349. else
  3350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3351. for as_dir in $PATH
  3352. do
  3353. IFS=$as_save_IFS
  3354. test -z "$as_dir" && as_dir=.
  3355. for ac_exec_ext in '' $ac_executable_extensions; do
  3356. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3357. ac_cv_prog_ac_ct_CC="gcc"
  3358. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3359. break 2
  3360. fi
  3361. done
  3362. done
  3363. IFS=$as_save_IFS
  3364. fi
  3365. fi
  3366. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3367. if test -n "$ac_ct_CC"; then
  3368. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3369. $as_echo "$ac_ct_CC" >&6; }
  3370. else
  3371. { $as_echo "$as_me:$LINENO: result: no" >&5
  3372. $as_echo "no" >&6; }
  3373. fi
  3374. if test "x$ac_ct_CC" = x; then
  3375. CC=""
  3376. else
  3377. case $cross_compiling:$ac_tool_warned in
  3378. yes:)
  3379. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3380. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3381. ac_tool_warned=yes ;;
  3382. esac
  3383. CC=$ac_ct_CC
  3384. fi
  3385. else
  3386. CC="$ac_cv_prog_CC"
  3387. fi
  3388. if test -z "$CC"; then
  3389. if test -n "$ac_tool_prefix"; then
  3390. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3391. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3392. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3393. $as_echo_n "checking for $ac_word... " >&6; }
  3394. if test "${ac_cv_prog_CC+set}" = set; then
  3395. $as_echo_n "(cached) " >&6
  3396. else
  3397. if test -n "$CC"; then
  3398. ac_cv_prog_CC="$CC" # Let the user override the test.
  3399. else
  3400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3401. for as_dir in $PATH
  3402. do
  3403. IFS=$as_save_IFS
  3404. test -z "$as_dir" && as_dir=.
  3405. for ac_exec_ext in '' $ac_executable_extensions; do
  3406. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3407. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3408. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3409. break 2
  3410. fi
  3411. done
  3412. done
  3413. IFS=$as_save_IFS
  3414. fi
  3415. fi
  3416. CC=$ac_cv_prog_CC
  3417. if test -n "$CC"; then
  3418. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3419. $as_echo "$CC" >&6; }
  3420. else
  3421. { $as_echo "$as_me:$LINENO: result: no" >&5
  3422. $as_echo "no" >&6; }
  3423. fi
  3424. fi
  3425. fi
  3426. if test -z "$CC"; then
  3427. # Extract the first word of "cc", so it can be a program name with args.
  3428. set dummy cc; ac_word=$2
  3429. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3430. $as_echo_n "checking for $ac_word... " >&6; }
  3431. if test "${ac_cv_prog_CC+set}" = set; then
  3432. $as_echo_n "(cached) " >&6
  3433. else
  3434. if test -n "$CC"; then
  3435. ac_cv_prog_CC="$CC" # Let the user override the test.
  3436. else
  3437. ac_prog_rejected=no
  3438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3439. for as_dir in $PATH
  3440. do
  3441. IFS=$as_save_IFS
  3442. test -z "$as_dir" && as_dir=.
  3443. for ac_exec_ext in '' $ac_executable_extensions; do
  3444. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3445. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3446. ac_prog_rejected=yes
  3447. continue
  3448. fi
  3449. ac_cv_prog_CC="cc"
  3450. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3451. break 2
  3452. fi
  3453. done
  3454. done
  3455. IFS=$as_save_IFS
  3456. if test $ac_prog_rejected = yes; then
  3457. # We found a bogon in the path, so make sure we never use it.
  3458. set dummy $ac_cv_prog_CC
  3459. shift
  3460. if test $# != 0; then
  3461. # We chose a different compiler from the bogus one.
  3462. # However, it has the same basename, so the bogon will be chosen
  3463. # first if we set CC to just the basename; use the full file name.
  3464. shift
  3465. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3466. fi
  3467. fi
  3468. fi
  3469. fi
  3470. CC=$ac_cv_prog_CC
  3471. if test -n "$CC"; then
  3472. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3473. $as_echo "$CC" >&6; }
  3474. else
  3475. { $as_echo "$as_me:$LINENO: result: no" >&5
  3476. $as_echo "no" >&6; }
  3477. fi
  3478. fi
  3479. if test -z "$CC"; then
  3480. if test -n "$ac_tool_prefix"; then
  3481. for ac_prog in cl.exe
  3482. do
  3483. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3484. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3485. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3486. $as_echo_n "checking for $ac_word... " >&6; }
  3487. if test "${ac_cv_prog_CC+set}" = set; then
  3488. $as_echo_n "(cached) " >&6
  3489. else
  3490. if test -n "$CC"; then
  3491. ac_cv_prog_CC="$CC" # Let the user override the test.
  3492. else
  3493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3494. for as_dir in $PATH
  3495. do
  3496. IFS=$as_save_IFS
  3497. test -z "$as_dir" && as_dir=.
  3498. for ac_exec_ext in '' $ac_executable_extensions; do
  3499. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3500. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3501. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3502. break 2
  3503. fi
  3504. done
  3505. done
  3506. IFS=$as_save_IFS
  3507. fi
  3508. fi
  3509. CC=$ac_cv_prog_CC
  3510. if test -n "$CC"; then
  3511. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3512. $as_echo "$CC" >&6; }
  3513. else
  3514. { $as_echo "$as_me:$LINENO: result: no" >&5
  3515. $as_echo "no" >&6; }
  3516. fi
  3517. test -n "$CC" && break
  3518. done
  3519. fi
  3520. if test -z "$CC"; then
  3521. ac_ct_CC=$CC
  3522. for ac_prog in cl.exe
  3523. do
  3524. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3525. set dummy $ac_prog; ac_word=$2
  3526. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3527. $as_echo_n "checking for $ac_word... " >&6; }
  3528. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3529. $as_echo_n "(cached) " >&6
  3530. else
  3531. if test -n "$ac_ct_CC"; then
  3532. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3533. else
  3534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3535. for as_dir in $PATH
  3536. do
  3537. IFS=$as_save_IFS
  3538. test -z "$as_dir" && as_dir=.
  3539. for ac_exec_ext in '' $ac_executable_extensions; do
  3540. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3541. ac_cv_prog_ac_ct_CC="$ac_prog"
  3542. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3543. break 2
  3544. fi
  3545. done
  3546. done
  3547. IFS=$as_save_IFS
  3548. fi
  3549. fi
  3550. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3551. if test -n "$ac_ct_CC"; then
  3552. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3553. $as_echo "$ac_ct_CC" >&6; }
  3554. else
  3555. { $as_echo "$as_me:$LINENO: result: no" >&5
  3556. $as_echo "no" >&6; }
  3557. fi
  3558. test -n "$ac_ct_CC" && break
  3559. done
  3560. if test "x$ac_ct_CC" = x; then
  3561. CC=""
  3562. else
  3563. case $cross_compiling:$ac_tool_warned in
  3564. yes:)
  3565. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3566. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3567. ac_tool_warned=yes ;;
  3568. esac
  3569. CC=$ac_ct_CC
  3570. fi
  3571. fi
  3572. fi
  3573. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3574. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3575. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3576. See \`config.log' for more details." >&5
  3577. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  3578. See \`config.log' for more details." >&2;}
  3579. { (exit 1); exit 1; }; }; }
  3580. # Provide some information about the compiler.
  3581. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  3582. set X $ac_compile
  3583. ac_compiler=$2
  3584. { (ac_try="$ac_compiler --version >&5"
  3585. case "(($ac_try" in
  3586. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3587. *) ac_try_echo=$ac_try;;
  3588. esac
  3589. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3590. $as_echo "$ac_try_echo") >&5
  3591. (eval "$ac_compiler --version >&5") 2>&5
  3592. ac_status=$?
  3593. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3594. (exit $ac_status); }
  3595. { (ac_try="$ac_compiler -v >&5"
  3596. case "(($ac_try" in
  3597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3598. *) ac_try_echo=$ac_try;;
  3599. esac
  3600. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3601. $as_echo "$ac_try_echo") >&5
  3602. (eval "$ac_compiler -v >&5") 2>&5
  3603. ac_status=$?
  3604. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3605. (exit $ac_status); }
  3606. { (ac_try="$ac_compiler -V >&5"
  3607. case "(($ac_try" in
  3608. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3609. *) ac_try_echo=$ac_try;;
  3610. esac
  3611. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3612. $as_echo "$ac_try_echo") >&5
  3613. (eval "$ac_compiler -V >&5") 2>&5
  3614. ac_status=$?
  3615. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3616. (exit $ac_status); }
  3617. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3618. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3619. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3620. $as_echo_n "(cached) " >&6
  3621. else
  3622. cat >conftest.$ac_ext <<_ACEOF
  3623. /* confdefs.h. */
  3624. _ACEOF
  3625. cat confdefs.h >>conftest.$ac_ext
  3626. cat >>conftest.$ac_ext <<_ACEOF
  3627. /* end confdefs.h. */
  3628. int
  3629. main ()
  3630. {
  3631. #ifndef __GNUC__
  3632. choke me
  3633. #endif
  3634. ;
  3635. return 0;
  3636. }
  3637. _ACEOF
  3638. rm -f conftest.$ac_objext
  3639. if { (ac_try="$ac_compile"
  3640. case "(($ac_try" in
  3641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3642. *) ac_try_echo=$ac_try;;
  3643. esac
  3644. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3645. $as_echo "$ac_try_echo") >&5
  3646. (eval "$ac_compile") 2>conftest.er1
  3647. ac_status=$?
  3648. grep -v '^ *+' conftest.er1 >conftest.err
  3649. rm -f conftest.er1
  3650. cat conftest.err >&5
  3651. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3652. (exit $ac_status); } && {
  3653. test -z "$ac_c_werror_flag" ||
  3654. test ! -s conftest.err
  3655. } && test -s conftest.$ac_objext; then
  3656. ac_compiler_gnu=yes
  3657. else
  3658. $as_echo "$as_me: failed program was:" >&5
  3659. sed 's/^/| /' conftest.$ac_ext >&5
  3660. ac_compiler_gnu=no
  3661. fi
  3662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3663. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3664. fi
  3665. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3666. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3667. if test $ac_compiler_gnu = yes; then
  3668. GCC=yes
  3669. else
  3670. GCC=
  3671. fi
  3672. ac_test_CFLAGS=${CFLAGS+set}
  3673. ac_save_CFLAGS=$CFLAGS
  3674. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3675. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3676. if test "${ac_cv_prog_cc_g+set}" = set; then
  3677. $as_echo_n "(cached) " >&6
  3678. else
  3679. ac_save_c_werror_flag=$ac_c_werror_flag
  3680. ac_c_werror_flag=yes
  3681. ac_cv_prog_cc_g=no
  3682. CFLAGS="-g"
  3683. cat >conftest.$ac_ext <<_ACEOF
  3684. /* confdefs.h. */
  3685. _ACEOF
  3686. cat confdefs.h >>conftest.$ac_ext
  3687. cat >>conftest.$ac_ext <<_ACEOF
  3688. /* end confdefs.h. */
  3689. int
  3690. main ()
  3691. {
  3692. ;
  3693. return 0;
  3694. }
  3695. _ACEOF
  3696. rm -f conftest.$ac_objext
  3697. if { (ac_try="$ac_compile"
  3698. case "(($ac_try" in
  3699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3700. *) ac_try_echo=$ac_try;;
  3701. esac
  3702. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3703. $as_echo "$ac_try_echo") >&5
  3704. (eval "$ac_compile") 2>conftest.er1
  3705. ac_status=$?
  3706. grep -v '^ *+' conftest.er1 >conftest.err
  3707. rm -f conftest.er1
  3708. cat conftest.err >&5
  3709. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3710. (exit $ac_status); } && {
  3711. test -z "$ac_c_werror_flag" ||
  3712. test ! -s conftest.err
  3713. } && test -s conftest.$ac_objext; then
  3714. ac_cv_prog_cc_g=yes
  3715. else
  3716. $as_echo "$as_me: failed program was:" >&5
  3717. sed 's/^/| /' conftest.$ac_ext >&5
  3718. CFLAGS=""
  3719. cat >conftest.$ac_ext <<_ACEOF
  3720. /* confdefs.h. */
  3721. _ACEOF
  3722. cat confdefs.h >>conftest.$ac_ext
  3723. cat >>conftest.$ac_ext <<_ACEOF
  3724. /* end confdefs.h. */
  3725. int
  3726. main ()
  3727. {
  3728. ;
  3729. return 0;
  3730. }
  3731. _ACEOF
  3732. rm -f conftest.$ac_objext
  3733. if { (ac_try="$ac_compile"
  3734. case "(($ac_try" in
  3735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3736. *) ac_try_echo=$ac_try;;
  3737. esac
  3738. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3739. $as_echo "$ac_try_echo") >&5
  3740. (eval "$ac_compile") 2>conftest.er1
  3741. ac_status=$?
  3742. grep -v '^ *+' conftest.er1 >conftest.err
  3743. rm -f conftest.er1
  3744. cat conftest.err >&5
  3745. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3746. (exit $ac_status); } && {
  3747. test -z "$ac_c_werror_flag" ||
  3748. test ! -s conftest.err
  3749. } && test -s conftest.$ac_objext; then
  3750. :
  3751. else
  3752. $as_echo "$as_me: failed program was:" >&5
  3753. sed 's/^/| /' conftest.$ac_ext >&5
  3754. ac_c_werror_flag=$ac_save_c_werror_flag
  3755. CFLAGS="-g"
  3756. cat >conftest.$ac_ext <<_ACEOF
  3757. /* confdefs.h. */
  3758. _ACEOF
  3759. cat confdefs.h >>conftest.$ac_ext
  3760. cat >>conftest.$ac_ext <<_ACEOF
  3761. /* end confdefs.h. */
  3762. int
  3763. main ()
  3764. {
  3765. ;
  3766. return 0;
  3767. }
  3768. _ACEOF
  3769. rm -f conftest.$ac_objext
  3770. if { (ac_try="$ac_compile"
  3771. case "(($ac_try" in
  3772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3773. *) ac_try_echo=$ac_try;;
  3774. esac
  3775. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3776. $as_echo "$ac_try_echo") >&5
  3777. (eval "$ac_compile") 2>conftest.er1
  3778. ac_status=$?
  3779. grep -v '^ *+' conftest.er1 >conftest.err
  3780. rm -f conftest.er1
  3781. cat conftest.err >&5
  3782. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3783. (exit $ac_status); } && {
  3784. test -z "$ac_c_werror_flag" ||
  3785. test ! -s conftest.err
  3786. } && test -s conftest.$ac_objext; then
  3787. ac_cv_prog_cc_g=yes
  3788. else
  3789. $as_echo "$as_me: failed program was:" >&5
  3790. sed 's/^/| /' conftest.$ac_ext >&5
  3791. fi
  3792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3793. fi
  3794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3795. fi
  3796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3797. ac_c_werror_flag=$ac_save_c_werror_flag
  3798. fi
  3799. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3800. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3801. if test "$ac_test_CFLAGS" = set; then
  3802. CFLAGS=$ac_save_CFLAGS
  3803. elif test $ac_cv_prog_cc_g = yes; then
  3804. if test "$GCC" = yes; then
  3805. CFLAGS="-g -O2"
  3806. else
  3807. CFLAGS="-g"
  3808. fi
  3809. else
  3810. if test "$GCC" = yes; then
  3811. CFLAGS="-O2"
  3812. else
  3813. CFLAGS=
  3814. fi
  3815. fi
  3816. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3817. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3818. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3819. $as_echo_n "(cached) " >&6
  3820. else
  3821. ac_cv_prog_cc_c89=no
  3822. ac_save_CC=$CC
  3823. cat >conftest.$ac_ext <<_ACEOF
  3824. /* confdefs.h. */
  3825. _ACEOF
  3826. cat confdefs.h >>conftest.$ac_ext
  3827. cat >>conftest.$ac_ext <<_ACEOF
  3828. /* end confdefs.h. */
  3829. #include <stdarg.h>
  3830. #include <stdio.h>
  3831. #include <sys/types.h>
  3832. #include <sys/stat.h>
  3833. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3834. struct buf { int x; };
  3835. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3836. static char *e (p, i)
  3837. char **p;
  3838. int i;
  3839. {
  3840. return p[i];
  3841. }
  3842. static char *f (char * (*g) (char **, int), char **p, ...)
  3843. {
  3844. char *s;
  3845. va_list v;
  3846. va_start (v,p);
  3847. s = g (p, va_arg (v,int));
  3848. va_end (v);
  3849. return s;
  3850. }
  3851. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3852. function prototypes and stuff, but not '\xHH' hex character constants.
  3853. These don't provoke an error unfortunately, instead are silently treated
  3854. as 'x'. The following induces an error, until -std is added to get
  3855. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3856. array size at least. It's necessary to write '\x00'==0 to get something
  3857. that's true only with -std. */
  3858. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3859. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3860. inside strings and character constants. */
  3861. #define FOO(x) 'x'
  3862. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3863. int test (int i, double x);
  3864. struct s1 {int (*f) (int a);};
  3865. struct s2 {int (*f) (double a);};
  3866. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3867. int argc;
  3868. char **argv;
  3869. int
  3870. main ()
  3871. {
  3872. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3873. ;
  3874. return 0;
  3875. }
  3876. _ACEOF
  3877. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3878. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3879. do
  3880. CC="$ac_save_CC $ac_arg"
  3881. rm -f conftest.$ac_objext
  3882. if { (ac_try="$ac_compile"
  3883. case "(($ac_try" in
  3884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3885. *) ac_try_echo=$ac_try;;
  3886. esac
  3887. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3888. $as_echo "$ac_try_echo") >&5
  3889. (eval "$ac_compile") 2>conftest.er1
  3890. ac_status=$?
  3891. grep -v '^ *+' conftest.er1 >conftest.err
  3892. rm -f conftest.er1
  3893. cat conftest.err >&5
  3894. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3895. (exit $ac_status); } && {
  3896. test -z "$ac_c_werror_flag" ||
  3897. test ! -s conftest.err
  3898. } && test -s conftest.$ac_objext; then
  3899. ac_cv_prog_cc_c89=$ac_arg
  3900. else
  3901. $as_echo "$as_me: failed program was:" >&5
  3902. sed 's/^/| /' conftest.$ac_ext >&5
  3903. fi
  3904. rm -f core conftest.err conftest.$ac_objext
  3905. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3906. done
  3907. rm -f conftest.$ac_ext
  3908. CC=$ac_save_CC
  3909. fi
  3910. # AC_CACHE_VAL
  3911. case "x$ac_cv_prog_cc_c89" in
  3912. x)
  3913. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3914. $as_echo "none needed" >&6; } ;;
  3915. xno)
  3916. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3917. $as_echo "unsupported" >&6; } ;;
  3918. *)
  3919. CC="$CC $ac_cv_prog_cc_c89"
  3920. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3921. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3922. esac
  3923. ac_ext=c
  3924. ac_cpp='$CPP $CPPFLAGS'
  3925. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3926. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3927. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3928. depcc="$CC" am_compiler_list=
  3929. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3930. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3931. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3932. $as_echo_n "(cached) " >&6
  3933. else
  3934. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3935. # We make a subdir and do the tests there. Otherwise we can end up
  3936. # making bogus files that we don't know about and never remove. For
  3937. # instance it was reported that on HP-UX the gcc test will end up
  3938. # making a dummy file named `D' -- because `-MD' means `put the output
  3939. # in D'.
  3940. mkdir conftest.dir
  3941. # Copy depcomp to subdir because otherwise we won't find it if we're
  3942. # using a relative directory.
  3943. cp "$am_depcomp" conftest.dir
  3944. cd conftest.dir
  3945. # We will build objects and dependencies in a subdirectory because
  3946. # it helps to detect inapplicable dependency modes. For instance
  3947. # both Tru64's cc and ICC support -MD to output dependencies as a
  3948. # side effect of compilation, but ICC will put the dependencies in
  3949. # the current directory while Tru64 will put them in the object
  3950. # directory.
  3951. mkdir sub
  3952. am_cv_CC_dependencies_compiler_type=none
  3953. if test "$am_compiler_list" = ""; then
  3954. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3955. fi
  3956. for depmode in $am_compiler_list; do
  3957. # Setup a source with many dependencies, because some compilers
  3958. # like to wrap large dependency lists on column 80 (with \), and
  3959. # we should not choose a depcomp mode which is confused by this.
  3960. #
  3961. # We need to recreate these files for each test, as the compiler may
  3962. # overwrite some of them when testing with obscure command lines.
  3963. # This happens at least with the AIX C compiler.
  3964. : > sub/conftest.c
  3965. for i in 1 2 3 4 5 6; do
  3966. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3967. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3968. # Solaris 8's {/usr,}/bin/sh.
  3969. touch sub/conftst$i.h
  3970. done
  3971. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3972. case $depmode in
  3973. nosideeffect)
  3974. # after this tag, mechanisms are not by side-effect, so they'll
  3975. # only be used when explicitly requested
  3976. if test "x$enable_dependency_tracking" = xyes; then
  3977. continue
  3978. else
  3979. break
  3980. fi
  3981. ;;
  3982. none) break ;;
  3983. esac
  3984. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3985. # mode. It turns out that the SunPro C++ compiler does not properly
  3986. # handle `-M -o', and we need to detect this.
  3987. if depmode=$depmode \
  3988. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3989. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3990. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3991. >/dev/null 2>conftest.err &&
  3992. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3993. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3994. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3995. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3996. # icc doesn't choke on unknown options, it will just issue warnings
  3997. # or remarks (even with -Werror). So we grep stderr for any message
  3998. # that says an option was ignored or not supported.
  3999. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4000. # icc: Command line warning: ignoring option '-M'; no argument required
  4001. # The diagnosis changed in icc 8.0:
  4002. # icc: Command line remark: option '-MP' not supported
  4003. if (grep 'ignoring option' conftest.err ||
  4004. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4005. am_cv_CC_dependencies_compiler_type=$depmode
  4006. break
  4007. fi
  4008. fi
  4009. done
  4010. cd ..
  4011. rm -rf conftest.dir
  4012. else
  4013. am_cv_CC_dependencies_compiler_type=none
  4014. fi
  4015. fi
  4016. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4017. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4018. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4019. if
  4020. test "x$enable_dependency_tracking" != xno \
  4021. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4022. am__fastdepCC_TRUE=
  4023. am__fastdepCC_FALSE='#'
  4024. else
  4025. am__fastdepCC_TRUE='#'
  4026. am__fastdepCC_FALSE=
  4027. fi
  4028. # Find a good install program. We prefer a C program (faster),
  4029. # so one script is as good as another. But avoid the broken or
  4030. # incompatible versions:
  4031. # SysV /etc/install, /usr/sbin/install
  4032. # SunOS /usr/etc/install
  4033. # IRIX /sbin/install
  4034. # AIX /bin/install
  4035. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4036. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4037. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4038. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4039. # OS/2's system install, which has a completely different semantic
  4040. # ./install, which can be erroneously created by make from ./install.sh.
  4041. # Reject install programs that cannot install multiple files.
  4042. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  4043. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4044. if test -z "$INSTALL"; then
  4045. if test "${ac_cv_path_install+set}" = set; then
  4046. $as_echo_n "(cached) " >&6
  4047. else
  4048. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4049. for as_dir in $PATH
  4050. do
  4051. IFS=$as_save_IFS
  4052. test -z "$as_dir" && as_dir=.
  4053. # Account for people who put trailing slashes in PATH elements.
  4054. case $as_dir/ in
  4055. ./ | .// | /cC/* | \
  4056. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4057. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  4058. /usr/ucb/* ) ;;
  4059. *)
  4060. # OSF1 and SCO ODT 3.0 have their own names for install.
  4061. # Don't use installbsd from OSF since it installs stuff as root
  4062. # by default.
  4063. for ac_prog in ginstall scoinst install; do
  4064. for ac_exec_ext in '' $ac_executable_extensions; do
  4065. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  4066. if test $ac_prog = install &&
  4067. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4068. # AIX install. It has an incompatible calling convention.
  4069. :
  4070. elif test $ac_prog = install &&
  4071. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4072. # program-specific install script used by HP pwplus--don't use.
  4073. :
  4074. else
  4075. rm -rf conftest.one conftest.two conftest.dir
  4076. echo one > conftest.one
  4077. echo two > conftest.two
  4078. mkdir conftest.dir
  4079. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4080. test -s conftest.one && test -s conftest.two &&
  4081. test -s conftest.dir/conftest.one &&
  4082. test -s conftest.dir/conftest.two
  4083. then
  4084. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4085. break 3
  4086. fi
  4087. fi
  4088. fi
  4089. done
  4090. done
  4091. ;;
  4092. esac
  4093. done
  4094. IFS=$as_save_IFS
  4095. rm -rf conftest.one conftest.two conftest.dir
  4096. fi
  4097. if test "${ac_cv_path_install+set}" = set; then
  4098. INSTALL=$ac_cv_path_install
  4099. else
  4100. # As a last resort, use the slow shell script. Don't cache a
  4101. # value for INSTALL within a source directory, because that will
  4102. # break other packages using the cache if that directory is
  4103. # removed, or if the value is a relative name.
  4104. INSTALL=$ac_install_sh
  4105. fi
  4106. fi
  4107. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  4108. $as_echo "$INSTALL" >&6; }
  4109. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4110. # It thinks the first close brace ends the variable substitution.
  4111. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4112. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4113. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4114. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  4115. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  4116. if test -z "$MKDIR_P"; then
  4117. if test "${ac_cv_path_mkdir+set}" = set; then
  4118. $as_echo_n "(cached) " >&6
  4119. else
  4120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4121. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  4122. do
  4123. IFS=$as_save_IFS
  4124. test -z "$as_dir" && as_dir=.
  4125. for ac_prog in mkdir gmkdir; do
  4126. for ac_exec_ext in '' $ac_executable_extensions; do
  4127. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  4128. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  4129. 'mkdir (GNU coreutils) '* | \
  4130. 'mkdir (coreutils) '* | \
  4131. 'mkdir (fileutils) '4.1*)
  4132. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  4133. break 3;;
  4134. esac
  4135. done
  4136. done
  4137. done
  4138. IFS=$as_save_IFS
  4139. fi
  4140. if test "${ac_cv_path_mkdir+set}" = set; then
  4141. MKDIR_P="$ac_cv_path_mkdir -p"
  4142. else
  4143. # As a last resort, use the slow shell script. Don't cache a
  4144. # value for MKDIR_P within a source directory, because that will
  4145. # break other packages using the cache if that directory is
  4146. # removed, or if the value is a relative name.
  4147. test -d ./--version && rmdir ./--version
  4148. MKDIR_P="$ac_install_sh -d"
  4149. fi
  4150. fi
  4151. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  4152. $as_echo "$MKDIR_P" >&6; }
  4153. if test -n "$ac_tool_prefix"; then
  4154. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4155. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4156. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4157. $as_echo_n "checking for $ac_word... " >&6; }
  4158. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4159. $as_echo_n "(cached) " >&6
  4160. else
  4161. if test -n "$RANLIB"; then
  4162. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4163. else
  4164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4165. for as_dir in $PATH
  4166. do
  4167. IFS=$as_save_IFS
  4168. test -z "$as_dir" && as_dir=.
  4169. for ac_exec_ext in '' $ac_executable_extensions; do
  4170. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4171. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4172. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4173. break 2
  4174. fi
  4175. done
  4176. done
  4177. IFS=$as_save_IFS
  4178. fi
  4179. fi
  4180. RANLIB=$ac_cv_prog_RANLIB
  4181. if test -n "$RANLIB"; then
  4182. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  4183. $as_echo "$RANLIB" >&6; }
  4184. else
  4185. { $as_echo "$as_me:$LINENO: result: no" >&5
  4186. $as_echo "no" >&6; }
  4187. fi
  4188. fi
  4189. if test -z "$ac_cv_prog_RANLIB"; then
  4190. ac_ct_RANLIB=$RANLIB
  4191. # Extract the first word of "ranlib", so it can be a program name with args.
  4192. set dummy ranlib; ac_word=$2
  4193. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4194. $as_echo_n "checking for $ac_word... " >&6; }
  4195. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4196. $as_echo_n "(cached) " >&6
  4197. else
  4198. if test -n "$ac_ct_RANLIB"; then
  4199. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4200. else
  4201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4202. for as_dir in $PATH
  4203. do
  4204. IFS=$as_save_IFS
  4205. test -z "$as_dir" && as_dir=.
  4206. for ac_exec_ext in '' $ac_executable_extensions; do
  4207. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4208. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4209. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4210. break 2
  4211. fi
  4212. done
  4213. done
  4214. IFS=$as_save_IFS
  4215. fi
  4216. fi
  4217. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4218. if test -n "$ac_ct_RANLIB"; then
  4219. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4220. $as_echo "$ac_ct_RANLIB" >&6; }
  4221. else
  4222. { $as_echo "$as_me:$LINENO: result: no" >&5
  4223. $as_echo "no" >&6; }
  4224. fi
  4225. if test "x$ac_ct_RANLIB" = x; then
  4226. RANLIB=":"
  4227. else
  4228. case $cross_compiling:$ac_tool_warned in
  4229. yes:)
  4230. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4231. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4232. ac_tool_warned=yes ;;
  4233. esac
  4234. RANLIB=$ac_ct_RANLIB
  4235. fi
  4236. else
  4237. RANLIB="$ac_cv_prog_RANLIB"
  4238. fi
  4239. for ac_prog in 'bison -y' byacc
  4240. do
  4241. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4242. set dummy $ac_prog; ac_word=$2
  4243. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4244. $as_echo_n "checking for $ac_word... " >&6; }
  4245. if test "${ac_cv_prog_YACC+set}" = set; then
  4246. $as_echo_n "(cached) " >&6
  4247. else
  4248. if test -n "$YACC"; then
  4249. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4250. else
  4251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4252. for as_dir in $PATH
  4253. do
  4254. IFS=$as_save_IFS
  4255. test -z "$as_dir" && as_dir=.
  4256. for ac_exec_ext in '' $ac_executable_extensions; do
  4257. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4258. ac_cv_prog_YACC="$ac_prog"
  4259. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4260. break 2
  4261. fi
  4262. done
  4263. done
  4264. IFS=$as_save_IFS
  4265. fi
  4266. fi
  4267. YACC=$ac_cv_prog_YACC
  4268. if test -n "$YACC"; then
  4269. { $as_echo "$as_me:$LINENO: result: $YACC" >&5
  4270. $as_echo "$YACC" >&6; }
  4271. else
  4272. { $as_echo "$as_me:$LINENO: result: no" >&5
  4273. $as_echo "no" >&6; }
  4274. fi
  4275. test -n "$YACC" && break
  4276. done
  4277. test -n "$YACC" || YACC="yacc"
  4278. # Setting language choice
  4279. ac_ext=cpp
  4280. ac_cpp='$CXXCPP $CPPFLAGS'
  4281. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4282. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4283. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4284. # Enable system extensions
  4285. ac_ext=cpp
  4286. ac_cpp='$CXXCPP $CPPFLAGS'
  4287. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4288. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4289. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4290. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4291. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4292. if test -z "$CXXCPP"; then
  4293. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4294. $as_echo_n "(cached) " >&6
  4295. else
  4296. # Double quotes because CXXCPP needs to be expanded
  4297. for CXXCPP in "$CXX -E" "/lib/cpp"
  4298. do
  4299. ac_preproc_ok=false
  4300. for ac_cxx_preproc_warn_flag in '' yes
  4301. do
  4302. # Use a header file that comes with gcc, so configuring glibc
  4303. # with a fresh cross-compiler works.
  4304. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4305. # <limits.h> exists even on freestanding compilers.
  4306. # On the NeXT, cc -E runs the code through the compiler's parser,
  4307. # not just through cpp. "Syntax error" is here to catch this case.
  4308. cat >conftest.$ac_ext <<_ACEOF
  4309. /* confdefs.h. */
  4310. _ACEOF
  4311. cat confdefs.h >>conftest.$ac_ext
  4312. cat >>conftest.$ac_ext <<_ACEOF
  4313. /* end confdefs.h. */
  4314. #ifdef __STDC__
  4315. # include <limits.h>
  4316. #else
  4317. # include <assert.h>
  4318. #endif
  4319. Syntax error
  4320. _ACEOF
  4321. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4322. case "(($ac_try" in
  4323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4324. *) ac_try_echo=$ac_try;;
  4325. esac
  4326. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4327. $as_echo "$ac_try_echo") >&5
  4328. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4329. ac_status=$?
  4330. grep -v '^ *+' conftest.er1 >conftest.err
  4331. rm -f conftest.er1
  4332. cat conftest.err >&5
  4333. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4334. (exit $ac_status); } >/dev/null && {
  4335. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4336. test ! -s conftest.err
  4337. }; then
  4338. :
  4339. else
  4340. $as_echo "$as_me: failed program was:" >&5
  4341. sed 's/^/| /' conftest.$ac_ext >&5
  4342. # Broken: fails on valid input.
  4343. continue
  4344. fi
  4345. rm -f conftest.err conftest.$ac_ext
  4346. # OK, works on sane cases. Now check whether nonexistent headers
  4347. # can be detected and how.
  4348. cat >conftest.$ac_ext <<_ACEOF
  4349. /* confdefs.h. */
  4350. _ACEOF
  4351. cat confdefs.h >>conftest.$ac_ext
  4352. cat >>conftest.$ac_ext <<_ACEOF
  4353. /* end confdefs.h. */
  4354. #include <ac_nonexistent.h>
  4355. _ACEOF
  4356. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4357. case "(($ac_try" in
  4358. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4359. *) ac_try_echo=$ac_try;;
  4360. esac
  4361. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4362. $as_echo "$ac_try_echo") >&5
  4363. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4364. ac_status=$?
  4365. grep -v '^ *+' conftest.er1 >conftest.err
  4366. rm -f conftest.er1
  4367. cat conftest.err >&5
  4368. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4369. (exit $ac_status); } >/dev/null && {
  4370. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4371. test ! -s conftest.err
  4372. }; then
  4373. # Broken: success on invalid input.
  4374. continue
  4375. else
  4376. $as_echo "$as_me: failed program was:" >&5
  4377. sed 's/^/| /' conftest.$ac_ext >&5
  4378. # Passes both tests.
  4379. ac_preproc_ok=:
  4380. break
  4381. fi
  4382. rm -f conftest.err conftest.$ac_ext
  4383. done
  4384. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4385. rm -f conftest.err conftest.$ac_ext
  4386. if $ac_preproc_ok; then
  4387. break
  4388. fi
  4389. done
  4390. ac_cv_prog_CXXCPP=$CXXCPP
  4391. fi
  4392. CXXCPP=$ac_cv_prog_CXXCPP
  4393. else
  4394. ac_cv_prog_CXXCPP=$CXXCPP
  4395. fi
  4396. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4397. $as_echo "$CXXCPP" >&6; }
  4398. ac_preproc_ok=false
  4399. for ac_cxx_preproc_warn_flag in '' yes
  4400. do
  4401. # Use a header file that comes with gcc, so configuring glibc
  4402. # with a fresh cross-compiler works.
  4403. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4404. # <limits.h> exists even on freestanding compilers.
  4405. # On the NeXT, cc -E runs the code through the compiler's parser,
  4406. # not just through cpp. "Syntax error" is here to catch this case.
  4407. cat >conftest.$ac_ext <<_ACEOF
  4408. /* confdefs.h. */
  4409. _ACEOF
  4410. cat confdefs.h >>conftest.$ac_ext
  4411. cat >>conftest.$ac_ext <<_ACEOF
  4412. /* end confdefs.h. */
  4413. #ifdef __STDC__
  4414. # include <limits.h>
  4415. #else
  4416. # include <assert.h>
  4417. #endif
  4418. Syntax error
  4419. _ACEOF
  4420. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4421. case "(($ac_try" in
  4422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4423. *) ac_try_echo=$ac_try;;
  4424. esac
  4425. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4426. $as_echo "$ac_try_echo") >&5
  4427. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4428. ac_status=$?
  4429. grep -v '^ *+' conftest.er1 >conftest.err
  4430. rm -f conftest.er1
  4431. cat conftest.err >&5
  4432. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4433. (exit $ac_status); } >/dev/null && {
  4434. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4435. test ! -s conftest.err
  4436. }; then
  4437. :
  4438. else
  4439. $as_echo "$as_me: failed program was:" >&5
  4440. sed 's/^/| /' conftest.$ac_ext >&5
  4441. # Broken: fails on valid input.
  4442. continue
  4443. fi
  4444. rm -f conftest.err conftest.$ac_ext
  4445. # OK, works on sane cases. Now check whether nonexistent headers
  4446. # can be detected and how.
  4447. cat >conftest.$ac_ext <<_ACEOF
  4448. /* confdefs.h. */
  4449. _ACEOF
  4450. cat confdefs.h >>conftest.$ac_ext
  4451. cat >>conftest.$ac_ext <<_ACEOF
  4452. /* end confdefs.h. */
  4453. #include <ac_nonexistent.h>
  4454. _ACEOF
  4455. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4456. case "(($ac_try" in
  4457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4458. *) ac_try_echo=$ac_try;;
  4459. esac
  4460. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4461. $as_echo "$ac_try_echo") >&5
  4462. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4463. ac_status=$?
  4464. grep -v '^ *+' conftest.er1 >conftest.err
  4465. rm -f conftest.er1
  4466. cat conftest.err >&5
  4467. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4468. (exit $ac_status); } >/dev/null && {
  4469. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4470. test ! -s conftest.err
  4471. }; then
  4472. # Broken: success on invalid input.
  4473. continue
  4474. else
  4475. $as_echo "$as_me: failed program was:" >&5
  4476. sed 's/^/| /' conftest.$ac_ext >&5
  4477. # Passes both tests.
  4478. ac_preproc_ok=:
  4479. break
  4480. fi
  4481. rm -f conftest.err conftest.$ac_ext
  4482. done
  4483. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4484. rm -f conftest.err conftest.$ac_ext
  4485. if $ac_preproc_ok; then
  4486. :
  4487. else
  4488. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  4489. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4490. { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4491. See \`config.log' for more details." >&5
  4492. $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4493. See \`config.log' for more details." >&2;}
  4494. { (exit 1); exit 1; }; }; }
  4495. fi
  4496. ac_ext=cpp
  4497. ac_cpp='$CXXCPP $CPPFLAGS'
  4498. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4499. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4500. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4501. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4502. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4503. if test "${ac_cv_path_GREP+set}" = set; then
  4504. $as_echo_n "(cached) " >&6
  4505. else
  4506. if test -z "$GREP"; then
  4507. ac_path_GREP_found=false
  4508. # Loop through the user's path and test for each of PROGNAME-LIST
  4509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4510. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4511. do
  4512. IFS=$as_save_IFS
  4513. test -z "$as_dir" && as_dir=.
  4514. for ac_prog in grep ggrep; do
  4515. for ac_exec_ext in '' $ac_executable_extensions; do
  4516. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4517. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4518. # Check for GNU ac_path_GREP and select it if it is found.
  4519. # Check for GNU $ac_path_GREP
  4520. case `"$ac_path_GREP" --version 2>&1` in
  4521. *GNU*)
  4522. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4523. *)
  4524. ac_count=0
  4525. $as_echo_n 0123456789 >"conftest.in"
  4526. while :
  4527. do
  4528. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4529. mv "conftest.tmp" "conftest.in"
  4530. cp "conftest.in" "conftest.nl"
  4531. $as_echo 'GREP' >> "conftest.nl"
  4532. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4533. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4534. ac_count=`expr $ac_count + 1`
  4535. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4536. # Best one so far, save it but keep looking for a better one
  4537. ac_cv_path_GREP="$ac_path_GREP"
  4538. ac_path_GREP_max=$ac_count
  4539. fi
  4540. # 10*(2^10) chars as input seems more than enough
  4541. test $ac_count -gt 10 && break
  4542. done
  4543. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4544. esac
  4545. $ac_path_GREP_found && break 3
  4546. done
  4547. done
  4548. done
  4549. IFS=$as_save_IFS
  4550. if test -z "$ac_cv_path_GREP"; then
  4551. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4552. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4553. { (exit 1); exit 1; }; }
  4554. fi
  4555. else
  4556. ac_cv_path_GREP=$GREP
  4557. fi
  4558. fi
  4559. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4560. $as_echo "$ac_cv_path_GREP" >&6; }
  4561. GREP="$ac_cv_path_GREP"
  4562. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  4563. $as_echo_n "checking for egrep... " >&6; }
  4564. if test "${ac_cv_path_EGREP+set}" = set; then
  4565. $as_echo_n "(cached) " >&6
  4566. else
  4567. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4568. then ac_cv_path_EGREP="$GREP -E"
  4569. else
  4570. if test -z "$EGREP"; then
  4571. ac_path_EGREP_found=false
  4572. # Loop through the user's path and test for each of PROGNAME-LIST
  4573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4574. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4575. do
  4576. IFS=$as_save_IFS
  4577. test -z "$as_dir" && as_dir=.
  4578. for ac_prog in egrep; do
  4579. for ac_exec_ext in '' $ac_executable_extensions; do
  4580. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4581. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4582. # Check for GNU ac_path_EGREP and select it if it is found.
  4583. # Check for GNU $ac_path_EGREP
  4584. case `"$ac_path_EGREP" --version 2>&1` in
  4585. *GNU*)
  4586. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4587. *)
  4588. ac_count=0
  4589. $as_echo_n 0123456789 >"conftest.in"
  4590. while :
  4591. do
  4592. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4593. mv "conftest.tmp" "conftest.in"
  4594. cp "conftest.in" "conftest.nl"
  4595. $as_echo 'EGREP' >> "conftest.nl"
  4596. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4597. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4598. ac_count=`expr $ac_count + 1`
  4599. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4600. # Best one so far, save it but keep looking for a better one
  4601. ac_cv_path_EGREP="$ac_path_EGREP"
  4602. ac_path_EGREP_max=$ac_count
  4603. fi
  4604. # 10*(2^10) chars as input seems more than enough
  4605. test $ac_count -gt 10 && break
  4606. done
  4607. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4608. esac
  4609. $ac_path_EGREP_found && break 3
  4610. done
  4611. done
  4612. done
  4613. IFS=$as_save_IFS
  4614. if test -z "$ac_cv_path_EGREP"; then
  4615. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4616. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4617. { (exit 1); exit 1; }; }
  4618. fi
  4619. else
  4620. ac_cv_path_EGREP=$EGREP
  4621. fi
  4622. fi
  4623. fi
  4624. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4625. $as_echo "$ac_cv_path_EGREP" >&6; }
  4626. EGREP="$ac_cv_path_EGREP"
  4627. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4628. $as_echo_n "checking for ANSI C header files... " >&6; }
  4629. if test "${ac_cv_header_stdc+set}" = set; then
  4630. $as_echo_n "(cached) " >&6
  4631. else
  4632. cat >conftest.$ac_ext <<_ACEOF
  4633. /* confdefs.h. */
  4634. _ACEOF
  4635. cat confdefs.h >>conftest.$ac_ext
  4636. cat >>conftest.$ac_ext <<_ACEOF
  4637. /* end confdefs.h. */
  4638. #include <stdlib.h>
  4639. #include <stdarg.h>
  4640. #include <string.h>
  4641. #include <float.h>
  4642. int
  4643. main ()
  4644. {
  4645. ;
  4646. return 0;
  4647. }
  4648. _ACEOF
  4649. rm -f conftest.$ac_objext
  4650. if { (ac_try="$ac_compile"
  4651. case "(($ac_try" in
  4652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4653. *) ac_try_echo=$ac_try;;
  4654. esac
  4655. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4656. $as_echo "$ac_try_echo") >&5
  4657. (eval "$ac_compile") 2>conftest.er1
  4658. ac_status=$?
  4659. grep -v '^ *+' conftest.er1 >conftest.err
  4660. rm -f conftest.er1
  4661. cat conftest.err >&5
  4662. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4663. (exit $ac_status); } && {
  4664. test -z "$ac_cxx_werror_flag" ||
  4665. test ! -s conftest.err
  4666. } && test -s conftest.$ac_objext; then
  4667. ac_cv_header_stdc=yes
  4668. else
  4669. $as_echo "$as_me: failed program was:" >&5
  4670. sed 's/^/| /' conftest.$ac_ext >&5
  4671. ac_cv_header_stdc=no
  4672. fi
  4673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4674. if test $ac_cv_header_stdc = yes; then
  4675. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4676. cat >conftest.$ac_ext <<_ACEOF
  4677. /* confdefs.h. */
  4678. _ACEOF
  4679. cat confdefs.h >>conftest.$ac_ext
  4680. cat >>conftest.$ac_ext <<_ACEOF
  4681. /* end confdefs.h. */
  4682. #include <string.h>
  4683. _ACEOF
  4684. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4685. $EGREP "memchr" >/dev/null 2>&1; then
  4686. :
  4687. else
  4688. ac_cv_header_stdc=no
  4689. fi
  4690. rm -f conftest*
  4691. fi
  4692. if test $ac_cv_header_stdc = yes; then
  4693. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4694. cat >conftest.$ac_ext <<_ACEOF
  4695. /* confdefs.h. */
  4696. _ACEOF
  4697. cat confdefs.h >>conftest.$ac_ext
  4698. cat >>conftest.$ac_ext <<_ACEOF
  4699. /* end confdefs.h. */
  4700. #include <stdlib.h>
  4701. _ACEOF
  4702. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4703. $EGREP "free" >/dev/null 2>&1; then
  4704. :
  4705. else
  4706. ac_cv_header_stdc=no
  4707. fi
  4708. rm -f conftest*
  4709. fi
  4710. if test $ac_cv_header_stdc = yes; then
  4711. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4712. if test "$cross_compiling" = yes; then
  4713. :
  4714. else
  4715. cat >conftest.$ac_ext <<_ACEOF
  4716. /* confdefs.h. */
  4717. _ACEOF
  4718. cat confdefs.h >>conftest.$ac_ext
  4719. cat >>conftest.$ac_ext <<_ACEOF
  4720. /* end confdefs.h. */
  4721. #include <ctype.h>
  4722. #include <stdlib.h>
  4723. #if ((' ' & 0x0FF) == 0x020)
  4724. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4725. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4726. #else
  4727. # define ISLOWER(c) \
  4728. (('a' <= (c) && (c) <= 'i') \
  4729. || ('j' <= (c) && (c) <= 'r') \
  4730. || ('s' <= (c) && (c) <= 'z'))
  4731. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4732. #endif
  4733. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4734. int
  4735. main ()
  4736. {
  4737. int i;
  4738. for (i = 0; i < 256; i++)
  4739. if (XOR (islower (i), ISLOWER (i))
  4740. || toupper (i) != TOUPPER (i))
  4741. return 2;
  4742. return 0;
  4743. }
  4744. _ACEOF
  4745. rm -f conftest$ac_exeext
  4746. if { (ac_try="$ac_link"
  4747. case "(($ac_try" in
  4748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4749. *) ac_try_echo=$ac_try;;
  4750. esac
  4751. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4752. $as_echo "$ac_try_echo") >&5
  4753. (eval "$ac_link") 2>&5
  4754. ac_status=$?
  4755. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4756. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4757. { (case "(($ac_try" in
  4758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4759. *) ac_try_echo=$ac_try;;
  4760. esac
  4761. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4762. $as_echo "$ac_try_echo") >&5
  4763. (eval "$ac_try") 2>&5
  4764. ac_status=$?
  4765. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4766. (exit $ac_status); }; }; then
  4767. :
  4768. else
  4769. $as_echo "$as_me: program exited with status $ac_status" >&5
  4770. $as_echo "$as_me: failed program was:" >&5
  4771. sed 's/^/| /' conftest.$ac_ext >&5
  4772. ( exit $ac_status )
  4773. ac_cv_header_stdc=no
  4774. fi
  4775. rm -rf conftest.dSYM
  4776. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4777. fi
  4778. fi
  4779. fi
  4780. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4781. $as_echo "$ac_cv_header_stdc" >&6; }
  4782. if test $ac_cv_header_stdc = yes; then
  4783. cat >>confdefs.h <<\_ACEOF
  4784. #define STDC_HEADERS 1
  4785. _ACEOF
  4786. fi
  4787. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4788. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4789. inttypes.h stdint.h unistd.h
  4790. do
  4791. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4792. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  4793. $as_echo_n "checking for $ac_header... " >&6; }
  4794. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4795. $as_echo_n "(cached) " >&6
  4796. else
  4797. cat >conftest.$ac_ext <<_ACEOF
  4798. /* confdefs.h. */
  4799. _ACEOF
  4800. cat confdefs.h >>conftest.$ac_ext
  4801. cat >>conftest.$ac_ext <<_ACEOF
  4802. /* end confdefs.h. */
  4803. $ac_includes_default
  4804. #include <$ac_header>
  4805. _ACEOF
  4806. rm -f conftest.$ac_objext
  4807. if { (ac_try="$ac_compile"
  4808. case "(($ac_try" in
  4809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4810. *) ac_try_echo=$ac_try;;
  4811. esac
  4812. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4813. $as_echo "$ac_try_echo") >&5
  4814. (eval "$ac_compile") 2>conftest.er1
  4815. ac_status=$?
  4816. grep -v '^ *+' conftest.er1 >conftest.err
  4817. rm -f conftest.er1
  4818. cat conftest.err >&5
  4819. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4820. (exit $ac_status); } && {
  4821. test -z "$ac_cxx_werror_flag" ||
  4822. test ! -s conftest.err
  4823. } && test -s conftest.$ac_objext; then
  4824. eval "$as_ac_Header=yes"
  4825. else
  4826. $as_echo "$as_me: failed program was:" >&5
  4827. sed 's/^/| /' conftest.$ac_ext >&5
  4828. eval "$as_ac_Header=no"
  4829. fi
  4830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4831. fi
  4832. ac_res=`eval 'as_val=${'$as_ac_Header'}
  4833. $as_echo "$as_val"'`
  4834. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4835. $as_echo "$ac_res" >&6; }
  4836. as_val=`eval 'as_val=${'$as_ac_Header'}
  4837. $as_echo "$as_val"'`
  4838. if test "x$as_val" = x""yes; then
  4839. cat >>confdefs.h <<_ACEOF
  4840. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4841. _ACEOF
  4842. fi
  4843. done
  4844. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4845. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4846. $as_echo_n "checking for minix/config.h... " >&6; }
  4847. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4848. $as_echo_n "(cached) " >&6
  4849. fi
  4850. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4851. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  4852. else
  4853. # Is the header compilable?
  4854. { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4855. $as_echo_n "checking minix/config.h usability... " >&6; }
  4856. cat >conftest.$ac_ext <<_ACEOF
  4857. /* confdefs.h. */
  4858. _ACEOF
  4859. cat confdefs.h >>conftest.$ac_ext
  4860. cat >>conftest.$ac_ext <<_ACEOF
  4861. /* end confdefs.h. */
  4862. $ac_includes_default
  4863. #include <minix/config.h>
  4864. _ACEOF
  4865. rm -f conftest.$ac_objext
  4866. if { (ac_try="$ac_compile"
  4867. case "(($ac_try" in
  4868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4869. *) ac_try_echo=$ac_try;;
  4870. esac
  4871. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4872. $as_echo "$ac_try_echo") >&5
  4873. (eval "$ac_compile") 2>conftest.er1
  4874. ac_status=$?
  4875. grep -v '^ *+' conftest.er1 >conftest.err
  4876. rm -f conftest.er1
  4877. cat conftest.err >&5
  4878. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4879. (exit $ac_status); } && {
  4880. test -z "$ac_cxx_werror_flag" ||
  4881. test ! -s conftest.err
  4882. } && test -s conftest.$ac_objext; then
  4883. ac_header_compiler=yes
  4884. else
  4885. $as_echo "$as_me: failed program was:" >&5
  4886. sed 's/^/| /' conftest.$ac_ext >&5
  4887. ac_header_compiler=no
  4888. fi
  4889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4890. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4891. $as_echo "$ac_header_compiler" >&6; }
  4892. # Is the header present?
  4893. { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4894. $as_echo_n "checking minix/config.h presence... " >&6; }
  4895. cat >conftest.$ac_ext <<_ACEOF
  4896. /* confdefs.h. */
  4897. _ACEOF
  4898. cat confdefs.h >>conftest.$ac_ext
  4899. cat >>conftest.$ac_ext <<_ACEOF
  4900. /* end confdefs.h. */
  4901. #include <minix/config.h>
  4902. _ACEOF
  4903. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4904. case "(($ac_try" in
  4905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4906. *) ac_try_echo=$ac_try;;
  4907. esac
  4908. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4909. $as_echo "$ac_try_echo") >&5
  4910. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4911. ac_status=$?
  4912. grep -v '^ *+' conftest.er1 >conftest.err
  4913. rm -f conftest.er1
  4914. cat conftest.err >&5
  4915. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4916. (exit $ac_status); } >/dev/null && {
  4917. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4918. test ! -s conftest.err
  4919. }; then
  4920. ac_header_preproc=yes
  4921. else
  4922. $as_echo "$as_me: failed program was:" >&5
  4923. sed 's/^/| /' conftest.$ac_ext >&5
  4924. ac_header_preproc=no
  4925. fi
  4926. rm -f conftest.err conftest.$ac_ext
  4927. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4928. $as_echo "$ac_header_preproc" >&6; }
  4929. # So? What about this header?
  4930. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4931. yes:no: )
  4932. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4933. $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4934. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4935. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4936. ac_header_preproc=yes
  4937. ;;
  4938. no:yes:* )
  4939. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4940. $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4941. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4942. $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4943. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4944. $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4945. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4946. $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4947. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4948. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4949. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4950. $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4951. ( cat <<\_ASBOX
  4952. ## ----------------------------------------------- ##
  4953. ## Report this to t-tujikawa@users.sourceforge.net ##
  4954. ## ----------------------------------------------- ##
  4955. _ASBOX
  4956. ) | sed "s/^/$as_me: WARNING: /" >&2
  4957. ;;
  4958. esac
  4959. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4960. $as_echo_n "checking for minix/config.h... " >&6; }
  4961. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4962. $as_echo_n "(cached) " >&6
  4963. else
  4964. ac_cv_header_minix_config_h=$ac_header_preproc
  4965. fi
  4966. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4967. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  4968. fi
  4969. if test "x$ac_cv_header_minix_config_h" = x""yes; then
  4970. MINIX=yes
  4971. else
  4972. MINIX=
  4973. fi
  4974. if test "$MINIX" = yes; then
  4975. cat >>confdefs.h <<\_ACEOF
  4976. #define _POSIX_SOURCE 1
  4977. _ACEOF
  4978. cat >>confdefs.h <<\_ACEOF
  4979. #define _POSIX_1_SOURCE 2
  4980. _ACEOF
  4981. cat >>confdefs.h <<\_ACEOF
  4982. #define _MINIX 1
  4983. _ACEOF
  4984. fi
  4985. { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  4986. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4987. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  4988. $as_echo_n "(cached) " >&6
  4989. else
  4990. cat >conftest.$ac_ext <<_ACEOF
  4991. /* confdefs.h. */
  4992. _ACEOF
  4993. cat confdefs.h >>conftest.$ac_ext
  4994. cat >>conftest.$ac_ext <<_ACEOF
  4995. /* end confdefs.h. */
  4996. # define __EXTENSIONS__ 1
  4997. $ac_includes_default
  4998. int
  4999. main ()
  5000. {
  5001. ;
  5002. return 0;
  5003. }
  5004. _ACEOF
  5005. rm -f conftest.$ac_objext
  5006. if { (ac_try="$ac_compile"
  5007. case "(($ac_try" in
  5008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5009. *) ac_try_echo=$ac_try;;
  5010. esac
  5011. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5012. $as_echo "$ac_try_echo") >&5
  5013. (eval "$ac_compile") 2>conftest.er1
  5014. ac_status=$?
  5015. grep -v '^ *+' conftest.er1 >conftest.err
  5016. rm -f conftest.er1
  5017. cat conftest.err >&5
  5018. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5019. (exit $ac_status); } && {
  5020. test -z "$ac_cxx_werror_flag" ||
  5021. test ! -s conftest.err
  5022. } && test -s conftest.$ac_objext; then
  5023. ac_cv_safe_to_define___extensions__=yes
  5024. else
  5025. $as_echo "$as_me: failed program was:" >&5
  5026. sed 's/^/| /' conftest.$ac_ext >&5
  5027. ac_cv_safe_to_define___extensions__=no
  5028. fi
  5029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5030. fi
  5031. { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  5032. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5033. test $ac_cv_safe_to_define___extensions__ = yes &&
  5034. cat >>confdefs.h <<\_ACEOF
  5035. #define __EXTENSIONS__ 1
  5036. _ACEOF
  5037. cat >>confdefs.h <<\_ACEOF
  5038. #define _ALL_SOURCE 1
  5039. _ACEOF
  5040. cat >>confdefs.h <<\_ACEOF
  5041. #define _GNU_SOURCE 1
  5042. _ACEOF
  5043. cat >>confdefs.h <<\_ACEOF
  5044. #define _POSIX_PTHREAD_SEMANTICS 1
  5045. _ACEOF
  5046. cat >>confdefs.h <<\_ACEOF
  5047. #define _TANDEM_SOURCE 1
  5048. _ACEOF
  5049. # Checks for libraries.
  5050. if test "x$with_libxml2" = "xyes"; then
  5051. # Check whether --with-xml-prefix was given.
  5052. if test "${with_xml_prefix+set}" = set; then
  5053. withval=$with_xml_prefix; xml_config_prefix="$withval"
  5054. else
  5055. xml_config_prefix=""
  5056. fi
  5057. # Check whether --with-xml-exec-prefix was given.
  5058. if test "${with_xml_exec_prefix+set}" = set; then
  5059. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  5060. else
  5061. xml_config_exec_prefix=""
  5062. fi
  5063. # Check whether --enable-xmltest was given.
  5064. if test "${enable_xmltest+set}" = set; then
  5065. enableval=$enable_xmltest;
  5066. else
  5067. enable_xmltest=yes
  5068. fi
  5069. if test x$xml_config_exec_prefix != x ; then
  5070. xml_config_args="$xml_config_args"
  5071. if test x${XML2_CONFIG+set} != xset ; then
  5072. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  5073. fi
  5074. fi
  5075. if test x$xml_config_prefix != x ; then
  5076. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  5077. if test x${XML2_CONFIG+set} != xset ; then
  5078. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  5079. fi
  5080. fi
  5081. # Extract the first word of "xml2-config", so it can be a program name with args.
  5082. set dummy xml2-config; ac_word=$2
  5083. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5084. $as_echo_n "checking for $ac_word... " >&6; }
  5085. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  5086. $as_echo_n "(cached) " >&6
  5087. else
  5088. case $XML2_CONFIG in
  5089. [\\/]* | ?:[\\/]*)
  5090. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  5091. ;;
  5092. *)
  5093. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5094. for as_dir in $PATH
  5095. do
  5096. IFS=$as_save_IFS
  5097. test -z "$as_dir" && as_dir=.
  5098. for ac_exec_ext in '' $ac_executable_extensions; do
  5099. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5100. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5101. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5102. break 2
  5103. fi
  5104. done
  5105. done
  5106. IFS=$as_save_IFS
  5107. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  5108. ;;
  5109. esac
  5110. fi
  5111. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  5112. if test -n "$XML2_CONFIG"; then
  5113. { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  5114. $as_echo "$XML2_CONFIG" >&6; }
  5115. else
  5116. { $as_echo "$as_me:$LINENO: result: no" >&5
  5117. $as_echo "no" >&6; }
  5118. fi
  5119. min_xml_version=2.6.24
  5120. { $as_echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  5121. $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
  5122. no_xml=""
  5123. if test "$XML2_CONFIG" = "no" ; then
  5124. no_xml=yes
  5125. else
  5126. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  5127. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  5128. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  5129. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  5130. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  5131. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  5132. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  5133. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  5134. if test "x$enable_xmltest" = "xyes" ; then
  5135. ac_save_CPPFLAGS="$CPPFLAGS"
  5136. ac_save_LIBS="$LIBS"
  5137. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5138. LIBS="$XML_LIBS $LIBS"
  5139. rm -f conf.xmltest
  5140. if test "$cross_compiling" = yes; then
  5141. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5142. else
  5143. cat >conftest.$ac_ext <<_ACEOF
  5144. /* confdefs.h. */
  5145. _ACEOF
  5146. cat confdefs.h >>conftest.$ac_ext
  5147. cat >>conftest.$ac_ext <<_ACEOF
  5148. /* end confdefs.h. */
  5149. #include <stdlib.h>
  5150. #include <stdio.h>
  5151. #include <string.h>
  5152. #include <libxml/xmlversion.h>
  5153. int
  5154. main()
  5155. {
  5156. int xml_major_version, xml_minor_version, xml_micro_version;
  5157. int major, minor, micro;
  5158. char *tmp_version;
  5159. system("touch conf.xmltest");
  5160. /* Capture xml2-config output via autoconf/configure variables */
  5161. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5162. tmp_version = (char *)strdup("$min_xml_version");
  5163. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5164. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5165. exit(1);
  5166. }
  5167. free(tmp_version);
  5168. /* Capture the version information from the header files */
  5169. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5170. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5171. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5172. exit(1);
  5173. }
  5174. free(tmp_version);
  5175. /* Compare xml2-config output to the libxml headers */
  5176. if ((xml_major_version != $xml_config_major_version) ||
  5177. (xml_minor_version != $xml_config_minor_version) ||
  5178. (xml_micro_version != $xml_config_micro_version))
  5179. {
  5180. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5181. xml_major_version, xml_minor_version, xml_micro_version);
  5182. printf("*** xml2-config (version %d.%d.%d)\n",
  5183. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5184. return 1;
  5185. }
  5186. /* Compare the headers to the library to make sure we match */
  5187. /* Less than ideal -- doesn't provide us with return value feedback,
  5188. * only exits if there's a serious mismatch between header and library.
  5189. */
  5190. LIBXML_TEST_VERSION;
  5191. /* Test that the library is greater than our minimum version */
  5192. if ((xml_major_version > major) ||
  5193. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5194. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5195. (xml_micro_version >= micro)))
  5196. {
  5197. return 0;
  5198. }
  5199. else
  5200. {
  5201. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5202. xml_major_version, xml_minor_version, xml_micro_version);
  5203. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5204. major, minor, micro);
  5205. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5206. printf("***\n");
  5207. printf("*** If you have already installed a sufficiently new version, this error\n");
  5208. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5209. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5210. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5211. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5212. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5213. printf("*** so that the correct libraries are found at run-time))\n");
  5214. }
  5215. return 1;
  5216. }
  5217. _ACEOF
  5218. rm -f conftest$ac_exeext
  5219. if { (ac_try="$ac_link"
  5220. case "(($ac_try" in
  5221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5222. *) ac_try_echo=$ac_try;;
  5223. esac
  5224. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5225. $as_echo "$ac_try_echo") >&5
  5226. (eval "$ac_link") 2>&5
  5227. ac_status=$?
  5228. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5229. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5230. { (case "(($ac_try" in
  5231. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5232. *) ac_try_echo=$ac_try;;
  5233. esac
  5234. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5235. $as_echo "$ac_try_echo") >&5
  5236. (eval "$ac_try") 2>&5
  5237. ac_status=$?
  5238. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5239. (exit $ac_status); }; }; then
  5240. :
  5241. else
  5242. $as_echo "$as_me: program exited with status $ac_status" >&5
  5243. $as_echo "$as_me: failed program was:" >&5
  5244. sed 's/^/| /' conftest.$ac_ext >&5
  5245. ( exit $ac_status )
  5246. no_xml=yes
  5247. fi
  5248. rm -rf conftest.dSYM
  5249. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5250. fi
  5251. CPPFLAGS="$ac_save_CPPFLAGS"
  5252. LIBS="$ac_save_LIBS"
  5253. fi
  5254. fi
  5255. if test "x$no_xml" = x ; then
  5256. { $as_echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5257. $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5258. have_libxml2=yes
  5259. else
  5260. { $as_echo "$as_me:$LINENO: result: no" >&5
  5261. $as_echo "no" >&6; }
  5262. if test "$XML2_CONFIG" = "no" ; then
  5263. echo "*** The xml2-config script installed by LIBXML could not be found"
  5264. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5265. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5266. echo "*** full path to xml2-config."
  5267. else
  5268. if test -f conf.xmltest ; then
  5269. :
  5270. else
  5271. echo "*** Could not run libxml test program, checking why..."
  5272. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5273. LIBS="$LIBS $XML_LIBS"
  5274. cat >conftest.$ac_ext <<_ACEOF
  5275. /* confdefs.h. */
  5276. _ACEOF
  5277. cat confdefs.h >>conftest.$ac_ext
  5278. cat >>conftest.$ac_ext <<_ACEOF
  5279. /* end confdefs.h. */
  5280. #include <libxml/xmlversion.h>
  5281. #include <stdio.h>
  5282. int
  5283. main ()
  5284. {
  5285. LIBXML_TEST_VERSION; return 0;
  5286. ;
  5287. return 0;
  5288. }
  5289. _ACEOF
  5290. rm -f conftest.$ac_objext conftest$ac_exeext
  5291. if { (ac_try="$ac_link"
  5292. case "(($ac_try" in
  5293. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5294. *) ac_try_echo=$ac_try;;
  5295. esac
  5296. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5297. $as_echo "$ac_try_echo") >&5
  5298. (eval "$ac_link") 2>conftest.er1
  5299. ac_status=$?
  5300. grep -v '^ *+' conftest.er1 >conftest.err
  5301. rm -f conftest.er1
  5302. cat conftest.err >&5
  5303. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5304. (exit $ac_status); } && {
  5305. test -z "$ac_cxx_werror_flag" ||
  5306. test ! -s conftest.err
  5307. } && test -s conftest$ac_exeext && {
  5308. test "$cross_compiling" = yes ||
  5309. $as_test_x conftest$ac_exeext
  5310. }; then
  5311. echo "*** The test program compiled, but did not run. This usually means"
  5312. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5313. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5314. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5315. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5316. echo "*** is required on your system"
  5317. echo "***"
  5318. echo "*** If you have an old version installed, it is best to remove it, although"
  5319. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5320. else
  5321. $as_echo "$as_me: failed program was:" >&5
  5322. sed 's/^/| /' conftest.$ac_ext >&5
  5323. echo "*** The test program failed to compile or link. See the file config.log for the"
  5324. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5325. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5326. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5327. fi
  5328. rm -rf conftest.dSYM
  5329. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5330. conftest$ac_exeext conftest.$ac_ext
  5331. CPPFLAGS="$ac_save_CPPFLAGS"
  5332. LIBS="$ac_save_LIBS"
  5333. fi
  5334. fi
  5335. XML_CPPFLAGS=""
  5336. XML_LIBS=""
  5337. :
  5338. fi
  5339. rm -f conf.xmltest
  5340. if test "x$have_libxml2" = "xyes"; then
  5341. cat >>confdefs.h <<\_ACEOF
  5342. #define HAVE_LIBXML2 1
  5343. _ACEOF
  5344. fi
  5345. fi
  5346. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5347. # Check whether --with-libexpat-prefix was given.
  5348. if test "${with_libexpat_prefix+set}" = set; then
  5349. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5350. else
  5351. libexpat_prefix=""
  5352. fi
  5353. if test "x$libexpat_prefix" = "x"; then
  5354. libexpat_prefix="/usr"
  5355. fi
  5356. libexpat_prefix_lib=$libexpat_prefix/lib
  5357. libexpat_prefix_include=$libexpat_prefix/include
  5358. LIBS_save=$LIBS
  5359. CPPFLAGS_save=$CPPFLAGS
  5360. LIBS="-L$libexpat_prefix_lib $LIBS"
  5361. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5362. { $as_echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
  5363. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  5364. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
  5365. $as_echo_n "(cached) " >&6
  5366. else
  5367. ac_check_lib_save_LIBS=$LIBS
  5368. LIBS="-lexpat $LIBS"
  5369. cat >conftest.$ac_ext <<_ACEOF
  5370. /* confdefs.h. */
  5371. _ACEOF
  5372. cat confdefs.h >>conftest.$ac_ext
  5373. cat >>conftest.$ac_ext <<_ACEOF
  5374. /* end confdefs.h. */
  5375. /* Override any GCC internal prototype to avoid an error.
  5376. Use char because int might match the return type of a GCC
  5377. builtin and then its argument prototype would still apply. */
  5378. #ifdef __cplusplus
  5379. extern "C"
  5380. #endif
  5381. char XML_ParserCreate ();
  5382. int
  5383. main ()
  5384. {
  5385. return XML_ParserCreate ();
  5386. ;
  5387. return 0;
  5388. }
  5389. _ACEOF
  5390. rm -f conftest.$ac_objext conftest$ac_exeext
  5391. if { (ac_try="$ac_link"
  5392. case "(($ac_try" in
  5393. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5394. *) ac_try_echo=$ac_try;;
  5395. esac
  5396. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5397. $as_echo "$ac_try_echo") >&5
  5398. (eval "$ac_link") 2>conftest.er1
  5399. ac_status=$?
  5400. grep -v '^ *+' conftest.er1 >conftest.err
  5401. rm -f conftest.er1
  5402. cat conftest.err >&5
  5403. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5404. (exit $ac_status); } && {
  5405. test -z "$ac_cxx_werror_flag" ||
  5406. test ! -s conftest.err
  5407. } && test -s conftest$ac_exeext && {
  5408. test "$cross_compiling" = yes ||
  5409. $as_test_x conftest$ac_exeext
  5410. }; then
  5411. ac_cv_lib_expat_XML_ParserCreate=yes
  5412. else
  5413. $as_echo "$as_me: failed program was:" >&5
  5414. sed 's/^/| /' conftest.$ac_ext >&5
  5415. ac_cv_lib_expat_XML_ParserCreate=no
  5416. fi
  5417. rm -rf conftest.dSYM
  5418. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5419. conftest$ac_exeext conftest.$ac_ext
  5420. LIBS=$ac_check_lib_save_LIBS
  5421. fi
  5422. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5423. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5424. if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then
  5425. have_libexpat=yes
  5426. fi
  5427. if test "x$have_libexpat" = "xyes"; then
  5428. cat >>confdefs.h <<\_ACEOF
  5429. #define HAVE_LIBEXPAT 1
  5430. _ACEOF
  5431. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5432. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5433. fi
  5434. LIBS=$LIBS_save
  5435. CPPFLAGS=$CPPFLAGS_save
  5436. fi
  5437. if test "x$with_sqlite3" = "xyes"; then
  5438. # Check whether --with-sqlite3-prefix was given.
  5439. if test "${with_sqlite3_prefix+set}" = set; then
  5440. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5441. else
  5442. sqlite3_prefix=""
  5443. fi
  5444. if test "x$sqlite3_prefix" = "x"; then
  5445. sqlite3_prefix="/usr"
  5446. fi
  5447. LIBS_save=$LIBS
  5448. CPPFLAGS_save=$CPPFLAGS
  5449. PKG_CONFIG="$sqlite3_prefix/bin/pkg-config"
  5450. if test -x $PKG_CONFIG; then
  5451. { $as_echo "$as_me:$LINENO: checking checking availability of sqlite3 using pkg-config" >&5
  5452. $as_echo_n "checking checking availability of sqlite3 using pkg-config... " >&6; }
  5453. $PKG_CONFIG --exists sqlite3
  5454. if test "$?" = "0"; then
  5455. # Use pkg-config to detect LIBS and CFLAGS
  5456. SQLITE3_LIBS=`$PKG_CONFIG --libs sqlite3`
  5457. SQLITE3_CFLAGS=`$PKG_CONFIG --cflags sqlite3`
  5458. LIBS="$SQLITE3_LIBS $LIBS"
  5459. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5460. have_sqlite3=yes
  5461. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5462. $as_echo "yes" >&6; }
  5463. else
  5464. { $as_echo "$as_me:$LINENO: result: no" >&5
  5465. $as_echo "no" >&6; }
  5466. fi
  5467. fi
  5468. if test "x$have_sqlite3" != "xyes"; then
  5469. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5470. sqlite3_prefix_include=$sqlite3_prefix/include
  5471. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5472. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5473. { $as_echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5
  5474. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  5475. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then
  5476. $as_echo_n "(cached) " >&6
  5477. else
  5478. ac_check_lib_save_LIBS=$LIBS
  5479. LIBS="-lsqlite3 $LIBS"
  5480. cat >conftest.$ac_ext <<_ACEOF
  5481. /* confdefs.h. */
  5482. _ACEOF
  5483. cat confdefs.h >>conftest.$ac_ext
  5484. cat >>conftest.$ac_ext <<_ACEOF
  5485. /* end confdefs.h. */
  5486. /* Override any GCC internal prototype to avoid an error.
  5487. Use char because int might match the return type of a GCC
  5488. builtin and then its argument prototype would still apply. */
  5489. #ifdef __cplusplus
  5490. extern "C"
  5491. #endif
  5492. char sqlite3_open ();
  5493. int
  5494. main ()
  5495. {
  5496. return sqlite3_open ();
  5497. ;
  5498. return 0;
  5499. }
  5500. _ACEOF
  5501. rm -f conftest.$ac_objext conftest$ac_exeext
  5502. if { (ac_try="$ac_link"
  5503. case "(($ac_try" in
  5504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5505. *) ac_try_echo=$ac_try;;
  5506. esac
  5507. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5508. $as_echo "$ac_try_echo") >&5
  5509. (eval "$ac_link") 2>conftest.er1
  5510. ac_status=$?
  5511. grep -v '^ *+' conftest.er1 >conftest.err
  5512. rm -f conftest.er1
  5513. cat conftest.err >&5
  5514. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5515. (exit $ac_status); } && {
  5516. test -z "$ac_cxx_werror_flag" ||
  5517. test ! -s conftest.err
  5518. } && test -s conftest$ac_exeext && {
  5519. test "$cross_compiling" = yes ||
  5520. $as_test_x conftest$ac_exeext
  5521. }; then
  5522. ac_cv_lib_sqlite3_sqlite3_open=yes
  5523. else
  5524. $as_echo "$as_me: failed program was:" >&5
  5525. sed 's/^/| /' conftest.$ac_ext >&5
  5526. ac_cv_lib_sqlite3_sqlite3_open=no
  5527. fi
  5528. rm -rf conftest.dSYM
  5529. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5530. conftest$ac_exeext conftest.$ac_ext
  5531. LIBS=$ac_check_lib_save_LIBS
  5532. fi
  5533. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5534. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5535. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then
  5536. have_sqlite3=yes
  5537. fi
  5538. if test "x$have_sqlite3" = "xyes"; then
  5539. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5540. SQLITE3_CPPFLAGS="-I$sqlite3_prefix_include"
  5541. fi
  5542. fi
  5543. if test "x$have_sqlite3" = "xyes"; then
  5544. for ac_func in sqlite3_open_v2
  5545. do
  5546. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5547. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  5548. $as_echo_n "checking for $ac_func... " >&6; }
  5549. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5550. $as_echo_n "(cached) " >&6
  5551. else
  5552. cat >conftest.$ac_ext <<_ACEOF
  5553. /* confdefs.h. */
  5554. _ACEOF
  5555. cat confdefs.h >>conftest.$ac_ext
  5556. cat >>conftest.$ac_ext <<_ACEOF
  5557. /* end confdefs.h. */
  5558. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5559. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5560. #define $ac_func innocuous_$ac_func
  5561. /* System header to define __stub macros and hopefully few prototypes,
  5562. which can conflict with char $ac_func (); below.
  5563. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5564. <limits.h> exists even on freestanding compilers. */
  5565. #ifdef __STDC__
  5566. # include <limits.h>
  5567. #else
  5568. # include <assert.h>
  5569. #endif
  5570. #undef $ac_func
  5571. /* Override any GCC internal prototype to avoid an error.
  5572. Use char because int might match the return type of a GCC
  5573. builtin and then its argument prototype would still apply. */
  5574. #ifdef __cplusplus
  5575. extern "C"
  5576. #endif
  5577. char $ac_func ();
  5578. /* The GNU C library defines this for functions which it implements
  5579. to always fail with ENOSYS. Some functions are actually named
  5580. something starting with __ and the normal name is an alias. */
  5581. #if defined __stub_$ac_func || defined __stub___$ac_func
  5582. choke me
  5583. #endif
  5584. int
  5585. main ()
  5586. {
  5587. return $ac_func ();
  5588. ;
  5589. return 0;
  5590. }
  5591. _ACEOF
  5592. rm -f conftest.$ac_objext conftest$ac_exeext
  5593. if { (ac_try="$ac_link"
  5594. case "(($ac_try" in
  5595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5596. *) ac_try_echo=$ac_try;;
  5597. esac
  5598. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5599. $as_echo "$ac_try_echo") >&5
  5600. (eval "$ac_link") 2>conftest.er1
  5601. ac_status=$?
  5602. grep -v '^ *+' conftest.er1 >conftest.err
  5603. rm -f conftest.er1
  5604. cat conftest.err >&5
  5605. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5606. (exit $ac_status); } && {
  5607. test -z "$ac_cxx_werror_flag" ||
  5608. test ! -s conftest.err
  5609. } && test -s conftest$ac_exeext && {
  5610. test "$cross_compiling" = yes ||
  5611. $as_test_x conftest$ac_exeext
  5612. }; then
  5613. eval "$as_ac_var=yes"
  5614. else
  5615. $as_echo "$as_me: failed program was:" >&5
  5616. sed 's/^/| /' conftest.$ac_ext >&5
  5617. eval "$as_ac_var=no"
  5618. fi
  5619. rm -rf conftest.dSYM
  5620. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5621. conftest$ac_exeext conftest.$ac_ext
  5622. fi
  5623. ac_res=`eval 'as_val=${'$as_ac_var'}
  5624. $as_echo "$as_val"'`
  5625. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5626. $as_echo "$ac_res" >&6; }
  5627. as_val=`eval 'as_val=${'$as_ac_var'}
  5628. $as_echo "$as_val"'`
  5629. if test "x$as_val" = x""yes; then
  5630. cat >>confdefs.h <<_ACEOF
  5631. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5632. _ACEOF
  5633. fi
  5634. done
  5635. cat >>confdefs.h <<\_ACEOF
  5636. #define HAVE_SQLITE3 1
  5637. _ACEOF
  5638. fi
  5639. LIBS=$LIBS_save
  5640. CPPFLAGS=$CPPFLAGS_save
  5641. fi
  5642. if test "x$with_gnutls" = "xyes"; then
  5643. # Check whether --with-libgnutls-prefix was given.
  5644. if test "${with_libgnutls_prefix+set}" = set; then
  5645. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5646. else
  5647. libgnutls_config_prefix=""
  5648. fi
  5649. if test x$libgnutls_config_prefix != x ; then
  5650. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5651. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5652. fi
  5653. fi
  5654. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5655. set dummy libgnutls-config; ac_word=$2
  5656. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5657. $as_echo_n "checking for $ac_word... " >&6; }
  5658. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  5659. $as_echo_n "(cached) " >&6
  5660. else
  5661. case $LIBGNUTLS_CONFIG in
  5662. [\\/]* | ?:[\\/]*)
  5663. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5664. ;;
  5665. *)
  5666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5667. for as_dir in $PATH
  5668. do
  5669. IFS=$as_save_IFS
  5670. test -z "$as_dir" && as_dir=.
  5671. for ac_exec_ext in '' $ac_executable_extensions; do
  5672. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5673. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5674. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5675. break 2
  5676. fi
  5677. done
  5678. done
  5679. IFS=$as_save_IFS
  5680. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5681. ;;
  5682. esac
  5683. fi
  5684. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5685. if test -n "$LIBGNUTLS_CONFIG"; then
  5686. { $as_echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  5687. $as_echo "$LIBGNUTLS_CONFIG" >&6; }
  5688. else
  5689. { $as_echo "$as_me:$LINENO: result: no" >&5
  5690. $as_echo "no" >&6; }
  5691. fi
  5692. min_libgnutls_version=1.2.9
  5693. { $as_echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5694. $as_echo_n "checking for libgnutls - version >= $min_libgnutls_version... " >&6; }
  5695. no_libgnutls=""
  5696. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5697. no_libgnutls=yes
  5698. else
  5699. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5700. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5701. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5702. ac_save_CFLAGS="$CFLAGS"
  5703. ac_save_LIBS="$LIBS"
  5704. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5705. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5706. rm -f conf.libgnutlstest
  5707. if test "$cross_compiling" = yes; then
  5708. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5709. else
  5710. cat >conftest.$ac_ext <<_ACEOF
  5711. /* confdefs.h. */
  5712. _ACEOF
  5713. cat confdefs.h >>conftest.$ac_ext
  5714. cat >>conftest.$ac_ext <<_ACEOF
  5715. /* end confdefs.h. */
  5716. #include <stdio.h>
  5717. #include <stdlib.h>
  5718. #include <string.h>
  5719. #include <gnutls/gnutls.h>
  5720. int
  5721. main ()
  5722. {
  5723. system ("touch conf.libgnutlstest");
  5724. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5725. {
  5726. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5727. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5728. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5729. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5730. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5731. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5732. printf("*** required on your system.\n");
  5733. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5734. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5735. printf("*** before re-running configure\n");
  5736. }
  5737. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5738. {
  5739. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5740. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5741. }
  5742. else
  5743. {
  5744. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5745. {
  5746. return 0;
  5747. }
  5748. else
  5749. {
  5750. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5751. gnutls_check_version(NULL) );
  5752. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5753. "$min_libgnutls_version" );
  5754. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5755. printf("*** \n");
  5756. printf("*** If you have already installed a sufficiently new version, this error\n");
  5757. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5758. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5759. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5760. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5761. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5762. printf("*** so that the correct libraries are found at run-time))\n");
  5763. }
  5764. }
  5765. return 1;
  5766. }
  5767. _ACEOF
  5768. rm -f conftest$ac_exeext
  5769. if { (ac_try="$ac_link"
  5770. case "(($ac_try" in
  5771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5772. *) ac_try_echo=$ac_try;;
  5773. esac
  5774. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5775. $as_echo "$ac_try_echo") >&5
  5776. (eval "$ac_link") 2>&5
  5777. ac_status=$?
  5778. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5779. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5780. { (case "(($ac_try" in
  5781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5782. *) ac_try_echo=$ac_try;;
  5783. esac
  5784. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5785. $as_echo "$ac_try_echo") >&5
  5786. (eval "$ac_try") 2>&5
  5787. ac_status=$?
  5788. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5789. (exit $ac_status); }; }; then
  5790. :
  5791. else
  5792. $as_echo "$as_me: program exited with status $ac_status" >&5
  5793. $as_echo "$as_me: failed program was:" >&5
  5794. sed 's/^/| /' conftest.$ac_ext >&5
  5795. ( exit $ac_status )
  5796. no_libgnutls=yes
  5797. fi
  5798. rm -rf conftest.dSYM
  5799. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5800. fi
  5801. CFLAGS="$ac_save_CFLAGS"
  5802. LIBS="$ac_save_LIBS"
  5803. fi
  5804. if test "x$no_libgnutls" = x ; then
  5805. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5806. $as_echo "yes" >&6; }
  5807. have_libgnutls=yes
  5808. else
  5809. if test -f conf.libgnutlstest ; then
  5810. :
  5811. else
  5812. { $as_echo "$as_me:$LINENO: result: no" >&5
  5813. $as_echo "no" >&6; }
  5814. fi
  5815. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5816. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5817. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5818. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5819. echo "*** full path to libgnutls-config."
  5820. else
  5821. if test -f conf.libgnutlstest ; then
  5822. :
  5823. else
  5824. echo "*** Could not run libgnutls test program, checking why..."
  5825. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5826. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5827. cat >conftest.$ac_ext <<_ACEOF
  5828. /* confdefs.h. */
  5829. _ACEOF
  5830. cat confdefs.h >>conftest.$ac_ext
  5831. cat >>conftest.$ac_ext <<_ACEOF
  5832. /* end confdefs.h. */
  5833. #include <stdio.h>
  5834. #include <stdlib.h>
  5835. #include <string.h>
  5836. #include <gnutls/gnutls.h>
  5837. int
  5838. main ()
  5839. {
  5840. return !!gnutls_check_version(NULL);
  5841. ;
  5842. return 0;
  5843. }
  5844. _ACEOF
  5845. rm -f conftest.$ac_objext conftest$ac_exeext
  5846. if { (ac_try="$ac_link"
  5847. case "(($ac_try" in
  5848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5849. *) ac_try_echo=$ac_try;;
  5850. esac
  5851. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5852. $as_echo "$ac_try_echo") >&5
  5853. (eval "$ac_link") 2>conftest.er1
  5854. ac_status=$?
  5855. grep -v '^ *+' conftest.er1 >conftest.err
  5856. rm -f conftest.er1
  5857. cat conftest.err >&5
  5858. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5859. (exit $ac_status); } && {
  5860. test -z "$ac_cxx_werror_flag" ||
  5861. test ! -s conftest.err
  5862. } && test -s conftest$ac_exeext && {
  5863. test "$cross_compiling" = yes ||
  5864. $as_test_x conftest$ac_exeext
  5865. }; then
  5866. echo "*** The test program compiled, but did not run. This usually means"
  5867. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5868. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5869. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5870. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5871. echo "*** is required on your system"
  5872. echo "***"
  5873. echo "*** If you have an old version installed, it is best to remove it, although"
  5874. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5875. echo "***"
  5876. else
  5877. $as_echo "$as_me: failed program was:" >&5
  5878. sed 's/^/| /' conftest.$ac_ext >&5
  5879. echo "*** The test program failed to compile or link. See the file config.log for the"
  5880. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5881. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5882. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5883. fi
  5884. rm -rf conftest.dSYM
  5885. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5886. conftest$ac_exeext conftest.$ac_ext
  5887. CFLAGS="$ac_save_CFLAGS"
  5888. LIBS="$ac_save_LIBS"
  5889. fi
  5890. fi
  5891. LIBGNUTLS_CFLAGS=""
  5892. LIBGNUTLS_LIBS=""
  5893. :
  5894. fi
  5895. rm -f conf.libgnutlstest
  5896. if test "x$have_libgnutls" = "xyes"; then
  5897. cat >>confdefs.h <<\_ACEOF
  5898. #define HAVE_LIBGNUTLS 1
  5899. _ACEOF
  5900. fi
  5901. fi
  5902. if test "x$have_libgnutls" = "xyes"; then
  5903. # Check whether --with-libgcrypt-prefix was given.
  5904. if test "${with_libgcrypt_prefix+set}" = set; then
  5905. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5906. else
  5907. libgcrypt_config_prefix=""
  5908. fi
  5909. if test x$libgcrypt_config_prefix != x ; then
  5910. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5911. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5912. fi
  5913. fi
  5914. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5915. set dummy libgcrypt-config; ac_word=$2
  5916. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5917. $as_echo_n "checking for $ac_word... " >&6; }
  5918. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  5919. $as_echo_n "(cached) " >&6
  5920. else
  5921. case $LIBGCRYPT_CONFIG in
  5922. [\\/]* | ?:[\\/]*)
  5923. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5924. ;;
  5925. *)
  5926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5927. for as_dir in $PATH
  5928. do
  5929. IFS=$as_save_IFS
  5930. test -z "$as_dir" && as_dir=.
  5931. for ac_exec_ext in '' $ac_executable_extensions; do
  5932. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5933. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5934. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5935. break 2
  5936. fi
  5937. done
  5938. done
  5939. IFS=$as_save_IFS
  5940. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5941. ;;
  5942. esac
  5943. fi
  5944. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5945. if test -n "$LIBGCRYPT_CONFIG"; then
  5946. { $as_echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  5947. $as_echo "$LIBGCRYPT_CONFIG" >&6; }
  5948. else
  5949. { $as_echo "$as_me:$LINENO: result: no" >&5
  5950. $as_echo "no" >&6; }
  5951. fi
  5952. tmp=1.2.2
  5953. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5954. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5955. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5956. else
  5957. req_libgcrypt_api=0
  5958. min_libgcrypt_version="$tmp"
  5959. fi
  5960. { $as_echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5961. $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
  5962. ok=no
  5963. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5964. req_major=`echo $min_libgcrypt_version | \
  5965. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5966. req_minor=`echo $min_libgcrypt_version | \
  5967. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5968. req_micro=`echo $min_libgcrypt_version | \
  5969. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5970. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5971. major=`echo $libgcrypt_config_version | \
  5972. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  5973. minor=`echo $libgcrypt_config_version | \
  5974. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  5975. micro=`echo $libgcrypt_config_version | \
  5976. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  5977. if test "$major" -gt "$req_major"; then
  5978. ok=yes
  5979. else
  5980. if test "$major" -eq "$req_major"; then
  5981. if test "$minor" -gt "$req_minor"; then
  5982. ok=yes
  5983. else
  5984. if test "$minor" -eq "$req_minor"; then
  5985. if test "$micro" -ge "$req_micro"; then
  5986. ok=yes
  5987. fi
  5988. fi
  5989. fi
  5990. fi
  5991. fi
  5992. fi
  5993. if test $ok = yes; then
  5994. { $as_echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
  5995. $as_echo "yes ($libgcrypt_config_version)" >&6; }
  5996. else
  5997. { $as_echo "$as_me:$LINENO: result: no" >&5
  5998. $as_echo "no" >&6; }
  5999. fi
  6000. if test $ok = yes; then
  6001. # If we have a recent libgcrypt, we should also check that the
  6002. # API is compatible
  6003. if test "$req_libgcrypt_api" -gt 0 ; then
  6004. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  6005. if test "$tmp" -gt 0 ; then
  6006. { $as_echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  6007. $as_echo_n "checking LIBGCRYPT API version... " >&6; }
  6008. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  6009. { $as_echo "$as_me:$LINENO: result: okay" >&5
  6010. $as_echo "okay" >&6; }
  6011. else
  6012. ok=no
  6013. { $as_echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  6014. $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  6015. fi
  6016. fi
  6017. fi
  6018. fi
  6019. if test $ok = yes; then
  6020. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  6021. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  6022. have_libgcrypt=yes
  6023. else
  6024. LIBGCRYPT_CFLAGS=""
  6025. LIBGCRYPT_LIBS=""
  6026. :
  6027. fi
  6028. if test "x$have_libgcrypt" = "xyes"; then
  6029. cat >>confdefs.h <<\_ACEOF
  6030. #define HAVE_LIBGCRYPT 1
  6031. _ACEOF
  6032. fi
  6033. fi
  6034. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  6035. # Check whether --with-openssl-prefix was given.
  6036. if test "${with_openssl_prefix+set}" = set; then
  6037. withval=$with_openssl_prefix; openssl_prefix=$withval
  6038. else
  6039. openssl_prefix=""
  6040. fi
  6041. if test "x$openssl_prefix" = "x"; then
  6042. openssl_prefix="/usr/local"
  6043. fi
  6044. LIBS_save=$LIBS
  6045. CPPFLAGS_save=$CPPFLAGS
  6046. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  6047. if test -x $PKG_CONFIG; then
  6048. { $as_echo "$as_me:$LINENO: checking checking availability of openssl using pkg-config" >&5
  6049. $as_echo_n "checking checking availability of openssl using pkg-config... " >&6; }
  6050. $PKG_CONFIG --exists openssl
  6051. if test "$?" = "0"; then
  6052. # Use pkg-config to detect LIBS and CFLAGS
  6053. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  6054. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  6055. LIBS="$OPENSSL_LIBS $LIBS"
  6056. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  6057. have_openssl=yes
  6058. { $as_echo "$as_me:$LINENO: result: yes" >&5
  6059. $as_echo "yes" >&6; }
  6060. else
  6061. { $as_echo "$as_me:$LINENO: result: no" >&5
  6062. $as_echo "no" >&6; }
  6063. fi
  6064. fi
  6065. if test "x$have_openssl" != "xyes"; then
  6066. openssl_prefix_lib=$openssl_prefix/lib
  6067. openssl_prefix_include=$openssl_prefix/include
  6068. LIBS="-L$openssl_prefix_lib $LIBS"
  6069. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  6070. { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  6071. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  6072. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  6073. $as_echo_n "(cached) " >&6
  6074. else
  6075. ac_check_lib_save_LIBS=$LIBS
  6076. LIBS="-lssl $LIBS"
  6077. cat >conftest.$ac_ext <<_ACEOF
  6078. /* confdefs.h. */
  6079. _ACEOF
  6080. cat confdefs.h >>conftest.$ac_ext
  6081. cat >>conftest.$ac_ext <<_ACEOF
  6082. /* end confdefs.h. */
  6083. /* Override any GCC internal prototype to avoid an error.
  6084. Use char because int might match the return type of a GCC
  6085. builtin and then its argument prototype would still apply. */
  6086. #ifdef __cplusplus
  6087. extern "C"
  6088. #endif
  6089. char SSL_library_init ();
  6090. int
  6091. main ()
  6092. {
  6093. return SSL_library_init ();
  6094. ;
  6095. return 0;
  6096. }
  6097. _ACEOF
  6098. rm -f conftest.$ac_objext conftest$ac_exeext
  6099. if { (ac_try="$ac_link"
  6100. case "(($ac_try" in
  6101. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6102. *) ac_try_echo=$ac_try;;
  6103. esac
  6104. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6105. $as_echo "$ac_try_echo") >&5
  6106. (eval "$ac_link") 2>conftest.er1
  6107. ac_status=$?
  6108. grep -v '^ *+' conftest.er1 >conftest.err
  6109. rm -f conftest.er1
  6110. cat conftest.err >&5
  6111. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6112. (exit $ac_status); } && {
  6113. test -z "$ac_cxx_werror_flag" ||
  6114. test ! -s conftest.err
  6115. } && test -s conftest$ac_exeext && {
  6116. test "$cross_compiling" = yes ||
  6117. $as_test_x conftest$ac_exeext
  6118. }; then
  6119. ac_cv_lib_ssl_SSL_library_init=yes
  6120. else
  6121. $as_echo "$as_me: failed program was:" >&5
  6122. sed 's/^/| /' conftest.$ac_ext >&5
  6123. ac_cv_lib_ssl_SSL_library_init=no
  6124. fi
  6125. rm -rf conftest.dSYM
  6126. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6127. conftest$ac_exeext conftest.$ac_ext
  6128. LIBS=$ac_check_lib_save_LIBS
  6129. fi
  6130. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  6131. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  6132. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
  6133. have_openssl=yes LIBS="-lssl $LIBS"
  6134. fi
  6135. if test "x$have_openssl" = "xyes"; then
  6136. have_openssl=no
  6137. { $as_echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  6138. $as_echo_n "checking for main in -lcrypto... " >&6; }
  6139. if test "${ac_cv_lib_crypto_main+set}" = set; then
  6140. $as_echo_n "(cached) " >&6
  6141. else
  6142. ac_check_lib_save_LIBS=$LIBS
  6143. LIBS="-lcrypto $LIBS"
  6144. cat >conftest.$ac_ext <<_ACEOF
  6145. /* confdefs.h. */
  6146. _ACEOF
  6147. cat confdefs.h >>conftest.$ac_ext
  6148. cat >>conftest.$ac_ext <<_ACEOF
  6149. /* end confdefs.h. */
  6150. int
  6151. main ()
  6152. {
  6153. return main ();
  6154. ;
  6155. return 0;
  6156. }
  6157. _ACEOF
  6158. rm -f conftest.$ac_objext conftest$ac_exeext
  6159. if { (ac_try="$ac_link"
  6160. case "(($ac_try" in
  6161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6162. *) ac_try_echo=$ac_try;;
  6163. esac
  6164. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6165. $as_echo "$ac_try_echo") >&5
  6166. (eval "$ac_link") 2>conftest.er1
  6167. ac_status=$?
  6168. grep -v '^ *+' conftest.er1 >conftest.err
  6169. rm -f conftest.er1
  6170. cat conftest.err >&5
  6171. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6172. (exit $ac_status); } && {
  6173. test -z "$ac_cxx_werror_flag" ||
  6174. test ! -s conftest.err
  6175. } && test -s conftest$ac_exeext && {
  6176. test "$cross_compiling" = yes ||
  6177. $as_test_x conftest$ac_exeext
  6178. }; then
  6179. ac_cv_lib_crypto_main=yes
  6180. else
  6181. $as_echo "$as_me: failed program was:" >&5
  6182. sed 's/^/| /' conftest.$ac_ext >&5
  6183. ac_cv_lib_crypto_main=no
  6184. fi
  6185. rm -rf conftest.dSYM
  6186. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6187. conftest$ac_exeext conftest.$ac_ext
  6188. LIBS=$ac_check_lib_save_LIBS
  6189. fi
  6190. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  6191. $as_echo "$ac_cv_lib_crypto_main" >&6; }
  6192. if test "x$ac_cv_lib_crypto_main" = x""yes; then
  6193. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6194. fi
  6195. if test "x$have_openssl" = "xyes"; then
  6196. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6197. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6198. fi
  6199. fi
  6200. fi
  6201. if test "x$have_openssl" = "xyes"; then
  6202. cat >>confdefs.h <<\_ACEOF
  6203. #define HAVE_LIBSSL 1
  6204. _ACEOF
  6205. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6206. for ac_func in EVP_DigestInit_ex
  6207. do
  6208. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6209. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  6210. $as_echo_n "checking for $ac_func... " >&6; }
  6211. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6212. $as_echo_n "(cached) " >&6
  6213. else
  6214. cat >conftest.$ac_ext <<_ACEOF
  6215. /* confdefs.h. */
  6216. _ACEOF
  6217. cat confdefs.h >>conftest.$ac_ext
  6218. cat >>conftest.$ac_ext <<_ACEOF
  6219. /* end confdefs.h. */
  6220. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6221. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6222. #define $ac_func innocuous_$ac_func
  6223. /* System header to define __stub macros and hopefully few prototypes,
  6224. which can conflict with char $ac_func (); below.
  6225. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6226. <limits.h> exists even on freestanding compilers. */
  6227. #ifdef __STDC__
  6228. # include <limits.h>
  6229. #else
  6230. # include <assert.h>
  6231. #endif
  6232. #undef $ac_func
  6233. /* Override any GCC internal prototype to avoid an error.
  6234. Use char because int might match the return type of a GCC
  6235. builtin and then its argument prototype would still apply. */
  6236. #ifdef __cplusplus
  6237. extern "C"
  6238. #endif
  6239. char $ac_func ();
  6240. /* The GNU C library defines this for functions which it implements
  6241. to always fail with ENOSYS. Some functions are actually named
  6242. something starting with __ and the normal name is an alias. */
  6243. #if defined __stub_$ac_func || defined __stub___$ac_func
  6244. choke me
  6245. #endif
  6246. int
  6247. main ()
  6248. {
  6249. return $ac_func ();
  6250. ;
  6251. return 0;
  6252. }
  6253. _ACEOF
  6254. rm -f conftest.$ac_objext conftest$ac_exeext
  6255. if { (ac_try="$ac_link"
  6256. case "(($ac_try" in
  6257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6258. *) ac_try_echo=$ac_try;;
  6259. esac
  6260. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6261. $as_echo "$ac_try_echo") >&5
  6262. (eval "$ac_link") 2>conftest.er1
  6263. ac_status=$?
  6264. grep -v '^ *+' conftest.er1 >conftest.err
  6265. rm -f conftest.er1
  6266. cat conftest.err >&5
  6267. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6268. (exit $ac_status); } && {
  6269. test -z "$ac_cxx_werror_flag" ||
  6270. test ! -s conftest.err
  6271. } && test -s conftest$ac_exeext && {
  6272. test "$cross_compiling" = yes ||
  6273. $as_test_x conftest$ac_exeext
  6274. }; then
  6275. eval "$as_ac_var=yes"
  6276. else
  6277. $as_echo "$as_me: failed program was:" >&5
  6278. sed 's/^/| /' conftest.$ac_ext >&5
  6279. eval "$as_ac_var=no"
  6280. fi
  6281. rm -rf conftest.dSYM
  6282. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6283. conftest$ac_exeext conftest.$ac_ext
  6284. fi
  6285. ac_res=`eval 'as_val=${'$as_ac_var'}
  6286. $as_echo "$as_val"'`
  6287. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6288. $as_echo "$ac_res" >&6; }
  6289. as_val=`eval 'as_val=${'$as_ac_var'}
  6290. $as_echo "$as_val"'`
  6291. if test "x$as_val" = x""yes; then
  6292. cat >>confdefs.h <<_ACEOF
  6293. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6294. _ACEOF
  6295. have_digestinit_ex=yes
  6296. fi
  6297. done
  6298. if test "x$have_digestinit_ex" = "x"; then
  6299. cat >>confdefs.h <<\_ACEOF
  6300. #define HAVE_OLD_LIBSSL 1
  6301. _ACEOF
  6302. fi
  6303. # search for sha256 support
  6304. for ac_func in EVP_sha256
  6305. do
  6306. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6307. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  6308. $as_echo_n "checking for $ac_func... " >&6; }
  6309. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6310. $as_echo_n "(cached) " >&6
  6311. else
  6312. cat >conftest.$ac_ext <<_ACEOF
  6313. /* confdefs.h. */
  6314. _ACEOF
  6315. cat confdefs.h >>conftest.$ac_ext
  6316. cat >>conftest.$ac_ext <<_ACEOF
  6317. /* end confdefs.h. */
  6318. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6319. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6320. #define $ac_func innocuous_$ac_func
  6321. /* System header to define __stub macros and hopefully few prototypes,
  6322. which can conflict with char $ac_func (); below.
  6323. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6324. <limits.h> exists even on freestanding compilers. */
  6325. #ifdef __STDC__
  6326. # include <limits.h>
  6327. #else
  6328. # include <assert.h>
  6329. #endif
  6330. #undef $ac_func
  6331. /* Override any GCC internal prototype to avoid an error.
  6332. Use char because int might match the return type of a GCC
  6333. builtin and then its argument prototype would still apply. */
  6334. #ifdef __cplusplus
  6335. extern "C"
  6336. #endif
  6337. char $ac_func ();
  6338. /* The GNU C library defines this for functions which it implements
  6339. to always fail with ENOSYS. Some functions are actually named
  6340. something starting with __ and the normal name is an alias. */
  6341. #if defined __stub_$ac_func || defined __stub___$ac_func
  6342. choke me
  6343. #endif
  6344. int
  6345. main ()
  6346. {
  6347. return $ac_func ();
  6348. ;
  6349. return 0;
  6350. }
  6351. _ACEOF
  6352. rm -f conftest.$ac_objext conftest$ac_exeext
  6353. if { (ac_try="$ac_link"
  6354. case "(($ac_try" in
  6355. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6356. *) ac_try_echo=$ac_try;;
  6357. esac
  6358. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6359. $as_echo "$ac_try_echo") >&5
  6360. (eval "$ac_link") 2>conftest.er1
  6361. ac_status=$?
  6362. grep -v '^ *+' conftest.er1 >conftest.err
  6363. rm -f conftest.er1
  6364. cat conftest.err >&5
  6365. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6366. (exit $ac_status); } && {
  6367. test -z "$ac_cxx_werror_flag" ||
  6368. test ! -s conftest.err
  6369. } && test -s conftest$ac_exeext && {
  6370. test "$cross_compiling" = yes ||
  6371. $as_test_x conftest$ac_exeext
  6372. }; then
  6373. eval "$as_ac_var=yes"
  6374. else
  6375. $as_echo "$as_me: failed program was:" >&5
  6376. sed 's/^/| /' conftest.$ac_ext >&5
  6377. eval "$as_ac_var=no"
  6378. fi
  6379. rm -rf conftest.dSYM
  6380. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6381. conftest$ac_exeext conftest.$ac_ext
  6382. fi
  6383. ac_res=`eval 'as_val=${'$as_ac_var'}
  6384. $as_echo "$as_val"'`
  6385. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6386. $as_echo "$ac_res" >&6; }
  6387. as_val=`eval 'as_val=${'$as_ac_var'}
  6388. $as_echo "$as_val"'`
  6389. if test "x$as_val" = x""yes; then
  6390. cat >>confdefs.h <<_ACEOF
  6391. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6392. _ACEOF
  6393. fi
  6394. done
  6395. fi
  6396. LIBS=$LIBS_save
  6397. CPPFLAGS=$CPPFLAGS_save
  6398. fi
  6399. if test "x$with_libcares" = "xyes"; then
  6400. # Check whether --with-libcares-prefix was given.
  6401. if test "${with_libcares_prefix+set}" = set; then
  6402. withval=$with_libcares_prefix; libcares_prefix=$withval
  6403. else
  6404. libcares_prefix=""
  6405. fi
  6406. if test "x$libcares_prefix" = "x"; then
  6407. libcares_prefix="/usr"
  6408. fi
  6409. libcares_prefix_lib=$libcares_prefix/lib
  6410. libcares_prefix_include=$libcares_prefix/include
  6411. LIBS_save=$LIBS
  6412. CPPFLAGS_save=$CPPFLAGS
  6413. LIBS="-L$libcares_prefix_lib $LIBS"
  6414. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6415. { $as_echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6416. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6417. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6418. $as_echo_n "(cached) " >&6
  6419. else
  6420. ac_check_lib_save_LIBS=$LIBS
  6421. LIBS="-lcares $LIBS"
  6422. cat >conftest.$ac_ext <<_ACEOF
  6423. /* confdefs.h. */
  6424. _ACEOF
  6425. cat confdefs.h >>conftest.$ac_ext
  6426. cat >>conftest.$ac_ext <<_ACEOF
  6427. /* end confdefs.h. */
  6428. /* Override any GCC internal prototype to avoid an error.
  6429. Use char because int might match the return type of a GCC
  6430. builtin and then its argument prototype would still apply. */
  6431. #ifdef __cplusplus
  6432. extern "C"
  6433. #endif
  6434. char ares_init ();
  6435. int
  6436. main ()
  6437. {
  6438. return ares_init ();
  6439. ;
  6440. return 0;
  6441. }
  6442. _ACEOF
  6443. rm -f conftest.$ac_objext conftest$ac_exeext
  6444. if { (ac_try="$ac_link"
  6445. case "(($ac_try" in
  6446. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6447. *) ac_try_echo=$ac_try;;
  6448. esac
  6449. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6450. $as_echo "$ac_try_echo") >&5
  6451. (eval "$ac_link") 2>conftest.er1
  6452. ac_status=$?
  6453. grep -v '^ *+' conftest.er1 >conftest.err
  6454. rm -f conftest.er1
  6455. cat conftest.err >&5
  6456. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6457. (exit $ac_status); } && {
  6458. test -z "$ac_cxx_werror_flag" ||
  6459. test ! -s conftest.err
  6460. } && test -s conftest$ac_exeext && {
  6461. test "$cross_compiling" = yes ||
  6462. $as_test_x conftest$ac_exeext
  6463. }; then
  6464. ac_cv_lib_cares_ares_init=yes
  6465. else
  6466. $as_echo "$as_me: failed program was:" >&5
  6467. sed 's/^/| /' conftest.$ac_ext >&5
  6468. ac_cv_lib_cares_ares_init=no
  6469. fi
  6470. rm -rf conftest.dSYM
  6471. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6472. conftest$ac_exeext conftest.$ac_ext
  6473. LIBS=$ac_check_lib_save_LIBS
  6474. fi
  6475. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6476. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6477. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then
  6478. have_libcares=yes
  6479. fi
  6480. if test "x$have_libcares" != "xyes"; then
  6481. { $as_echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6482. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6483. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6484. $as_echo_n "(cached) " >&6
  6485. else
  6486. ac_check_lib_save_LIBS=$LIBS
  6487. LIBS="-lcares -lrt $LIBS"
  6488. cat >conftest.$ac_ext <<_ACEOF
  6489. /* confdefs.h. */
  6490. _ACEOF
  6491. cat confdefs.h >>conftest.$ac_ext
  6492. cat >>conftest.$ac_ext <<_ACEOF
  6493. /* end confdefs.h. */
  6494. /* Override any GCC internal prototype to avoid an error.
  6495. Use char because int might match the return type of a GCC
  6496. builtin and then its argument prototype would still apply. */
  6497. #ifdef __cplusplus
  6498. extern "C"
  6499. #endif
  6500. char ares_init ();
  6501. int
  6502. main ()
  6503. {
  6504. return ares_init ();
  6505. ;
  6506. return 0;
  6507. }
  6508. _ACEOF
  6509. rm -f conftest.$ac_objext conftest$ac_exeext
  6510. if { (ac_try="$ac_link"
  6511. case "(($ac_try" in
  6512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6513. *) ac_try_echo=$ac_try;;
  6514. esac
  6515. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6516. $as_echo "$ac_try_echo") >&5
  6517. (eval "$ac_link") 2>conftest.er1
  6518. ac_status=$?
  6519. grep -v '^ *+' conftest.er1 >conftest.err
  6520. rm -f conftest.er1
  6521. cat conftest.err >&5
  6522. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6523. (exit $ac_status); } && {
  6524. test -z "$ac_cxx_werror_flag" ||
  6525. test ! -s conftest.err
  6526. } && test -s conftest$ac_exeext && {
  6527. test "$cross_compiling" = yes ||
  6528. $as_test_x conftest$ac_exeext
  6529. }; then
  6530. ac_cv_lib_cares_ares_init=yes
  6531. else
  6532. $as_echo "$as_me: failed program was:" >&5
  6533. sed 's/^/| /' conftest.$ac_ext >&5
  6534. ac_cv_lib_cares_ares_init=no
  6535. fi
  6536. rm -rf conftest.dSYM
  6537. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6538. conftest$ac_exeext conftest.$ac_ext
  6539. LIBS=$ac_check_lib_save_LIBS
  6540. fi
  6541. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6542. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6543. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then
  6544. have_libcares=yes need_librt=yes
  6545. fi
  6546. fi
  6547. if test "x$have_libcares" = "xyes"; then
  6548. { $as_echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6549. $as_echo_n "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... " >&6; }
  6550. cat >conftest.$ac_ext <<_ACEOF
  6551. /* confdefs.h. */
  6552. _ACEOF
  6553. cat confdefs.h >>conftest.$ac_ext
  6554. cat >>conftest.$ac_ext <<_ACEOF
  6555. /* end confdefs.h. */
  6556. #include <ares.h>
  6557. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6558. int
  6559. main ()
  6560. {
  6561. ares_channel channel;
  6562. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6563. ;
  6564. return 0;
  6565. }
  6566. _ACEOF
  6567. rm -f conftest.$ac_objext
  6568. if { (ac_try="$ac_compile"
  6569. case "(($ac_try" in
  6570. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6571. *) ac_try_echo=$ac_try;;
  6572. esac
  6573. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6574. $as_echo "$ac_try_echo") >&5
  6575. (eval "$ac_compile") 2>conftest.er1
  6576. ac_status=$?
  6577. grep -v '^ *+' conftest.er1 >conftest.err
  6578. rm -f conftest.er1
  6579. cat conftest.err >&5
  6580. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6581. (exit $ac_status); } && {
  6582. test -z "$ac_cxx_werror_flag" ||
  6583. test ! -s conftest.err
  6584. } && test -s conftest.$ac_objext; then
  6585. have_libcares1_5=yes
  6586. else
  6587. $as_echo "$as_me: failed program was:" >&5
  6588. sed 's/^/| /' conftest.$ac_ext >&5
  6589. have_libcares1_5=no
  6590. fi
  6591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6592. { $as_echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  6593. $as_echo "$have_libcares1_5" >&6; }
  6594. if test "x$have_libcares1_5" = "xyes"; then
  6595. cat >>confdefs.h <<\_ACEOF
  6596. #define HAVE_LIBCARES1_5 1
  6597. _ACEOF
  6598. fi
  6599. cat >>confdefs.h <<\_ACEOF
  6600. #define HAVE_LIBCARES 1
  6601. _ACEOF
  6602. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6603. if test "x$need_librt" = "xyes"; then
  6604. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6605. fi
  6606. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6607. fi
  6608. LIBS=$LIBS_save
  6609. CPPFLAGS=$CPPFLAGS_save
  6610. fi
  6611. # Check availability of libz
  6612. if test "x$with_libz" = "xyes"; then
  6613. # Check whether --with-libz-prefix was given.
  6614. if test "${with_libz_prefix+set}" = set; then
  6615. withval=$with_libz_prefix; libz_prefix=$withval
  6616. else
  6617. libz_prefix=""
  6618. fi
  6619. if test "x$libz_prefix" = "x"; then
  6620. libz_prefix="/usr"
  6621. fi
  6622. libz_prefix_lib=$libz_prefix/lib
  6623. libz_prefix_include=$libz_prefix/include
  6624. LIBS_save=$LIBS
  6625. CPPFLAGS_save=$CPPFLAGS
  6626. LIBS="-L$libz_prefix_lib $LIBS"
  6627. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6628. { $as_echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
  6629. $as_echo_n "checking for zlibVersion in -lz... " >&6; }
  6630. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
  6631. $as_echo_n "(cached) " >&6
  6632. else
  6633. ac_check_lib_save_LIBS=$LIBS
  6634. LIBS="-lz $LIBS"
  6635. cat >conftest.$ac_ext <<_ACEOF
  6636. /* confdefs.h. */
  6637. _ACEOF
  6638. cat confdefs.h >>conftest.$ac_ext
  6639. cat >>conftest.$ac_ext <<_ACEOF
  6640. /* end confdefs.h. */
  6641. /* Override any GCC internal prototype to avoid an error.
  6642. Use char because int might match the return type of a GCC
  6643. builtin and then its argument prototype would still apply. */
  6644. #ifdef __cplusplus
  6645. extern "C"
  6646. #endif
  6647. char zlibVersion ();
  6648. int
  6649. main ()
  6650. {
  6651. return zlibVersion ();
  6652. ;
  6653. return 0;
  6654. }
  6655. _ACEOF
  6656. rm -f conftest.$ac_objext conftest$ac_exeext
  6657. if { (ac_try="$ac_link"
  6658. case "(($ac_try" in
  6659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6660. *) ac_try_echo=$ac_try;;
  6661. esac
  6662. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6663. $as_echo "$ac_try_echo") >&5
  6664. (eval "$ac_link") 2>conftest.er1
  6665. ac_status=$?
  6666. grep -v '^ *+' conftest.er1 >conftest.err
  6667. rm -f conftest.er1
  6668. cat conftest.err >&5
  6669. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6670. (exit $ac_status); } && {
  6671. test -z "$ac_cxx_werror_flag" ||
  6672. test ! -s conftest.err
  6673. } && test -s conftest$ac_exeext && {
  6674. test "$cross_compiling" = yes ||
  6675. $as_test_x conftest$ac_exeext
  6676. }; then
  6677. ac_cv_lib_z_zlibVersion=yes
  6678. else
  6679. $as_echo "$as_me: failed program was:" >&5
  6680. sed 's/^/| /' conftest.$ac_ext >&5
  6681. ac_cv_lib_z_zlibVersion=no
  6682. fi
  6683. rm -rf conftest.dSYM
  6684. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6685. conftest$ac_exeext conftest.$ac_ext
  6686. LIBS=$ac_check_lib_save_LIBS
  6687. fi
  6688. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
  6689. $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
  6690. if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then
  6691. have_libz=yes
  6692. fi
  6693. if test "x$have_libz" = "xyes"; then
  6694. cat >>confdefs.h <<\_ACEOF
  6695. #define HAVE_LIBZ 1
  6696. _ACEOF
  6697. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6698. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6699. fi
  6700. LIBS=$LIBS_save
  6701. CPPFLAGS=$CPPFLAGS_save
  6702. fi
  6703. # Define variables based on the result of the checks for libraries.
  6704. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6705. cat >>confdefs.h <<\_ACEOF
  6706. #define ENABLE_SSL 1
  6707. _ACEOF
  6708. if true; then
  6709. ENABLE_SSL_TRUE=
  6710. ENABLE_SSL_FALSE='#'
  6711. else
  6712. ENABLE_SSL_TRUE='#'
  6713. ENABLE_SSL_FALSE=
  6714. fi
  6715. else
  6716. if false; then
  6717. ENABLE_SSL_TRUE=
  6718. ENABLE_SSL_FALSE='#'
  6719. else
  6720. ENABLE_SSL_TRUE='#'
  6721. ENABLE_SSL_FALSE=
  6722. fi
  6723. fi
  6724. if test "x$have_libgnutls" = "xyes" ; then
  6725. HAVE_LIBGNUTLS_TRUE=
  6726. HAVE_LIBGNUTLS_FALSE='#'
  6727. else
  6728. HAVE_LIBGNUTLS_TRUE='#'
  6729. HAVE_LIBGNUTLS_FALSE=
  6730. fi
  6731. if test "x$have_openssl" = "xyes" ; then
  6732. HAVE_LIBSSL_TRUE=
  6733. HAVE_LIBSSL_FALSE='#'
  6734. else
  6735. HAVE_LIBSSL_TRUE='#'
  6736. HAVE_LIBSSL_FALSE=
  6737. fi
  6738. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6739. cat >>confdefs.h <<\_ACEOF
  6740. #define ENABLE_MESSAGE_DIGEST 1
  6741. _ACEOF
  6742. if true; then
  6743. ENABLE_MESSAGE_DIGEST_TRUE=
  6744. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6745. else
  6746. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6747. ENABLE_MESSAGE_DIGEST_FALSE=
  6748. fi
  6749. enable_message_digest=yes
  6750. else
  6751. if false; then
  6752. ENABLE_MESSAGE_DIGEST_TRUE=
  6753. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6754. else
  6755. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6756. ENABLE_MESSAGE_DIGEST_FALSE=
  6757. fi
  6758. fi
  6759. if test "x$enable_bittorrent" = "xyes" &&
  6760. test "x$enable_message_digest" = "xyes"; then
  6761. cat >>confdefs.h <<\_ACEOF
  6762. #define ENABLE_BITTORRENT 1
  6763. _ACEOF
  6764. if true; then
  6765. ENABLE_BITTORRENT_TRUE=
  6766. ENABLE_BITTORRENT_FALSE='#'
  6767. else
  6768. ENABLE_BITTORRENT_TRUE='#'
  6769. ENABLE_BITTORRENT_FALSE=
  6770. fi
  6771. else
  6772. enable_bittorrent=no
  6773. if false; then
  6774. ENABLE_BITTORRENT_TRUE=
  6775. ENABLE_BITTORRENT_FALSE='#'
  6776. else
  6777. ENABLE_BITTORRENT_TRUE='#'
  6778. ENABLE_BITTORRENT_FALSE=
  6779. fi
  6780. fi
  6781. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6782. test "x$enable_metalink" = "xyes"; then
  6783. cat >>confdefs.h <<\_ACEOF
  6784. #define ENABLE_METALINK 1
  6785. _ACEOF
  6786. if true; then
  6787. ENABLE_METALINK_TRUE=
  6788. ENABLE_METALINK_FALSE='#'
  6789. else
  6790. ENABLE_METALINK_TRUE='#'
  6791. ENABLE_METALINK_FALSE=
  6792. fi
  6793. else
  6794. enable_metalink=no
  6795. if false; then
  6796. ENABLE_METALINK_TRUE=
  6797. ENABLE_METALINK_FALSE='#'
  6798. else
  6799. ENABLE_METALINK_TRUE='#'
  6800. ENABLE_METALINK_FALSE=
  6801. fi
  6802. fi
  6803. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6804. ENABLE_METALINK_LIBXML2_TRUE=
  6805. ENABLE_METALINK_LIBXML2_FALSE='#'
  6806. else
  6807. ENABLE_METALINK_LIBXML2_TRUE='#'
  6808. ENABLE_METALINK_LIBXML2_FALSE=
  6809. fi
  6810. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6811. ENABLE_METALINK_LIBEXPAT_TRUE=
  6812. ENABLE_METALINK_LIBEXPAT_FALSE='#'
  6813. else
  6814. ENABLE_METALINK_LIBEXPAT_TRUE='#'
  6815. ENABLE_METALINK_LIBEXPAT_FALSE=
  6816. fi
  6817. if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
  6818. enable_xml_rpc=yes
  6819. fi
  6820. if test "x$enable_xml_rpc" = "xyes"; then
  6821. ENABLE_XML_RPC_TRUE=
  6822. ENABLE_XML_RPC_FALSE='#'
  6823. else
  6824. ENABLE_XML_RPC_TRUE='#'
  6825. ENABLE_XML_RPC_FALSE=
  6826. fi
  6827. if test "x$have_libxml2" = "xyes"; then
  6828. HAVE_LIBXML2_TRUE=
  6829. HAVE_LIBXML2_FALSE='#'
  6830. else
  6831. HAVE_LIBXML2_TRUE='#'
  6832. HAVE_LIBXML2_FALSE=
  6833. fi
  6834. if test "x$have_libexpat" = "xyes"; then
  6835. HAVE_LIBEXPAT_TRUE=
  6836. HAVE_LIBEXPAT_FALSE='#'
  6837. else
  6838. HAVE_LIBEXPAT_TRUE='#'
  6839. HAVE_LIBEXPAT_FALSE=
  6840. fi
  6841. if test "x$have_libcares" = "xyes"; then
  6842. cat >>confdefs.h <<\_ACEOF
  6843. #define ENABLE_ASYNC_DNS 1
  6844. _ACEOF
  6845. if true; then
  6846. ENABLE_ASYNC_DNS_TRUE=
  6847. ENABLE_ASYNC_DNS_FALSE='#'
  6848. else
  6849. ENABLE_ASYNC_DNS_TRUE='#'
  6850. ENABLE_ASYNC_DNS_FALSE=
  6851. fi
  6852. else
  6853. if false; then
  6854. ENABLE_ASYNC_DNS_TRUE=
  6855. ENABLE_ASYNC_DNS_FALSE='#'
  6856. else
  6857. ENABLE_ASYNC_DNS_TRUE='#'
  6858. ENABLE_ASYNC_DNS_FALSE=
  6859. fi
  6860. fi
  6861. # Set conditional for libz
  6862. if test "x$have_libz" = "xyes"; then
  6863. HAVE_LIBZ_TRUE=
  6864. HAVE_LIBZ_FALSE='#'
  6865. else
  6866. HAVE_LIBZ_TRUE='#'
  6867. HAVE_LIBZ_FALSE=
  6868. fi
  6869. # Set conditional for sqlite3
  6870. if test "x$have_sqlite3" = "xyes"; then
  6871. HAVE_SQLITE3_TRUE=
  6872. HAVE_SQLITE3_FALSE='#'
  6873. else
  6874. HAVE_SQLITE3_TRUE='#'
  6875. HAVE_SQLITE3_FALSE=
  6876. fi
  6877. # Checks for header files.
  6878. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6879. # for constant arguments. Useless!
  6880. { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
  6881. $as_echo_n "checking for working alloca.h... " >&6; }
  6882. if test "${ac_cv_working_alloca_h+set}" = set; then
  6883. $as_echo_n "(cached) " >&6
  6884. else
  6885. cat >conftest.$ac_ext <<_ACEOF
  6886. /* confdefs.h. */
  6887. _ACEOF
  6888. cat confdefs.h >>conftest.$ac_ext
  6889. cat >>conftest.$ac_ext <<_ACEOF
  6890. /* end confdefs.h. */
  6891. #include <alloca.h>
  6892. int
  6893. main ()
  6894. {
  6895. char *p = (char *) alloca (2 * sizeof (int));
  6896. if (p) return 0;
  6897. ;
  6898. return 0;
  6899. }
  6900. _ACEOF
  6901. rm -f conftest.$ac_objext conftest$ac_exeext
  6902. if { (ac_try="$ac_link"
  6903. case "(($ac_try" in
  6904. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6905. *) ac_try_echo=$ac_try;;
  6906. esac
  6907. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6908. $as_echo "$ac_try_echo") >&5
  6909. (eval "$ac_link") 2>conftest.er1
  6910. ac_status=$?
  6911. grep -v '^ *+' conftest.er1 >conftest.err
  6912. rm -f conftest.er1
  6913. cat conftest.err >&5
  6914. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6915. (exit $ac_status); } && {
  6916. test -z "$ac_cxx_werror_flag" ||
  6917. test ! -s conftest.err
  6918. } && test -s conftest$ac_exeext && {
  6919. test "$cross_compiling" = yes ||
  6920. $as_test_x conftest$ac_exeext
  6921. }; then
  6922. ac_cv_working_alloca_h=yes
  6923. else
  6924. $as_echo "$as_me: failed program was:" >&5
  6925. sed 's/^/| /' conftest.$ac_ext >&5
  6926. ac_cv_working_alloca_h=no
  6927. fi
  6928. rm -rf conftest.dSYM
  6929. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6930. conftest$ac_exeext conftest.$ac_ext
  6931. fi
  6932. { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6933. $as_echo "$ac_cv_working_alloca_h" >&6; }
  6934. if test $ac_cv_working_alloca_h = yes; then
  6935. cat >>confdefs.h <<\_ACEOF
  6936. #define HAVE_ALLOCA_H 1
  6937. _ACEOF
  6938. fi
  6939. { $as_echo "$as_me:$LINENO: checking for alloca" >&5
  6940. $as_echo_n "checking for alloca... " >&6; }
  6941. if test "${ac_cv_func_alloca_works+set}" = set; then
  6942. $as_echo_n "(cached) " >&6
  6943. else
  6944. cat >conftest.$ac_ext <<_ACEOF
  6945. /* confdefs.h. */
  6946. _ACEOF
  6947. cat confdefs.h >>conftest.$ac_ext
  6948. cat >>conftest.$ac_ext <<_ACEOF
  6949. /* end confdefs.h. */
  6950. #ifdef __GNUC__
  6951. # define alloca __builtin_alloca
  6952. #else
  6953. # ifdef _MSC_VER
  6954. # include <malloc.h>
  6955. # define alloca _alloca
  6956. # else
  6957. # ifdef HAVE_ALLOCA_H
  6958. # include <alloca.h>
  6959. # else
  6960. # ifdef _AIX
  6961. #pragma alloca
  6962. # else
  6963. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6964. char *alloca ();
  6965. # endif
  6966. # endif
  6967. # endif
  6968. # endif
  6969. #endif
  6970. int
  6971. main ()
  6972. {
  6973. char *p = (char *) alloca (1);
  6974. if (p) return 0;
  6975. ;
  6976. return 0;
  6977. }
  6978. _ACEOF
  6979. rm -f conftest.$ac_objext conftest$ac_exeext
  6980. if { (ac_try="$ac_link"
  6981. case "(($ac_try" in
  6982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6983. *) ac_try_echo=$ac_try;;
  6984. esac
  6985. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6986. $as_echo "$ac_try_echo") >&5
  6987. (eval "$ac_link") 2>conftest.er1
  6988. ac_status=$?
  6989. grep -v '^ *+' conftest.er1 >conftest.err
  6990. rm -f conftest.er1
  6991. cat conftest.err >&5
  6992. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6993. (exit $ac_status); } && {
  6994. test -z "$ac_cxx_werror_flag" ||
  6995. test ! -s conftest.err
  6996. } && test -s conftest$ac_exeext && {
  6997. test "$cross_compiling" = yes ||
  6998. $as_test_x conftest$ac_exeext
  6999. }; then
  7000. ac_cv_func_alloca_works=yes
  7001. else
  7002. $as_echo "$as_me: failed program was:" >&5
  7003. sed 's/^/| /' conftest.$ac_ext >&5
  7004. ac_cv_func_alloca_works=no
  7005. fi
  7006. rm -rf conftest.dSYM
  7007. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7008. conftest$ac_exeext conftest.$ac_ext
  7009. fi
  7010. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  7011. $as_echo "$ac_cv_func_alloca_works" >&6; }
  7012. if test $ac_cv_func_alloca_works = yes; then
  7013. cat >>confdefs.h <<\_ACEOF
  7014. #define HAVE_ALLOCA 1
  7015. _ACEOF
  7016. else
  7017. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  7018. # that cause trouble. Some versions do not even contain alloca or
  7019. # contain a buggy version. If you still want to use their alloca,
  7020. # use ar to extract alloca.o from them instead of compiling alloca.c.
  7021. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  7022. cat >>confdefs.h <<\_ACEOF
  7023. #define C_ALLOCA 1
  7024. _ACEOF
  7025. { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  7026. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  7027. if test "${ac_cv_os_cray+set}" = set; then
  7028. $as_echo_n "(cached) " >&6
  7029. else
  7030. cat >conftest.$ac_ext <<_ACEOF
  7031. /* confdefs.h. */
  7032. _ACEOF
  7033. cat confdefs.h >>conftest.$ac_ext
  7034. cat >>conftest.$ac_ext <<_ACEOF
  7035. /* end confdefs.h. */
  7036. #if defined CRAY && ! defined CRAY2
  7037. webecray
  7038. #else
  7039. wenotbecray
  7040. #endif
  7041. _ACEOF
  7042. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7043. $EGREP "webecray" >/dev/null 2>&1; then
  7044. ac_cv_os_cray=yes
  7045. else
  7046. ac_cv_os_cray=no
  7047. fi
  7048. rm -f conftest*
  7049. fi
  7050. { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  7051. $as_echo "$ac_cv_os_cray" >&6; }
  7052. if test $ac_cv_os_cray = yes; then
  7053. for ac_func in _getb67 GETB67 getb67; do
  7054. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7055. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  7056. $as_echo_n "checking for $ac_func... " >&6; }
  7057. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7058. $as_echo_n "(cached) " >&6
  7059. else
  7060. cat >conftest.$ac_ext <<_ACEOF
  7061. /* confdefs.h. */
  7062. _ACEOF
  7063. cat confdefs.h >>conftest.$ac_ext
  7064. cat >>conftest.$ac_ext <<_ACEOF
  7065. /* end confdefs.h. */
  7066. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7067. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7068. #define $ac_func innocuous_$ac_func
  7069. /* System header to define __stub macros and hopefully few prototypes,
  7070. which can conflict with char $ac_func (); below.
  7071. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7072. <limits.h> exists even on freestanding compilers. */
  7073. #ifdef __STDC__
  7074. # include <limits.h>
  7075. #else
  7076. # include <assert.h>
  7077. #endif
  7078. #undef $ac_func
  7079. /* Override any GCC internal prototype to avoid an error.
  7080. Use char because int might match the return type of a GCC
  7081. builtin and then its argument prototype would still apply. */
  7082. #ifdef __cplusplus
  7083. extern "C"
  7084. #endif
  7085. char $ac_func ();
  7086. /* The GNU C library defines this for functions which it implements
  7087. to always fail with ENOSYS. Some functions are actually named
  7088. something starting with __ and the normal name is an alias. */
  7089. #if defined __stub_$ac_func || defined __stub___$ac_func
  7090. choke me
  7091. #endif
  7092. int
  7093. main ()
  7094. {
  7095. return $ac_func ();
  7096. ;
  7097. return 0;
  7098. }
  7099. _ACEOF
  7100. rm -f conftest.$ac_objext conftest$ac_exeext
  7101. if { (ac_try="$ac_link"
  7102. case "(($ac_try" in
  7103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7104. *) ac_try_echo=$ac_try;;
  7105. esac
  7106. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7107. $as_echo "$ac_try_echo") >&5
  7108. (eval "$ac_link") 2>conftest.er1
  7109. ac_status=$?
  7110. grep -v '^ *+' conftest.er1 >conftest.err
  7111. rm -f conftest.er1
  7112. cat conftest.err >&5
  7113. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7114. (exit $ac_status); } && {
  7115. test -z "$ac_cxx_werror_flag" ||
  7116. test ! -s conftest.err
  7117. } && test -s conftest$ac_exeext && {
  7118. test "$cross_compiling" = yes ||
  7119. $as_test_x conftest$ac_exeext
  7120. }; then
  7121. eval "$as_ac_var=yes"
  7122. else
  7123. $as_echo "$as_me: failed program was:" >&5
  7124. sed 's/^/| /' conftest.$ac_ext >&5
  7125. eval "$as_ac_var=no"
  7126. fi
  7127. rm -rf conftest.dSYM
  7128. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7129. conftest$ac_exeext conftest.$ac_ext
  7130. fi
  7131. ac_res=`eval 'as_val=${'$as_ac_var'}
  7132. $as_echo "$as_val"'`
  7133. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7134. $as_echo "$ac_res" >&6; }
  7135. as_val=`eval 'as_val=${'$as_ac_var'}
  7136. $as_echo "$as_val"'`
  7137. if test "x$as_val" = x""yes; then
  7138. cat >>confdefs.h <<_ACEOF
  7139. #define CRAY_STACKSEG_END $ac_func
  7140. _ACEOF
  7141. break
  7142. fi
  7143. done
  7144. fi
  7145. { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  7146. $as_echo_n "checking stack direction for C alloca... " >&6; }
  7147. if test "${ac_cv_c_stack_direction+set}" = set; then
  7148. $as_echo_n "(cached) " >&6
  7149. else
  7150. if test "$cross_compiling" = yes; then
  7151. ac_cv_c_stack_direction=0
  7152. else
  7153. cat >conftest.$ac_ext <<_ACEOF
  7154. /* confdefs.h. */
  7155. _ACEOF
  7156. cat confdefs.h >>conftest.$ac_ext
  7157. cat >>conftest.$ac_ext <<_ACEOF
  7158. /* end confdefs.h. */
  7159. $ac_includes_default
  7160. int
  7161. find_stack_direction ()
  7162. {
  7163. static char *addr = 0;
  7164. auto char dummy;
  7165. if (addr == 0)
  7166. {
  7167. addr = &dummy;
  7168. return find_stack_direction ();
  7169. }
  7170. else
  7171. return (&dummy > addr) ? 1 : -1;
  7172. }
  7173. int
  7174. main ()
  7175. {
  7176. return find_stack_direction () < 0;
  7177. }
  7178. _ACEOF
  7179. rm -f conftest$ac_exeext
  7180. if { (ac_try="$ac_link"
  7181. case "(($ac_try" in
  7182. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7183. *) ac_try_echo=$ac_try;;
  7184. esac
  7185. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7186. $as_echo "$ac_try_echo") >&5
  7187. (eval "$ac_link") 2>&5
  7188. ac_status=$?
  7189. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7190. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7191. { (case "(($ac_try" in
  7192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7193. *) ac_try_echo=$ac_try;;
  7194. esac
  7195. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7196. $as_echo "$ac_try_echo") >&5
  7197. (eval "$ac_try") 2>&5
  7198. ac_status=$?
  7199. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7200. (exit $ac_status); }; }; then
  7201. ac_cv_c_stack_direction=1
  7202. else
  7203. $as_echo "$as_me: program exited with status $ac_status" >&5
  7204. $as_echo "$as_me: failed program was:" >&5
  7205. sed 's/^/| /' conftest.$ac_ext >&5
  7206. ( exit $ac_status )
  7207. ac_cv_c_stack_direction=-1
  7208. fi
  7209. rm -rf conftest.dSYM
  7210. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7211. fi
  7212. fi
  7213. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  7214. $as_echo "$ac_cv_c_stack_direction" >&6; }
  7215. cat >>confdefs.h <<_ACEOF
  7216. #define STACK_DIRECTION $ac_cv_c_stack_direction
  7217. _ACEOF
  7218. fi
  7219. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  7220. $as_echo_n "checking for ANSI C header files... " >&6; }
  7221. if test "${ac_cv_header_stdc+set}" = set; then
  7222. $as_echo_n "(cached) " >&6
  7223. else
  7224. cat >conftest.$ac_ext <<_ACEOF
  7225. /* confdefs.h. */
  7226. _ACEOF
  7227. cat confdefs.h >>conftest.$ac_ext
  7228. cat >>conftest.$ac_ext <<_ACEOF
  7229. /* end confdefs.h. */
  7230. #include <stdlib.h>
  7231. #include <stdarg.h>
  7232. #include <string.h>
  7233. #include <float.h>
  7234. int
  7235. main ()
  7236. {
  7237. ;
  7238. return 0;
  7239. }
  7240. _ACEOF
  7241. rm -f conftest.$ac_objext
  7242. if { (ac_try="$ac_compile"
  7243. case "(($ac_try" in
  7244. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7245. *) ac_try_echo=$ac_try;;
  7246. esac
  7247. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7248. $as_echo "$ac_try_echo") >&5
  7249. (eval "$ac_compile") 2>conftest.er1
  7250. ac_status=$?
  7251. grep -v '^ *+' conftest.er1 >conftest.err
  7252. rm -f conftest.er1
  7253. cat conftest.err >&5
  7254. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7255. (exit $ac_status); } && {
  7256. test -z "$ac_cxx_werror_flag" ||
  7257. test ! -s conftest.err
  7258. } && test -s conftest.$ac_objext; then
  7259. ac_cv_header_stdc=yes
  7260. else
  7261. $as_echo "$as_me: failed program was:" >&5
  7262. sed 's/^/| /' conftest.$ac_ext >&5
  7263. ac_cv_header_stdc=no
  7264. fi
  7265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7266. if test $ac_cv_header_stdc = yes; then
  7267. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7268. cat >conftest.$ac_ext <<_ACEOF
  7269. /* confdefs.h. */
  7270. _ACEOF
  7271. cat confdefs.h >>conftest.$ac_ext
  7272. cat >>conftest.$ac_ext <<_ACEOF
  7273. /* end confdefs.h. */
  7274. #include <string.h>
  7275. _ACEOF
  7276. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7277. $EGREP "memchr" >/dev/null 2>&1; then
  7278. :
  7279. else
  7280. ac_cv_header_stdc=no
  7281. fi
  7282. rm -f conftest*
  7283. fi
  7284. if test $ac_cv_header_stdc = yes; then
  7285. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7286. cat >conftest.$ac_ext <<_ACEOF
  7287. /* confdefs.h. */
  7288. _ACEOF
  7289. cat confdefs.h >>conftest.$ac_ext
  7290. cat >>conftest.$ac_ext <<_ACEOF
  7291. /* end confdefs.h. */
  7292. #include <stdlib.h>
  7293. _ACEOF
  7294. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7295. $EGREP "free" >/dev/null 2>&1; then
  7296. :
  7297. else
  7298. ac_cv_header_stdc=no
  7299. fi
  7300. rm -f conftest*
  7301. fi
  7302. if test $ac_cv_header_stdc = yes; then
  7303. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7304. if test "$cross_compiling" = yes; then
  7305. :
  7306. else
  7307. cat >conftest.$ac_ext <<_ACEOF
  7308. /* confdefs.h. */
  7309. _ACEOF
  7310. cat confdefs.h >>conftest.$ac_ext
  7311. cat >>conftest.$ac_ext <<_ACEOF
  7312. /* end confdefs.h. */
  7313. #include <ctype.h>
  7314. #include <stdlib.h>
  7315. #if ((' ' & 0x0FF) == 0x020)
  7316. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7317. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7318. #else
  7319. # define ISLOWER(c) \
  7320. (('a' <= (c) && (c) <= 'i') \
  7321. || ('j' <= (c) && (c) <= 'r') \
  7322. || ('s' <= (c) && (c) <= 'z'))
  7323. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7324. #endif
  7325. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7326. int
  7327. main ()
  7328. {
  7329. int i;
  7330. for (i = 0; i < 256; i++)
  7331. if (XOR (islower (i), ISLOWER (i))
  7332. || toupper (i) != TOUPPER (i))
  7333. return 2;
  7334. return 0;
  7335. }
  7336. _ACEOF
  7337. rm -f conftest$ac_exeext
  7338. if { (ac_try="$ac_link"
  7339. case "(($ac_try" in
  7340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7341. *) ac_try_echo=$ac_try;;
  7342. esac
  7343. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7344. $as_echo "$ac_try_echo") >&5
  7345. (eval "$ac_link") 2>&5
  7346. ac_status=$?
  7347. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7348. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7349. { (case "(($ac_try" in
  7350. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7351. *) ac_try_echo=$ac_try;;
  7352. esac
  7353. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7354. $as_echo "$ac_try_echo") >&5
  7355. (eval "$ac_try") 2>&5
  7356. ac_status=$?
  7357. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7358. (exit $ac_status); }; }; then
  7359. :
  7360. else
  7361. $as_echo "$as_me: program exited with status $ac_status" >&5
  7362. $as_echo "$as_me: failed program was:" >&5
  7363. sed 's/^/| /' conftest.$ac_ext >&5
  7364. ( exit $ac_status )
  7365. ac_cv_header_stdc=no
  7366. fi
  7367. rm -rf conftest.dSYM
  7368. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7369. fi
  7370. fi
  7371. fi
  7372. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  7373. $as_echo "$ac_cv_header_stdc" >&6; }
  7374. if test $ac_cv_header_stdc = yes; then
  7375. cat >>confdefs.h <<\_ACEOF
  7376. #define STDC_HEADERS 1
  7377. _ACEOF
  7378. fi
  7379. case "$target" in
  7380. *mingw*)
  7381. for ac_header in winsock2.h \
  7382. ws2tcpip.h
  7383. do
  7384. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7385. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7386. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7387. $as_echo_n "checking for $ac_header... " >&6; }
  7388. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7389. $as_echo_n "(cached) " >&6
  7390. fi
  7391. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7392. $as_echo "$as_val"'`
  7393. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7394. $as_echo "$ac_res" >&6; }
  7395. else
  7396. # Is the header compilable?
  7397. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7398. $as_echo_n "checking $ac_header usability... " >&6; }
  7399. cat >conftest.$ac_ext <<_ACEOF
  7400. /* confdefs.h. */
  7401. _ACEOF
  7402. cat confdefs.h >>conftest.$ac_ext
  7403. cat >>conftest.$ac_ext <<_ACEOF
  7404. /* end confdefs.h. */
  7405. $ac_includes_default
  7406. #include <$ac_header>
  7407. _ACEOF
  7408. rm -f conftest.$ac_objext
  7409. if { (ac_try="$ac_compile"
  7410. case "(($ac_try" in
  7411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7412. *) ac_try_echo=$ac_try;;
  7413. esac
  7414. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7415. $as_echo "$ac_try_echo") >&5
  7416. (eval "$ac_compile") 2>conftest.er1
  7417. ac_status=$?
  7418. grep -v '^ *+' conftest.er1 >conftest.err
  7419. rm -f conftest.er1
  7420. cat conftest.err >&5
  7421. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7422. (exit $ac_status); } && {
  7423. test -z "$ac_cxx_werror_flag" ||
  7424. test ! -s conftest.err
  7425. } && test -s conftest.$ac_objext; then
  7426. ac_header_compiler=yes
  7427. else
  7428. $as_echo "$as_me: failed program was:" >&5
  7429. sed 's/^/| /' conftest.$ac_ext >&5
  7430. ac_header_compiler=no
  7431. fi
  7432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7433. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7434. $as_echo "$ac_header_compiler" >&6; }
  7435. # Is the header present?
  7436. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7437. $as_echo_n "checking $ac_header presence... " >&6; }
  7438. cat >conftest.$ac_ext <<_ACEOF
  7439. /* confdefs.h. */
  7440. _ACEOF
  7441. cat confdefs.h >>conftest.$ac_ext
  7442. cat >>conftest.$ac_ext <<_ACEOF
  7443. /* end confdefs.h. */
  7444. #include <$ac_header>
  7445. _ACEOF
  7446. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7447. case "(($ac_try" in
  7448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7449. *) ac_try_echo=$ac_try;;
  7450. esac
  7451. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7452. $as_echo "$ac_try_echo") >&5
  7453. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7454. ac_status=$?
  7455. grep -v '^ *+' conftest.er1 >conftest.err
  7456. rm -f conftest.er1
  7457. cat conftest.err >&5
  7458. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7459. (exit $ac_status); } >/dev/null && {
  7460. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7461. test ! -s conftest.err
  7462. }; then
  7463. ac_header_preproc=yes
  7464. else
  7465. $as_echo "$as_me: failed program was:" >&5
  7466. sed 's/^/| /' conftest.$ac_ext >&5
  7467. ac_header_preproc=no
  7468. fi
  7469. rm -f conftest.err conftest.$ac_ext
  7470. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7471. $as_echo "$ac_header_preproc" >&6; }
  7472. # So? What about this header?
  7473. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7474. yes:no: )
  7475. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7476. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7477. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7478. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7479. ac_header_preproc=yes
  7480. ;;
  7481. no:yes:* )
  7482. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7483. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7484. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7485. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7486. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7487. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7488. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7489. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7490. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7491. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7492. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7493. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7494. ( cat <<\_ASBOX
  7495. ## ----------------------------------------------- ##
  7496. ## Report this to t-tujikawa@users.sourceforge.net ##
  7497. ## ----------------------------------------------- ##
  7498. _ASBOX
  7499. ) | sed "s/^/$as_me: WARNING: /" >&2
  7500. ;;
  7501. esac
  7502. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7503. $as_echo_n "checking for $ac_header... " >&6; }
  7504. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7505. $as_echo_n "(cached) " >&6
  7506. else
  7507. eval "$as_ac_Header=\$ac_header_preproc"
  7508. fi
  7509. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7510. $as_echo "$as_val"'`
  7511. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7512. $as_echo "$ac_res" >&6; }
  7513. fi
  7514. as_val=`eval 'as_val=${'$as_ac_Header'}
  7515. $as_echo "$as_val"'`
  7516. if test "x$as_val" = x""yes; then
  7517. cat >>confdefs.h <<_ACEOF
  7518. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7519. _ACEOF
  7520. fi
  7521. done
  7522. ;;
  7523. esac
  7524. for ac_header in argz.h \
  7525. arpa/inet.h \
  7526. fcntl.h \
  7527. float.h \
  7528. inttypes.h \
  7529. io.h \
  7530. langinfo.h \
  7531. libintl.h \
  7532. limits.h \
  7533. locale.h \
  7534. malloc.h \
  7535. netdb.h \
  7536. netinet/in.h \
  7537. stddef.h \
  7538. stdint.h \
  7539. stdio_ext.h \
  7540. stdlib.h \
  7541. string.h \
  7542. strings.h \
  7543. sys/ioctl.h \
  7544. sys/param.h \
  7545. sys/socket.h \
  7546. sys/time.h \
  7547. termios.h \
  7548. unistd.h \
  7549. wchar.h
  7550. do
  7551. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7552. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7553. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7554. $as_echo_n "checking for $ac_header... " >&6; }
  7555. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7556. $as_echo_n "(cached) " >&6
  7557. fi
  7558. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7559. $as_echo "$as_val"'`
  7560. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7561. $as_echo "$ac_res" >&6; }
  7562. else
  7563. # Is the header compilable?
  7564. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7565. $as_echo_n "checking $ac_header usability... " >&6; }
  7566. cat >conftest.$ac_ext <<_ACEOF
  7567. /* confdefs.h. */
  7568. _ACEOF
  7569. cat confdefs.h >>conftest.$ac_ext
  7570. cat >>conftest.$ac_ext <<_ACEOF
  7571. /* end confdefs.h. */
  7572. $ac_includes_default
  7573. #include <$ac_header>
  7574. _ACEOF
  7575. rm -f conftest.$ac_objext
  7576. if { (ac_try="$ac_compile"
  7577. case "(($ac_try" in
  7578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7579. *) ac_try_echo=$ac_try;;
  7580. esac
  7581. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7582. $as_echo "$ac_try_echo") >&5
  7583. (eval "$ac_compile") 2>conftest.er1
  7584. ac_status=$?
  7585. grep -v '^ *+' conftest.er1 >conftest.err
  7586. rm -f conftest.er1
  7587. cat conftest.err >&5
  7588. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7589. (exit $ac_status); } && {
  7590. test -z "$ac_cxx_werror_flag" ||
  7591. test ! -s conftest.err
  7592. } && test -s conftest.$ac_objext; then
  7593. ac_header_compiler=yes
  7594. else
  7595. $as_echo "$as_me: failed program was:" >&5
  7596. sed 's/^/| /' conftest.$ac_ext >&5
  7597. ac_header_compiler=no
  7598. fi
  7599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7600. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7601. $as_echo "$ac_header_compiler" >&6; }
  7602. # Is the header present?
  7603. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7604. $as_echo_n "checking $ac_header presence... " >&6; }
  7605. cat >conftest.$ac_ext <<_ACEOF
  7606. /* confdefs.h. */
  7607. _ACEOF
  7608. cat confdefs.h >>conftest.$ac_ext
  7609. cat >>conftest.$ac_ext <<_ACEOF
  7610. /* end confdefs.h. */
  7611. #include <$ac_header>
  7612. _ACEOF
  7613. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7614. case "(($ac_try" in
  7615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7616. *) ac_try_echo=$ac_try;;
  7617. esac
  7618. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7619. $as_echo "$ac_try_echo") >&5
  7620. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7621. ac_status=$?
  7622. grep -v '^ *+' conftest.er1 >conftest.err
  7623. rm -f conftest.er1
  7624. cat conftest.err >&5
  7625. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7626. (exit $ac_status); } >/dev/null && {
  7627. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7628. test ! -s conftest.err
  7629. }; then
  7630. ac_header_preproc=yes
  7631. else
  7632. $as_echo "$as_me: failed program was:" >&5
  7633. sed 's/^/| /' conftest.$ac_ext >&5
  7634. ac_header_preproc=no
  7635. fi
  7636. rm -f conftest.err conftest.$ac_ext
  7637. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7638. $as_echo "$ac_header_preproc" >&6; }
  7639. # So? What about this header?
  7640. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7641. yes:no: )
  7642. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7643. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7644. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7645. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7646. ac_header_preproc=yes
  7647. ;;
  7648. no:yes:* )
  7649. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7650. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7651. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7652. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7653. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7654. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7655. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7656. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7657. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7658. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7659. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7660. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7661. ( cat <<\_ASBOX
  7662. ## ----------------------------------------------- ##
  7663. ## Report this to t-tujikawa@users.sourceforge.net ##
  7664. ## ----------------------------------------------- ##
  7665. _ASBOX
  7666. ) | sed "s/^/$as_me: WARNING: /" >&2
  7667. ;;
  7668. esac
  7669. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7670. $as_echo_n "checking for $ac_header... " >&6; }
  7671. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7672. $as_echo_n "(cached) " >&6
  7673. else
  7674. eval "$as_ac_Header=\$ac_header_preproc"
  7675. fi
  7676. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7677. $as_echo "$as_val"'`
  7678. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7679. $as_echo "$ac_res" >&6; }
  7680. fi
  7681. as_val=`eval 'as_val=${'$as_ac_Header'}
  7682. $as_echo "$as_val"'`
  7683. if test "x$as_val" = x""yes; then
  7684. cat >>confdefs.h <<_ACEOF
  7685. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7686. _ACEOF
  7687. fi
  7688. done
  7689. # Checks for typedefs, structures, and compiler characteristics.
  7690. { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  7691. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  7692. if test "${ac_cv_header_stdbool_h+set}" = set; then
  7693. $as_echo_n "(cached) " >&6
  7694. else
  7695. cat >conftest.$ac_ext <<_ACEOF
  7696. /* confdefs.h. */
  7697. _ACEOF
  7698. cat confdefs.h >>conftest.$ac_ext
  7699. cat >>conftest.$ac_ext <<_ACEOF
  7700. /* end confdefs.h. */
  7701. #include <stdbool.h>
  7702. #ifndef bool
  7703. "error: bool is not defined"
  7704. #endif
  7705. #ifndef false
  7706. "error: false is not defined"
  7707. #endif
  7708. #if false
  7709. "error: false is not 0"
  7710. #endif
  7711. #ifndef true
  7712. "error: true is not defined"
  7713. #endif
  7714. #if true != 1
  7715. "error: true is not 1"
  7716. #endif
  7717. #ifndef __bool_true_false_are_defined
  7718. "error: __bool_true_false_are_defined is not defined"
  7719. #endif
  7720. struct s { _Bool s: 1; _Bool t; } s;
  7721. char a[true == 1 ? 1 : -1];
  7722. char b[false == 0 ? 1 : -1];
  7723. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7724. char d[(bool) 0.5 == true ? 1 : -1];
  7725. bool e = &s;
  7726. char f[(_Bool) 0.0 == false ? 1 : -1];
  7727. char g[true];
  7728. char h[sizeof (_Bool)];
  7729. char i[sizeof s.t];
  7730. enum { j = false, k = true, l = false * true, m = true * 256 };
  7731. /* The following fails for
  7732. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  7733. _Bool n[m];
  7734. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7735. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7736. # if defined __xlc__ || defined __GNUC__
  7737. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7738. reported by James Lemley on 2005-10-05; see
  7739. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7740. This test is not quite right, since xlc is allowed to
  7741. reject this program, as the initializer for xlcbug is
  7742. not one of the forms that C requires support for.
  7743. However, doing the test right would require a runtime
  7744. test, and that would make cross-compilation harder.
  7745. Let us hope that IBM fixes the xlc bug, and also adds
  7746. support for this kind of constant expression. In the
  7747. meantime, this test will reject xlc, which is OK, since
  7748. our stdbool.h substitute should suffice. We also test
  7749. this with GCC, where it should work, to detect more
  7750. quickly whether someone messes up the test in the
  7751. future. */
  7752. char digs[] = "0123456789";
  7753. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7754. # endif
  7755. /* Catch a bug in an HP-UX C compiler. See
  7756. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7757. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7758. */
  7759. _Bool q = true;
  7760. _Bool *pq = &q;
  7761. int
  7762. main ()
  7763. {
  7764. *pq |= q;
  7765. *pq |= ! q;
  7766. /* Refer to every declared value, to avoid compiler optimizations. */
  7767. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7768. + !m + !n + !o + !p + !q + !pq);
  7769. ;
  7770. return 0;
  7771. }
  7772. _ACEOF
  7773. rm -f conftest.$ac_objext
  7774. if { (ac_try="$ac_compile"
  7775. case "(($ac_try" in
  7776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7777. *) ac_try_echo=$ac_try;;
  7778. esac
  7779. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7780. $as_echo "$ac_try_echo") >&5
  7781. (eval "$ac_compile") 2>conftest.er1
  7782. ac_status=$?
  7783. grep -v '^ *+' conftest.er1 >conftest.err
  7784. rm -f conftest.er1
  7785. cat conftest.err >&5
  7786. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7787. (exit $ac_status); } && {
  7788. test -z "$ac_cxx_werror_flag" ||
  7789. test ! -s conftest.err
  7790. } && test -s conftest.$ac_objext; then
  7791. ac_cv_header_stdbool_h=yes
  7792. else
  7793. $as_echo "$as_me: failed program was:" >&5
  7794. sed 's/^/| /' conftest.$ac_ext >&5
  7795. ac_cv_header_stdbool_h=no
  7796. fi
  7797. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7798. fi
  7799. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  7800. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  7801. { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
  7802. $as_echo_n "checking for _Bool... " >&6; }
  7803. if test "${ac_cv_type__Bool+set}" = set; then
  7804. $as_echo_n "(cached) " >&6
  7805. else
  7806. ac_cv_type__Bool=no
  7807. cat >conftest.$ac_ext <<_ACEOF
  7808. /* confdefs.h. */
  7809. _ACEOF
  7810. cat confdefs.h >>conftest.$ac_ext
  7811. cat >>conftest.$ac_ext <<_ACEOF
  7812. /* end confdefs.h. */
  7813. $ac_includes_default
  7814. int
  7815. main ()
  7816. {
  7817. if (sizeof (_Bool))
  7818. return 0;
  7819. ;
  7820. return 0;
  7821. }
  7822. _ACEOF
  7823. rm -f conftest.$ac_objext
  7824. if { (ac_try="$ac_compile"
  7825. case "(($ac_try" in
  7826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7827. *) ac_try_echo=$ac_try;;
  7828. esac
  7829. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7830. $as_echo "$ac_try_echo") >&5
  7831. (eval "$ac_compile") 2>conftest.er1
  7832. ac_status=$?
  7833. grep -v '^ *+' conftest.er1 >conftest.err
  7834. rm -f conftest.er1
  7835. cat conftest.err >&5
  7836. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7837. (exit $ac_status); } && {
  7838. test -z "$ac_cxx_werror_flag" ||
  7839. test ! -s conftest.err
  7840. } && test -s conftest.$ac_objext; then
  7841. cat >conftest.$ac_ext <<_ACEOF
  7842. /* confdefs.h. */
  7843. _ACEOF
  7844. cat confdefs.h >>conftest.$ac_ext
  7845. cat >>conftest.$ac_ext <<_ACEOF
  7846. /* end confdefs.h. */
  7847. $ac_includes_default
  7848. int
  7849. main ()
  7850. {
  7851. if (sizeof ((_Bool)))
  7852. return 0;
  7853. ;
  7854. return 0;
  7855. }
  7856. _ACEOF
  7857. rm -f conftest.$ac_objext
  7858. if { (ac_try="$ac_compile"
  7859. case "(($ac_try" in
  7860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7861. *) ac_try_echo=$ac_try;;
  7862. esac
  7863. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7864. $as_echo "$ac_try_echo") >&5
  7865. (eval "$ac_compile") 2>conftest.er1
  7866. ac_status=$?
  7867. grep -v '^ *+' conftest.er1 >conftest.err
  7868. rm -f conftest.er1
  7869. cat conftest.err >&5
  7870. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7871. (exit $ac_status); } && {
  7872. test -z "$ac_cxx_werror_flag" ||
  7873. test ! -s conftest.err
  7874. } && test -s conftest.$ac_objext; then
  7875. :
  7876. else
  7877. $as_echo "$as_me: failed program was:" >&5
  7878. sed 's/^/| /' conftest.$ac_ext >&5
  7879. ac_cv_type__Bool=yes
  7880. fi
  7881. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7882. else
  7883. $as_echo "$as_me: failed program was:" >&5
  7884. sed 's/^/| /' conftest.$ac_ext >&5
  7885. fi
  7886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7887. fi
  7888. { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  7889. $as_echo "$ac_cv_type__Bool" >&6; }
  7890. if test "x$ac_cv_type__Bool" = x""yes; then
  7891. cat >>confdefs.h <<_ACEOF
  7892. #define HAVE__BOOL 1
  7893. _ACEOF
  7894. fi
  7895. if test $ac_cv_header_stdbool_h = yes; then
  7896. cat >>confdefs.h <<\_ACEOF
  7897. #define HAVE_STDBOOL_H 1
  7898. _ACEOF
  7899. fi
  7900. { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  7901. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  7902. if test "${ac_cv_c_const+set}" = set; then
  7903. $as_echo_n "(cached) " >&6
  7904. else
  7905. cat >conftest.$ac_ext <<_ACEOF
  7906. /* confdefs.h. */
  7907. _ACEOF
  7908. cat confdefs.h >>conftest.$ac_ext
  7909. cat >>conftest.$ac_ext <<_ACEOF
  7910. /* end confdefs.h. */
  7911. int
  7912. main ()
  7913. {
  7914. /* FIXME: Include the comments suggested by Paul. */
  7915. #ifndef __cplusplus
  7916. /* Ultrix mips cc rejects this. */
  7917. typedef int charset[2];
  7918. const charset cs;
  7919. /* SunOS 4.1.1 cc rejects this. */
  7920. char const *const *pcpcc;
  7921. char **ppc;
  7922. /* NEC SVR4.0.2 mips cc rejects this. */
  7923. struct point {int x, y;};
  7924. static struct point const zero = {0,0};
  7925. /* AIX XL C 1.02.0.0 rejects this.
  7926. It does not let you subtract one const X* pointer from another in
  7927. an arm of an if-expression whose if-part is not a constant
  7928. expression */
  7929. const char *g = "string";
  7930. pcpcc = &g + (g ? g-g : 0);
  7931. /* HPUX 7.0 cc rejects these. */
  7932. ++pcpcc;
  7933. ppc = (char**) pcpcc;
  7934. pcpcc = (char const *const *) ppc;
  7935. { /* SCO 3.2v4 cc rejects this. */
  7936. char *t;
  7937. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7938. *t++ = 0;
  7939. if (s) return 0;
  7940. }
  7941. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7942. int x[] = {25, 17};
  7943. const int *foo = &x[0];
  7944. ++foo;
  7945. }
  7946. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7947. typedef const int *iptr;
  7948. iptr p = 0;
  7949. ++p;
  7950. }
  7951. { /* AIX XL C 1.02.0.0 rejects this saying
  7952. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7953. struct s { int j; const int *ap[3]; };
  7954. struct s *b; b->j = 5;
  7955. }
  7956. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7957. const int foo = 10;
  7958. if (!foo) return 0;
  7959. }
  7960. return !cs[0] && !zero.x;
  7961. #endif
  7962. ;
  7963. return 0;
  7964. }
  7965. _ACEOF
  7966. rm -f conftest.$ac_objext
  7967. if { (ac_try="$ac_compile"
  7968. case "(($ac_try" in
  7969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7970. *) ac_try_echo=$ac_try;;
  7971. esac
  7972. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7973. $as_echo "$ac_try_echo") >&5
  7974. (eval "$ac_compile") 2>conftest.er1
  7975. ac_status=$?
  7976. grep -v '^ *+' conftest.er1 >conftest.err
  7977. rm -f conftest.er1
  7978. cat conftest.err >&5
  7979. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7980. (exit $ac_status); } && {
  7981. test -z "$ac_cxx_werror_flag" ||
  7982. test ! -s conftest.err
  7983. } && test -s conftest.$ac_objext; then
  7984. ac_cv_c_const=yes
  7985. else
  7986. $as_echo "$as_me: failed program was:" >&5
  7987. sed 's/^/| /' conftest.$ac_ext >&5
  7988. ac_cv_c_const=no
  7989. fi
  7990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7991. fi
  7992. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  7993. $as_echo "$ac_cv_c_const" >&6; }
  7994. if test $ac_cv_c_const = no; then
  7995. cat >>confdefs.h <<\_ACEOF
  7996. #define const /**/
  7997. _ACEOF
  7998. fi
  7999. { $as_echo "$as_me:$LINENO: checking for inline" >&5
  8000. $as_echo_n "checking for inline... " >&6; }
  8001. if test "${ac_cv_c_inline+set}" = set; then
  8002. $as_echo_n "(cached) " >&6
  8003. else
  8004. ac_cv_c_inline=no
  8005. for ac_kw in inline __inline__ __inline; do
  8006. cat >conftest.$ac_ext <<_ACEOF
  8007. /* confdefs.h. */
  8008. _ACEOF
  8009. cat confdefs.h >>conftest.$ac_ext
  8010. cat >>conftest.$ac_ext <<_ACEOF
  8011. /* end confdefs.h. */
  8012. #ifndef __cplusplus
  8013. typedef int foo_t;
  8014. static $ac_kw foo_t static_foo () {return 0; }
  8015. $ac_kw foo_t foo () {return 0; }
  8016. #endif
  8017. _ACEOF
  8018. rm -f conftest.$ac_objext
  8019. if { (ac_try="$ac_compile"
  8020. case "(($ac_try" in
  8021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8022. *) ac_try_echo=$ac_try;;
  8023. esac
  8024. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8025. $as_echo "$ac_try_echo") >&5
  8026. (eval "$ac_compile") 2>conftest.er1
  8027. ac_status=$?
  8028. grep -v '^ *+' conftest.er1 >conftest.err
  8029. rm -f conftest.er1
  8030. cat conftest.err >&5
  8031. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8032. (exit $ac_status); } && {
  8033. test -z "$ac_cxx_werror_flag" ||
  8034. test ! -s conftest.err
  8035. } && test -s conftest.$ac_objext; then
  8036. ac_cv_c_inline=$ac_kw
  8037. else
  8038. $as_echo "$as_me: failed program was:" >&5
  8039. sed 's/^/| /' conftest.$ac_ext >&5
  8040. fi
  8041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8042. test "$ac_cv_c_inline" != no && break
  8043. done
  8044. fi
  8045. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  8046. $as_echo "$ac_cv_c_inline" >&6; }
  8047. case $ac_cv_c_inline in
  8048. inline | yes) ;;
  8049. *)
  8050. case $ac_cv_c_inline in
  8051. no) ac_val=;;
  8052. *) ac_val=$ac_cv_c_inline;;
  8053. esac
  8054. cat >>confdefs.h <<_ACEOF
  8055. #ifndef __cplusplus
  8056. #define inline $ac_val
  8057. #endif
  8058. _ACEOF
  8059. ;;
  8060. esac
  8061. { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
  8062. $as_echo_n "checking for int16_t... " >&6; }
  8063. if test "${ac_cv_c_int16_t+set}" = set; then
  8064. $as_echo_n "(cached) " >&6
  8065. else
  8066. ac_cv_c_int16_t=no
  8067. for ac_type in 'int16_t' 'int' 'long int' \
  8068. 'long long int' 'short int' 'signed char'; do
  8069. cat >conftest.$ac_ext <<_ACEOF
  8070. /* confdefs.h. */
  8071. _ACEOF
  8072. cat confdefs.h >>conftest.$ac_ext
  8073. cat >>conftest.$ac_ext <<_ACEOF
  8074. /* end confdefs.h. */
  8075. $ac_includes_default
  8076. int
  8077. main ()
  8078. {
  8079. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  8080. test_array [0] = 0
  8081. ;
  8082. return 0;
  8083. }
  8084. _ACEOF
  8085. rm -f conftest.$ac_objext
  8086. if { (ac_try="$ac_compile"
  8087. case "(($ac_try" in
  8088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8089. *) ac_try_echo=$ac_try;;
  8090. esac
  8091. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8092. $as_echo "$ac_try_echo") >&5
  8093. (eval "$ac_compile") 2>conftest.er1
  8094. ac_status=$?
  8095. grep -v '^ *+' conftest.er1 >conftest.err
  8096. rm -f conftest.er1
  8097. cat conftest.err >&5
  8098. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8099. (exit $ac_status); } && {
  8100. test -z "$ac_cxx_werror_flag" ||
  8101. test ! -s conftest.err
  8102. } && test -s conftest.$ac_objext; then
  8103. cat >conftest.$ac_ext <<_ACEOF
  8104. /* confdefs.h. */
  8105. _ACEOF
  8106. cat confdefs.h >>conftest.$ac_ext
  8107. cat >>conftest.$ac_ext <<_ACEOF
  8108. /* end confdefs.h. */
  8109. $ac_includes_default
  8110. int
  8111. main ()
  8112. {
  8113. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  8114. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  8115. test_array [0] = 0
  8116. ;
  8117. return 0;
  8118. }
  8119. _ACEOF
  8120. rm -f conftest.$ac_objext
  8121. if { (ac_try="$ac_compile"
  8122. case "(($ac_try" in
  8123. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8124. *) ac_try_echo=$ac_try;;
  8125. esac
  8126. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8127. $as_echo "$ac_try_echo") >&5
  8128. (eval "$ac_compile") 2>conftest.er1
  8129. ac_status=$?
  8130. grep -v '^ *+' conftest.er1 >conftest.err
  8131. rm -f conftest.er1
  8132. cat conftest.err >&5
  8133. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8134. (exit $ac_status); } && {
  8135. test -z "$ac_cxx_werror_flag" ||
  8136. test ! -s conftest.err
  8137. } && test -s conftest.$ac_objext; then
  8138. :
  8139. else
  8140. $as_echo "$as_me: failed program was:" >&5
  8141. sed 's/^/| /' conftest.$ac_ext >&5
  8142. case $ac_type in
  8143. int16_t) ac_cv_c_int16_t=yes ;;
  8144. *) ac_cv_c_int16_t=$ac_type ;;
  8145. esac
  8146. fi
  8147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8148. else
  8149. $as_echo "$as_me: failed program was:" >&5
  8150. sed 's/^/| /' conftest.$ac_ext >&5
  8151. fi
  8152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8153. test "$ac_cv_c_int16_t" != no && break
  8154. done
  8155. fi
  8156. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  8157. $as_echo "$ac_cv_c_int16_t" >&6; }
  8158. case $ac_cv_c_int16_t in #(
  8159. no|yes) ;; #(
  8160. *)
  8161. cat >>confdefs.h <<_ACEOF
  8162. #define int16_t $ac_cv_c_int16_t
  8163. _ACEOF
  8164. ;;
  8165. esac
  8166. { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
  8167. $as_echo_n "checking for int32_t... " >&6; }
  8168. if test "${ac_cv_c_int32_t+set}" = set; then
  8169. $as_echo_n "(cached) " >&6
  8170. else
  8171. ac_cv_c_int32_t=no
  8172. for ac_type in 'int32_t' 'int' 'long int' \
  8173. 'long long int' 'short int' 'signed char'; do
  8174. cat >conftest.$ac_ext <<_ACEOF
  8175. /* confdefs.h. */
  8176. _ACEOF
  8177. cat confdefs.h >>conftest.$ac_ext
  8178. cat >>conftest.$ac_ext <<_ACEOF
  8179. /* end confdefs.h. */
  8180. $ac_includes_default
  8181. int
  8182. main ()
  8183. {
  8184. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  8185. test_array [0] = 0
  8186. ;
  8187. return 0;
  8188. }
  8189. _ACEOF
  8190. rm -f conftest.$ac_objext
  8191. if { (ac_try="$ac_compile"
  8192. case "(($ac_try" in
  8193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8194. *) ac_try_echo=$ac_try;;
  8195. esac
  8196. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8197. $as_echo "$ac_try_echo") >&5
  8198. (eval "$ac_compile") 2>conftest.er1
  8199. ac_status=$?
  8200. grep -v '^ *+' conftest.er1 >conftest.err
  8201. rm -f conftest.er1
  8202. cat conftest.err >&5
  8203. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8204. (exit $ac_status); } && {
  8205. test -z "$ac_cxx_werror_flag" ||
  8206. test ! -s conftest.err
  8207. } && test -s conftest.$ac_objext; then
  8208. cat >conftest.$ac_ext <<_ACEOF
  8209. /* confdefs.h. */
  8210. _ACEOF
  8211. cat confdefs.h >>conftest.$ac_ext
  8212. cat >>conftest.$ac_ext <<_ACEOF
  8213. /* end confdefs.h. */
  8214. $ac_includes_default
  8215. int
  8216. main ()
  8217. {
  8218. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  8219. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  8220. test_array [0] = 0
  8221. ;
  8222. return 0;
  8223. }
  8224. _ACEOF
  8225. rm -f conftest.$ac_objext
  8226. if { (ac_try="$ac_compile"
  8227. case "(($ac_try" in
  8228. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8229. *) ac_try_echo=$ac_try;;
  8230. esac
  8231. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8232. $as_echo "$ac_try_echo") >&5
  8233. (eval "$ac_compile") 2>conftest.er1
  8234. ac_status=$?
  8235. grep -v '^ *+' conftest.er1 >conftest.err
  8236. rm -f conftest.er1
  8237. cat conftest.err >&5
  8238. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8239. (exit $ac_status); } && {
  8240. test -z "$ac_cxx_werror_flag" ||
  8241. test ! -s conftest.err
  8242. } && test -s conftest.$ac_objext; then
  8243. :
  8244. else
  8245. $as_echo "$as_me: failed program was:" >&5
  8246. sed 's/^/| /' conftest.$ac_ext >&5
  8247. case $ac_type in
  8248. int32_t) ac_cv_c_int32_t=yes ;;
  8249. *) ac_cv_c_int32_t=$ac_type ;;
  8250. esac
  8251. fi
  8252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8253. else
  8254. $as_echo "$as_me: failed program was:" >&5
  8255. sed 's/^/| /' conftest.$ac_ext >&5
  8256. fi
  8257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8258. test "$ac_cv_c_int32_t" != no && break
  8259. done
  8260. fi
  8261. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  8262. $as_echo "$ac_cv_c_int32_t" >&6; }
  8263. case $ac_cv_c_int32_t in #(
  8264. no|yes) ;; #(
  8265. *)
  8266. cat >>confdefs.h <<_ACEOF
  8267. #define int32_t $ac_cv_c_int32_t
  8268. _ACEOF
  8269. ;;
  8270. esac
  8271. { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
  8272. $as_echo_n "checking for int64_t... " >&6; }
  8273. if test "${ac_cv_c_int64_t+set}" = set; then
  8274. $as_echo_n "(cached) " >&6
  8275. else
  8276. ac_cv_c_int64_t=no
  8277. for ac_type in 'int64_t' 'int' 'long int' \
  8278. 'long long int' 'short int' 'signed char'; do
  8279. cat >conftest.$ac_ext <<_ACEOF
  8280. /* confdefs.h. */
  8281. _ACEOF
  8282. cat confdefs.h >>conftest.$ac_ext
  8283. cat >>conftest.$ac_ext <<_ACEOF
  8284. /* end confdefs.h. */
  8285. $ac_includes_default
  8286. int
  8287. main ()
  8288. {
  8289. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  8290. test_array [0] = 0
  8291. ;
  8292. return 0;
  8293. }
  8294. _ACEOF
  8295. rm -f conftest.$ac_objext
  8296. if { (ac_try="$ac_compile"
  8297. case "(($ac_try" in
  8298. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8299. *) ac_try_echo=$ac_try;;
  8300. esac
  8301. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8302. $as_echo "$ac_try_echo") >&5
  8303. (eval "$ac_compile") 2>conftest.er1
  8304. ac_status=$?
  8305. grep -v '^ *+' conftest.er1 >conftest.err
  8306. rm -f conftest.er1
  8307. cat conftest.err >&5
  8308. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8309. (exit $ac_status); } && {
  8310. test -z "$ac_cxx_werror_flag" ||
  8311. test ! -s conftest.err
  8312. } && test -s conftest.$ac_objext; then
  8313. cat >conftest.$ac_ext <<_ACEOF
  8314. /* confdefs.h. */
  8315. _ACEOF
  8316. cat confdefs.h >>conftest.$ac_ext
  8317. cat >>conftest.$ac_ext <<_ACEOF
  8318. /* end confdefs.h. */
  8319. $ac_includes_default
  8320. int
  8321. main ()
  8322. {
  8323. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  8324. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  8325. test_array [0] = 0
  8326. ;
  8327. return 0;
  8328. }
  8329. _ACEOF
  8330. rm -f conftest.$ac_objext
  8331. if { (ac_try="$ac_compile"
  8332. case "(($ac_try" in
  8333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8334. *) ac_try_echo=$ac_try;;
  8335. esac
  8336. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8337. $as_echo "$ac_try_echo") >&5
  8338. (eval "$ac_compile") 2>conftest.er1
  8339. ac_status=$?
  8340. grep -v '^ *+' conftest.er1 >conftest.err
  8341. rm -f conftest.er1
  8342. cat conftest.err >&5
  8343. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8344. (exit $ac_status); } && {
  8345. test -z "$ac_cxx_werror_flag" ||
  8346. test ! -s conftest.err
  8347. } && test -s conftest.$ac_objext; then
  8348. :
  8349. else
  8350. $as_echo "$as_me: failed program was:" >&5
  8351. sed 's/^/| /' conftest.$ac_ext >&5
  8352. case $ac_type in
  8353. int64_t) ac_cv_c_int64_t=yes ;;
  8354. *) ac_cv_c_int64_t=$ac_type ;;
  8355. esac
  8356. fi
  8357. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8358. else
  8359. $as_echo "$as_me: failed program was:" >&5
  8360. sed 's/^/| /' conftest.$ac_ext >&5
  8361. fi
  8362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8363. test "$ac_cv_c_int64_t" != no && break
  8364. done
  8365. fi
  8366. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  8367. $as_echo "$ac_cv_c_int64_t" >&6; }
  8368. case $ac_cv_c_int64_t in #(
  8369. no|yes) ;; #(
  8370. *)
  8371. cat >>confdefs.h <<_ACEOF
  8372. #define int64_t $ac_cv_c_int64_t
  8373. _ACEOF
  8374. ;;
  8375. esac
  8376. { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
  8377. $as_echo_n "checking for int8_t... " >&6; }
  8378. if test "${ac_cv_c_int8_t+set}" = set; then
  8379. $as_echo_n "(cached) " >&6
  8380. else
  8381. ac_cv_c_int8_t=no
  8382. for ac_type in 'int8_t' 'int' 'long int' \
  8383. 'long long int' 'short int' 'signed char'; do
  8384. cat >conftest.$ac_ext <<_ACEOF
  8385. /* confdefs.h. */
  8386. _ACEOF
  8387. cat confdefs.h >>conftest.$ac_ext
  8388. cat >>conftest.$ac_ext <<_ACEOF
  8389. /* end confdefs.h. */
  8390. $ac_includes_default
  8391. int
  8392. main ()
  8393. {
  8394. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  8395. test_array [0] = 0
  8396. ;
  8397. return 0;
  8398. }
  8399. _ACEOF
  8400. rm -f conftest.$ac_objext
  8401. if { (ac_try="$ac_compile"
  8402. case "(($ac_try" in
  8403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8404. *) ac_try_echo=$ac_try;;
  8405. esac
  8406. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8407. $as_echo "$ac_try_echo") >&5
  8408. (eval "$ac_compile") 2>conftest.er1
  8409. ac_status=$?
  8410. grep -v '^ *+' conftest.er1 >conftest.err
  8411. rm -f conftest.er1
  8412. cat conftest.err >&5
  8413. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8414. (exit $ac_status); } && {
  8415. test -z "$ac_cxx_werror_flag" ||
  8416. test ! -s conftest.err
  8417. } && test -s conftest.$ac_objext; then
  8418. cat >conftest.$ac_ext <<_ACEOF
  8419. /* confdefs.h. */
  8420. _ACEOF
  8421. cat confdefs.h >>conftest.$ac_ext
  8422. cat >>conftest.$ac_ext <<_ACEOF
  8423. /* end confdefs.h. */
  8424. $ac_includes_default
  8425. int
  8426. main ()
  8427. {
  8428. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  8429. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  8430. test_array [0] = 0
  8431. ;
  8432. return 0;
  8433. }
  8434. _ACEOF
  8435. rm -f conftest.$ac_objext
  8436. if { (ac_try="$ac_compile"
  8437. case "(($ac_try" in
  8438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8439. *) ac_try_echo=$ac_try;;
  8440. esac
  8441. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8442. $as_echo "$ac_try_echo") >&5
  8443. (eval "$ac_compile") 2>conftest.er1
  8444. ac_status=$?
  8445. grep -v '^ *+' conftest.er1 >conftest.err
  8446. rm -f conftest.er1
  8447. cat conftest.err >&5
  8448. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8449. (exit $ac_status); } && {
  8450. test -z "$ac_cxx_werror_flag" ||
  8451. test ! -s conftest.err
  8452. } && test -s conftest.$ac_objext; then
  8453. :
  8454. else
  8455. $as_echo "$as_me: failed program was:" >&5
  8456. sed 's/^/| /' conftest.$ac_ext >&5
  8457. case $ac_type in
  8458. int8_t) ac_cv_c_int8_t=yes ;;
  8459. *) ac_cv_c_int8_t=$ac_type ;;
  8460. esac
  8461. fi
  8462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8463. else
  8464. $as_echo "$as_me: failed program was:" >&5
  8465. sed 's/^/| /' conftest.$ac_ext >&5
  8466. fi
  8467. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8468. test "$ac_cv_c_int8_t" != no && break
  8469. done
  8470. fi
  8471. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  8472. $as_echo "$ac_cv_c_int8_t" >&6; }
  8473. case $ac_cv_c_int8_t in #(
  8474. no|yes) ;; #(
  8475. *)
  8476. cat >>confdefs.h <<_ACEOF
  8477. #define int8_t $ac_cv_c_int8_t
  8478. _ACEOF
  8479. ;;
  8480. esac
  8481. { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
  8482. $as_echo_n "checking for mode_t... " >&6; }
  8483. if test "${ac_cv_type_mode_t+set}" = set; then
  8484. $as_echo_n "(cached) " >&6
  8485. else
  8486. ac_cv_type_mode_t=no
  8487. cat >conftest.$ac_ext <<_ACEOF
  8488. /* confdefs.h. */
  8489. _ACEOF
  8490. cat confdefs.h >>conftest.$ac_ext
  8491. cat >>conftest.$ac_ext <<_ACEOF
  8492. /* end confdefs.h. */
  8493. $ac_includes_default
  8494. int
  8495. main ()
  8496. {
  8497. if (sizeof (mode_t))
  8498. return 0;
  8499. ;
  8500. return 0;
  8501. }
  8502. _ACEOF
  8503. rm -f conftest.$ac_objext
  8504. if { (ac_try="$ac_compile"
  8505. case "(($ac_try" in
  8506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8507. *) ac_try_echo=$ac_try;;
  8508. esac
  8509. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8510. $as_echo "$ac_try_echo") >&5
  8511. (eval "$ac_compile") 2>conftest.er1
  8512. ac_status=$?
  8513. grep -v '^ *+' conftest.er1 >conftest.err
  8514. rm -f conftest.er1
  8515. cat conftest.err >&5
  8516. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8517. (exit $ac_status); } && {
  8518. test -z "$ac_cxx_werror_flag" ||
  8519. test ! -s conftest.err
  8520. } && test -s conftest.$ac_objext; then
  8521. cat >conftest.$ac_ext <<_ACEOF
  8522. /* confdefs.h. */
  8523. _ACEOF
  8524. cat confdefs.h >>conftest.$ac_ext
  8525. cat >>conftest.$ac_ext <<_ACEOF
  8526. /* end confdefs.h. */
  8527. $ac_includes_default
  8528. int
  8529. main ()
  8530. {
  8531. if (sizeof ((mode_t)))
  8532. return 0;
  8533. ;
  8534. return 0;
  8535. }
  8536. _ACEOF
  8537. rm -f conftest.$ac_objext
  8538. if { (ac_try="$ac_compile"
  8539. case "(($ac_try" in
  8540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8541. *) ac_try_echo=$ac_try;;
  8542. esac
  8543. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8544. $as_echo "$ac_try_echo") >&5
  8545. (eval "$ac_compile") 2>conftest.er1
  8546. ac_status=$?
  8547. grep -v '^ *+' conftest.er1 >conftest.err
  8548. rm -f conftest.er1
  8549. cat conftest.err >&5
  8550. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8551. (exit $ac_status); } && {
  8552. test -z "$ac_cxx_werror_flag" ||
  8553. test ! -s conftest.err
  8554. } && test -s conftest.$ac_objext; then
  8555. :
  8556. else
  8557. $as_echo "$as_me: failed program was:" >&5
  8558. sed 's/^/| /' conftest.$ac_ext >&5
  8559. ac_cv_type_mode_t=yes
  8560. fi
  8561. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8562. else
  8563. $as_echo "$as_me: failed program was:" >&5
  8564. sed 's/^/| /' conftest.$ac_ext >&5
  8565. fi
  8566. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8567. fi
  8568. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  8569. $as_echo "$ac_cv_type_mode_t" >&6; }
  8570. if test "x$ac_cv_type_mode_t" = x""yes; then
  8571. :
  8572. else
  8573. cat >>confdefs.h <<_ACEOF
  8574. #define mode_t int
  8575. _ACEOF
  8576. fi
  8577. { $as_echo "$as_me:$LINENO: checking for off_t" >&5
  8578. $as_echo_n "checking for off_t... " >&6; }
  8579. if test "${ac_cv_type_off_t+set}" = set; then
  8580. $as_echo_n "(cached) " >&6
  8581. else
  8582. ac_cv_type_off_t=no
  8583. cat >conftest.$ac_ext <<_ACEOF
  8584. /* confdefs.h. */
  8585. _ACEOF
  8586. cat confdefs.h >>conftest.$ac_ext
  8587. cat >>conftest.$ac_ext <<_ACEOF
  8588. /* end confdefs.h. */
  8589. $ac_includes_default
  8590. int
  8591. main ()
  8592. {
  8593. if (sizeof (off_t))
  8594. return 0;
  8595. ;
  8596. return 0;
  8597. }
  8598. _ACEOF
  8599. rm -f conftest.$ac_objext
  8600. if { (ac_try="$ac_compile"
  8601. case "(($ac_try" in
  8602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8603. *) ac_try_echo=$ac_try;;
  8604. esac
  8605. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8606. $as_echo "$ac_try_echo") >&5
  8607. (eval "$ac_compile") 2>conftest.er1
  8608. ac_status=$?
  8609. grep -v '^ *+' conftest.er1 >conftest.err
  8610. rm -f conftest.er1
  8611. cat conftest.err >&5
  8612. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8613. (exit $ac_status); } && {
  8614. test -z "$ac_cxx_werror_flag" ||
  8615. test ! -s conftest.err
  8616. } && test -s conftest.$ac_objext; then
  8617. cat >conftest.$ac_ext <<_ACEOF
  8618. /* confdefs.h. */
  8619. _ACEOF
  8620. cat confdefs.h >>conftest.$ac_ext
  8621. cat >>conftest.$ac_ext <<_ACEOF
  8622. /* end confdefs.h. */
  8623. $ac_includes_default
  8624. int
  8625. main ()
  8626. {
  8627. if (sizeof ((off_t)))
  8628. return 0;
  8629. ;
  8630. return 0;
  8631. }
  8632. _ACEOF
  8633. rm -f conftest.$ac_objext
  8634. if { (ac_try="$ac_compile"
  8635. case "(($ac_try" in
  8636. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8637. *) ac_try_echo=$ac_try;;
  8638. esac
  8639. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8640. $as_echo "$ac_try_echo") >&5
  8641. (eval "$ac_compile") 2>conftest.er1
  8642. ac_status=$?
  8643. grep -v '^ *+' conftest.er1 >conftest.err
  8644. rm -f conftest.er1
  8645. cat conftest.err >&5
  8646. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8647. (exit $ac_status); } && {
  8648. test -z "$ac_cxx_werror_flag" ||
  8649. test ! -s conftest.err
  8650. } && test -s conftest.$ac_objext; then
  8651. :
  8652. else
  8653. $as_echo "$as_me: failed program was:" >&5
  8654. sed 's/^/| /' conftest.$ac_ext >&5
  8655. ac_cv_type_off_t=yes
  8656. fi
  8657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8658. else
  8659. $as_echo "$as_me: failed program was:" >&5
  8660. sed 's/^/| /' conftest.$ac_ext >&5
  8661. fi
  8662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8663. fi
  8664. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  8665. $as_echo "$ac_cv_type_off_t" >&6; }
  8666. if test "x$ac_cv_type_off_t" = x""yes; then
  8667. :
  8668. else
  8669. cat >>confdefs.h <<_ACEOF
  8670. #define off_t long int
  8671. _ACEOF
  8672. fi
  8673. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  8674. $as_echo_n "checking for size_t... " >&6; }
  8675. if test "${ac_cv_type_size_t+set}" = set; then
  8676. $as_echo_n "(cached) " >&6
  8677. else
  8678. ac_cv_type_size_t=no
  8679. cat >conftest.$ac_ext <<_ACEOF
  8680. /* confdefs.h. */
  8681. _ACEOF
  8682. cat confdefs.h >>conftest.$ac_ext
  8683. cat >>conftest.$ac_ext <<_ACEOF
  8684. /* end confdefs.h. */
  8685. $ac_includes_default
  8686. int
  8687. main ()
  8688. {
  8689. if (sizeof (size_t))
  8690. return 0;
  8691. ;
  8692. return 0;
  8693. }
  8694. _ACEOF
  8695. rm -f conftest.$ac_objext
  8696. if { (ac_try="$ac_compile"
  8697. case "(($ac_try" in
  8698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8699. *) ac_try_echo=$ac_try;;
  8700. esac
  8701. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8702. $as_echo "$ac_try_echo") >&5
  8703. (eval "$ac_compile") 2>conftest.er1
  8704. ac_status=$?
  8705. grep -v '^ *+' conftest.er1 >conftest.err
  8706. rm -f conftest.er1
  8707. cat conftest.err >&5
  8708. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8709. (exit $ac_status); } && {
  8710. test -z "$ac_cxx_werror_flag" ||
  8711. test ! -s conftest.err
  8712. } && test -s conftest.$ac_objext; then
  8713. cat >conftest.$ac_ext <<_ACEOF
  8714. /* confdefs.h. */
  8715. _ACEOF
  8716. cat confdefs.h >>conftest.$ac_ext
  8717. cat >>conftest.$ac_ext <<_ACEOF
  8718. /* end confdefs.h. */
  8719. $ac_includes_default
  8720. int
  8721. main ()
  8722. {
  8723. if (sizeof ((size_t)))
  8724. return 0;
  8725. ;
  8726. return 0;
  8727. }
  8728. _ACEOF
  8729. rm -f conftest.$ac_objext
  8730. if { (ac_try="$ac_compile"
  8731. case "(($ac_try" in
  8732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8733. *) ac_try_echo=$ac_try;;
  8734. esac
  8735. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8736. $as_echo "$ac_try_echo") >&5
  8737. (eval "$ac_compile") 2>conftest.er1
  8738. ac_status=$?
  8739. grep -v '^ *+' conftest.er1 >conftest.err
  8740. rm -f conftest.er1
  8741. cat conftest.err >&5
  8742. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8743. (exit $ac_status); } && {
  8744. test -z "$ac_cxx_werror_flag" ||
  8745. test ! -s conftest.err
  8746. } && test -s conftest.$ac_objext; then
  8747. :
  8748. else
  8749. $as_echo "$as_me: failed program was:" >&5
  8750. sed 's/^/| /' conftest.$ac_ext >&5
  8751. ac_cv_type_size_t=yes
  8752. fi
  8753. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8754. else
  8755. $as_echo "$as_me: failed program was:" >&5
  8756. sed 's/^/| /' conftest.$ac_ext >&5
  8757. fi
  8758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8759. fi
  8760. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  8761. $as_echo "$ac_cv_type_size_t" >&6; }
  8762. if test "x$ac_cv_type_size_t" = x""yes; then
  8763. :
  8764. else
  8765. cat >>confdefs.h <<_ACEOF
  8766. #define size_t unsigned int
  8767. _ACEOF
  8768. fi
  8769. { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
  8770. $as_echo_n "checking for ssize_t... " >&6; }
  8771. if test "${ac_cv_type_ssize_t+set}" = set; then
  8772. $as_echo_n "(cached) " >&6
  8773. else
  8774. ac_cv_type_ssize_t=no
  8775. cat >conftest.$ac_ext <<_ACEOF
  8776. /* confdefs.h. */
  8777. _ACEOF
  8778. cat confdefs.h >>conftest.$ac_ext
  8779. cat >>conftest.$ac_ext <<_ACEOF
  8780. /* end confdefs.h. */
  8781. $ac_includes_default
  8782. int
  8783. main ()
  8784. {
  8785. if (sizeof (ssize_t))
  8786. return 0;
  8787. ;
  8788. return 0;
  8789. }
  8790. _ACEOF
  8791. rm -f conftest.$ac_objext
  8792. if { (ac_try="$ac_compile"
  8793. case "(($ac_try" in
  8794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8795. *) ac_try_echo=$ac_try;;
  8796. esac
  8797. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8798. $as_echo "$ac_try_echo") >&5
  8799. (eval "$ac_compile") 2>conftest.er1
  8800. ac_status=$?
  8801. grep -v '^ *+' conftest.er1 >conftest.err
  8802. rm -f conftest.er1
  8803. cat conftest.err >&5
  8804. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8805. (exit $ac_status); } && {
  8806. test -z "$ac_cxx_werror_flag" ||
  8807. test ! -s conftest.err
  8808. } && test -s conftest.$ac_objext; then
  8809. cat >conftest.$ac_ext <<_ACEOF
  8810. /* confdefs.h. */
  8811. _ACEOF
  8812. cat confdefs.h >>conftest.$ac_ext
  8813. cat >>conftest.$ac_ext <<_ACEOF
  8814. /* end confdefs.h. */
  8815. $ac_includes_default
  8816. int
  8817. main ()
  8818. {
  8819. if (sizeof ((ssize_t)))
  8820. return 0;
  8821. ;
  8822. return 0;
  8823. }
  8824. _ACEOF
  8825. rm -f conftest.$ac_objext
  8826. if { (ac_try="$ac_compile"
  8827. case "(($ac_try" in
  8828. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8829. *) ac_try_echo=$ac_try;;
  8830. esac
  8831. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8832. $as_echo "$ac_try_echo") >&5
  8833. (eval "$ac_compile") 2>conftest.er1
  8834. ac_status=$?
  8835. grep -v '^ *+' conftest.er1 >conftest.err
  8836. rm -f conftest.er1
  8837. cat conftest.err >&5
  8838. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8839. (exit $ac_status); } && {
  8840. test -z "$ac_cxx_werror_flag" ||
  8841. test ! -s conftest.err
  8842. } && test -s conftest.$ac_objext; then
  8843. :
  8844. else
  8845. $as_echo "$as_me: failed program was:" >&5
  8846. sed 's/^/| /' conftest.$ac_ext >&5
  8847. ac_cv_type_ssize_t=yes
  8848. fi
  8849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8850. else
  8851. $as_echo "$as_me: failed program was:" >&5
  8852. sed 's/^/| /' conftest.$ac_ext >&5
  8853. fi
  8854. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8855. fi
  8856. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  8857. $as_echo "$ac_cv_type_ssize_t" >&6; }
  8858. if test "x$ac_cv_type_ssize_t" = x""yes; then
  8859. :
  8860. else
  8861. cat >>confdefs.h <<_ACEOF
  8862. #define ssize_t int
  8863. _ACEOF
  8864. fi
  8865. { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  8866. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  8867. if test "${ac_cv_header_time+set}" = set; then
  8868. $as_echo_n "(cached) " >&6
  8869. else
  8870. cat >conftest.$ac_ext <<_ACEOF
  8871. /* confdefs.h. */
  8872. _ACEOF
  8873. cat confdefs.h >>conftest.$ac_ext
  8874. cat >>conftest.$ac_ext <<_ACEOF
  8875. /* end confdefs.h. */
  8876. #include <sys/types.h>
  8877. #include <sys/time.h>
  8878. #include <time.h>
  8879. int
  8880. main ()
  8881. {
  8882. if ((struct tm *) 0)
  8883. return 0;
  8884. ;
  8885. return 0;
  8886. }
  8887. _ACEOF
  8888. rm -f conftest.$ac_objext
  8889. if { (ac_try="$ac_compile"
  8890. case "(($ac_try" in
  8891. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8892. *) ac_try_echo=$ac_try;;
  8893. esac
  8894. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8895. $as_echo "$ac_try_echo") >&5
  8896. (eval "$ac_compile") 2>conftest.er1
  8897. ac_status=$?
  8898. grep -v '^ *+' conftest.er1 >conftest.err
  8899. rm -f conftest.er1
  8900. cat conftest.err >&5
  8901. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8902. (exit $ac_status); } && {
  8903. test -z "$ac_cxx_werror_flag" ||
  8904. test ! -s conftest.err
  8905. } && test -s conftest.$ac_objext; then
  8906. ac_cv_header_time=yes
  8907. else
  8908. $as_echo "$as_me: failed program was:" >&5
  8909. sed 's/^/| /' conftest.$ac_ext >&5
  8910. ac_cv_header_time=no
  8911. fi
  8912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8913. fi
  8914. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  8915. $as_echo "$ac_cv_header_time" >&6; }
  8916. if test $ac_cv_header_time = yes; then
  8917. cat >>confdefs.h <<\_ACEOF
  8918. #define TIME_WITH_SYS_TIME 1
  8919. _ACEOF
  8920. fi
  8921. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8922. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  8923. if test "${ac_cv_struct_tm+set}" = set; then
  8924. $as_echo_n "(cached) " >&6
  8925. else
  8926. cat >conftest.$ac_ext <<_ACEOF
  8927. /* confdefs.h. */
  8928. _ACEOF
  8929. cat confdefs.h >>conftest.$ac_ext
  8930. cat >>conftest.$ac_ext <<_ACEOF
  8931. /* end confdefs.h. */
  8932. #include <sys/types.h>
  8933. #include <time.h>
  8934. int
  8935. main ()
  8936. {
  8937. struct tm tm;
  8938. int *p = &tm.tm_sec;
  8939. return !p;
  8940. ;
  8941. return 0;
  8942. }
  8943. _ACEOF
  8944. rm -f conftest.$ac_objext
  8945. if { (ac_try="$ac_compile"
  8946. case "(($ac_try" in
  8947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8948. *) ac_try_echo=$ac_try;;
  8949. esac
  8950. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8951. $as_echo "$ac_try_echo") >&5
  8952. (eval "$ac_compile") 2>conftest.er1
  8953. ac_status=$?
  8954. grep -v '^ *+' conftest.er1 >conftest.err
  8955. rm -f conftest.er1
  8956. cat conftest.err >&5
  8957. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8958. (exit $ac_status); } && {
  8959. test -z "$ac_cxx_werror_flag" ||
  8960. test ! -s conftest.err
  8961. } && test -s conftest.$ac_objext; then
  8962. ac_cv_struct_tm=time.h
  8963. else
  8964. $as_echo "$as_me: failed program was:" >&5
  8965. sed 's/^/| /' conftest.$ac_ext >&5
  8966. ac_cv_struct_tm=sys/time.h
  8967. fi
  8968. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8969. fi
  8970. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8971. $as_echo "$ac_cv_struct_tm" >&6; }
  8972. if test $ac_cv_struct_tm = sys/time.h; then
  8973. cat >>confdefs.h <<\_ACEOF
  8974. #define TM_IN_SYS_TIME 1
  8975. _ACEOF
  8976. fi
  8977. { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
  8978. $as_echo_n "checking for uint16_t... " >&6; }
  8979. if test "${ac_cv_c_uint16_t+set}" = set; then
  8980. $as_echo_n "(cached) " >&6
  8981. else
  8982. ac_cv_c_uint16_t=no
  8983. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  8984. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8985. cat >conftest.$ac_ext <<_ACEOF
  8986. /* confdefs.h. */
  8987. _ACEOF
  8988. cat confdefs.h >>conftest.$ac_ext
  8989. cat >>conftest.$ac_ext <<_ACEOF
  8990. /* end confdefs.h. */
  8991. $ac_includes_default
  8992. int
  8993. main ()
  8994. {
  8995. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  8996. test_array [0] = 0
  8997. ;
  8998. return 0;
  8999. }
  9000. _ACEOF
  9001. rm -f conftest.$ac_objext
  9002. if { (ac_try="$ac_compile"
  9003. case "(($ac_try" in
  9004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9005. *) ac_try_echo=$ac_try;;
  9006. esac
  9007. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9008. $as_echo "$ac_try_echo") >&5
  9009. (eval "$ac_compile") 2>conftest.er1
  9010. ac_status=$?
  9011. grep -v '^ *+' conftest.er1 >conftest.err
  9012. rm -f conftest.er1
  9013. cat conftest.err >&5
  9014. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9015. (exit $ac_status); } && {
  9016. test -z "$ac_cxx_werror_flag" ||
  9017. test ! -s conftest.err
  9018. } && test -s conftest.$ac_objext; then
  9019. case $ac_type in
  9020. uint16_t) ac_cv_c_uint16_t=yes ;;
  9021. *) ac_cv_c_uint16_t=$ac_type ;;
  9022. esac
  9023. else
  9024. $as_echo "$as_me: failed program was:" >&5
  9025. sed 's/^/| /' conftest.$ac_ext >&5
  9026. fi
  9027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9028. test "$ac_cv_c_uint16_t" != no && break
  9029. done
  9030. fi
  9031. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  9032. $as_echo "$ac_cv_c_uint16_t" >&6; }
  9033. case $ac_cv_c_uint16_t in #(
  9034. no|yes) ;; #(
  9035. *)
  9036. cat >>confdefs.h <<_ACEOF
  9037. #define uint16_t $ac_cv_c_uint16_t
  9038. _ACEOF
  9039. ;;
  9040. esac
  9041. { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
  9042. $as_echo_n "checking for uint32_t... " >&6; }
  9043. if test "${ac_cv_c_uint32_t+set}" = set; then
  9044. $as_echo_n "(cached) " >&6
  9045. else
  9046. ac_cv_c_uint32_t=no
  9047. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  9048. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  9049. cat >conftest.$ac_ext <<_ACEOF
  9050. /* confdefs.h. */
  9051. _ACEOF
  9052. cat confdefs.h >>conftest.$ac_ext
  9053. cat >>conftest.$ac_ext <<_ACEOF
  9054. /* end confdefs.h. */
  9055. $ac_includes_default
  9056. int
  9057. main ()
  9058. {
  9059. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  9060. test_array [0] = 0
  9061. ;
  9062. return 0;
  9063. }
  9064. _ACEOF
  9065. rm -f conftest.$ac_objext
  9066. if { (ac_try="$ac_compile"
  9067. case "(($ac_try" in
  9068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9069. *) ac_try_echo=$ac_try;;
  9070. esac
  9071. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9072. $as_echo "$ac_try_echo") >&5
  9073. (eval "$ac_compile") 2>conftest.er1
  9074. ac_status=$?
  9075. grep -v '^ *+' conftest.er1 >conftest.err
  9076. rm -f conftest.er1
  9077. cat conftest.err >&5
  9078. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9079. (exit $ac_status); } && {
  9080. test -z "$ac_cxx_werror_flag" ||
  9081. test ! -s conftest.err
  9082. } && test -s conftest.$ac_objext; then
  9083. case $ac_type in
  9084. uint32_t) ac_cv_c_uint32_t=yes ;;
  9085. *) ac_cv_c_uint32_t=$ac_type ;;
  9086. esac
  9087. else
  9088. $as_echo "$as_me: failed program was:" >&5
  9089. sed 's/^/| /' conftest.$ac_ext >&5
  9090. fi
  9091. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9092. test "$ac_cv_c_uint32_t" != no && break
  9093. done
  9094. fi
  9095. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  9096. $as_echo "$ac_cv_c_uint32_t" >&6; }
  9097. case $ac_cv_c_uint32_t in #(
  9098. no|yes) ;; #(
  9099. *)
  9100. cat >>confdefs.h <<\_ACEOF
  9101. #define _UINT32_T 1
  9102. _ACEOF
  9103. cat >>confdefs.h <<_ACEOF
  9104. #define uint32_t $ac_cv_c_uint32_t
  9105. _ACEOF
  9106. ;;
  9107. esac
  9108. { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
  9109. $as_echo_n "checking for uint64_t... " >&6; }
  9110. if test "${ac_cv_c_uint64_t+set}" = set; then
  9111. $as_echo_n "(cached) " >&6
  9112. else
  9113. ac_cv_c_uint64_t=no
  9114. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  9115. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  9116. cat >conftest.$ac_ext <<_ACEOF
  9117. /* confdefs.h. */
  9118. _ACEOF
  9119. cat confdefs.h >>conftest.$ac_ext
  9120. cat >>conftest.$ac_ext <<_ACEOF
  9121. /* end confdefs.h. */
  9122. $ac_includes_default
  9123. int
  9124. main ()
  9125. {
  9126. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  9127. test_array [0] = 0
  9128. ;
  9129. return 0;
  9130. }
  9131. _ACEOF
  9132. rm -f conftest.$ac_objext
  9133. if { (ac_try="$ac_compile"
  9134. case "(($ac_try" in
  9135. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9136. *) ac_try_echo=$ac_try;;
  9137. esac
  9138. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9139. $as_echo "$ac_try_echo") >&5
  9140. (eval "$ac_compile") 2>conftest.er1
  9141. ac_status=$?
  9142. grep -v '^ *+' conftest.er1 >conftest.err
  9143. rm -f conftest.er1
  9144. cat conftest.err >&5
  9145. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9146. (exit $ac_status); } && {
  9147. test -z "$ac_cxx_werror_flag" ||
  9148. test ! -s conftest.err
  9149. } && test -s conftest.$ac_objext; then
  9150. case $ac_type in
  9151. uint64_t) ac_cv_c_uint64_t=yes ;;
  9152. *) ac_cv_c_uint64_t=$ac_type ;;
  9153. esac
  9154. else
  9155. $as_echo "$as_me: failed program was:" >&5
  9156. sed 's/^/| /' conftest.$ac_ext >&5
  9157. fi
  9158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9159. test "$ac_cv_c_uint64_t" != no && break
  9160. done
  9161. fi
  9162. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  9163. $as_echo "$ac_cv_c_uint64_t" >&6; }
  9164. case $ac_cv_c_uint64_t in #(
  9165. no|yes) ;; #(
  9166. *)
  9167. cat >>confdefs.h <<\_ACEOF
  9168. #define _UINT64_T 1
  9169. _ACEOF
  9170. cat >>confdefs.h <<_ACEOF
  9171. #define uint64_t $ac_cv_c_uint64_t
  9172. _ACEOF
  9173. ;;
  9174. esac
  9175. { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
  9176. $as_echo_n "checking for uint8_t... " >&6; }
  9177. if test "${ac_cv_c_uint8_t+set}" = set; then
  9178. $as_echo_n "(cached) " >&6
  9179. else
  9180. ac_cv_c_uint8_t=no
  9181. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  9182. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  9183. cat >conftest.$ac_ext <<_ACEOF
  9184. /* confdefs.h. */
  9185. _ACEOF
  9186. cat confdefs.h >>conftest.$ac_ext
  9187. cat >>conftest.$ac_ext <<_ACEOF
  9188. /* end confdefs.h. */
  9189. $ac_includes_default
  9190. int
  9191. main ()
  9192. {
  9193. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  9194. test_array [0] = 0
  9195. ;
  9196. return 0;
  9197. }
  9198. _ACEOF
  9199. rm -f conftest.$ac_objext
  9200. if { (ac_try="$ac_compile"
  9201. case "(($ac_try" in
  9202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9203. *) ac_try_echo=$ac_try;;
  9204. esac
  9205. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9206. $as_echo "$ac_try_echo") >&5
  9207. (eval "$ac_compile") 2>conftest.er1
  9208. ac_status=$?
  9209. grep -v '^ *+' conftest.er1 >conftest.err
  9210. rm -f conftest.er1
  9211. cat conftest.err >&5
  9212. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9213. (exit $ac_status); } && {
  9214. test -z "$ac_cxx_werror_flag" ||
  9215. test ! -s conftest.err
  9216. } && test -s conftest.$ac_objext; then
  9217. case $ac_type in
  9218. uint8_t) ac_cv_c_uint8_t=yes ;;
  9219. *) ac_cv_c_uint8_t=$ac_type ;;
  9220. esac
  9221. else
  9222. $as_echo "$as_me: failed program was:" >&5
  9223. sed 's/^/| /' conftest.$ac_ext >&5
  9224. fi
  9225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9226. test "$ac_cv_c_uint8_t" != no && break
  9227. done
  9228. fi
  9229. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  9230. $as_echo "$ac_cv_c_uint8_t" >&6; }
  9231. case $ac_cv_c_uint8_t in #(
  9232. no|yes) ;; #(
  9233. *)
  9234. cat >>confdefs.h <<\_ACEOF
  9235. #define _UINT8_T 1
  9236. _ACEOF
  9237. cat >>confdefs.h <<_ACEOF
  9238. #define uint8_t $ac_cv_c_uint8_t
  9239. _ACEOF
  9240. ;;
  9241. esac
  9242. { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
  9243. $as_echo_n "checking for working volatile... " >&6; }
  9244. if test "${ac_cv_c_volatile+set}" = set; then
  9245. $as_echo_n "(cached) " >&6
  9246. else
  9247. cat >conftest.$ac_ext <<_ACEOF
  9248. /* confdefs.h. */
  9249. _ACEOF
  9250. cat confdefs.h >>conftest.$ac_ext
  9251. cat >>conftest.$ac_ext <<_ACEOF
  9252. /* end confdefs.h. */
  9253. int
  9254. main ()
  9255. {
  9256. volatile int x;
  9257. int * volatile y = (int *) 0;
  9258. return !x && !y;
  9259. ;
  9260. return 0;
  9261. }
  9262. _ACEOF
  9263. rm -f conftest.$ac_objext
  9264. if { (ac_try="$ac_compile"
  9265. case "(($ac_try" in
  9266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9267. *) ac_try_echo=$ac_try;;
  9268. esac
  9269. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9270. $as_echo "$ac_try_echo") >&5
  9271. (eval "$ac_compile") 2>conftest.er1
  9272. ac_status=$?
  9273. grep -v '^ *+' conftest.er1 >conftest.err
  9274. rm -f conftest.er1
  9275. cat conftest.err >&5
  9276. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9277. (exit $ac_status); } && {
  9278. test -z "$ac_cxx_werror_flag" ||
  9279. test ! -s conftest.err
  9280. } && test -s conftest.$ac_objext; then
  9281. ac_cv_c_volatile=yes
  9282. else
  9283. $as_echo "$as_me: failed program was:" >&5
  9284. sed 's/^/| /' conftest.$ac_ext >&5
  9285. ac_cv_c_volatile=no
  9286. fi
  9287. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9288. fi
  9289. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  9290. $as_echo "$ac_cv_c_volatile" >&6; }
  9291. if test $ac_cv_c_volatile = no; then
  9292. cat >>confdefs.h <<\_ACEOF
  9293. #define volatile /**/
  9294. _ACEOF
  9295. fi
  9296. { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  9297. $as_echo_n "checking for ptrdiff_t... " >&6; }
  9298. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  9299. $as_echo_n "(cached) " >&6
  9300. else
  9301. ac_cv_type_ptrdiff_t=no
  9302. cat >conftest.$ac_ext <<_ACEOF
  9303. /* confdefs.h. */
  9304. _ACEOF
  9305. cat confdefs.h >>conftest.$ac_ext
  9306. cat >>conftest.$ac_ext <<_ACEOF
  9307. /* end confdefs.h. */
  9308. $ac_includes_default
  9309. int
  9310. main ()
  9311. {
  9312. if (sizeof (ptrdiff_t))
  9313. return 0;
  9314. ;
  9315. return 0;
  9316. }
  9317. _ACEOF
  9318. rm -f conftest.$ac_objext
  9319. if { (ac_try="$ac_compile"
  9320. case "(($ac_try" in
  9321. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9322. *) ac_try_echo=$ac_try;;
  9323. esac
  9324. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9325. $as_echo "$ac_try_echo") >&5
  9326. (eval "$ac_compile") 2>conftest.er1
  9327. ac_status=$?
  9328. grep -v '^ *+' conftest.er1 >conftest.err
  9329. rm -f conftest.er1
  9330. cat conftest.err >&5
  9331. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9332. (exit $ac_status); } && {
  9333. test -z "$ac_cxx_werror_flag" ||
  9334. test ! -s conftest.err
  9335. } && test -s conftest.$ac_objext; then
  9336. cat >conftest.$ac_ext <<_ACEOF
  9337. /* confdefs.h. */
  9338. _ACEOF
  9339. cat confdefs.h >>conftest.$ac_ext
  9340. cat >>conftest.$ac_ext <<_ACEOF
  9341. /* end confdefs.h. */
  9342. $ac_includes_default
  9343. int
  9344. main ()
  9345. {
  9346. if (sizeof ((ptrdiff_t)))
  9347. return 0;
  9348. ;
  9349. return 0;
  9350. }
  9351. _ACEOF
  9352. rm -f conftest.$ac_objext
  9353. if { (ac_try="$ac_compile"
  9354. case "(($ac_try" in
  9355. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9356. *) ac_try_echo=$ac_try;;
  9357. esac
  9358. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9359. $as_echo "$ac_try_echo") >&5
  9360. (eval "$ac_compile") 2>conftest.er1
  9361. ac_status=$?
  9362. grep -v '^ *+' conftest.er1 >conftest.err
  9363. rm -f conftest.er1
  9364. cat conftest.err >&5
  9365. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9366. (exit $ac_status); } && {
  9367. test -z "$ac_cxx_werror_flag" ||
  9368. test ! -s conftest.err
  9369. } && test -s conftest.$ac_objext; then
  9370. :
  9371. else
  9372. $as_echo "$as_me: failed program was:" >&5
  9373. sed 's/^/| /' conftest.$ac_ext >&5
  9374. ac_cv_type_ptrdiff_t=yes
  9375. fi
  9376. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9377. else
  9378. $as_echo "$as_me: failed program was:" >&5
  9379. sed 's/^/| /' conftest.$ac_ext >&5
  9380. fi
  9381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9382. fi
  9383. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  9384. $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
  9385. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
  9386. cat >>confdefs.h <<_ACEOF
  9387. #define HAVE_PTRDIFF_T 1
  9388. _ACEOF
  9389. fi
  9390. { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  9391. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  9392. if test "${ac_cv_c_bigendian+set}" = set; then
  9393. $as_echo_n "(cached) " >&6
  9394. else
  9395. ac_cv_c_bigendian=unknown
  9396. # See if we're dealing with a universal compiler.
  9397. cat >conftest.$ac_ext <<_ACEOF
  9398. /* confdefs.h. */
  9399. _ACEOF
  9400. cat confdefs.h >>conftest.$ac_ext
  9401. cat >>conftest.$ac_ext <<_ACEOF
  9402. /* end confdefs.h. */
  9403. #ifndef __APPLE_CC__
  9404. not a universal capable compiler
  9405. #endif
  9406. typedef int dummy;
  9407. _ACEOF
  9408. rm -f conftest.$ac_objext
  9409. if { (ac_try="$ac_compile"
  9410. case "(($ac_try" in
  9411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9412. *) ac_try_echo=$ac_try;;
  9413. esac
  9414. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9415. $as_echo "$ac_try_echo") >&5
  9416. (eval "$ac_compile") 2>conftest.er1
  9417. ac_status=$?
  9418. grep -v '^ *+' conftest.er1 >conftest.err
  9419. rm -f conftest.er1
  9420. cat conftest.err >&5
  9421. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9422. (exit $ac_status); } && {
  9423. test -z "$ac_cxx_werror_flag" ||
  9424. test ! -s conftest.err
  9425. } && test -s conftest.$ac_objext; then
  9426. # Check for potential -arch flags. It is not universal unless
  9427. # there are some -arch flags. Note that *ppc* also matches
  9428. # ppc64. This check is also rather less than ideal.
  9429. case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
  9430. *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
  9431. esac
  9432. else
  9433. $as_echo "$as_me: failed program was:" >&5
  9434. sed 's/^/| /' conftest.$ac_ext >&5
  9435. fi
  9436. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9437. if test $ac_cv_c_bigendian = unknown; then
  9438. # See if sys/param.h defines the BYTE_ORDER macro.
  9439. cat >conftest.$ac_ext <<_ACEOF
  9440. /* confdefs.h. */
  9441. _ACEOF
  9442. cat confdefs.h >>conftest.$ac_ext
  9443. cat >>conftest.$ac_ext <<_ACEOF
  9444. /* end confdefs.h. */
  9445. #include <sys/types.h>
  9446. #include <sys/param.h>
  9447. int
  9448. main ()
  9449. {
  9450. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  9451. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  9452. && LITTLE_ENDIAN)
  9453. bogus endian macros
  9454. #endif
  9455. ;
  9456. return 0;
  9457. }
  9458. _ACEOF
  9459. rm -f conftest.$ac_objext
  9460. if { (ac_try="$ac_compile"
  9461. case "(($ac_try" in
  9462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9463. *) ac_try_echo=$ac_try;;
  9464. esac
  9465. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9466. $as_echo "$ac_try_echo") >&5
  9467. (eval "$ac_compile") 2>conftest.er1
  9468. ac_status=$?
  9469. grep -v '^ *+' conftest.er1 >conftest.err
  9470. rm -f conftest.er1
  9471. cat conftest.err >&5
  9472. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9473. (exit $ac_status); } && {
  9474. test -z "$ac_cxx_werror_flag" ||
  9475. test ! -s conftest.err
  9476. } && test -s conftest.$ac_objext; then
  9477. # It does; now see whether it defined to BIG_ENDIAN or not.
  9478. cat >conftest.$ac_ext <<_ACEOF
  9479. /* confdefs.h. */
  9480. _ACEOF
  9481. cat confdefs.h >>conftest.$ac_ext
  9482. cat >>conftest.$ac_ext <<_ACEOF
  9483. /* end confdefs.h. */
  9484. #include <sys/types.h>
  9485. #include <sys/param.h>
  9486. int
  9487. main ()
  9488. {
  9489. #if BYTE_ORDER != BIG_ENDIAN
  9490. not big endian
  9491. #endif
  9492. ;
  9493. return 0;
  9494. }
  9495. _ACEOF
  9496. rm -f conftest.$ac_objext
  9497. if { (ac_try="$ac_compile"
  9498. case "(($ac_try" in
  9499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9500. *) ac_try_echo=$ac_try;;
  9501. esac
  9502. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9503. $as_echo "$ac_try_echo") >&5
  9504. (eval "$ac_compile") 2>conftest.er1
  9505. ac_status=$?
  9506. grep -v '^ *+' conftest.er1 >conftest.err
  9507. rm -f conftest.er1
  9508. cat conftest.err >&5
  9509. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9510. (exit $ac_status); } && {
  9511. test -z "$ac_cxx_werror_flag" ||
  9512. test ! -s conftest.err
  9513. } && test -s conftest.$ac_objext; then
  9514. ac_cv_c_bigendian=yes
  9515. else
  9516. $as_echo "$as_me: failed program was:" >&5
  9517. sed 's/^/| /' conftest.$ac_ext >&5
  9518. ac_cv_c_bigendian=no
  9519. fi
  9520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9521. else
  9522. $as_echo "$as_me: failed program was:" >&5
  9523. sed 's/^/| /' conftest.$ac_ext >&5
  9524. fi
  9525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9526. fi
  9527. if test $ac_cv_c_bigendian = unknown; then
  9528. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  9529. cat >conftest.$ac_ext <<_ACEOF
  9530. /* confdefs.h. */
  9531. _ACEOF
  9532. cat confdefs.h >>conftest.$ac_ext
  9533. cat >>conftest.$ac_ext <<_ACEOF
  9534. /* end confdefs.h. */
  9535. #include <limits.h>
  9536. int
  9537. main ()
  9538. {
  9539. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  9540. bogus endian macros
  9541. #endif
  9542. ;
  9543. return 0;
  9544. }
  9545. _ACEOF
  9546. rm -f conftest.$ac_objext
  9547. if { (ac_try="$ac_compile"
  9548. case "(($ac_try" in
  9549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9550. *) ac_try_echo=$ac_try;;
  9551. esac
  9552. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9553. $as_echo "$ac_try_echo") >&5
  9554. (eval "$ac_compile") 2>conftest.er1
  9555. ac_status=$?
  9556. grep -v '^ *+' conftest.er1 >conftest.err
  9557. rm -f conftest.er1
  9558. cat conftest.err >&5
  9559. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9560. (exit $ac_status); } && {
  9561. test -z "$ac_cxx_werror_flag" ||
  9562. test ! -s conftest.err
  9563. } && test -s conftest.$ac_objext; then
  9564. # It does; now see whether it defined to _BIG_ENDIAN or not.
  9565. cat >conftest.$ac_ext <<_ACEOF
  9566. /* confdefs.h. */
  9567. _ACEOF
  9568. cat confdefs.h >>conftest.$ac_ext
  9569. cat >>conftest.$ac_ext <<_ACEOF
  9570. /* end confdefs.h. */
  9571. #include <limits.h>
  9572. int
  9573. main ()
  9574. {
  9575. #ifndef _BIG_ENDIAN
  9576. not big endian
  9577. #endif
  9578. ;
  9579. return 0;
  9580. }
  9581. _ACEOF
  9582. rm -f conftest.$ac_objext
  9583. if { (ac_try="$ac_compile"
  9584. case "(($ac_try" in
  9585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9586. *) ac_try_echo=$ac_try;;
  9587. esac
  9588. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9589. $as_echo "$ac_try_echo") >&5
  9590. (eval "$ac_compile") 2>conftest.er1
  9591. ac_status=$?
  9592. grep -v '^ *+' conftest.er1 >conftest.err
  9593. rm -f conftest.er1
  9594. cat conftest.err >&5
  9595. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9596. (exit $ac_status); } && {
  9597. test -z "$ac_cxx_werror_flag" ||
  9598. test ! -s conftest.err
  9599. } && test -s conftest.$ac_objext; then
  9600. ac_cv_c_bigendian=yes
  9601. else
  9602. $as_echo "$as_me: failed program was:" >&5
  9603. sed 's/^/| /' conftest.$ac_ext >&5
  9604. ac_cv_c_bigendian=no
  9605. fi
  9606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9607. else
  9608. $as_echo "$as_me: failed program was:" >&5
  9609. sed 's/^/| /' conftest.$ac_ext >&5
  9610. fi
  9611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9612. fi
  9613. if test $ac_cv_c_bigendian = unknown; then
  9614. # Compile a test program.
  9615. if test "$cross_compiling" = yes; then
  9616. # Try to guess by grepping values from an object file.
  9617. cat >conftest.$ac_ext <<_ACEOF
  9618. /* confdefs.h. */
  9619. _ACEOF
  9620. cat confdefs.h >>conftest.$ac_ext
  9621. cat >>conftest.$ac_ext <<_ACEOF
  9622. /* end confdefs.h. */
  9623. short int ascii_mm[] =
  9624. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  9625. short int ascii_ii[] =
  9626. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  9627. int use_ascii (int i) {
  9628. return ascii_mm[i] + ascii_ii[i];
  9629. }
  9630. short int ebcdic_ii[] =
  9631. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  9632. short int ebcdic_mm[] =
  9633. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  9634. int use_ebcdic (int i) {
  9635. return ebcdic_mm[i] + ebcdic_ii[i];
  9636. }
  9637. extern int foo;
  9638. int
  9639. main ()
  9640. {
  9641. return use_ascii (foo) == use_ebcdic (foo);
  9642. ;
  9643. return 0;
  9644. }
  9645. _ACEOF
  9646. rm -f conftest.$ac_objext
  9647. if { (ac_try="$ac_compile"
  9648. case "(($ac_try" in
  9649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9650. *) ac_try_echo=$ac_try;;
  9651. esac
  9652. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9653. $as_echo "$ac_try_echo") >&5
  9654. (eval "$ac_compile") 2>conftest.er1
  9655. ac_status=$?
  9656. grep -v '^ *+' conftest.er1 >conftest.err
  9657. rm -f conftest.er1
  9658. cat conftest.err >&5
  9659. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9660. (exit $ac_status); } && {
  9661. test -z "$ac_cxx_werror_flag" ||
  9662. test ! -s conftest.err
  9663. } && test -s conftest.$ac_objext; then
  9664. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  9665. ac_cv_c_bigendian=yes
  9666. fi
  9667. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  9668. if test "$ac_cv_c_bigendian" = unknown; then
  9669. ac_cv_c_bigendian=no
  9670. else
  9671. # finding both strings is unlikely to happen, but who knows?
  9672. ac_cv_c_bigendian=unknown
  9673. fi
  9674. fi
  9675. else
  9676. $as_echo "$as_me: failed program was:" >&5
  9677. sed 's/^/| /' conftest.$ac_ext >&5
  9678. fi
  9679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9680. else
  9681. cat >conftest.$ac_ext <<_ACEOF
  9682. /* confdefs.h. */
  9683. _ACEOF
  9684. cat confdefs.h >>conftest.$ac_ext
  9685. cat >>conftest.$ac_ext <<_ACEOF
  9686. /* end confdefs.h. */
  9687. $ac_includes_default
  9688. int
  9689. main ()
  9690. {
  9691. /* Are we little or big endian? From Harbison&Steele. */
  9692. union
  9693. {
  9694. long int l;
  9695. char c[sizeof (long int)];
  9696. } u;
  9697. u.l = 1;
  9698. return u.c[sizeof (long int) - 1] == 1;
  9699. ;
  9700. return 0;
  9701. }
  9702. _ACEOF
  9703. rm -f conftest$ac_exeext
  9704. if { (ac_try="$ac_link"
  9705. case "(($ac_try" in
  9706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9707. *) ac_try_echo=$ac_try;;
  9708. esac
  9709. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9710. $as_echo "$ac_try_echo") >&5
  9711. (eval "$ac_link") 2>&5
  9712. ac_status=$?
  9713. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9714. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9715. { (case "(($ac_try" in
  9716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9717. *) ac_try_echo=$ac_try;;
  9718. esac
  9719. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9720. $as_echo "$ac_try_echo") >&5
  9721. (eval "$ac_try") 2>&5
  9722. ac_status=$?
  9723. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9724. (exit $ac_status); }; }; then
  9725. ac_cv_c_bigendian=no
  9726. else
  9727. $as_echo "$as_me: program exited with status $ac_status" >&5
  9728. $as_echo "$as_me: failed program was:" >&5
  9729. sed 's/^/| /' conftest.$ac_ext >&5
  9730. ( exit $ac_status )
  9731. ac_cv_c_bigendian=yes
  9732. fi
  9733. rm -rf conftest.dSYM
  9734. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9735. fi
  9736. fi
  9737. fi
  9738. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  9739. $as_echo "$ac_cv_c_bigendian" >&6; }
  9740. case $ac_cv_c_bigendian in #(
  9741. yes)
  9742. cat >>confdefs.h <<\_ACEOF
  9743. #define WORDS_BIGENDIAN 1
  9744. _ACEOF
  9745. ;; #(
  9746. no)
  9747. ;; #(
  9748. universal)
  9749. cat >>confdefs.h <<\_ACEOF
  9750. #define AC_APPLE_UNIVERSAL_BUILD 1
  9751. _ACEOF
  9752. ;; #(
  9753. *)
  9754. { { $as_echo "$as_me:$LINENO: error: unknown endianness
  9755. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  9756. $as_echo "$as_me: error: unknown endianness
  9757. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  9758. { (exit 1); exit 1; }; } ;;
  9759. esac
  9760. # Check whether --enable-largefile was given.
  9761. if test "${enable_largefile+set}" = set; then
  9762. enableval=$enable_largefile;
  9763. fi
  9764. if test "$enable_largefile" != no; then
  9765. { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  9766. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  9767. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  9768. $as_echo_n "(cached) " >&6
  9769. else
  9770. ac_cv_sys_largefile_CC=no
  9771. if test "$GCC" != yes; then
  9772. ac_save_CC=$CC
  9773. while :; do
  9774. # IRIX 6.2 and later do not support large files by default,
  9775. # so use the C compiler's -n32 option if that helps.
  9776. cat >conftest.$ac_ext <<_ACEOF
  9777. /* confdefs.h. */
  9778. _ACEOF
  9779. cat confdefs.h >>conftest.$ac_ext
  9780. cat >>conftest.$ac_ext <<_ACEOF
  9781. /* end confdefs.h. */
  9782. #include <sys/types.h>
  9783. /* Check that off_t can represent 2**63 - 1 correctly.
  9784. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9785. since some C++ compilers masquerading as C compilers
  9786. incorrectly reject 9223372036854775807. */
  9787. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9788. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9789. && LARGE_OFF_T % 2147483647 == 1)
  9790. ? 1 : -1];
  9791. int
  9792. main ()
  9793. {
  9794. ;
  9795. return 0;
  9796. }
  9797. _ACEOF
  9798. rm -f conftest.$ac_objext
  9799. if { (ac_try="$ac_compile"
  9800. case "(($ac_try" in
  9801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9802. *) ac_try_echo=$ac_try;;
  9803. esac
  9804. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9805. $as_echo "$ac_try_echo") >&5
  9806. (eval "$ac_compile") 2>conftest.er1
  9807. ac_status=$?
  9808. grep -v '^ *+' conftest.er1 >conftest.err
  9809. rm -f conftest.er1
  9810. cat conftest.err >&5
  9811. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9812. (exit $ac_status); } && {
  9813. test -z "$ac_cxx_werror_flag" ||
  9814. test ! -s conftest.err
  9815. } && test -s conftest.$ac_objext; then
  9816. break
  9817. else
  9818. $as_echo "$as_me: failed program was:" >&5
  9819. sed 's/^/| /' conftest.$ac_ext >&5
  9820. fi
  9821. rm -f core conftest.err conftest.$ac_objext
  9822. CC="$CC -n32"
  9823. rm -f conftest.$ac_objext
  9824. if { (ac_try="$ac_compile"
  9825. case "(($ac_try" in
  9826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9827. *) ac_try_echo=$ac_try;;
  9828. esac
  9829. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9830. $as_echo "$ac_try_echo") >&5
  9831. (eval "$ac_compile") 2>conftest.er1
  9832. ac_status=$?
  9833. grep -v '^ *+' conftest.er1 >conftest.err
  9834. rm -f conftest.er1
  9835. cat conftest.err >&5
  9836. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9837. (exit $ac_status); } && {
  9838. test -z "$ac_cxx_werror_flag" ||
  9839. test ! -s conftest.err
  9840. } && test -s conftest.$ac_objext; then
  9841. ac_cv_sys_largefile_CC=' -n32'; break
  9842. else
  9843. $as_echo "$as_me: failed program was:" >&5
  9844. sed 's/^/| /' conftest.$ac_ext >&5
  9845. fi
  9846. rm -f core conftest.err conftest.$ac_objext
  9847. break
  9848. done
  9849. CC=$ac_save_CC
  9850. rm -f conftest.$ac_ext
  9851. fi
  9852. fi
  9853. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  9854. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  9855. if test "$ac_cv_sys_largefile_CC" != no; then
  9856. CC=$CC$ac_cv_sys_largefile_CC
  9857. fi
  9858. { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  9859. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  9860. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  9861. $as_echo_n "(cached) " >&6
  9862. else
  9863. while :; do
  9864. cat >conftest.$ac_ext <<_ACEOF
  9865. /* confdefs.h. */
  9866. _ACEOF
  9867. cat confdefs.h >>conftest.$ac_ext
  9868. cat >>conftest.$ac_ext <<_ACEOF
  9869. /* end confdefs.h. */
  9870. #include <sys/types.h>
  9871. /* Check that off_t can represent 2**63 - 1 correctly.
  9872. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9873. since some C++ compilers masquerading as C compilers
  9874. incorrectly reject 9223372036854775807. */
  9875. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9876. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9877. && LARGE_OFF_T % 2147483647 == 1)
  9878. ? 1 : -1];
  9879. int
  9880. main ()
  9881. {
  9882. ;
  9883. return 0;
  9884. }
  9885. _ACEOF
  9886. rm -f conftest.$ac_objext
  9887. if { (ac_try="$ac_compile"
  9888. case "(($ac_try" in
  9889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9890. *) ac_try_echo=$ac_try;;
  9891. esac
  9892. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9893. $as_echo "$ac_try_echo") >&5
  9894. (eval "$ac_compile") 2>conftest.er1
  9895. ac_status=$?
  9896. grep -v '^ *+' conftest.er1 >conftest.err
  9897. rm -f conftest.er1
  9898. cat conftest.err >&5
  9899. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9900. (exit $ac_status); } && {
  9901. test -z "$ac_cxx_werror_flag" ||
  9902. test ! -s conftest.err
  9903. } && test -s conftest.$ac_objext; then
  9904. ac_cv_sys_file_offset_bits=no; break
  9905. else
  9906. $as_echo "$as_me: failed program was:" >&5
  9907. sed 's/^/| /' conftest.$ac_ext >&5
  9908. fi
  9909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9910. cat >conftest.$ac_ext <<_ACEOF
  9911. /* confdefs.h. */
  9912. _ACEOF
  9913. cat confdefs.h >>conftest.$ac_ext
  9914. cat >>conftest.$ac_ext <<_ACEOF
  9915. /* end confdefs.h. */
  9916. #define _FILE_OFFSET_BITS 64
  9917. #include <sys/types.h>
  9918. /* Check that off_t can represent 2**63 - 1 correctly.
  9919. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9920. since some C++ compilers masquerading as C compilers
  9921. incorrectly reject 9223372036854775807. */
  9922. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9923. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9924. && LARGE_OFF_T % 2147483647 == 1)
  9925. ? 1 : -1];
  9926. int
  9927. main ()
  9928. {
  9929. ;
  9930. return 0;
  9931. }
  9932. _ACEOF
  9933. rm -f conftest.$ac_objext
  9934. if { (ac_try="$ac_compile"
  9935. case "(($ac_try" in
  9936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9937. *) ac_try_echo=$ac_try;;
  9938. esac
  9939. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9940. $as_echo "$ac_try_echo") >&5
  9941. (eval "$ac_compile") 2>conftest.er1
  9942. ac_status=$?
  9943. grep -v '^ *+' conftest.er1 >conftest.err
  9944. rm -f conftest.er1
  9945. cat conftest.err >&5
  9946. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9947. (exit $ac_status); } && {
  9948. test -z "$ac_cxx_werror_flag" ||
  9949. test ! -s conftest.err
  9950. } && test -s conftest.$ac_objext; then
  9951. ac_cv_sys_file_offset_bits=64; break
  9952. else
  9953. $as_echo "$as_me: failed program was:" >&5
  9954. sed 's/^/| /' conftest.$ac_ext >&5
  9955. fi
  9956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9957. ac_cv_sys_file_offset_bits=unknown
  9958. break
  9959. done
  9960. fi
  9961. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  9962. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  9963. case $ac_cv_sys_file_offset_bits in #(
  9964. no | unknown) ;;
  9965. *)
  9966. cat >>confdefs.h <<_ACEOF
  9967. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  9968. _ACEOF
  9969. ;;
  9970. esac
  9971. rm -rf conftest*
  9972. if test $ac_cv_sys_file_offset_bits = unknown; then
  9973. { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  9974. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  9975. if test "${ac_cv_sys_large_files+set}" = set; then
  9976. $as_echo_n "(cached) " >&6
  9977. else
  9978. while :; do
  9979. cat >conftest.$ac_ext <<_ACEOF
  9980. /* confdefs.h. */
  9981. _ACEOF
  9982. cat confdefs.h >>conftest.$ac_ext
  9983. cat >>conftest.$ac_ext <<_ACEOF
  9984. /* end confdefs.h. */
  9985. #include <sys/types.h>
  9986. /* Check that off_t can represent 2**63 - 1 correctly.
  9987. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9988. since some C++ compilers masquerading as C compilers
  9989. incorrectly reject 9223372036854775807. */
  9990. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9991. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9992. && LARGE_OFF_T % 2147483647 == 1)
  9993. ? 1 : -1];
  9994. int
  9995. main ()
  9996. {
  9997. ;
  9998. return 0;
  9999. }
  10000. _ACEOF
  10001. rm -f conftest.$ac_objext
  10002. if { (ac_try="$ac_compile"
  10003. case "(($ac_try" in
  10004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10005. *) ac_try_echo=$ac_try;;
  10006. esac
  10007. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10008. $as_echo "$ac_try_echo") >&5
  10009. (eval "$ac_compile") 2>conftest.er1
  10010. ac_status=$?
  10011. grep -v '^ *+' conftest.er1 >conftest.err
  10012. rm -f conftest.er1
  10013. cat conftest.err >&5
  10014. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10015. (exit $ac_status); } && {
  10016. test -z "$ac_cxx_werror_flag" ||
  10017. test ! -s conftest.err
  10018. } && test -s conftest.$ac_objext; then
  10019. ac_cv_sys_large_files=no; break
  10020. else
  10021. $as_echo "$as_me: failed program was:" >&5
  10022. sed 's/^/| /' conftest.$ac_ext >&5
  10023. fi
  10024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10025. cat >conftest.$ac_ext <<_ACEOF
  10026. /* confdefs.h. */
  10027. _ACEOF
  10028. cat confdefs.h >>conftest.$ac_ext
  10029. cat >>conftest.$ac_ext <<_ACEOF
  10030. /* end confdefs.h. */
  10031. #define _LARGE_FILES 1
  10032. #include <sys/types.h>
  10033. /* Check that off_t can represent 2**63 - 1 correctly.
  10034. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10035. since some C++ compilers masquerading as C compilers
  10036. incorrectly reject 9223372036854775807. */
  10037. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10038. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10039. && LARGE_OFF_T % 2147483647 == 1)
  10040. ? 1 : -1];
  10041. int
  10042. main ()
  10043. {
  10044. ;
  10045. return 0;
  10046. }
  10047. _ACEOF
  10048. rm -f conftest.$ac_objext
  10049. if { (ac_try="$ac_compile"
  10050. case "(($ac_try" in
  10051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10052. *) ac_try_echo=$ac_try;;
  10053. esac
  10054. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10055. $as_echo "$ac_try_echo") >&5
  10056. (eval "$ac_compile") 2>conftest.er1
  10057. ac_status=$?
  10058. grep -v '^ *+' conftest.er1 >conftest.err
  10059. rm -f conftest.er1
  10060. cat conftest.err >&5
  10061. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10062. (exit $ac_status); } && {
  10063. test -z "$ac_cxx_werror_flag" ||
  10064. test ! -s conftest.err
  10065. } && test -s conftest.$ac_objext; then
  10066. ac_cv_sys_large_files=1; break
  10067. else
  10068. $as_echo "$as_me: failed program was:" >&5
  10069. sed 's/^/| /' conftest.$ac_ext >&5
  10070. fi
  10071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10072. ac_cv_sys_large_files=unknown
  10073. break
  10074. done
  10075. fi
  10076. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  10077. $as_echo "$ac_cv_sys_large_files" >&6; }
  10078. case $ac_cv_sys_large_files in #(
  10079. no | unknown) ;;
  10080. *)
  10081. cat >>confdefs.h <<_ACEOF
  10082. #define _LARGE_FILES $ac_cv_sys_large_files
  10083. _ACEOF
  10084. ;;
  10085. esac
  10086. rm -rf conftest*
  10087. fi
  10088. fi
  10089. # Checks for library functions.
  10090. { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  10091. $as_echo_n "checking whether NLS is requested... " >&6; }
  10092. # Check whether --enable-nls was given.
  10093. if test "${enable_nls+set}" = set; then
  10094. enableval=$enable_nls; USE_NLS=$enableval
  10095. else
  10096. USE_NLS=yes
  10097. fi
  10098. { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
  10099. $as_echo "$USE_NLS" >&6; }
  10100. GETTEXT_MACRO_VERSION=0.17
  10101. # Prepare PATH_SEPARATOR.
  10102. # The user is always right.
  10103. if test "${PATH_SEPARATOR+set}" != set; then
  10104. echo "#! /bin/sh" >conf$$.sh
  10105. echo "exit 0" >>conf$$.sh
  10106. chmod +x conf$$.sh
  10107. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10108. PATH_SEPARATOR=';'
  10109. else
  10110. PATH_SEPARATOR=:
  10111. fi
  10112. rm -f conf$$.sh
  10113. fi
  10114. # Find out how to test for executable files. Don't use a zero-byte file,
  10115. # as systems may use methods other than mode bits to determine executability.
  10116. cat >conf$$.file <<_ASEOF
  10117. #! /bin/sh
  10118. exit 0
  10119. _ASEOF
  10120. chmod +x conf$$.file
  10121. if test -x conf$$.file >/dev/null 2>&1; then
  10122. ac_executable_p="test -x"
  10123. else
  10124. ac_executable_p="test -f"
  10125. fi
  10126. rm -f conf$$.file
  10127. # Extract the first word of "msgfmt", so it can be a program name with args.
  10128. set dummy msgfmt; ac_word=$2
  10129. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10130. $as_echo_n "checking for $ac_word... " >&6; }
  10131. if test "${ac_cv_path_MSGFMT+set}" = set; then
  10132. $as_echo_n "(cached) " >&6
  10133. else
  10134. case "$MSGFMT" in
  10135. [\\/]* | ?:[\\/]*)
  10136. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  10137. ;;
  10138. *)
  10139. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10140. for ac_dir in $PATH; do
  10141. IFS="$ac_save_IFS"
  10142. test -z "$ac_dir" && ac_dir=.
  10143. for ac_exec_ext in '' $ac_executable_extensions; do
  10144. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10145. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  10146. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  10147. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  10148. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  10149. break 2
  10150. fi
  10151. fi
  10152. done
  10153. done
  10154. IFS="$ac_save_IFS"
  10155. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  10156. ;;
  10157. esac
  10158. fi
  10159. MSGFMT="$ac_cv_path_MSGFMT"
  10160. if test "$MSGFMT" != ":"; then
  10161. { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
  10162. $as_echo "$MSGFMT" >&6; }
  10163. else
  10164. { $as_echo "$as_me:$LINENO: result: no" >&5
  10165. $as_echo "no" >&6; }
  10166. fi
  10167. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  10168. set dummy gmsgfmt; ac_word=$2
  10169. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10170. $as_echo_n "checking for $ac_word... " >&6; }
  10171. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  10172. $as_echo_n "(cached) " >&6
  10173. else
  10174. case $GMSGFMT in
  10175. [\\/]* | ?:[\\/]*)
  10176. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  10177. ;;
  10178. *)
  10179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10180. for as_dir in $PATH
  10181. do
  10182. IFS=$as_save_IFS
  10183. test -z "$as_dir" && as_dir=.
  10184. for ac_exec_ext in '' $ac_executable_extensions; do
  10185. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10186. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  10187. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10188. break 2
  10189. fi
  10190. done
  10191. done
  10192. IFS=$as_save_IFS
  10193. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  10194. ;;
  10195. esac
  10196. fi
  10197. GMSGFMT=$ac_cv_path_GMSGFMT
  10198. if test -n "$GMSGFMT"; then
  10199. { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  10200. $as_echo "$GMSGFMT" >&6; }
  10201. else
  10202. { $as_echo "$as_me:$LINENO: result: no" >&5
  10203. $as_echo "no" >&6; }
  10204. fi
  10205. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  10206. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  10207. *) MSGFMT_015=$MSGFMT ;;
  10208. esac
  10209. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  10210. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  10211. *) GMSGFMT_015=$GMSGFMT ;;
  10212. esac
  10213. # Prepare PATH_SEPARATOR.
  10214. # The user is always right.
  10215. if test "${PATH_SEPARATOR+set}" != set; then
  10216. echo "#! /bin/sh" >conf$$.sh
  10217. echo "exit 0" >>conf$$.sh
  10218. chmod +x conf$$.sh
  10219. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10220. PATH_SEPARATOR=';'
  10221. else
  10222. PATH_SEPARATOR=:
  10223. fi
  10224. rm -f conf$$.sh
  10225. fi
  10226. # Find out how to test for executable files. Don't use a zero-byte file,
  10227. # as systems may use methods other than mode bits to determine executability.
  10228. cat >conf$$.file <<_ASEOF
  10229. #! /bin/sh
  10230. exit 0
  10231. _ASEOF
  10232. chmod +x conf$$.file
  10233. if test -x conf$$.file >/dev/null 2>&1; then
  10234. ac_executable_p="test -x"
  10235. else
  10236. ac_executable_p="test -f"
  10237. fi
  10238. rm -f conf$$.file
  10239. # Extract the first word of "xgettext", so it can be a program name with args.
  10240. set dummy xgettext; ac_word=$2
  10241. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10242. $as_echo_n "checking for $ac_word... " >&6; }
  10243. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  10244. $as_echo_n "(cached) " >&6
  10245. else
  10246. case "$XGETTEXT" in
  10247. [\\/]* | ?:[\\/]*)
  10248. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  10249. ;;
  10250. *)
  10251. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10252. for ac_dir in $PATH; do
  10253. IFS="$ac_save_IFS"
  10254. test -z "$ac_dir" && ac_dir=.
  10255. for ac_exec_ext in '' $ac_executable_extensions; do
  10256. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10257. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  10258. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  10259. (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
  10260. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  10261. break 2
  10262. fi
  10263. fi
  10264. done
  10265. done
  10266. IFS="$ac_save_IFS"
  10267. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  10268. ;;
  10269. esac
  10270. fi
  10271. XGETTEXT="$ac_cv_path_XGETTEXT"
  10272. if test "$XGETTEXT" != ":"; then
  10273. { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  10274. $as_echo "$XGETTEXT" >&6; }
  10275. else
  10276. { $as_echo "$as_me:$LINENO: result: no" >&5
  10277. $as_echo "no" >&6; }
  10278. fi
  10279. rm -f messages.po
  10280. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  10281. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  10282. *) XGETTEXT_015=$XGETTEXT ;;
  10283. esac
  10284. # Prepare PATH_SEPARATOR.
  10285. # The user is always right.
  10286. if test "${PATH_SEPARATOR+set}" != set; then
  10287. echo "#! /bin/sh" >conf$$.sh
  10288. echo "exit 0" >>conf$$.sh
  10289. chmod +x conf$$.sh
  10290. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10291. PATH_SEPARATOR=';'
  10292. else
  10293. PATH_SEPARATOR=:
  10294. fi
  10295. rm -f conf$$.sh
  10296. fi
  10297. # Find out how to test for executable files. Don't use a zero-byte file,
  10298. # as systems may use methods other than mode bits to determine executability.
  10299. cat >conf$$.file <<_ASEOF
  10300. #! /bin/sh
  10301. exit 0
  10302. _ASEOF
  10303. chmod +x conf$$.file
  10304. if test -x conf$$.file >/dev/null 2>&1; then
  10305. ac_executable_p="test -x"
  10306. else
  10307. ac_executable_p="test -f"
  10308. fi
  10309. rm -f conf$$.file
  10310. # Extract the first word of "msgmerge", so it can be a program name with args.
  10311. set dummy msgmerge; ac_word=$2
  10312. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10313. $as_echo_n "checking for $ac_word... " >&6; }
  10314. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  10315. $as_echo_n "(cached) " >&6
  10316. else
  10317. case "$MSGMERGE" in
  10318. [\\/]* | ?:[\\/]*)
  10319. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  10320. ;;
  10321. *)
  10322. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10323. for ac_dir in $PATH; do
  10324. IFS="$ac_save_IFS"
  10325. test -z "$ac_dir" && ac_dir=.
  10326. for ac_exec_ext in '' $ac_executable_extensions; do
  10327. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10328. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  10329. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  10330. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  10331. break 2
  10332. fi
  10333. fi
  10334. done
  10335. done
  10336. IFS="$ac_save_IFS"
  10337. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  10338. ;;
  10339. esac
  10340. fi
  10341. MSGMERGE="$ac_cv_path_MSGMERGE"
  10342. if test "$MSGMERGE" != ":"; then
  10343. { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  10344. $as_echo "$MSGMERGE" >&6; }
  10345. else
  10346. { $as_echo "$as_me:$LINENO: result: no" >&5
  10347. $as_echo "no" >&6; }
  10348. fi
  10349. test -n "$localedir" || localedir='${datadir}/locale'
  10350. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  10351. ac_config_commands="$ac_config_commands po-directories"
  10352. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  10353. $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
  10354. if test "${ac_cv_gnu_library_2+set}" = set; then
  10355. $as_echo_n "(cached) " >&6
  10356. else
  10357. cat >conftest.$ac_ext <<_ACEOF
  10358. /* confdefs.h. */
  10359. _ACEOF
  10360. cat confdefs.h >>conftest.$ac_ext
  10361. cat >>conftest.$ac_ext <<_ACEOF
  10362. /* end confdefs.h. */
  10363. #include <features.h>
  10364. #ifdef __GNU_LIBRARY__
  10365. #if (__GLIBC__ >= 2)
  10366. Lucky GNU user
  10367. #endif
  10368. #endif
  10369. _ACEOF
  10370. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10371. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  10372. ac_cv_gnu_library_2=yes
  10373. else
  10374. ac_cv_gnu_library_2=no
  10375. fi
  10376. rm -f conftest*
  10377. fi
  10378. { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  10379. $as_echo "$ac_cv_gnu_library_2" >&6; }
  10380. GLIBC2="$ac_cv_gnu_library_2"
  10381. CFLAG_VISIBILITY=
  10382. HAVE_VISIBILITY=0
  10383. if test -n "$GCC"; then
  10384. { $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  10385. $as_echo_n "checking for simple visibility declarations... " >&6; }
  10386. if test "${gl_cv_cc_visibility+set}" = set; then
  10387. $as_echo_n "(cached) " >&6
  10388. else
  10389. gl_save_CFLAGS="$CFLAGS"
  10390. CFLAGS="$CFLAGS -fvisibility=hidden"
  10391. cat >conftest.$ac_ext <<_ACEOF
  10392. /* confdefs.h. */
  10393. _ACEOF
  10394. cat confdefs.h >>conftest.$ac_ext
  10395. cat >>conftest.$ac_ext <<_ACEOF
  10396. /* end confdefs.h. */
  10397. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  10398. extern __attribute__((__visibility__("default"))) int exportedvar;
  10399. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  10400. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  10401. int
  10402. main ()
  10403. {
  10404. ;
  10405. return 0;
  10406. }
  10407. _ACEOF
  10408. rm -f conftest.$ac_objext
  10409. if { (ac_try="$ac_compile"
  10410. case "(($ac_try" in
  10411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10412. *) ac_try_echo=$ac_try;;
  10413. esac
  10414. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10415. $as_echo "$ac_try_echo") >&5
  10416. (eval "$ac_compile") 2>conftest.er1
  10417. ac_status=$?
  10418. grep -v '^ *+' conftest.er1 >conftest.err
  10419. rm -f conftest.er1
  10420. cat conftest.err >&5
  10421. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10422. (exit $ac_status); } && {
  10423. test -z "$ac_cxx_werror_flag" ||
  10424. test ! -s conftest.err
  10425. } && test -s conftest.$ac_objext; then
  10426. gl_cv_cc_visibility=yes
  10427. else
  10428. $as_echo "$as_me: failed program was:" >&5
  10429. sed 's/^/| /' conftest.$ac_ext >&5
  10430. gl_cv_cc_visibility=no
  10431. fi
  10432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10433. CFLAGS="$gl_save_CFLAGS"
  10434. fi
  10435. { $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  10436. $as_echo "$gl_cv_cc_visibility" >&6; }
  10437. if test $gl_cv_cc_visibility = yes; then
  10438. CFLAG_VISIBILITY="-fvisibility=hidden"
  10439. HAVE_VISIBILITY=1
  10440. fi
  10441. fi
  10442. cat >>confdefs.h <<_ACEOF
  10443. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  10444. _ACEOF
  10445. { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
  10446. $as_echo_n "checking for stdint.h... " >&6; }
  10447. if test "${gl_cv_header_stdint_h+set}" = set; then
  10448. $as_echo_n "(cached) " >&6
  10449. else
  10450. cat >conftest.$ac_ext <<_ACEOF
  10451. /* confdefs.h. */
  10452. _ACEOF
  10453. cat confdefs.h >>conftest.$ac_ext
  10454. cat >>conftest.$ac_ext <<_ACEOF
  10455. /* end confdefs.h. */
  10456. #include <sys/types.h>
  10457. #include <stdint.h>
  10458. int
  10459. main ()
  10460. {
  10461. uintmax_t i = (uintmax_t) -1; return !i;
  10462. ;
  10463. return 0;
  10464. }
  10465. _ACEOF
  10466. rm -f conftest.$ac_objext
  10467. if { (ac_try="$ac_compile"
  10468. case "(($ac_try" in
  10469. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10470. *) ac_try_echo=$ac_try;;
  10471. esac
  10472. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10473. $as_echo "$ac_try_echo") >&5
  10474. (eval "$ac_compile") 2>conftest.er1
  10475. ac_status=$?
  10476. grep -v '^ *+' conftest.er1 >conftest.err
  10477. rm -f conftest.er1
  10478. cat conftest.err >&5
  10479. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10480. (exit $ac_status); } && {
  10481. test -z "$ac_cxx_werror_flag" ||
  10482. test ! -s conftest.err
  10483. } && test -s conftest.$ac_objext; then
  10484. gl_cv_header_stdint_h=yes
  10485. else
  10486. $as_echo "$as_me: failed program was:" >&5
  10487. sed 's/^/| /' conftest.$ac_ext >&5
  10488. gl_cv_header_stdint_h=no
  10489. fi
  10490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10491. fi
  10492. { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  10493. $as_echo "$gl_cv_header_stdint_h" >&6; }
  10494. if test $gl_cv_header_stdint_h = yes; then
  10495. cat >>confdefs.h <<_ACEOF
  10496. #define HAVE_STDINT_H_WITH_UINTMAX 1
  10497. _ACEOF
  10498. fi
  10499. for ac_header in stdlib.h unistd.h
  10500. do
  10501. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10502. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10503. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10504. $as_echo_n "checking for $ac_header... " >&6; }
  10505. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10506. $as_echo_n "(cached) " >&6
  10507. fi
  10508. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10509. $as_echo "$as_val"'`
  10510. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10511. $as_echo "$ac_res" >&6; }
  10512. else
  10513. # Is the header compilable?
  10514. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10515. $as_echo_n "checking $ac_header usability... " >&6; }
  10516. cat >conftest.$ac_ext <<_ACEOF
  10517. /* confdefs.h. */
  10518. _ACEOF
  10519. cat confdefs.h >>conftest.$ac_ext
  10520. cat >>conftest.$ac_ext <<_ACEOF
  10521. /* end confdefs.h. */
  10522. $ac_includes_default
  10523. #include <$ac_header>
  10524. _ACEOF
  10525. rm -f conftest.$ac_objext
  10526. if { (ac_try="$ac_compile"
  10527. case "(($ac_try" in
  10528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10529. *) ac_try_echo=$ac_try;;
  10530. esac
  10531. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10532. $as_echo "$ac_try_echo") >&5
  10533. (eval "$ac_compile") 2>conftest.er1
  10534. ac_status=$?
  10535. grep -v '^ *+' conftest.er1 >conftest.err
  10536. rm -f conftest.er1
  10537. cat conftest.err >&5
  10538. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10539. (exit $ac_status); } && {
  10540. test -z "$ac_cxx_werror_flag" ||
  10541. test ! -s conftest.err
  10542. } && test -s conftest.$ac_objext; then
  10543. ac_header_compiler=yes
  10544. else
  10545. $as_echo "$as_me: failed program was:" >&5
  10546. sed 's/^/| /' conftest.$ac_ext >&5
  10547. ac_header_compiler=no
  10548. fi
  10549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10550. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10551. $as_echo "$ac_header_compiler" >&6; }
  10552. # Is the header present?
  10553. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10554. $as_echo_n "checking $ac_header presence... " >&6; }
  10555. cat >conftest.$ac_ext <<_ACEOF
  10556. /* confdefs.h. */
  10557. _ACEOF
  10558. cat confdefs.h >>conftest.$ac_ext
  10559. cat >>conftest.$ac_ext <<_ACEOF
  10560. /* end confdefs.h. */
  10561. #include <$ac_header>
  10562. _ACEOF
  10563. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10564. case "(($ac_try" in
  10565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10566. *) ac_try_echo=$ac_try;;
  10567. esac
  10568. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10569. $as_echo "$ac_try_echo") >&5
  10570. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10571. ac_status=$?
  10572. grep -v '^ *+' conftest.er1 >conftest.err
  10573. rm -f conftest.er1
  10574. cat conftest.err >&5
  10575. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10576. (exit $ac_status); } >/dev/null && {
  10577. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10578. test ! -s conftest.err
  10579. }; then
  10580. ac_header_preproc=yes
  10581. else
  10582. $as_echo "$as_me: failed program was:" >&5
  10583. sed 's/^/| /' conftest.$ac_ext >&5
  10584. ac_header_preproc=no
  10585. fi
  10586. rm -f conftest.err conftest.$ac_ext
  10587. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10588. $as_echo "$ac_header_preproc" >&6; }
  10589. # So? What about this header?
  10590. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10591. yes:no: )
  10592. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10593. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10594. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10595. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10596. ac_header_preproc=yes
  10597. ;;
  10598. no:yes:* )
  10599. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10600. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10601. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10602. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10603. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10604. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10605. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10606. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10607. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10608. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10609. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10610. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10611. ( cat <<\_ASBOX
  10612. ## ----------------------------------------------- ##
  10613. ## Report this to t-tujikawa@users.sourceforge.net ##
  10614. ## ----------------------------------------------- ##
  10615. _ASBOX
  10616. ) | sed "s/^/$as_me: WARNING: /" >&2
  10617. ;;
  10618. esac
  10619. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10620. $as_echo_n "checking for $ac_header... " >&6; }
  10621. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10622. $as_echo_n "(cached) " >&6
  10623. else
  10624. eval "$as_ac_Header=\$ac_header_preproc"
  10625. fi
  10626. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10627. $as_echo "$as_val"'`
  10628. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10629. $as_echo "$ac_res" >&6; }
  10630. fi
  10631. as_val=`eval 'as_val=${'$as_ac_Header'}
  10632. $as_echo "$as_val"'`
  10633. if test "x$as_val" = x""yes; then
  10634. cat >>confdefs.h <<_ACEOF
  10635. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10636. _ACEOF
  10637. fi
  10638. done
  10639. for ac_func in getpagesize
  10640. do
  10641. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10642. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  10643. $as_echo_n "checking for $ac_func... " >&6; }
  10644. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10645. $as_echo_n "(cached) " >&6
  10646. else
  10647. cat >conftest.$ac_ext <<_ACEOF
  10648. /* confdefs.h. */
  10649. _ACEOF
  10650. cat confdefs.h >>conftest.$ac_ext
  10651. cat >>conftest.$ac_ext <<_ACEOF
  10652. /* end confdefs.h. */
  10653. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10654. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10655. #define $ac_func innocuous_$ac_func
  10656. /* System header to define __stub macros and hopefully few prototypes,
  10657. which can conflict with char $ac_func (); below.
  10658. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10659. <limits.h> exists even on freestanding compilers. */
  10660. #ifdef __STDC__
  10661. # include <limits.h>
  10662. #else
  10663. # include <assert.h>
  10664. #endif
  10665. #undef $ac_func
  10666. /* Override any GCC internal prototype to avoid an error.
  10667. Use char because int might match the return type of a GCC
  10668. builtin and then its argument prototype would still apply. */
  10669. #ifdef __cplusplus
  10670. extern "C"
  10671. #endif
  10672. char $ac_func ();
  10673. /* The GNU C library defines this for functions which it implements
  10674. to always fail with ENOSYS. Some functions are actually named
  10675. something starting with __ and the normal name is an alias. */
  10676. #if defined __stub_$ac_func || defined __stub___$ac_func
  10677. choke me
  10678. #endif
  10679. int
  10680. main ()
  10681. {
  10682. return $ac_func ();
  10683. ;
  10684. return 0;
  10685. }
  10686. _ACEOF
  10687. rm -f conftest.$ac_objext conftest$ac_exeext
  10688. if { (ac_try="$ac_link"
  10689. case "(($ac_try" in
  10690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10691. *) ac_try_echo=$ac_try;;
  10692. esac
  10693. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10694. $as_echo "$ac_try_echo") >&5
  10695. (eval "$ac_link") 2>conftest.er1
  10696. ac_status=$?
  10697. grep -v '^ *+' conftest.er1 >conftest.err
  10698. rm -f conftest.er1
  10699. cat conftest.err >&5
  10700. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10701. (exit $ac_status); } && {
  10702. test -z "$ac_cxx_werror_flag" ||
  10703. test ! -s conftest.err
  10704. } && test -s conftest$ac_exeext && {
  10705. test "$cross_compiling" = yes ||
  10706. $as_test_x conftest$ac_exeext
  10707. }; then
  10708. eval "$as_ac_var=yes"
  10709. else
  10710. $as_echo "$as_me: failed program was:" >&5
  10711. sed 's/^/| /' conftest.$ac_ext >&5
  10712. eval "$as_ac_var=no"
  10713. fi
  10714. rm -rf conftest.dSYM
  10715. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10716. conftest$ac_exeext conftest.$ac_ext
  10717. fi
  10718. ac_res=`eval 'as_val=${'$as_ac_var'}
  10719. $as_echo "$as_val"'`
  10720. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10721. $as_echo "$ac_res" >&6; }
  10722. as_val=`eval 'as_val=${'$as_ac_var'}
  10723. $as_echo "$as_val"'`
  10724. if test "x$as_val" = x""yes; then
  10725. cat >>confdefs.h <<_ACEOF
  10726. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10727. _ACEOF
  10728. fi
  10729. done
  10730. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  10731. $as_echo_n "checking for working mmap... " >&6; }
  10732. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10733. $as_echo_n "(cached) " >&6
  10734. else
  10735. if test "$cross_compiling" = yes; then
  10736. ac_cv_func_mmap_fixed_mapped=no
  10737. else
  10738. cat >conftest.$ac_ext <<_ACEOF
  10739. /* confdefs.h. */
  10740. _ACEOF
  10741. cat confdefs.h >>conftest.$ac_ext
  10742. cat >>conftest.$ac_ext <<_ACEOF
  10743. /* end confdefs.h. */
  10744. $ac_includes_default
  10745. /* malloc might have been renamed as rpl_malloc. */
  10746. #undef malloc
  10747. /* Thanks to Mike Haertel and Jim Avera for this test.
  10748. Here is a matrix of mmap possibilities:
  10749. mmap private not fixed
  10750. mmap private fixed at somewhere currently unmapped
  10751. mmap private fixed at somewhere already mapped
  10752. mmap shared not fixed
  10753. mmap shared fixed at somewhere currently unmapped
  10754. mmap shared fixed at somewhere already mapped
  10755. For private mappings, we should verify that changes cannot be read()
  10756. back from the file, nor mmap's back from the file at a different
  10757. address. (There have been systems where private was not correctly
  10758. implemented like the infamous i386 svr4.0, and systems where the
  10759. VM page cache was not coherent with the file system buffer cache
  10760. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10761. For shared mappings, we should conversely verify that changes get
  10762. propagated back to all the places they're supposed to be.
  10763. Grep wants private fixed already mapped.
  10764. The main things grep needs to know about mmap are:
  10765. * does it exist and is it safe to write into the mmap'd area
  10766. * how to use it (BSD variants) */
  10767. #include <fcntl.h>
  10768. #include <sys/mman.h>
  10769. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10770. char *malloc ();
  10771. #endif
  10772. /* This mess was copied from the GNU getpagesize.h. */
  10773. #ifndef HAVE_GETPAGESIZE
  10774. /* Assume that all systems that can run configure have sys/param.h. */
  10775. # ifndef HAVE_SYS_PARAM_H
  10776. # define HAVE_SYS_PARAM_H 1
  10777. # endif
  10778. # ifdef _SC_PAGESIZE
  10779. # define getpagesize() sysconf(_SC_PAGESIZE)
  10780. # else /* no _SC_PAGESIZE */
  10781. # ifdef HAVE_SYS_PARAM_H
  10782. # include <sys/param.h>
  10783. # ifdef EXEC_PAGESIZE
  10784. # define getpagesize() EXEC_PAGESIZE
  10785. # else /* no EXEC_PAGESIZE */
  10786. # ifdef NBPG
  10787. # define getpagesize() NBPG * CLSIZE
  10788. # ifndef CLSIZE
  10789. # define CLSIZE 1
  10790. # endif /* no CLSIZE */
  10791. # else /* no NBPG */
  10792. # ifdef NBPC
  10793. # define getpagesize() NBPC
  10794. # else /* no NBPC */
  10795. # ifdef PAGESIZE
  10796. # define getpagesize() PAGESIZE
  10797. # endif /* PAGESIZE */
  10798. # endif /* no NBPC */
  10799. # endif /* no NBPG */
  10800. # endif /* no EXEC_PAGESIZE */
  10801. # else /* no HAVE_SYS_PARAM_H */
  10802. # define getpagesize() 8192 /* punt totally */
  10803. # endif /* no HAVE_SYS_PARAM_H */
  10804. # endif /* no _SC_PAGESIZE */
  10805. #endif /* no HAVE_GETPAGESIZE */
  10806. int
  10807. main ()
  10808. {
  10809. char *data, *data2, *data3;
  10810. int i, pagesize;
  10811. int fd;
  10812. pagesize = getpagesize ();
  10813. /* First, make a file with some known garbage in it. */
  10814. data = (char *) malloc (pagesize);
  10815. if (!data)
  10816. return 1;
  10817. for (i = 0; i < pagesize; ++i)
  10818. *(data + i) = rand ();
  10819. umask (0);
  10820. fd = creat ("conftest.mmap", 0600);
  10821. if (fd < 0)
  10822. return 1;
  10823. if (write (fd, data, pagesize) != pagesize)
  10824. return 1;
  10825. close (fd);
  10826. /* Next, try to mmap the file at a fixed address which already has
  10827. something else allocated at it. If we can, also make sure that
  10828. we see the same garbage. */
  10829. fd = open ("conftest.mmap", O_RDWR);
  10830. if (fd < 0)
  10831. return 1;
  10832. data2 = (char *) malloc (2 * pagesize);
  10833. if (!data2)
  10834. return 1;
  10835. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10836. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10837. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10838. return 1;
  10839. for (i = 0; i < pagesize; ++i)
  10840. if (*(data + i) != *(data2 + i))
  10841. return 1;
  10842. /* Finally, make sure that changes to the mapped area do not
  10843. percolate back to the file as seen by read(). (This is a bug on
  10844. some variants of i386 svr4.0.) */
  10845. for (i = 0; i < pagesize; ++i)
  10846. *(data2 + i) = *(data2 + i) + 1;
  10847. data3 = (char *) malloc (pagesize);
  10848. if (!data3)
  10849. return 1;
  10850. if (read (fd, data3, pagesize) != pagesize)
  10851. return 1;
  10852. for (i = 0; i < pagesize; ++i)
  10853. if (*(data + i) != *(data3 + i))
  10854. return 1;
  10855. close (fd);
  10856. return 0;
  10857. }
  10858. _ACEOF
  10859. rm -f conftest$ac_exeext
  10860. if { (ac_try="$ac_link"
  10861. case "(($ac_try" in
  10862. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10863. *) ac_try_echo=$ac_try;;
  10864. esac
  10865. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10866. $as_echo "$ac_try_echo") >&5
  10867. (eval "$ac_link") 2>&5
  10868. ac_status=$?
  10869. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10870. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10871. { (case "(($ac_try" in
  10872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10873. *) ac_try_echo=$ac_try;;
  10874. esac
  10875. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10876. $as_echo "$ac_try_echo") >&5
  10877. (eval "$ac_try") 2>&5
  10878. ac_status=$?
  10879. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10880. (exit $ac_status); }; }; then
  10881. ac_cv_func_mmap_fixed_mapped=yes
  10882. else
  10883. $as_echo "$as_me: program exited with status $ac_status" >&5
  10884. $as_echo "$as_me: failed program was:" >&5
  10885. sed 's/^/| /' conftest.$ac_ext >&5
  10886. ( exit $ac_status )
  10887. ac_cv_func_mmap_fixed_mapped=no
  10888. fi
  10889. rm -rf conftest.dSYM
  10890. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10891. fi
  10892. fi
  10893. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10894. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  10895. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10896. cat >>confdefs.h <<\_ACEOF
  10897. #define HAVE_MMAP 1
  10898. _ACEOF
  10899. fi
  10900. rm -f conftest.mmap
  10901. { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  10902. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  10903. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  10904. $as_echo_n "(cached) " >&6
  10905. else
  10906. gt_cv_int_divbyzero_sigfpe=
  10907. case "$host_os" in
  10908. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  10909. # On MacOS X 10.2 or newer, just assume the same as when cross-
  10910. # compiling. If we were to perform the real test, 1 Crash Report
  10911. # dialog window would pop up.
  10912. case "$host_cpu" in
  10913. i[34567]86 | x86_64)
  10914. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  10915. esac
  10916. ;;
  10917. esac
  10918. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  10919. if test "$cross_compiling" = yes; then
  10920. # Guess based on the CPU.
  10921. case "$host_cpu" in
  10922. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  10923. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  10924. *)
  10925. gt_cv_int_divbyzero_sigfpe="guessing no";;
  10926. esac
  10927. else
  10928. cat >conftest.$ac_ext <<_ACEOF
  10929. /* confdefs.h. */
  10930. _ACEOF
  10931. cat confdefs.h >>conftest.$ac_ext
  10932. cat >>conftest.$ac_ext <<_ACEOF
  10933. /* end confdefs.h. */
  10934. #include <stdlib.h>
  10935. #include <signal.h>
  10936. static void
  10937. sigfpe_handler (int sig)
  10938. {
  10939. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  10940. exit (sig != SIGFPE);
  10941. }
  10942. int x = 1;
  10943. int y = 0;
  10944. int z;
  10945. int nan;
  10946. int main ()
  10947. {
  10948. signal (SIGFPE, sigfpe_handler);
  10949. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  10950. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  10951. signal (SIGTRAP, sigfpe_handler);
  10952. #endif
  10953. /* Linux/SPARC yields signal SIGILL. */
  10954. #if defined (__sparc__) && defined (__linux__)
  10955. signal (SIGILL, sigfpe_handler);
  10956. #endif
  10957. z = x / y;
  10958. nan = y / y;
  10959. exit (1);
  10960. }
  10961. _ACEOF
  10962. rm -f conftest$ac_exeext
  10963. if { (ac_try="$ac_link"
  10964. case "(($ac_try" in
  10965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10966. *) ac_try_echo=$ac_try;;
  10967. esac
  10968. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10969. $as_echo "$ac_try_echo") >&5
  10970. (eval "$ac_link") 2>&5
  10971. ac_status=$?
  10972. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10973. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10974. { (case "(($ac_try" in
  10975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10976. *) ac_try_echo=$ac_try;;
  10977. esac
  10978. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10979. $as_echo "$ac_try_echo") >&5
  10980. (eval "$ac_try") 2>&5
  10981. ac_status=$?
  10982. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10983. (exit $ac_status); }; }; then
  10984. gt_cv_int_divbyzero_sigfpe=yes
  10985. else
  10986. $as_echo "$as_me: program exited with status $ac_status" >&5
  10987. $as_echo "$as_me: failed program was:" >&5
  10988. sed 's/^/| /' conftest.$ac_ext >&5
  10989. ( exit $ac_status )
  10990. gt_cv_int_divbyzero_sigfpe=no
  10991. fi
  10992. rm -rf conftest.dSYM
  10993. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10994. fi
  10995. fi
  10996. fi
  10997. { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  10998. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  10999. case "$gt_cv_int_divbyzero_sigfpe" in
  11000. *yes) value=1;;
  11001. *) value=0;;
  11002. esac
  11003. cat >>confdefs.h <<_ACEOF
  11004. #define INTDIV0_RAISES_SIGFPE $value
  11005. _ACEOF
  11006. { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
  11007. $as_echo_n "checking for inttypes.h... " >&6; }
  11008. if test "${gl_cv_header_inttypes_h+set}" = set; then
  11009. $as_echo_n "(cached) " >&6
  11010. else
  11011. cat >conftest.$ac_ext <<_ACEOF
  11012. /* confdefs.h. */
  11013. _ACEOF
  11014. cat confdefs.h >>conftest.$ac_ext
  11015. cat >>conftest.$ac_ext <<_ACEOF
  11016. /* end confdefs.h. */
  11017. #include <sys/types.h>
  11018. #include <inttypes.h>
  11019. int
  11020. main ()
  11021. {
  11022. uintmax_t i = (uintmax_t) -1; return !i;
  11023. ;
  11024. return 0;
  11025. }
  11026. _ACEOF
  11027. rm -f conftest.$ac_objext
  11028. if { (ac_try="$ac_compile"
  11029. case "(($ac_try" in
  11030. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11031. *) ac_try_echo=$ac_try;;
  11032. esac
  11033. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11034. $as_echo "$ac_try_echo") >&5
  11035. (eval "$ac_compile") 2>conftest.er1
  11036. ac_status=$?
  11037. grep -v '^ *+' conftest.er1 >conftest.err
  11038. rm -f conftest.er1
  11039. cat conftest.err >&5
  11040. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11041. (exit $ac_status); } && {
  11042. test -z "$ac_cxx_werror_flag" ||
  11043. test ! -s conftest.err
  11044. } && test -s conftest.$ac_objext; then
  11045. gl_cv_header_inttypes_h=yes
  11046. else
  11047. $as_echo "$as_me: failed program was:" >&5
  11048. sed 's/^/| /' conftest.$ac_ext >&5
  11049. gl_cv_header_inttypes_h=no
  11050. fi
  11051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11052. fi
  11053. { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  11054. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  11055. if test $gl_cv_header_inttypes_h = yes; then
  11056. cat >>confdefs.h <<_ACEOF
  11057. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  11058. _ACEOF
  11059. fi
  11060. { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  11061. $as_echo_n "checking for unsigned long long int... " >&6; }
  11062. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  11063. $as_echo_n "(cached) " >&6
  11064. else
  11065. cat >conftest.$ac_ext <<_ACEOF
  11066. /* confdefs.h. */
  11067. _ACEOF
  11068. cat confdefs.h >>conftest.$ac_ext
  11069. cat >>conftest.$ac_ext <<_ACEOF
  11070. /* end confdefs.h. */
  11071. /* Test preprocessor. */
  11072. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  11073. error in preprocessor;
  11074. #endif
  11075. #if ! (18446744073709551615ULL <= -1ull)
  11076. error in preprocessor;
  11077. #endif
  11078. /* Test literals. */
  11079. long long int ll = 9223372036854775807ll;
  11080. long long int nll = -9223372036854775807LL;
  11081. unsigned long long int ull = 18446744073709551615ULL;
  11082. /* Test constant expressions. */
  11083. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  11084. ? 1 : -1)];
  11085. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  11086. ? 1 : -1)];
  11087. int i = 63;
  11088. int
  11089. main ()
  11090. {
  11091. /* Test availability of runtime routines for shift and division. */
  11092. long long int llmax = 9223372036854775807ll;
  11093. unsigned long long int ullmax = 18446744073709551615ull;
  11094. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  11095. | (llmax / ll) | (llmax % ll)
  11096. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  11097. | (ullmax / ull) | (ullmax % ull));
  11098. ;
  11099. return 0;
  11100. }
  11101. _ACEOF
  11102. rm -f conftest.$ac_objext conftest$ac_exeext
  11103. if { (ac_try="$ac_link"
  11104. case "(($ac_try" in
  11105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11106. *) ac_try_echo=$ac_try;;
  11107. esac
  11108. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11109. $as_echo "$ac_try_echo") >&5
  11110. (eval "$ac_link") 2>conftest.er1
  11111. ac_status=$?
  11112. grep -v '^ *+' conftest.er1 >conftest.err
  11113. rm -f conftest.er1
  11114. cat conftest.err >&5
  11115. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11116. (exit $ac_status); } && {
  11117. test -z "$ac_cxx_werror_flag" ||
  11118. test ! -s conftest.err
  11119. } && test -s conftest$ac_exeext && {
  11120. test "$cross_compiling" = yes ||
  11121. $as_test_x conftest$ac_exeext
  11122. }; then
  11123. ac_cv_type_unsigned_long_long_int=yes
  11124. else
  11125. $as_echo "$as_me: failed program was:" >&5
  11126. sed 's/^/| /' conftest.$ac_ext >&5
  11127. ac_cv_type_unsigned_long_long_int=no
  11128. fi
  11129. rm -rf conftest.dSYM
  11130. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11131. conftest$ac_exeext conftest.$ac_ext
  11132. fi
  11133. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  11134. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  11135. if test $ac_cv_type_unsigned_long_long_int = yes; then
  11136. cat >>confdefs.h <<\_ACEOF
  11137. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  11138. _ACEOF
  11139. fi
  11140. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  11141. test $ac_cv_type_unsigned_long_long_int = yes \
  11142. && ac_type='unsigned long long' \
  11143. || ac_type='unsigned long'
  11144. cat >>confdefs.h <<_ACEOF
  11145. #define uintmax_t $ac_type
  11146. _ACEOF
  11147. else
  11148. cat >>confdefs.h <<\_ACEOF
  11149. #define HAVE_UINTMAX_T 1
  11150. _ACEOF
  11151. fi
  11152. for ac_header in inttypes.h
  11153. do
  11154. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11155. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11156. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11157. $as_echo_n "checking for $ac_header... " >&6; }
  11158. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11159. $as_echo_n "(cached) " >&6
  11160. fi
  11161. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11162. $as_echo "$as_val"'`
  11163. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11164. $as_echo "$ac_res" >&6; }
  11165. else
  11166. # Is the header compilable?
  11167. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11168. $as_echo_n "checking $ac_header usability... " >&6; }
  11169. cat >conftest.$ac_ext <<_ACEOF
  11170. /* confdefs.h. */
  11171. _ACEOF
  11172. cat confdefs.h >>conftest.$ac_ext
  11173. cat >>conftest.$ac_ext <<_ACEOF
  11174. /* end confdefs.h. */
  11175. $ac_includes_default
  11176. #include <$ac_header>
  11177. _ACEOF
  11178. rm -f conftest.$ac_objext
  11179. if { (ac_try="$ac_compile"
  11180. case "(($ac_try" in
  11181. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11182. *) ac_try_echo=$ac_try;;
  11183. esac
  11184. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11185. $as_echo "$ac_try_echo") >&5
  11186. (eval "$ac_compile") 2>conftest.er1
  11187. ac_status=$?
  11188. grep -v '^ *+' conftest.er1 >conftest.err
  11189. rm -f conftest.er1
  11190. cat conftest.err >&5
  11191. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11192. (exit $ac_status); } && {
  11193. test -z "$ac_cxx_werror_flag" ||
  11194. test ! -s conftest.err
  11195. } && test -s conftest.$ac_objext; then
  11196. ac_header_compiler=yes
  11197. else
  11198. $as_echo "$as_me: failed program was:" >&5
  11199. sed 's/^/| /' conftest.$ac_ext >&5
  11200. ac_header_compiler=no
  11201. fi
  11202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11203. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11204. $as_echo "$ac_header_compiler" >&6; }
  11205. # Is the header present?
  11206. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11207. $as_echo_n "checking $ac_header presence... " >&6; }
  11208. cat >conftest.$ac_ext <<_ACEOF
  11209. /* confdefs.h. */
  11210. _ACEOF
  11211. cat confdefs.h >>conftest.$ac_ext
  11212. cat >>conftest.$ac_ext <<_ACEOF
  11213. /* end confdefs.h. */
  11214. #include <$ac_header>
  11215. _ACEOF
  11216. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11217. case "(($ac_try" in
  11218. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11219. *) ac_try_echo=$ac_try;;
  11220. esac
  11221. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11222. $as_echo "$ac_try_echo") >&5
  11223. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11224. ac_status=$?
  11225. grep -v '^ *+' conftest.er1 >conftest.err
  11226. rm -f conftest.er1
  11227. cat conftest.err >&5
  11228. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11229. (exit $ac_status); } >/dev/null && {
  11230. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11231. test ! -s conftest.err
  11232. }; then
  11233. ac_header_preproc=yes
  11234. else
  11235. $as_echo "$as_me: failed program was:" >&5
  11236. sed 's/^/| /' conftest.$ac_ext >&5
  11237. ac_header_preproc=no
  11238. fi
  11239. rm -f conftest.err conftest.$ac_ext
  11240. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11241. $as_echo "$ac_header_preproc" >&6; }
  11242. # So? What about this header?
  11243. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11244. yes:no: )
  11245. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11246. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11247. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11248. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11249. ac_header_preproc=yes
  11250. ;;
  11251. no:yes:* )
  11252. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11253. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11254. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11255. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11256. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11257. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11258. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11259. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11260. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11261. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11262. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11263. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11264. ( cat <<\_ASBOX
  11265. ## ----------------------------------------------- ##
  11266. ## Report this to t-tujikawa@users.sourceforge.net ##
  11267. ## ----------------------------------------------- ##
  11268. _ASBOX
  11269. ) | sed "s/^/$as_me: WARNING: /" >&2
  11270. ;;
  11271. esac
  11272. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11273. $as_echo_n "checking for $ac_header... " >&6; }
  11274. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11275. $as_echo_n "(cached) " >&6
  11276. else
  11277. eval "$as_ac_Header=\$ac_header_preproc"
  11278. fi
  11279. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11280. $as_echo "$as_val"'`
  11281. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11282. $as_echo "$ac_res" >&6; }
  11283. fi
  11284. as_val=`eval 'as_val=${'$as_ac_Header'}
  11285. $as_echo "$as_val"'`
  11286. if test "x$as_val" = x""yes; then
  11287. cat >>confdefs.h <<_ACEOF
  11288. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11289. _ACEOF
  11290. fi
  11291. done
  11292. if test $ac_cv_header_inttypes_h = yes; then
  11293. { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  11294. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  11295. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  11296. $as_echo_n "(cached) " >&6
  11297. else
  11298. cat >conftest.$ac_ext <<_ACEOF
  11299. /* confdefs.h. */
  11300. _ACEOF
  11301. cat confdefs.h >>conftest.$ac_ext
  11302. cat >>conftest.$ac_ext <<_ACEOF
  11303. /* end confdefs.h. */
  11304. #include <inttypes.h>
  11305. #ifdef PRId32
  11306. char *p = PRId32;
  11307. #endif
  11308. int
  11309. main ()
  11310. {
  11311. ;
  11312. return 0;
  11313. }
  11314. _ACEOF
  11315. rm -f conftest.$ac_objext
  11316. if { (ac_try="$ac_compile"
  11317. case "(($ac_try" in
  11318. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11319. *) ac_try_echo=$ac_try;;
  11320. esac
  11321. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11322. $as_echo "$ac_try_echo") >&5
  11323. (eval "$ac_compile") 2>conftest.er1
  11324. ac_status=$?
  11325. grep -v '^ *+' conftest.er1 >conftest.err
  11326. rm -f conftest.er1
  11327. cat conftest.err >&5
  11328. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11329. (exit $ac_status); } && {
  11330. test -z "$ac_cxx_werror_flag" ||
  11331. test ! -s conftest.err
  11332. } && test -s conftest.$ac_objext; then
  11333. gt_cv_inttypes_pri_broken=no
  11334. else
  11335. $as_echo "$as_me: failed program was:" >&5
  11336. sed 's/^/| /' conftest.$ac_ext >&5
  11337. gt_cv_inttypes_pri_broken=yes
  11338. fi
  11339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11340. fi
  11341. { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  11342. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  11343. fi
  11344. if test "$gt_cv_inttypes_pri_broken" = yes; then
  11345. cat >>confdefs.h <<_ACEOF
  11346. #define PRI_MACROS_BROKEN 1
  11347. _ACEOF
  11348. PRI_MACROS_BROKEN=1
  11349. else
  11350. PRI_MACROS_BROKEN=0
  11351. fi
  11352. # Check whether --enable-threads was given.
  11353. if test "${enable_threads+set}" = set; then
  11354. enableval=$enable_threads; gl_use_threads=$enableval
  11355. else
  11356. case "$host_os" in
  11357. osf*) gl_use_threads=no ;;
  11358. *) gl_use_threads=yes ;;
  11359. esac
  11360. fi
  11361. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  11362. # For using <pthread.h>:
  11363. case "$host_os" in
  11364. osf*)
  11365. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  11366. # groks <pthread.h>. cc also understands the flag -pthread, but
  11367. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  11368. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  11369. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  11370. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  11371. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  11372. ;;
  11373. esac
  11374. # Some systems optimize for single-threaded programs by default, and
  11375. # need special flags to disable these optimizations. For example, the
  11376. # definition of 'errno' in <errno.h>.
  11377. case "$host_os" in
  11378. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  11379. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  11380. esac
  11381. fi
  11382. if test "X$prefix" = "XNONE"; then
  11383. acl_final_prefix="$ac_default_prefix"
  11384. else
  11385. acl_final_prefix="$prefix"
  11386. fi
  11387. if test "X$exec_prefix" = "XNONE"; then
  11388. acl_final_exec_prefix='${prefix}'
  11389. else
  11390. acl_final_exec_prefix="$exec_prefix"
  11391. fi
  11392. acl_save_prefix="$prefix"
  11393. prefix="$acl_final_prefix"
  11394. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  11395. prefix="$acl_save_prefix"
  11396. # Check whether --with-gnu-ld was given.
  11397. if test "${with_gnu_ld+set}" = set; then
  11398. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11399. else
  11400. with_gnu_ld=no
  11401. fi
  11402. # Prepare PATH_SEPARATOR.
  11403. # The user is always right.
  11404. if test "${PATH_SEPARATOR+set}" != set; then
  11405. echo "#! /bin/sh" >conf$$.sh
  11406. echo "exit 0" >>conf$$.sh
  11407. chmod +x conf$$.sh
  11408. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11409. PATH_SEPARATOR=';'
  11410. else
  11411. PATH_SEPARATOR=:
  11412. fi
  11413. rm -f conf$$.sh
  11414. fi
  11415. ac_prog=ld
  11416. if test "$GCC" = yes; then
  11417. # Check if gcc -print-prog-name=ld gives a path.
  11418. { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  11419. $as_echo_n "checking for ld used by GCC... " >&6; }
  11420. case $host in
  11421. *-*-mingw*)
  11422. # gcc leaves a trailing carriage return which upsets mingw
  11423. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11424. *)
  11425. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11426. esac
  11427. case $ac_prog in
  11428. # Accept absolute paths.
  11429. [\\/]* | [A-Za-z]:[\\/]*)
  11430. re_direlt='/[^/][^/]*/\.\./'
  11431. # Canonicalize the path of ld
  11432. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  11433. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  11434. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  11435. done
  11436. test -z "$LD" && LD="$ac_prog"
  11437. ;;
  11438. "")
  11439. # If it fails, then pretend we aren't using GCC.
  11440. ac_prog=ld
  11441. ;;
  11442. *)
  11443. # If it is relative, then search for the first ld in PATH.
  11444. with_gnu_ld=unknown
  11445. ;;
  11446. esac
  11447. elif test "$with_gnu_ld" = yes; then
  11448. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  11449. $as_echo_n "checking for GNU ld... " >&6; }
  11450. else
  11451. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  11452. $as_echo_n "checking for non-GNU ld... " >&6; }
  11453. fi
  11454. if test "${acl_cv_path_LD+set}" = set; then
  11455. $as_echo_n "(cached) " >&6
  11456. else
  11457. if test -z "$LD"; then
  11458. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  11459. for ac_dir in $PATH; do
  11460. test -z "$ac_dir" && ac_dir=.
  11461. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11462. acl_cv_path_LD="$ac_dir/$ac_prog"
  11463. # Check to see if the program is GNU ld. I'd rather use --version,
  11464. # but apparently some GNU ld's only accept -v.
  11465. # Break only if it was the GNU/non-GNU ld that we prefer.
  11466. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  11467. *GNU* | *'with BFD'*)
  11468. test "$with_gnu_ld" != no && break ;;
  11469. *)
  11470. test "$with_gnu_ld" != yes && break ;;
  11471. esac
  11472. fi
  11473. done
  11474. IFS="$ac_save_ifs"
  11475. else
  11476. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  11477. fi
  11478. fi
  11479. LD="$acl_cv_path_LD"
  11480. if test -n "$LD"; then
  11481. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  11482. $as_echo "$LD" >&6; }
  11483. else
  11484. { $as_echo "$as_me:$LINENO: result: no" >&5
  11485. $as_echo "no" >&6; }
  11486. fi
  11487. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  11488. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  11489. { (exit 1); exit 1; }; }
  11490. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  11491. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11492. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  11493. $as_echo_n "(cached) " >&6
  11494. else
  11495. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  11496. case `$LD -v 2>&1 </dev/null` in
  11497. *GNU* | *'with BFD'*)
  11498. acl_cv_prog_gnu_ld=yes ;;
  11499. *)
  11500. acl_cv_prog_gnu_ld=no ;;
  11501. esac
  11502. fi
  11503. { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  11504. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  11505. with_gnu_ld=$acl_cv_prog_gnu_ld
  11506. { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  11507. $as_echo_n "checking for shared library run path origin... " >&6; }
  11508. if test "${acl_cv_rpath+set}" = set; then
  11509. $as_echo_n "(cached) " >&6
  11510. else
  11511. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  11512. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  11513. . ./conftest.sh
  11514. rm -f ./conftest.sh
  11515. acl_cv_rpath=done
  11516. fi
  11517. { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  11518. $as_echo "$acl_cv_rpath" >&6; }
  11519. wl="$acl_cv_wl"
  11520. acl_libext="$acl_cv_libext"
  11521. acl_shlibext="$acl_cv_shlibext"
  11522. acl_libname_spec="$acl_cv_libname_spec"
  11523. acl_library_names_spec="$acl_cv_library_names_spec"
  11524. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  11525. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  11526. acl_hardcode_direct="$acl_cv_hardcode_direct"
  11527. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  11528. # Check whether --enable-rpath was given.
  11529. if test "${enable_rpath+set}" = set; then
  11530. enableval=$enable_rpath; :
  11531. else
  11532. enable_rpath=yes
  11533. fi
  11534. acl_libdirstem=lib
  11535. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  11536. if test -n "$searchpath"; then
  11537. acl_save_IFS="${IFS= }"; IFS=":"
  11538. for searchdir in $searchpath; do
  11539. if test -d "$searchdir"; then
  11540. case "$searchdir" in
  11541. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  11542. *) searchdir=`cd "$searchdir" && pwd`
  11543. case "$searchdir" in
  11544. */lib64 ) acl_libdirstem=lib64 ;;
  11545. esac ;;
  11546. esac
  11547. fi
  11548. done
  11549. IFS="$acl_save_IFS"
  11550. fi
  11551. gl_threads_api=none
  11552. LIBTHREAD=
  11553. LTLIBTHREAD=
  11554. LIBMULTITHREAD=
  11555. LTLIBMULTITHREAD=
  11556. if test "$gl_use_threads" != no; then
  11557. { $as_echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  11558. $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
  11559. gl_have_weak=no
  11560. cat >conftest.$ac_ext <<_ACEOF
  11561. /* confdefs.h. */
  11562. _ACEOF
  11563. cat confdefs.h >>conftest.$ac_ext
  11564. cat >>conftest.$ac_ext <<_ACEOF
  11565. /* end confdefs.h. */
  11566. extern void xyzzy ();
  11567. #pragma weak xyzzy
  11568. int
  11569. main ()
  11570. {
  11571. xyzzy();
  11572. ;
  11573. return 0;
  11574. }
  11575. _ACEOF
  11576. rm -f conftest.$ac_objext conftest$ac_exeext
  11577. if { (ac_try="$ac_link"
  11578. case "(($ac_try" in
  11579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11580. *) ac_try_echo=$ac_try;;
  11581. esac
  11582. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11583. $as_echo "$ac_try_echo") >&5
  11584. (eval "$ac_link") 2>conftest.er1
  11585. ac_status=$?
  11586. grep -v '^ *+' conftest.er1 >conftest.err
  11587. rm -f conftest.er1
  11588. cat conftest.err >&5
  11589. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11590. (exit $ac_status); } && {
  11591. test -z "$ac_cxx_werror_flag" ||
  11592. test ! -s conftest.err
  11593. } && test -s conftest$ac_exeext && {
  11594. test "$cross_compiling" = yes ||
  11595. $as_test_x conftest$ac_exeext
  11596. }; then
  11597. gl_have_weak=yes
  11598. else
  11599. $as_echo "$as_me: failed program was:" >&5
  11600. sed 's/^/| /' conftest.$ac_ext >&5
  11601. fi
  11602. rm -rf conftest.dSYM
  11603. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11604. conftest$ac_exeext conftest.$ac_ext
  11605. { $as_echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  11606. $as_echo "$gl_have_weak" >&6; }
  11607. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  11608. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  11609. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  11610. if test "${ac_cv_header_pthread_h+set}" = set; then
  11611. { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
  11612. $as_echo_n "checking for pthread.h... " >&6; }
  11613. if test "${ac_cv_header_pthread_h+set}" = set; then
  11614. $as_echo_n "(cached) " >&6
  11615. fi
  11616. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  11617. $as_echo "$ac_cv_header_pthread_h" >&6; }
  11618. else
  11619. # Is the header compilable?
  11620. { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
  11621. $as_echo_n "checking pthread.h usability... " >&6; }
  11622. cat >conftest.$ac_ext <<_ACEOF
  11623. /* confdefs.h. */
  11624. _ACEOF
  11625. cat confdefs.h >>conftest.$ac_ext
  11626. cat >>conftest.$ac_ext <<_ACEOF
  11627. /* end confdefs.h. */
  11628. $ac_includes_default
  11629. #include <pthread.h>
  11630. _ACEOF
  11631. rm -f conftest.$ac_objext
  11632. if { (ac_try="$ac_compile"
  11633. case "(($ac_try" in
  11634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11635. *) ac_try_echo=$ac_try;;
  11636. esac
  11637. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11638. $as_echo "$ac_try_echo") >&5
  11639. (eval "$ac_compile") 2>conftest.er1
  11640. ac_status=$?
  11641. grep -v '^ *+' conftest.er1 >conftest.err
  11642. rm -f conftest.er1
  11643. cat conftest.err >&5
  11644. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11645. (exit $ac_status); } && {
  11646. test -z "$ac_cxx_werror_flag" ||
  11647. test ! -s conftest.err
  11648. } && test -s conftest.$ac_objext; then
  11649. ac_header_compiler=yes
  11650. else
  11651. $as_echo "$as_me: failed program was:" >&5
  11652. sed 's/^/| /' conftest.$ac_ext >&5
  11653. ac_header_compiler=no
  11654. fi
  11655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11656. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11657. $as_echo "$ac_header_compiler" >&6; }
  11658. # Is the header present?
  11659. { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
  11660. $as_echo_n "checking pthread.h presence... " >&6; }
  11661. cat >conftest.$ac_ext <<_ACEOF
  11662. /* confdefs.h. */
  11663. _ACEOF
  11664. cat confdefs.h >>conftest.$ac_ext
  11665. cat >>conftest.$ac_ext <<_ACEOF
  11666. /* end confdefs.h. */
  11667. #include <pthread.h>
  11668. _ACEOF
  11669. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11670. case "(($ac_try" in
  11671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11672. *) ac_try_echo=$ac_try;;
  11673. esac
  11674. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11675. $as_echo "$ac_try_echo") >&5
  11676. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11677. ac_status=$?
  11678. grep -v '^ *+' conftest.er1 >conftest.err
  11679. rm -f conftest.er1
  11680. cat conftest.err >&5
  11681. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11682. (exit $ac_status); } >/dev/null && {
  11683. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11684. test ! -s conftest.err
  11685. }; then
  11686. ac_header_preproc=yes
  11687. else
  11688. $as_echo "$as_me: failed program was:" >&5
  11689. sed 's/^/| /' conftest.$ac_ext >&5
  11690. ac_header_preproc=no
  11691. fi
  11692. rm -f conftest.err conftest.$ac_ext
  11693. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11694. $as_echo "$ac_header_preproc" >&6; }
  11695. # So? What about this header?
  11696. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11697. yes:no: )
  11698. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  11699. $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11700. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  11701. $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  11702. ac_header_preproc=yes
  11703. ;;
  11704. no:yes:* )
  11705. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  11706. $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  11707. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  11708. $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  11709. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  11710. $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  11711. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  11712. $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  11713. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  11714. $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  11715. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  11716. $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  11717. ( cat <<\_ASBOX
  11718. ## ----------------------------------------------- ##
  11719. ## Report this to t-tujikawa@users.sourceforge.net ##
  11720. ## ----------------------------------------------- ##
  11721. _ASBOX
  11722. ) | sed "s/^/$as_me: WARNING: /" >&2
  11723. ;;
  11724. esac
  11725. { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
  11726. $as_echo_n "checking for pthread.h... " >&6; }
  11727. if test "${ac_cv_header_pthread_h+set}" = set; then
  11728. $as_echo_n "(cached) " >&6
  11729. else
  11730. ac_cv_header_pthread_h=$ac_header_preproc
  11731. fi
  11732. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  11733. $as_echo "$ac_cv_header_pthread_h" >&6; }
  11734. fi
  11735. if test "x$ac_cv_header_pthread_h" = x""yes; then
  11736. gl_have_pthread_h=yes
  11737. else
  11738. gl_have_pthread_h=no
  11739. fi
  11740. if test "$gl_have_pthread_h" = yes; then
  11741. # Other possible tests:
  11742. # -lpthreads (FSU threads, PCthreads)
  11743. # -lgthreads
  11744. gl_have_pthread=
  11745. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  11746. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  11747. # the second one only in libpthread, and lock.c needs it.
  11748. cat >conftest.$ac_ext <<_ACEOF
  11749. /* confdefs.h. */
  11750. _ACEOF
  11751. cat confdefs.h >>conftest.$ac_ext
  11752. cat >>conftest.$ac_ext <<_ACEOF
  11753. /* end confdefs.h. */
  11754. #include <pthread.h>
  11755. int
  11756. main ()
  11757. {
  11758. pthread_mutex_lock((pthread_mutex_t*)0);
  11759. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  11760. ;
  11761. return 0;
  11762. }
  11763. _ACEOF
  11764. rm -f conftest.$ac_objext conftest$ac_exeext
  11765. if { (ac_try="$ac_link"
  11766. case "(($ac_try" in
  11767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11768. *) ac_try_echo=$ac_try;;
  11769. esac
  11770. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11771. $as_echo "$ac_try_echo") >&5
  11772. (eval "$ac_link") 2>conftest.er1
  11773. ac_status=$?
  11774. grep -v '^ *+' conftest.er1 >conftest.err
  11775. rm -f conftest.er1
  11776. cat conftest.err >&5
  11777. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11778. (exit $ac_status); } && {
  11779. test -z "$ac_cxx_werror_flag" ||
  11780. test ! -s conftest.err
  11781. } && test -s conftest$ac_exeext && {
  11782. test "$cross_compiling" = yes ||
  11783. $as_test_x conftest$ac_exeext
  11784. }; then
  11785. gl_have_pthread=yes
  11786. else
  11787. $as_echo "$as_me: failed program was:" >&5
  11788. sed 's/^/| /' conftest.$ac_ext >&5
  11789. fi
  11790. rm -rf conftest.dSYM
  11791. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11792. conftest$ac_exeext conftest.$ac_ext
  11793. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  11794. # since it is defined as a macro on OSF/1.)
  11795. if test -n "$gl_have_pthread"; then
  11796. # The program links fine without libpthread. But it may actually
  11797. # need to link with libpthread in order to create multiple threads.
  11798. { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  11799. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  11800. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  11801. $as_echo_n "(cached) " >&6
  11802. else
  11803. ac_check_lib_save_LIBS=$LIBS
  11804. LIBS="-lpthread $LIBS"
  11805. cat >conftest.$ac_ext <<_ACEOF
  11806. /* confdefs.h. */
  11807. _ACEOF
  11808. cat confdefs.h >>conftest.$ac_ext
  11809. cat >>conftest.$ac_ext <<_ACEOF
  11810. /* end confdefs.h. */
  11811. /* Override any GCC internal prototype to avoid an error.
  11812. Use char because int might match the return type of a GCC
  11813. builtin and then its argument prototype would still apply. */
  11814. #ifdef __cplusplus
  11815. extern "C"
  11816. #endif
  11817. char pthread_kill ();
  11818. int
  11819. main ()
  11820. {
  11821. return pthread_kill ();
  11822. ;
  11823. return 0;
  11824. }
  11825. _ACEOF
  11826. rm -f conftest.$ac_objext conftest$ac_exeext
  11827. if { (ac_try="$ac_link"
  11828. case "(($ac_try" in
  11829. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11830. *) ac_try_echo=$ac_try;;
  11831. esac
  11832. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11833. $as_echo "$ac_try_echo") >&5
  11834. (eval "$ac_link") 2>conftest.er1
  11835. ac_status=$?
  11836. grep -v '^ *+' conftest.er1 >conftest.err
  11837. rm -f conftest.er1
  11838. cat conftest.err >&5
  11839. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11840. (exit $ac_status); } && {
  11841. test -z "$ac_cxx_werror_flag" ||
  11842. test ! -s conftest.err
  11843. } && test -s conftest$ac_exeext && {
  11844. test "$cross_compiling" = yes ||
  11845. $as_test_x conftest$ac_exeext
  11846. }; then
  11847. ac_cv_lib_pthread_pthread_kill=yes
  11848. else
  11849. $as_echo "$as_me: failed program was:" >&5
  11850. sed 's/^/| /' conftest.$ac_ext >&5
  11851. ac_cv_lib_pthread_pthread_kill=no
  11852. fi
  11853. rm -rf conftest.dSYM
  11854. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11855. conftest$ac_exeext conftest.$ac_ext
  11856. LIBS=$ac_check_lib_save_LIBS
  11857. fi
  11858. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  11859. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  11860. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
  11861. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  11862. # On Solaris and HP-UX, most pthread functions exist also in libc.
  11863. # Therefore pthread_in_use() needs to actually try to create a
  11864. # thread: pthread_create from libc will fail, whereas
  11865. # pthread_create will actually create a thread.
  11866. case "$host_os" in
  11867. solaris* | hpux*)
  11868. cat >>confdefs.h <<\_ACEOF
  11869. #define PTHREAD_IN_USE_DETECTION_HARD 1
  11870. _ACEOF
  11871. esac
  11872. fi
  11873. else
  11874. # Some library is needed. Try libpthread and libc_r.
  11875. { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  11876. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  11877. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  11878. $as_echo_n "(cached) " >&6
  11879. else
  11880. ac_check_lib_save_LIBS=$LIBS
  11881. LIBS="-lpthread $LIBS"
  11882. cat >conftest.$ac_ext <<_ACEOF
  11883. /* confdefs.h. */
  11884. _ACEOF
  11885. cat confdefs.h >>conftest.$ac_ext
  11886. cat >>conftest.$ac_ext <<_ACEOF
  11887. /* end confdefs.h. */
  11888. /* Override any GCC internal prototype to avoid an error.
  11889. Use char because int might match the return type of a GCC
  11890. builtin and then its argument prototype would still apply. */
  11891. #ifdef __cplusplus
  11892. extern "C"
  11893. #endif
  11894. char pthread_kill ();
  11895. int
  11896. main ()
  11897. {
  11898. return pthread_kill ();
  11899. ;
  11900. return 0;
  11901. }
  11902. _ACEOF
  11903. rm -f conftest.$ac_objext conftest$ac_exeext
  11904. if { (ac_try="$ac_link"
  11905. case "(($ac_try" in
  11906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11907. *) ac_try_echo=$ac_try;;
  11908. esac
  11909. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11910. $as_echo "$ac_try_echo") >&5
  11911. (eval "$ac_link") 2>conftest.er1
  11912. ac_status=$?
  11913. grep -v '^ *+' conftest.er1 >conftest.err
  11914. rm -f conftest.er1
  11915. cat conftest.err >&5
  11916. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11917. (exit $ac_status); } && {
  11918. test -z "$ac_cxx_werror_flag" ||
  11919. test ! -s conftest.err
  11920. } && test -s conftest$ac_exeext && {
  11921. test "$cross_compiling" = yes ||
  11922. $as_test_x conftest$ac_exeext
  11923. }; then
  11924. ac_cv_lib_pthread_pthread_kill=yes
  11925. else
  11926. $as_echo "$as_me: failed program was:" >&5
  11927. sed 's/^/| /' conftest.$ac_ext >&5
  11928. ac_cv_lib_pthread_pthread_kill=no
  11929. fi
  11930. rm -rf conftest.dSYM
  11931. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11932. conftest$ac_exeext conftest.$ac_ext
  11933. LIBS=$ac_check_lib_save_LIBS
  11934. fi
  11935. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  11936. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  11937. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
  11938. gl_have_pthread=yes
  11939. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  11940. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  11941. fi
  11942. if test -z "$gl_have_pthread"; then
  11943. # For FreeBSD 4.
  11944. { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  11945. $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
  11946. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  11947. $as_echo_n "(cached) " >&6
  11948. else
  11949. ac_check_lib_save_LIBS=$LIBS
  11950. LIBS="-lc_r $LIBS"
  11951. cat >conftest.$ac_ext <<_ACEOF
  11952. /* confdefs.h. */
  11953. _ACEOF
  11954. cat confdefs.h >>conftest.$ac_ext
  11955. cat >>conftest.$ac_ext <<_ACEOF
  11956. /* end confdefs.h. */
  11957. /* Override any GCC internal prototype to avoid an error.
  11958. Use char because int might match the return type of a GCC
  11959. builtin and then its argument prototype would still apply. */
  11960. #ifdef __cplusplus
  11961. extern "C"
  11962. #endif
  11963. char pthread_kill ();
  11964. int
  11965. main ()
  11966. {
  11967. return pthread_kill ();
  11968. ;
  11969. return 0;
  11970. }
  11971. _ACEOF
  11972. rm -f conftest.$ac_objext conftest$ac_exeext
  11973. if { (ac_try="$ac_link"
  11974. case "(($ac_try" in
  11975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11976. *) ac_try_echo=$ac_try;;
  11977. esac
  11978. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11979. $as_echo "$ac_try_echo") >&5
  11980. (eval "$ac_link") 2>conftest.er1
  11981. ac_status=$?
  11982. grep -v '^ *+' conftest.er1 >conftest.err
  11983. rm -f conftest.er1
  11984. cat conftest.err >&5
  11985. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11986. (exit $ac_status); } && {
  11987. test -z "$ac_cxx_werror_flag" ||
  11988. test ! -s conftest.err
  11989. } && test -s conftest$ac_exeext && {
  11990. test "$cross_compiling" = yes ||
  11991. $as_test_x conftest$ac_exeext
  11992. }; then
  11993. ac_cv_lib_c_r_pthread_kill=yes
  11994. else
  11995. $as_echo "$as_me: failed program was:" >&5
  11996. sed 's/^/| /' conftest.$ac_ext >&5
  11997. ac_cv_lib_c_r_pthread_kill=no
  11998. fi
  11999. rm -rf conftest.dSYM
  12000. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12001. conftest$ac_exeext conftest.$ac_ext
  12002. LIBS=$ac_check_lib_save_LIBS
  12003. fi
  12004. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  12005. $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
  12006. if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then
  12007. gl_have_pthread=yes
  12008. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  12009. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  12010. fi
  12011. fi
  12012. fi
  12013. if test -n "$gl_have_pthread"; then
  12014. gl_threads_api=posix
  12015. cat >>confdefs.h <<\_ACEOF
  12016. #define USE_POSIX_THREADS 1
  12017. _ACEOF
  12018. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  12019. if test $gl_have_weak = yes; then
  12020. cat >>confdefs.h <<\_ACEOF
  12021. #define USE_POSIX_THREADS_WEAK 1
  12022. _ACEOF
  12023. LIBTHREAD=
  12024. LTLIBTHREAD=
  12025. fi
  12026. fi
  12027. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  12028. # pthread_rwlock_* functions.
  12029. { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  12030. $as_echo_n "checking for pthread_rwlock_t... " >&6; }
  12031. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  12032. $as_echo_n "(cached) " >&6
  12033. else
  12034. ac_cv_type_pthread_rwlock_t=no
  12035. cat >conftest.$ac_ext <<_ACEOF
  12036. /* confdefs.h. */
  12037. _ACEOF
  12038. cat confdefs.h >>conftest.$ac_ext
  12039. cat >>conftest.$ac_ext <<_ACEOF
  12040. /* end confdefs.h. */
  12041. #include <pthread.h>
  12042. int
  12043. main ()
  12044. {
  12045. if (sizeof (pthread_rwlock_t))
  12046. return 0;
  12047. ;
  12048. return 0;
  12049. }
  12050. _ACEOF
  12051. rm -f conftest.$ac_objext
  12052. if { (ac_try="$ac_compile"
  12053. case "(($ac_try" in
  12054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12055. *) ac_try_echo=$ac_try;;
  12056. esac
  12057. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12058. $as_echo "$ac_try_echo") >&5
  12059. (eval "$ac_compile") 2>conftest.er1
  12060. ac_status=$?
  12061. grep -v '^ *+' conftest.er1 >conftest.err
  12062. rm -f conftest.er1
  12063. cat conftest.err >&5
  12064. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12065. (exit $ac_status); } && {
  12066. test -z "$ac_cxx_werror_flag" ||
  12067. test ! -s conftest.err
  12068. } && test -s conftest.$ac_objext; then
  12069. cat >conftest.$ac_ext <<_ACEOF
  12070. /* confdefs.h. */
  12071. _ACEOF
  12072. cat confdefs.h >>conftest.$ac_ext
  12073. cat >>conftest.$ac_ext <<_ACEOF
  12074. /* end confdefs.h. */
  12075. #include <pthread.h>
  12076. int
  12077. main ()
  12078. {
  12079. if (sizeof ((pthread_rwlock_t)))
  12080. return 0;
  12081. ;
  12082. return 0;
  12083. }
  12084. _ACEOF
  12085. rm -f conftest.$ac_objext
  12086. if { (ac_try="$ac_compile"
  12087. case "(($ac_try" in
  12088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12089. *) ac_try_echo=$ac_try;;
  12090. esac
  12091. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12092. $as_echo "$ac_try_echo") >&5
  12093. (eval "$ac_compile") 2>conftest.er1
  12094. ac_status=$?
  12095. grep -v '^ *+' conftest.er1 >conftest.err
  12096. rm -f conftest.er1
  12097. cat conftest.err >&5
  12098. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12099. (exit $ac_status); } && {
  12100. test -z "$ac_cxx_werror_flag" ||
  12101. test ! -s conftest.err
  12102. } && test -s conftest.$ac_objext; then
  12103. :
  12104. else
  12105. $as_echo "$as_me: failed program was:" >&5
  12106. sed 's/^/| /' conftest.$ac_ext >&5
  12107. ac_cv_type_pthread_rwlock_t=yes
  12108. fi
  12109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12110. else
  12111. $as_echo "$as_me: failed program was:" >&5
  12112. sed 's/^/| /' conftest.$ac_ext >&5
  12113. fi
  12114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12115. fi
  12116. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  12117. $as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
  12118. if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
  12119. cat >>confdefs.h <<\_ACEOF
  12120. #define HAVE_PTHREAD_RWLOCK 1
  12121. _ACEOF
  12122. fi
  12123. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  12124. cat >conftest.$ac_ext <<_ACEOF
  12125. /* confdefs.h. */
  12126. _ACEOF
  12127. cat confdefs.h >>conftest.$ac_ext
  12128. cat >>conftest.$ac_ext <<_ACEOF
  12129. /* end confdefs.h. */
  12130. #include <pthread.h>
  12131. int
  12132. main ()
  12133. {
  12134. #if __FreeBSD__ == 4
  12135. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  12136. #else
  12137. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  12138. return !x;
  12139. #endif
  12140. ;
  12141. return 0;
  12142. }
  12143. _ACEOF
  12144. rm -f conftest.$ac_objext
  12145. if { (ac_try="$ac_compile"
  12146. case "(($ac_try" in
  12147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12148. *) ac_try_echo=$ac_try;;
  12149. esac
  12150. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12151. $as_echo "$ac_try_echo") >&5
  12152. (eval "$ac_compile") 2>conftest.er1
  12153. ac_status=$?
  12154. grep -v '^ *+' conftest.er1 >conftest.err
  12155. rm -f conftest.er1
  12156. cat conftest.err >&5
  12157. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12158. (exit $ac_status); } && {
  12159. test -z "$ac_cxx_werror_flag" ||
  12160. test ! -s conftest.err
  12161. } && test -s conftest.$ac_objext; then
  12162. cat >>confdefs.h <<\_ACEOF
  12163. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  12164. _ACEOF
  12165. else
  12166. $as_echo "$as_me: failed program was:" >&5
  12167. sed 's/^/| /' conftest.$ac_ext >&5
  12168. fi
  12169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12170. fi
  12171. fi
  12172. fi
  12173. if test -z "$gl_have_pthread"; then
  12174. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  12175. gl_have_solaristhread=
  12176. gl_save_LIBS="$LIBS"
  12177. LIBS="$LIBS -lthread"
  12178. cat >conftest.$ac_ext <<_ACEOF
  12179. /* confdefs.h. */
  12180. _ACEOF
  12181. cat confdefs.h >>conftest.$ac_ext
  12182. cat >>conftest.$ac_ext <<_ACEOF
  12183. /* end confdefs.h. */
  12184. #include <thread.h>
  12185. #include <synch.h>
  12186. int
  12187. main ()
  12188. {
  12189. thr_self();
  12190. ;
  12191. return 0;
  12192. }
  12193. _ACEOF
  12194. rm -f conftest.$ac_objext conftest$ac_exeext
  12195. if { (ac_try="$ac_link"
  12196. case "(($ac_try" in
  12197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12198. *) ac_try_echo=$ac_try;;
  12199. esac
  12200. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12201. $as_echo "$ac_try_echo") >&5
  12202. (eval "$ac_link") 2>conftest.er1
  12203. ac_status=$?
  12204. grep -v '^ *+' conftest.er1 >conftest.err
  12205. rm -f conftest.er1
  12206. cat conftest.err >&5
  12207. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12208. (exit $ac_status); } && {
  12209. test -z "$ac_cxx_werror_flag" ||
  12210. test ! -s conftest.err
  12211. } && test -s conftest$ac_exeext && {
  12212. test "$cross_compiling" = yes ||
  12213. $as_test_x conftest$ac_exeext
  12214. }; then
  12215. gl_have_solaristhread=yes
  12216. else
  12217. $as_echo "$as_me: failed program was:" >&5
  12218. sed 's/^/| /' conftest.$ac_ext >&5
  12219. fi
  12220. rm -rf conftest.dSYM
  12221. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12222. conftest$ac_exeext conftest.$ac_ext
  12223. LIBS="$gl_save_LIBS"
  12224. if test -n "$gl_have_solaristhread"; then
  12225. gl_threads_api=solaris
  12226. LIBTHREAD=-lthread
  12227. LTLIBTHREAD=-lthread
  12228. LIBMULTITHREAD="$LIBTHREAD"
  12229. LTLIBMULTITHREAD="$LTLIBTHREAD"
  12230. cat >>confdefs.h <<\_ACEOF
  12231. #define USE_SOLARIS_THREADS 1
  12232. _ACEOF
  12233. if test $gl_have_weak = yes; then
  12234. cat >>confdefs.h <<\_ACEOF
  12235. #define USE_SOLARIS_THREADS_WEAK 1
  12236. _ACEOF
  12237. LIBTHREAD=
  12238. LTLIBTHREAD=
  12239. fi
  12240. fi
  12241. fi
  12242. fi
  12243. if test "$gl_use_threads" = pth; then
  12244. gl_save_CPPFLAGS="$CPPFLAGS"
  12245. { $as_echo "$as_me:$LINENO: checking how to link with libpth" >&5
  12246. $as_echo_n "checking how to link with libpth... " >&6; }
  12247. if test "${ac_cv_libpth_libs+set}" = set; then
  12248. $as_echo_n "(cached) " >&6
  12249. else
  12250. use_additional=yes
  12251. acl_save_prefix="$prefix"
  12252. prefix="$acl_final_prefix"
  12253. acl_save_exec_prefix="$exec_prefix"
  12254. exec_prefix="$acl_final_exec_prefix"
  12255. eval additional_includedir=\"$includedir\"
  12256. eval additional_libdir=\"$libdir\"
  12257. exec_prefix="$acl_save_exec_prefix"
  12258. prefix="$acl_save_prefix"
  12259. # Check whether --with-libpth-prefix was given.
  12260. if test "${with_libpth_prefix+set}" = set; then
  12261. withval=$with_libpth_prefix;
  12262. if test "X$withval" = "Xno"; then
  12263. use_additional=no
  12264. else
  12265. if test "X$withval" = "X"; then
  12266. acl_save_prefix="$prefix"
  12267. prefix="$acl_final_prefix"
  12268. acl_save_exec_prefix="$exec_prefix"
  12269. exec_prefix="$acl_final_exec_prefix"
  12270. eval additional_includedir=\"$includedir\"
  12271. eval additional_libdir=\"$libdir\"
  12272. exec_prefix="$acl_save_exec_prefix"
  12273. prefix="$acl_save_prefix"
  12274. else
  12275. additional_includedir="$withval/include"
  12276. additional_libdir="$withval/$acl_libdirstem"
  12277. fi
  12278. fi
  12279. fi
  12280. LIBPTH=
  12281. LTLIBPTH=
  12282. INCPTH=
  12283. LIBPTH_PREFIX=
  12284. rpathdirs=
  12285. ltrpathdirs=
  12286. names_already_handled=
  12287. names_next_round='pth '
  12288. while test -n "$names_next_round"; do
  12289. names_this_round="$names_next_round"
  12290. names_next_round=
  12291. for name in $names_this_round; do
  12292. already_handled=
  12293. for n in $names_already_handled; do
  12294. if test "$n" = "$name"; then
  12295. already_handled=yes
  12296. break
  12297. fi
  12298. done
  12299. if test -z "$already_handled"; then
  12300. names_already_handled="$names_already_handled $name"
  12301. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  12302. eval value=\"\$HAVE_LIB$uppername\"
  12303. if test -n "$value"; then
  12304. if test "$value" = yes; then
  12305. eval value=\"\$LIB$uppername\"
  12306. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  12307. eval value=\"\$LTLIB$uppername\"
  12308. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  12309. else
  12310. :
  12311. fi
  12312. else
  12313. found_dir=
  12314. found_la=
  12315. found_so=
  12316. found_a=
  12317. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  12318. if test -n "$acl_shlibext"; then
  12319. shrext=".$acl_shlibext" # typically: shrext=.so
  12320. else
  12321. shrext=
  12322. fi
  12323. if test $use_additional = yes; then
  12324. dir="$additional_libdir"
  12325. if test -n "$acl_shlibext"; then
  12326. if test -f "$dir/$libname$shrext"; then
  12327. found_dir="$dir"
  12328. found_so="$dir/$libname$shrext"
  12329. else
  12330. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12331. ver=`(cd "$dir" && \
  12332. for f in "$libname$shrext".*; do echo "$f"; done \
  12333. | sed -e "s,^$libname$shrext\\\\.,," \
  12334. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12335. | sed 1q ) 2>/dev/null`
  12336. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12337. found_dir="$dir"
  12338. found_so="$dir/$libname$shrext.$ver"
  12339. fi
  12340. else
  12341. eval library_names=\"$acl_library_names_spec\"
  12342. for f in $library_names; do
  12343. if test -f "$dir/$f"; then
  12344. found_dir="$dir"
  12345. found_so="$dir/$f"
  12346. break
  12347. fi
  12348. done
  12349. fi
  12350. fi
  12351. fi
  12352. if test "X$found_dir" = "X"; then
  12353. if test -f "$dir/$libname.$acl_libext"; then
  12354. found_dir="$dir"
  12355. found_a="$dir/$libname.$acl_libext"
  12356. fi
  12357. fi
  12358. if test "X$found_dir" != "X"; then
  12359. if test -f "$dir/$libname.la"; then
  12360. found_la="$dir/$libname.la"
  12361. fi
  12362. fi
  12363. fi
  12364. if test "X$found_dir" = "X"; then
  12365. for x in $LDFLAGS $LTLIBPTH; do
  12366. acl_save_prefix="$prefix"
  12367. prefix="$acl_final_prefix"
  12368. acl_save_exec_prefix="$exec_prefix"
  12369. exec_prefix="$acl_final_exec_prefix"
  12370. eval x=\"$x\"
  12371. exec_prefix="$acl_save_exec_prefix"
  12372. prefix="$acl_save_prefix"
  12373. case "$x" in
  12374. -L*)
  12375. dir=`echo "X$x" | sed -e 's/^X-L//'`
  12376. if test -n "$acl_shlibext"; then
  12377. if test -f "$dir/$libname$shrext"; then
  12378. found_dir="$dir"
  12379. found_so="$dir/$libname$shrext"
  12380. else
  12381. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12382. ver=`(cd "$dir" && \
  12383. for f in "$libname$shrext".*; do echo "$f"; done \
  12384. | sed -e "s,^$libname$shrext\\\\.,," \
  12385. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12386. | sed 1q ) 2>/dev/null`
  12387. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12388. found_dir="$dir"
  12389. found_so="$dir/$libname$shrext.$ver"
  12390. fi
  12391. else
  12392. eval library_names=\"$acl_library_names_spec\"
  12393. for f in $library_names; do
  12394. if test -f "$dir/$f"; then
  12395. found_dir="$dir"
  12396. found_so="$dir/$f"
  12397. break
  12398. fi
  12399. done
  12400. fi
  12401. fi
  12402. fi
  12403. if test "X$found_dir" = "X"; then
  12404. if test -f "$dir/$libname.$acl_libext"; then
  12405. found_dir="$dir"
  12406. found_a="$dir/$libname.$acl_libext"
  12407. fi
  12408. fi
  12409. if test "X$found_dir" != "X"; then
  12410. if test -f "$dir/$libname.la"; then
  12411. found_la="$dir/$libname.la"
  12412. fi
  12413. fi
  12414. ;;
  12415. esac
  12416. if test "X$found_dir" != "X"; then
  12417. break
  12418. fi
  12419. done
  12420. fi
  12421. if test "X$found_dir" != "X"; then
  12422. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  12423. if test "X$found_so" != "X"; then
  12424. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  12425. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12426. else
  12427. haveit=
  12428. for x in $ltrpathdirs; do
  12429. if test "X$x" = "X$found_dir"; then
  12430. haveit=yes
  12431. break
  12432. fi
  12433. done
  12434. if test -z "$haveit"; then
  12435. ltrpathdirs="$ltrpathdirs $found_dir"
  12436. fi
  12437. if test "$acl_hardcode_direct" = yes; then
  12438. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12439. else
  12440. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  12441. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12442. haveit=
  12443. for x in $rpathdirs; do
  12444. if test "X$x" = "X$found_dir"; then
  12445. haveit=yes
  12446. break
  12447. fi
  12448. done
  12449. if test -z "$haveit"; then
  12450. rpathdirs="$rpathdirs $found_dir"
  12451. fi
  12452. else
  12453. haveit=
  12454. for x in $LDFLAGS $LIBPTH; do
  12455. acl_save_prefix="$prefix"
  12456. prefix="$acl_final_prefix"
  12457. acl_save_exec_prefix="$exec_prefix"
  12458. exec_prefix="$acl_final_exec_prefix"
  12459. eval x=\"$x\"
  12460. exec_prefix="$acl_save_exec_prefix"
  12461. prefix="$acl_save_prefix"
  12462. if test "X$x" = "X-L$found_dir"; then
  12463. haveit=yes
  12464. break
  12465. fi
  12466. done
  12467. if test -z "$haveit"; then
  12468. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  12469. fi
  12470. if test "$acl_hardcode_minus_L" != no; then
  12471. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12472. else
  12473. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  12474. fi
  12475. fi
  12476. fi
  12477. fi
  12478. else
  12479. if test "X$found_a" != "X"; then
  12480. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  12481. else
  12482. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  12483. fi
  12484. fi
  12485. additional_includedir=
  12486. case "$found_dir" in
  12487. */$acl_libdirstem | */$acl_libdirstem/)
  12488. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  12489. LIBPTH_PREFIX="$basedir"
  12490. additional_includedir="$basedir/include"
  12491. ;;
  12492. esac
  12493. if test "X$additional_includedir" != "X"; then
  12494. if test "X$additional_includedir" != "X/usr/include"; then
  12495. haveit=
  12496. if test "X$additional_includedir" = "X/usr/local/include"; then
  12497. if test -n "$GCC"; then
  12498. case $host_os in
  12499. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12500. esac
  12501. fi
  12502. fi
  12503. if test -z "$haveit"; then
  12504. for x in $CPPFLAGS $INCPTH; do
  12505. acl_save_prefix="$prefix"
  12506. prefix="$acl_final_prefix"
  12507. acl_save_exec_prefix="$exec_prefix"
  12508. exec_prefix="$acl_final_exec_prefix"
  12509. eval x=\"$x\"
  12510. exec_prefix="$acl_save_exec_prefix"
  12511. prefix="$acl_save_prefix"
  12512. if test "X$x" = "X-I$additional_includedir"; then
  12513. haveit=yes
  12514. break
  12515. fi
  12516. done
  12517. if test -z "$haveit"; then
  12518. if test -d "$additional_includedir"; then
  12519. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  12520. fi
  12521. fi
  12522. fi
  12523. fi
  12524. fi
  12525. if test -n "$found_la"; then
  12526. save_libdir="$libdir"
  12527. case "$found_la" in
  12528. */* | *\\*) . "$found_la" ;;
  12529. *) . "./$found_la" ;;
  12530. esac
  12531. libdir="$save_libdir"
  12532. for dep in $dependency_libs; do
  12533. case "$dep" in
  12534. -L*)
  12535. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  12536. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  12537. haveit=
  12538. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  12539. if test -n "$GCC"; then
  12540. case $host_os in
  12541. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12542. esac
  12543. fi
  12544. fi
  12545. if test -z "$haveit"; then
  12546. haveit=
  12547. for x in $LDFLAGS $LIBPTH; do
  12548. acl_save_prefix="$prefix"
  12549. prefix="$acl_final_prefix"
  12550. acl_save_exec_prefix="$exec_prefix"
  12551. exec_prefix="$acl_final_exec_prefix"
  12552. eval x=\"$x\"
  12553. exec_prefix="$acl_save_exec_prefix"
  12554. prefix="$acl_save_prefix"
  12555. if test "X$x" = "X-L$additional_libdir"; then
  12556. haveit=yes
  12557. break
  12558. fi
  12559. done
  12560. if test -z "$haveit"; then
  12561. if test -d "$additional_libdir"; then
  12562. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  12563. fi
  12564. fi
  12565. haveit=
  12566. for x in $LDFLAGS $LTLIBPTH; do
  12567. acl_save_prefix="$prefix"
  12568. prefix="$acl_final_prefix"
  12569. acl_save_exec_prefix="$exec_prefix"
  12570. exec_prefix="$acl_final_exec_prefix"
  12571. eval x=\"$x\"
  12572. exec_prefix="$acl_save_exec_prefix"
  12573. prefix="$acl_save_prefix"
  12574. if test "X$x" = "X-L$additional_libdir"; then
  12575. haveit=yes
  12576. break
  12577. fi
  12578. done
  12579. if test -z "$haveit"; then
  12580. if test -d "$additional_libdir"; then
  12581. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  12582. fi
  12583. fi
  12584. fi
  12585. fi
  12586. ;;
  12587. -R*)
  12588. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  12589. if test "$enable_rpath" != no; then
  12590. haveit=
  12591. for x in $rpathdirs; do
  12592. if test "X$x" = "X$dir"; then
  12593. haveit=yes
  12594. break
  12595. fi
  12596. done
  12597. if test -z "$haveit"; then
  12598. rpathdirs="$rpathdirs $dir"
  12599. fi
  12600. haveit=
  12601. for x in $ltrpathdirs; do
  12602. if test "X$x" = "X$dir"; then
  12603. haveit=yes
  12604. break
  12605. fi
  12606. done
  12607. if test -z "$haveit"; then
  12608. ltrpathdirs="$ltrpathdirs $dir"
  12609. fi
  12610. fi
  12611. ;;
  12612. -l*)
  12613. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  12614. ;;
  12615. *.la)
  12616. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  12617. ;;
  12618. *)
  12619. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  12620. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  12621. ;;
  12622. esac
  12623. done
  12624. fi
  12625. else
  12626. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  12627. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  12628. fi
  12629. fi
  12630. fi
  12631. done
  12632. done
  12633. if test "X$rpathdirs" != "X"; then
  12634. if test -n "$acl_hardcode_libdir_separator"; then
  12635. alldirs=
  12636. for found_dir in $rpathdirs; do
  12637. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  12638. done
  12639. acl_save_libdir="$libdir"
  12640. libdir="$alldirs"
  12641. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12642. libdir="$acl_save_libdir"
  12643. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  12644. else
  12645. for found_dir in $rpathdirs; do
  12646. acl_save_libdir="$libdir"
  12647. libdir="$found_dir"
  12648. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12649. libdir="$acl_save_libdir"
  12650. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  12651. done
  12652. fi
  12653. fi
  12654. if test "X$ltrpathdirs" != "X"; then
  12655. for found_dir in $ltrpathdirs; do
  12656. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  12657. done
  12658. fi
  12659. ac_cv_libpth_libs="$LIBPTH"
  12660. ac_cv_libpth_ltlibs="$LTLIBPTH"
  12661. ac_cv_libpth_cppflags="$INCPTH"
  12662. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  12663. fi
  12664. { $as_echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  12665. $as_echo "$ac_cv_libpth_libs" >&6; }
  12666. LIBPTH="$ac_cv_libpth_libs"
  12667. LTLIBPTH="$ac_cv_libpth_ltlibs"
  12668. INCPTH="$ac_cv_libpth_cppflags"
  12669. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  12670. for element in $INCPTH; do
  12671. haveit=
  12672. for x in $CPPFLAGS; do
  12673. acl_save_prefix="$prefix"
  12674. prefix="$acl_final_prefix"
  12675. acl_save_exec_prefix="$exec_prefix"
  12676. exec_prefix="$acl_final_exec_prefix"
  12677. eval x=\"$x\"
  12678. exec_prefix="$acl_save_exec_prefix"
  12679. prefix="$acl_save_prefix"
  12680. if test "X$x" = "X$element"; then
  12681. haveit=yes
  12682. break
  12683. fi
  12684. done
  12685. if test -z "$haveit"; then
  12686. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12687. fi
  12688. done
  12689. HAVE_LIBPTH=yes
  12690. gl_have_pth=
  12691. gl_save_LIBS="$LIBS"
  12692. LIBS="$LIBS -lpth"
  12693. cat >conftest.$ac_ext <<_ACEOF
  12694. /* confdefs.h. */
  12695. _ACEOF
  12696. cat confdefs.h >>conftest.$ac_ext
  12697. cat >>conftest.$ac_ext <<_ACEOF
  12698. /* end confdefs.h. */
  12699. #include <pth.h>
  12700. int
  12701. main ()
  12702. {
  12703. pth_self();
  12704. ;
  12705. return 0;
  12706. }
  12707. _ACEOF
  12708. rm -f conftest.$ac_objext conftest$ac_exeext
  12709. if { (ac_try="$ac_link"
  12710. case "(($ac_try" in
  12711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12712. *) ac_try_echo=$ac_try;;
  12713. esac
  12714. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12715. $as_echo "$ac_try_echo") >&5
  12716. (eval "$ac_link") 2>conftest.er1
  12717. ac_status=$?
  12718. grep -v '^ *+' conftest.er1 >conftest.err
  12719. rm -f conftest.er1
  12720. cat conftest.err >&5
  12721. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12722. (exit $ac_status); } && {
  12723. test -z "$ac_cxx_werror_flag" ||
  12724. test ! -s conftest.err
  12725. } && test -s conftest$ac_exeext && {
  12726. test "$cross_compiling" = yes ||
  12727. $as_test_x conftest$ac_exeext
  12728. }; then
  12729. gl_have_pth=yes
  12730. else
  12731. $as_echo "$as_me: failed program was:" >&5
  12732. sed 's/^/| /' conftest.$ac_ext >&5
  12733. fi
  12734. rm -rf conftest.dSYM
  12735. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12736. conftest$ac_exeext conftest.$ac_ext
  12737. LIBS="$gl_save_LIBS"
  12738. if test -n "$gl_have_pth"; then
  12739. gl_threads_api=pth
  12740. LIBTHREAD="$LIBPTH"
  12741. LTLIBTHREAD="$LTLIBPTH"
  12742. LIBMULTITHREAD="$LIBTHREAD"
  12743. LTLIBMULTITHREAD="$LTLIBTHREAD"
  12744. cat >>confdefs.h <<\_ACEOF
  12745. #define USE_PTH_THREADS 1
  12746. _ACEOF
  12747. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  12748. if test $gl_have_weak = yes; then
  12749. cat >>confdefs.h <<\_ACEOF
  12750. #define USE_PTH_THREADS_WEAK 1
  12751. _ACEOF
  12752. LIBTHREAD=
  12753. LTLIBTHREAD=
  12754. fi
  12755. fi
  12756. else
  12757. CPPFLAGS="$gl_save_CPPFLAGS"
  12758. fi
  12759. fi
  12760. if test -z "$gl_have_pthread"; then
  12761. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  12762. if { case "$host_os" in
  12763. mingw*) true;;
  12764. *) false;;
  12765. esac
  12766. }; then
  12767. gl_threads_api=win32
  12768. cat >>confdefs.h <<\_ACEOF
  12769. #define USE_WIN32_THREADS 1
  12770. _ACEOF
  12771. fi
  12772. fi
  12773. fi
  12774. fi
  12775. { $as_echo "$as_me:$LINENO: checking for multithread API to use" >&5
  12776. $as_echo_n "checking for multithread API to use... " >&6; }
  12777. { $as_echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  12778. $as_echo "$gl_threads_api" >&6; }
  12779. use_additional=yes
  12780. acl_save_prefix="$prefix"
  12781. prefix="$acl_final_prefix"
  12782. acl_save_exec_prefix="$exec_prefix"
  12783. exec_prefix="$acl_final_exec_prefix"
  12784. eval additional_includedir=\"$includedir\"
  12785. eval additional_libdir=\"$libdir\"
  12786. exec_prefix="$acl_save_exec_prefix"
  12787. prefix="$acl_save_prefix"
  12788. # Check whether --with-libiconv-prefix was given.
  12789. if test "${with_libiconv_prefix+set}" = set; then
  12790. withval=$with_libiconv_prefix;
  12791. if test "X$withval" = "Xno"; then
  12792. use_additional=no
  12793. else
  12794. if test "X$withval" = "X"; then
  12795. acl_save_prefix="$prefix"
  12796. prefix="$acl_final_prefix"
  12797. acl_save_exec_prefix="$exec_prefix"
  12798. exec_prefix="$acl_final_exec_prefix"
  12799. eval additional_includedir=\"$includedir\"
  12800. eval additional_libdir=\"$libdir\"
  12801. exec_prefix="$acl_save_exec_prefix"
  12802. prefix="$acl_save_prefix"
  12803. else
  12804. additional_includedir="$withval/include"
  12805. additional_libdir="$withval/$acl_libdirstem"
  12806. fi
  12807. fi
  12808. fi
  12809. LIBICONV=
  12810. LTLIBICONV=
  12811. INCICONV=
  12812. LIBICONV_PREFIX=
  12813. rpathdirs=
  12814. ltrpathdirs=
  12815. names_already_handled=
  12816. names_next_round='iconv '
  12817. while test -n "$names_next_round"; do
  12818. names_this_round="$names_next_round"
  12819. names_next_round=
  12820. for name in $names_this_round; do
  12821. already_handled=
  12822. for n in $names_already_handled; do
  12823. if test "$n" = "$name"; then
  12824. already_handled=yes
  12825. break
  12826. fi
  12827. done
  12828. if test -z "$already_handled"; then
  12829. names_already_handled="$names_already_handled $name"
  12830. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  12831. eval value=\"\$HAVE_LIB$uppername\"
  12832. if test -n "$value"; then
  12833. if test "$value" = yes; then
  12834. eval value=\"\$LIB$uppername\"
  12835. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  12836. eval value=\"\$LTLIB$uppername\"
  12837. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  12838. else
  12839. :
  12840. fi
  12841. else
  12842. found_dir=
  12843. found_la=
  12844. found_so=
  12845. found_a=
  12846. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  12847. if test -n "$acl_shlibext"; then
  12848. shrext=".$acl_shlibext" # typically: shrext=.so
  12849. else
  12850. shrext=
  12851. fi
  12852. if test $use_additional = yes; then
  12853. dir="$additional_libdir"
  12854. if test -n "$acl_shlibext"; then
  12855. if test -f "$dir/$libname$shrext"; then
  12856. found_dir="$dir"
  12857. found_so="$dir/$libname$shrext"
  12858. else
  12859. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12860. ver=`(cd "$dir" && \
  12861. for f in "$libname$shrext".*; do echo "$f"; done \
  12862. | sed -e "s,^$libname$shrext\\\\.,," \
  12863. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12864. | sed 1q ) 2>/dev/null`
  12865. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12866. found_dir="$dir"
  12867. found_so="$dir/$libname$shrext.$ver"
  12868. fi
  12869. else
  12870. eval library_names=\"$acl_library_names_spec\"
  12871. for f in $library_names; do
  12872. if test -f "$dir/$f"; then
  12873. found_dir="$dir"
  12874. found_so="$dir/$f"
  12875. break
  12876. fi
  12877. done
  12878. fi
  12879. fi
  12880. fi
  12881. if test "X$found_dir" = "X"; then
  12882. if test -f "$dir/$libname.$acl_libext"; then
  12883. found_dir="$dir"
  12884. found_a="$dir/$libname.$acl_libext"
  12885. fi
  12886. fi
  12887. if test "X$found_dir" != "X"; then
  12888. if test -f "$dir/$libname.la"; then
  12889. found_la="$dir/$libname.la"
  12890. fi
  12891. fi
  12892. fi
  12893. if test "X$found_dir" = "X"; then
  12894. for x in $LDFLAGS $LTLIBICONV; do
  12895. acl_save_prefix="$prefix"
  12896. prefix="$acl_final_prefix"
  12897. acl_save_exec_prefix="$exec_prefix"
  12898. exec_prefix="$acl_final_exec_prefix"
  12899. eval x=\"$x\"
  12900. exec_prefix="$acl_save_exec_prefix"
  12901. prefix="$acl_save_prefix"
  12902. case "$x" in
  12903. -L*)
  12904. dir=`echo "X$x" | sed -e 's/^X-L//'`
  12905. if test -n "$acl_shlibext"; then
  12906. if test -f "$dir/$libname$shrext"; then
  12907. found_dir="$dir"
  12908. found_so="$dir/$libname$shrext"
  12909. else
  12910. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12911. ver=`(cd "$dir" && \
  12912. for f in "$libname$shrext".*; do echo "$f"; done \
  12913. | sed -e "s,^$libname$shrext\\\\.,," \
  12914. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12915. | sed 1q ) 2>/dev/null`
  12916. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12917. found_dir="$dir"
  12918. found_so="$dir/$libname$shrext.$ver"
  12919. fi
  12920. else
  12921. eval library_names=\"$acl_library_names_spec\"
  12922. for f in $library_names; do
  12923. if test -f "$dir/$f"; then
  12924. found_dir="$dir"
  12925. found_so="$dir/$f"
  12926. break
  12927. fi
  12928. done
  12929. fi
  12930. fi
  12931. fi
  12932. if test "X$found_dir" = "X"; then
  12933. if test -f "$dir/$libname.$acl_libext"; then
  12934. found_dir="$dir"
  12935. found_a="$dir/$libname.$acl_libext"
  12936. fi
  12937. fi
  12938. if test "X$found_dir" != "X"; then
  12939. if test -f "$dir/$libname.la"; then
  12940. found_la="$dir/$libname.la"
  12941. fi
  12942. fi
  12943. ;;
  12944. esac
  12945. if test "X$found_dir" != "X"; then
  12946. break
  12947. fi
  12948. done
  12949. fi
  12950. if test "X$found_dir" != "X"; then
  12951. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  12952. if test "X$found_so" != "X"; then
  12953. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  12954. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12955. else
  12956. haveit=
  12957. for x in $ltrpathdirs; do
  12958. if test "X$x" = "X$found_dir"; then
  12959. haveit=yes
  12960. break
  12961. fi
  12962. done
  12963. if test -z "$haveit"; then
  12964. ltrpathdirs="$ltrpathdirs $found_dir"
  12965. fi
  12966. if test "$acl_hardcode_direct" = yes; then
  12967. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12968. else
  12969. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  12970. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12971. haveit=
  12972. for x in $rpathdirs; do
  12973. if test "X$x" = "X$found_dir"; then
  12974. haveit=yes
  12975. break
  12976. fi
  12977. done
  12978. if test -z "$haveit"; then
  12979. rpathdirs="$rpathdirs $found_dir"
  12980. fi
  12981. else
  12982. haveit=
  12983. for x in $LDFLAGS $LIBICONV; do
  12984. acl_save_prefix="$prefix"
  12985. prefix="$acl_final_prefix"
  12986. acl_save_exec_prefix="$exec_prefix"
  12987. exec_prefix="$acl_final_exec_prefix"
  12988. eval x=\"$x\"
  12989. exec_prefix="$acl_save_exec_prefix"
  12990. prefix="$acl_save_prefix"
  12991. if test "X$x" = "X-L$found_dir"; then
  12992. haveit=yes
  12993. break
  12994. fi
  12995. done
  12996. if test -z "$haveit"; then
  12997. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  12998. fi
  12999. if test "$acl_hardcode_minus_L" != no; then
  13000. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13001. else
  13002. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  13003. fi
  13004. fi
  13005. fi
  13006. fi
  13007. else
  13008. if test "X$found_a" != "X"; then
  13009. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  13010. else
  13011. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  13012. fi
  13013. fi
  13014. additional_includedir=
  13015. case "$found_dir" in
  13016. */$acl_libdirstem | */$acl_libdirstem/)
  13017. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  13018. LIBICONV_PREFIX="$basedir"
  13019. additional_includedir="$basedir/include"
  13020. ;;
  13021. esac
  13022. if test "X$additional_includedir" != "X"; then
  13023. if test "X$additional_includedir" != "X/usr/include"; then
  13024. haveit=
  13025. if test "X$additional_includedir" = "X/usr/local/include"; then
  13026. if test -n "$GCC"; then
  13027. case $host_os in
  13028. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13029. esac
  13030. fi
  13031. fi
  13032. if test -z "$haveit"; then
  13033. for x in $CPPFLAGS $INCICONV; do
  13034. acl_save_prefix="$prefix"
  13035. prefix="$acl_final_prefix"
  13036. acl_save_exec_prefix="$exec_prefix"
  13037. exec_prefix="$acl_final_exec_prefix"
  13038. eval x=\"$x\"
  13039. exec_prefix="$acl_save_exec_prefix"
  13040. prefix="$acl_save_prefix"
  13041. if test "X$x" = "X-I$additional_includedir"; then
  13042. haveit=yes
  13043. break
  13044. fi
  13045. done
  13046. if test -z "$haveit"; then
  13047. if test -d "$additional_includedir"; then
  13048. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  13049. fi
  13050. fi
  13051. fi
  13052. fi
  13053. fi
  13054. if test -n "$found_la"; then
  13055. save_libdir="$libdir"
  13056. case "$found_la" in
  13057. */* | *\\*) . "$found_la" ;;
  13058. *) . "./$found_la" ;;
  13059. esac
  13060. libdir="$save_libdir"
  13061. for dep in $dependency_libs; do
  13062. case "$dep" in
  13063. -L*)
  13064. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  13065. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  13066. haveit=
  13067. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  13068. if test -n "$GCC"; then
  13069. case $host_os in
  13070. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13071. esac
  13072. fi
  13073. fi
  13074. if test -z "$haveit"; then
  13075. haveit=
  13076. for x in $LDFLAGS $LIBICONV; do
  13077. acl_save_prefix="$prefix"
  13078. prefix="$acl_final_prefix"
  13079. acl_save_exec_prefix="$exec_prefix"
  13080. exec_prefix="$acl_final_exec_prefix"
  13081. eval x=\"$x\"
  13082. exec_prefix="$acl_save_exec_prefix"
  13083. prefix="$acl_save_prefix"
  13084. if test "X$x" = "X-L$additional_libdir"; then
  13085. haveit=yes
  13086. break
  13087. fi
  13088. done
  13089. if test -z "$haveit"; then
  13090. if test -d "$additional_libdir"; then
  13091. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  13092. fi
  13093. fi
  13094. haveit=
  13095. for x in $LDFLAGS $LTLIBICONV; do
  13096. acl_save_prefix="$prefix"
  13097. prefix="$acl_final_prefix"
  13098. acl_save_exec_prefix="$exec_prefix"
  13099. exec_prefix="$acl_final_exec_prefix"
  13100. eval x=\"$x\"
  13101. exec_prefix="$acl_save_exec_prefix"
  13102. prefix="$acl_save_prefix"
  13103. if test "X$x" = "X-L$additional_libdir"; then
  13104. haveit=yes
  13105. break
  13106. fi
  13107. done
  13108. if test -z "$haveit"; then
  13109. if test -d "$additional_libdir"; then
  13110. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  13111. fi
  13112. fi
  13113. fi
  13114. fi
  13115. ;;
  13116. -R*)
  13117. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  13118. if test "$enable_rpath" != no; then
  13119. haveit=
  13120. for x in $rpathdirs; do
  13121. if test "X$x" = "X$dir"; then
  13122. haveit=yes
  13123. break
  13124. fi
  13125. done
  13126. if test -z "$haveit"; then
  13127. rpathdirs="$rpathdirs $dir"
  13128. fi
  13129. haveit=
  13130. for x in $ltrpathdirs; do
  13131. if test "X$x" = "X$dir"; then
  13132. haveit=yes
  13133. break
  13134. fi
  13135. done
  13136. if test -z "$haveit"; then
  13137. ltrpathdirs="$ltrpathdirs $dir"
  13138. fi
  13139. fi
  13140. ;;
  13141. -l*)
  13142. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  13143. ;;
  13144. *.la)
  13145. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  13146. ;;
  13147. *)
  13148. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  13149. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  13150. ;;
  13151. esac
  13152. done
  13153. fi
  13154. else
  13155. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  13156. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  13157. fi
  13158. fi
  13159. fi
  13160. done
  13161. done
  13162. if test "X$rpathdirs" != "X"; then
  13163. if test -n "$acl_hardcode_libdir_separator"; then
  13164. alldirs=
  13165. for found_dir in $rpathdirs; do
  13166. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  13167. done
  13168. acl_save_libdir="$libdir"
  13169. libdir="$alldirs"
  13170. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13171. libdir="$acl_save_libdir"
  13172. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  13173. else
  13174. for found_dir in $rpathdirs; do
  13175. acl_save_libdir="$libdir"
  13176. libdir="$found_dir"
  13177. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13178. libdir="$acl_save_libdir"
  13179. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  13180. done
  13181. fi
  13182. fi
  13183. if test "X$ltrpathdirs" != "X"; then
  13184. for found_dir in $ltrpathdirs; do
  13185. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  13186. done
  13187. fi
  13188. cat >conftest.$ac_ext <<_ACEOF
  13189. /* confdefs.h. */
  13190. _ACEOF
  13191. cat confdefs.h >>conftest.$ac_ext
  13192. cat >>conftest.$ac_ext <<_ACEOF
  13193. /* end confdefs.h. */
  13194. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  13195. int
  13196. main ()
  13197. {
  13198. ;
  13199. return 0;
  13200. }
  13201. _ACEOF
  13202. rm -f conftest.$ac_objext conftest$ac_exeext
  13203. if { (ac_try="$ac_link"
  13204. case "(($ac_try" in
  13205. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13206. *) ac_try_echo=$ac_try;;
  13207. esac
  13208. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13209. $as_echo "$ac_try_echo") >&5
  13210. (eval "$ac_link") 2>conftest.er1
  13211. ac_status=$?
  13212. grep -v '^ *+' conftest.er1 >conftest.err
  13213. rm -f conftest.er1
  13214. cat conftest.err >&5
  13215. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13216. (exit $ac_status); } && {
  13217. test -z "$ac_cxx_werror_flag" ||
  13218. test ! -s conftest.err
  13219. } && test -s conftest$ac_exeext && {
  13220. test "$cross_compiling" = yes ||
  13221. $as_test_x conftest$ac_exeext
  13222. }; then
  13223. cat >>confdefs.h <<\_ACEOF
  13224. #define HAVE_BUILTIN_EXPECT 1
  13225. _ACEOF
  13226. else
  13227. $as_echo "$as_me: failed program was:" >&5
  13228. sed 's/^/| /' conftest.$ac_ext >&5
  13229. fi
  13230. rm -rf conftest.dSYM
  13231. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13232. conftest$ac_exeext conftest.$ac_ext
  13233. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  13234. do
  13235. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13236. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13237. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  13238. $as_echo_n "checking for $ac_header... " >&6; }
  13239. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13240. $as_echo_n "(cached) " >&6
  13241. fi
  13242. ac_res=`eval 'as_val=${'$as_ac_Header'}
  13243. $as_echo "$as_val"'`
  13244. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13245. $as_echo "$ac_res" >&6; }
  13246. else
  13247. # Is the header compilable?
  13248. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13249. $as_echo_n "checking $ac_header usability... " >&6; }
  13250. cat >conftest.$ac_ext <<_ACEOF
  13251. /* confdefs.h. */
  13252. _ACEOF
  13253. cat confdefs.h >>conftest.$ac_ext
  13254. cat >>conftest.$ac_ext <<_ACEOF
  13255. /* end confdefs.h. */
  13256. $ac_includes_default
  13257. #include <$ac_header>
  13258. _ACEOF
  13259. rm -f conftest.$ac_objext
  13260. if { (ac_try="$ac_compile"
  13261. case "(($ac_try" in
  13262. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13263. *) ac_try_echo=$ac_try;;
  13264. esac
  13265. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13266. $as_echo "$ac_try_echo") >&5
  13267. (eval "$ac_compile") 2>conftest.er1
  13268. ac_status=$?
  13269. grep -v '^ *+' conftest.er1 >conftest.err
  13270. rm -f conftest.er1
  13271. cat conftest.err >&5
  13272. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13273. (exit $ac_status); } && {
  13274. test -z "$ac_cxx_werror_flag" ||
  13275. test ! -s conftest.err
  13276. } && test -s conftest.$ac_objext; then
  13277. ac_header_compiler=yes
  13278. else
  13279. $as_echo "$as_me: failed program was:" >&5
  13280. sed 's/^/| /' conftest.$ac_ext >&5
  13281. ac_header_compiler=no
  13282. fi
  13283. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13284. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13285. $as_echo "$ac_header_compiler" >&6; }
  13286. # Is the header present?
  13287. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13288. $as_echo_n "checking $ac_header presence... " >&6; }
  13289. cat >conftest.$ac_ext <<_ACEOF
  13290. /* confdefs.h. */
  13291. _ACEOF
  13292. cat confdefs.h >>conftest.$ac_ext
  13293. cat >>conftest.$ac_ext <<_ACEOF
  13294. /* end confdefs.h. */
  13295. #include <$ac_header>
  13296. _ACEOF
  13297. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13298. case "(($ac_try" in
  13299. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13300. *) ac_try_echo=$ac_try;;
  13301. esac
  13302. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13303. $as_echo "$ac_try_echo") >&5
  13304. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13305. ac_status=$?
  13306. grep -v '^ *+' conftest.er1 >conftest.err
  13307. rm -f conftest.er1
  13308. cat conftest.err >&5
  13309. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13310. (exit $ac_status); } >/dev/null && {
  13311. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13312. test ! -s conftest.err
  13313. }; then
  13314. ac_header_preproc=yes
  13315. else
  13316. $as_echo "$as_me: failed program was:" >&5
  13317. sed 's/^/| /' conftest.$ac_ext >&5
  13318. ac_header_preproc=no
  13319. fi
  13320. rm -f conftest.err conftest.$ac_ext
  13321. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13322. $as_echo "$ac_header_preproc" >&6; }
  13323. # So? What about this header?
  13324. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13325. yes:no: )
  13326. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13327. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13328. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13329. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13330. ac_header_preproc=yes
  13331. ;;
  13332. no:yes:* )
  13333. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13334. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13335. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13336. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13337. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13338. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13339. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13340. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13341. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13342. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13343. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13344. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13345. ( cat <<\_ASBOX
  13346. ## ----------------------------------------------- ##
  13347. ## Report this to t-tujikawa@users.sourceforge.net ##
  13348. ## ----------------------------------------------- ##
  13349. _ASBOX
  13350. ) | sed "s/^/$as_me: WARNING: /" >&2
  13351. ;;
  13352. esac
  13353. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  13354. $as_echo_n "checking for $ac_header... " >&6; }
  13355. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13356. $as_echo_n "(cached) " >&6
  13357. else
  13358. eval "$as_ac_Header=\$ac_header_preproc"
  13359. fi
  13360. ac_res=`eval 'as_val=${'$as_ac_Header'}
  13361. $as_echo "$as_val"'`
  13362. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13363. $as_echo "$ac_res" >&6; }
  13364. fi
  13365. as_val=`eval 'as_val=${'$as_ac_Header'}
  13366. $as_echo "$as_val"'`
  13367. if test "x$as_val" = x""yes; then
  13368. cat >>confdefs.h <<_ACEOF
  13369. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13370. _ACEOF
  13371. fi
  13372. done
  13373. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  13374. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  13375. argz_next __fsetlocking
  13376. do
  13377. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13378. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  13379. $as_echo_n "checking for $ac_func... " >&6; }
  13380. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  13381. $as_echo_n "(cached) " >&6
  13382. else
  13383. cat >conftest.$ac_ext <<_ACEOF
  13384. /* confdefs.h. */
  13385. _ACEOF
  13386. cat confdefs.h >>conftest.$ac_ext
  13387. cat >>conftest.$ac_ext <<_ACEOF
  13388. /* end confdefs.h. */
  13389. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  13390. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  13391. #define $ac_func innocuous_$ac_func
  13392. /* System header to define __stub macros and hopefully few prototypes,
  13393. which can conflict with char $ac_func (); below.
  13394. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13395. <limits.h> exists even on freestanding compilers. */
  13396. #ifdef __STDC__
  13397. # include <limits.h>
  13398. #else
  13399. # include <assert.h>
  13400. #endif
  13401. #undef $ac_func
  13402. /* Override any GCC internal prototype to avoid an error.
  13403. Use char because int might match the return type of a GCC
  13404. builtin and then its argument prototype would still apply. */
  13405. #ifdef __cplusplus
  13406. extern "C"
  13407. #endif
  13408. char $ac_func ();
  13409. /* The GNU C library defines this for functions which it implements
  13410. to always fail with ENOSYS. Some functions are actually named
  13411. something starting with __ and the normal name is an alias. */
  13412. #if defined __stub_$ac_func || defined __stub___$ac_func
  13413. choke me
  13414. #endif
  13415. int
  13416. main ()
  13417. {
  13418. return $ac_func ();
  13419. ;
  13420. return 0;
  13421. }
  13422. _ACEOF
  13423. rm -f conftest.$ac_objext conftest$ac_exeext
  13424. if { (ac_try="$ac_link"
  13425. case "(($ac_try" in
  13426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13427. *) ac_try_echo=$ac_try;;
  13428. esac
  13429. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13430. $as_echo "$ac_try_echo") >&5
  13431. (eval "$ac_link") 2>conftest.er1
  13432. ac_status=$?
  13433. grep -v '^ *+' conftest.er1 >conftest.err
  13434. rm -f conftest.er1
  13435. cat conftest.err >&5
  13436. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13437. (exit $ac_status); } && {
  13438. test -z "$ac_cxx_werror_flag" ||
  13439. test ! -s conftest.err
  13440. } && test -s conftest$ac_exeext && {
  13441. test "$cross_compiling" = yes ||
  13442. $as_test_x conftest$ac_exeext
  13443. }; then
  13444. eval "$as_ac_var=yes"
  13445. else
  13446. $as_echo "$as_me: failed program was:" >&5
  13447. sed 's/^/| /' conftest.$ac_ext >&5
  13448. eval "$as_ac_var=no"
  13449. fi
  13450. rm -rf conftest.dSYM
  13451. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13452. conftest$ac_exeext conftest.$ac_ext
  13453. fi
  13454. ac_res=`eval 'as_val=${'$as_ac_var'}
  13455. $as_echo "$as_val"'`
  13456. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13457. $as_echo "$ac_res" >&6; }
  13458. as_val=`eval 'as_val=${'$as_ac_var'}
  13459. $as_echo "$as_val"'`
  13460. if test "x$as_val" = x""yes; then
  13461. cat >>confdefs.h <<_ACEOF
  13462. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13463. _ACEOF
  13464. fi
  13465. done
  13466. { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  13467. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  13468. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  13469. $as_echo_n "(cached) " >&6
  13470. else
  13471. cat >conftest.$ac_ext <<_ACEOF
  13472. /* confdefs.h. */
  13473. _ACEOF
  13474. cat confdefs.h >>conftest.$ac_ext
  13475. cat >>conftest.$ac_ext <<_ACEOF
  13476. /* end confdefs.h. */
  13477. #include <stdio.h>
  13478. int
  13479. main ()
  13480. {
  13481. #ifndef feof_unlocked
  13482. char *p = (char *) feof_unlocked;
  13483. #endif
  13484. ;
  13485. return 0;
  13486. }
  13487. _ACEOF
  13488. rm -f conftest.$ac_objext
  13489. if { (ac_try="$ac_compile"
  13490. case "(($ac_try" in
  13491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13492. *) ac_try_echo=$ac_try;;
  13493. esac
  13494. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13495. $as_echo "$ac_try_echo") >&5
  13496. (eval "$ac_compile") 2>conftest.er1
  13497. ac_status=$?
  13498. grep -v '^ *+' conftest.er1 >conftest.err
  13499. rm -f conftest.er1
  13500. cat conftest.err >&5
  13501. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13502. (exit $ac_status); } && {
  13503. test -z "$ac_cxx_werror_flag" ||
  13504. test ! -s conftest.err
  13505. } && test -s conftest.$ac_objext; then
  13506. ac_cv_have_decl_feof_unlocked=yes
  13507. else
  13508. $as_echo "$as_me: failed program was:" >&5
  13509. sed 's/^/| /' conftest.$ac_ext >&5
  13510. ac_cv_have_decl_feof_unlocked=no
  13511. fi
  13512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13513. fi
  13514. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  13515. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  13516. if test $ac_cv_have_decl_feof_unlocked = yes; then
  13517. gt_value=1
  13518. else
  13519. gt_value=0
  13520. fi
  13521. cat >>confdefs.h <<_ACEOF
  13522. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  13523. _ACEOF
  13524. { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  13525. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  13526. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  13527. $as_echo_n "(cached) " >&6
  13528. else
  13529. cat >conftest.$ac_ext <<_ACEOF
  13530. /* confdefs.h. */
  13531. _ACEOF
  13532. cat confdefs.h >>conftest.$ac_ext
  13533. cat >>conftest.$ac_ext <<_ACEOF
  13534. /* end confdefs.h. */
  13535. #include <stdio.h>
  13536. int
  13537. main ()
  13538. {
  13539. #ifndef fgets_unlocked
  13540. char *p = (char *) fgets_unlocked;
  13541. #endif
  13542. ;
  13543. return 0;
  13544. }
  13545. _ACEOF
  13546. rm -f conftest.$ac_objext
  13547. if { (ac_try="$ac_compile"
  13548. case "(($ac_try" in
  13549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13550. *) ac_try_echo=$ac_try;;
  13551. esac
  13552. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13553. $as_echo "$ac_try_echo") >&5
  13554. (eval "$ac_compile") 2>conftest.er1
  13555. ac_status=$?
  13556. grep -v '^ *+' conftest.er1 >conftest.err
  13557. rm -f conftest.er1
  13558. cat conftest.err >&5
  13559. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13560. (exit $ac_status); } && {
  13561. test -z "$ac_cxx_werror_flag" ||
  13562. test ! -s conftest.err
  13563. } && test -s conftest.$ac_objext; then
  13564. ac_cv_have_decl_fgets_unlocked=yes
  13565. else
  13566. $as_echo "$as_me: failed program was:" >&5
  13567. sed 's/^/| /' conftest.$ac_ext >&5
  13568. ac_cv_have_decl_fgets_unlocked=no
  13569. fi
  13570. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13571. fi
  13572. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  13573. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  13574. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  13575. gt_value=1
  13576. else
  13577. gt_value=0
  13578. fi
  13579. cat >>confdefs.h <<_ACEOF
  13580. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  13581. _ACEOF
  13582. am_save_CPPFLAGS="$CPPFLAGS"
  13583. for element in $INCICONV; do
  13584. haveit=
  13585. for x in $CPPFLAGS; do
  13586. acl_save_prefix="$prefix"
  13587. prefix="$acl_final_prefix"
  13588. acl_save_exec_prefix="$exec_prefix"
  13589. exec_prefix="$acl_final_exec_prefix"
  13590. eval x=\"$x\"
  13591. exec_prefix="$acl_save_exec_prefix"
  13592. prefix="$acl_save_prefix"
  13593. if test "X$x" = "X$element"; then
  13594. haveit=yes
  13595. break
  13596. fi
  13597. done
  13598. if test -z "$haveit"; then
  13599. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  13600. fi
  13601. done
  13602. { $as_echo "$as_me:$LINENO: checking for iconv" >&5
  13603. $as_echo_n "checking for iconv... " >&6; }
  13604. if test "${am_cv_func_iconv+set}" = set; then
  13605. $as_echo_n "(cached) " >&6
  13606. else
  13607. am_cv_func_iconv="no, consider installing GNU libiconv"
  13608. am_cv_lib_iconv=no
  13609. cat >conftest.$ac_ext <<_ACEOF
  13610. /* confdefs.h. */
  13611. _ACEOF
  13612. cat confdefs.h >>conftest.$ac_ext
  13613. cat >>conftest.$ac_ext <<_ACEOF
  13614. /* end confdefs.h. */
  13615. #include <stdlib.h>
  13616. #include <iconv.h>
  13617. int
  13618. main ()
  13619. {
  13620. iconv_t cd = iconv_open("","");
  13621. iconv(cd,NULL,NULL,NULL,NULL);
  13622. iconv_close(cd);
  13623. ;
  13624. return 0;
  13625. }
  13626. _ACEOF
  13627. rm -f conftest.$ac_objext conftest$ac_exeext
  13628. if { (ac_try="$ac_link"
  13629. case "(($ac_try" in
  13630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13631. *) ac_try_echo=$ac_try;;
  13632. esac
  13633. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13634. $as_echo "$ac_try_echo") >&5
  13635. (eval "$ac_link") 2>conftest.er1
  13636. ac_status=$?
  13637. grep -v '^ *+' conftest.er1 >conftest.err
  13638. rm -f conftest.er1
  13639. cat conftest.err >&5
  13640. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13641. (exit $ac_status); } && {
  13642. test -z "$ac_cxx_werror_flag" ||
  13643. test ! -s conftest.err
  13644. } && test -s conftest$ac_exeext && {
  13645. test "$cross_compiling" = yes ||
  13646. $as_test_x conftest$ac_exeext
  13647. }; then
  13648. am_cv_func_iconv=yes
  13649. else
  13650. $as_echo "$as_me: failed program was:" >&5
  13651. sed 's/^/| /' conftest.$ac_ext >&5
  13652. fi
  13653. rm -rf conftest.dSYM
  13654. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13655. conftest$ac_exeext conftest.$ac_ext
  13656. if test "$am_cv_func_iconv" != yes; then
  13657. am_save_LIBS="$LIBS"
  13658. LIBS="$LIBS $LIBICONV"
  13659. cat >conftest.$ac_ext <<_ACEOF
  13660. /* confdefs.h. */
  13661. _ACEOF
  13662. cat confdefs.h >>conftest.$ac_ext
  13663. cat >>conftest.$ac_ext <<_ACEOF
  13664. /* end confdefs.h. */
  13665. #include <stdlib.h>
  13666. #include <iconv.h>
  13667. int
  13668. main ()
  13669. {
  13670. iconv_t cd = iconv_open("","");
  13671. iconv(cd,NULL,NULL,NULL,NULL);
  13672. iconv_close(cd);
  13673. ;
  13674. return 0;
  13675. }
  13676. _ACEOF
  13677. rm -f conftest.$ac_objext conftest$ac_exeext
  13678. if { (ac_try="$ac_link"
  13679. case "(($ac_try" in
  13680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13681. *) ac_try_echo=$ac_try;;
  13682. esac
  13683. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13684. $as_echo "$ac_try_echo") >&5
  13685. (eval "$ac_link") 2>conftest.er1
  13686. ac_status=$?
  13687. grep -v '^ *+' conftest.er1 >conftest.err
  13688. rm -f conftest.er1
  13689. cat conftest.err >&5
  13690. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13691. (exit $ac_status); } && {
  13692. test -z "$ac_cxx_werror_flag" ||
  13693. test ! -s conftest.err
  13694. } && test -s conftest$ac_exeext && {
  13695. test "$cross_compiling" = yes ||
  13696. $as_test_x conftest$ac_exeext
  13697. }; then
  13698. am_cv_lib_iconv=yes
  13699. am_cv_func_iconv=yes
  13700. else
  13701. $as_echo "$as_me: failed program was:" >&5
  13702. sed 's/^/| /' conftest.$ac_ext >&5
  13703. fi
  13704. rm -rf conftest.dSYM
  13705. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13706. conftest$ac_exeext conftest.$ac_ext
  13707. LIBS="$am_save_LIBS"
  13708. fi
  13709. fi
  13710. { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  13711. $as_echo "$am_cv_func_iconv" >&6; }
  13712. if test "$am_cv_func_iconv" = yes; then
  13713. { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
  13714. $as_echo_n "checking for working iconv... " >&6; }
  13715. if test "${am_cv_func_iconv_works+set}" = set; then
  13716. $as_echo_n "(cached) " >&6
  13717. else
  13718. am_save_LIBS="$LIBS"
  13719. if test $am_cv_lib_iconv = yes; then
  13720. LIBS="$LIBS $LIBICONV"
  13721. fi
  13722. if test "$cross_compiling" = yes; then
  13723. case "$host_os" in
  13724. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  13725. *) am_cv_func_iconv_works="guessing yes" ;;
  13726. esac
  13727. else
  13728. cat >conftest.$ac_ext <<_ACEOF
  13729. /* confdefs.h. */
  13730. _ACEOF
  13731. cat confdefs.h >>conftest.$ac_ext
  13732. cat >>conftest.$ac_ext <<_ACEOF
  13733. /* end confdefs.h. */
  13734. #include <iconv.h>
  13735. #include <string.h>
  13736. int main ()
  13737. {
  13738. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  13739. returns. */
  13740. {
  13741. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  13742. if (cd_utf8_to_88591 != (iconv_t)(-1))
  13743. {
  13744. static const char input[] = "\342\202\254"; /* EURO SIGN */
  13745. char buf[10];
  13746. const char *inptr = input;
  13747. size_t inbytesleft = strlen (input);
  13748. char *outptr = buf;
  13749. size_t outbytesleft = sizeof (buf);
  13750. size_t res = iconv (cd_utf8_to_88591,
  13751. (char **) &inptr, &inbytesleft,
  13752. &outptr, &outbytesleft);
  13753. if (res == 0)
  13754. return 1;
  13755. }
  13756. }
  13757. #if 0 /* This bug could be worked around by the caller. */
  13758. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  13759. {
  13760. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  13761. if (cd_88591_to_utf8 != (iconv_t)(-1))
  13762. {
  13763. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  13764. char buf[50];
  13765. const char *inptr = input;
  13766. size_t inbytesleft = strlen (input);
  13767. char *outptr = buf;
  13768. size_t outbytesleft = sizeof (buf);
  13769. size_t res = iconv (cd_88591_to_utf8,
  13770. (char **) &inptr, &inbytesleft,
  13771. &outptr, &outbytesleft);
  13772. if ((int)res > 0)
  13773. return 1;
  13774. }
  13775. }
  13776. #endif
  13777. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  13778. provided. */
  13779. if (/* Try standardized names. */
  13780. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  13781. /* Try IRIX, OSF/1 names. */
  13782. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  13783. /* Try AIX names. */
  13784. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  13785. /* Try HP-UX names. */
  13786. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  13787. return 1;
  13788. return 0;
  13789. }
  13790. _ACEOF
  13791. rm -f conftest$ac_exeext
  13792. if { (ac_try="$ac_link"
  13793. case "(($ac_try" in
  13794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13795. *) ac_try_echo=$ac_try;;
  13796. esac
  13797. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13798. $as_echo "$ac_try_echo") >&5
  13799. (eval "$ac_link") 2>&5
  13800. ac_status=$?
  13801. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13802. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13803. { (case "(($ac_try" in
  13804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13805. *) ac_try_echo=$ac_try;;
  13806. esac
  13807. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13808. $as_echo "$ac_try_echo") >&5
  13809. (eval "$ac_try") 2>&5
  13810. ac_status=$?
  13811. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13812. (exit $ac_status); }; }; then
  13813. am_cv_func_iconv_works=yes
  13814. else
  13815. $as_echo "$as_me: program exited with status $ac_status" >&5
  13816. $as_echo "$as_me: failed program was:" >&5
  13817. sed 's/^/| /' conftest.$ac_ext >&5
  13818. ( exit $ac_status )
  13819. am_cv_func_iconv_works=no
  13820. fi
  13821. rm -rf conftest.dSYM
  13822. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13823. fi
  13824. LIBS="$am_save_LIBS"
  13825. fi
  13826. { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  13827. $as_echo "$am_cv_func_iconv_works" >&6; }
  13828. case "$am_cv_func_iconv_works" in
  13829. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  13830. *) am_func_iconv=yes ;;
  13831. esac
  13832. else
  13833. am_func_iconv=no am_cv_lib_iconv=no
  13834. fi
  13835. if test "$am_func_iconv" = yes; then
  13836. cat >>confdefs.h <<\_ACEOF
  13837. #define HAVE_ICONV 1
  13838. _ACEOF
  13839. fi
  13840. if test "$am_cv_lib_iconv" = yes; then
  13841. { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  13842. $as_echo_n "checking how to link with libiconv... " >&6; }
  13843. { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
  13844. $as_echo "$LIBICONV" >&6; }
  13845. else
  13846. CPPFLAGS="$am_save_CPPFLAGS"
  13847. LIBICONV=
  13848. LTLIBICONV=
  13849. fi
  13850. if test "$am_cv_func_iconv" = yes; then
  13851. { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
  13852. $as_echo_n "checking for iconv declaration... " >&6; }
  13853. if test "${am_cv_proto_iconv+set}" = set; then
  13854. $as_echo_n "(cached) " >&6
  13855. else
  13856. cat >conftest.$ac_ext <<_ACEOF
  13857. /* confdefs.h. */
  13858. _ACEOF
  13859. cat confdefs.h >>conftest.$ac_ext
  13860. cat >>conftest.$ac_ext <<_ACEOF
  13861. /* end confdefs.h. */
  13862. #include <stdlib.h>
  13863. #include <iconv.h>
  13864. extern
  13865. #ifdef __cplusplus
  13866. "C"
  13867. #endif
  13868. #if defined(__STDC__) || defined(__cplusplus)
  13869. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  13870. #else
  13871. size_t iconv();
  13872. #endif
  13873. int
  13874. main ()
  13875. {
  13876. ;
  13877. return 0;
  13878. }
  13879. _ACEOF
  13880. rm -f conftest.$ac_objext
  13881. if { (ac_try="$ac_compile"
  13882. case "(($ac_try" in
  13883. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13884. *) ac_try_echo=$ac_try;;
  13885. esac
  13886. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13887. $as_echo "$ac_try_echo") >&5
  13888. (eval "$ac_compile") 2>conftest.er1
  13889. ac_status=$?
  13890. grep -v '^ *+' conftest.er1 >conftest.err
  13891. rm -f conftest.er1
  13892. cat conftest.err >&5
  13893. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13894. (exit $ac_status); } && {
  13895. test -z "$ac_cxx_werror_flag" ||
  13896. test ! -s conftest.err
  13897. } && test -s conftest.$ac_objext; then
  13898. am_cv_proto_iconv_arg1=""
  13899. else
  13900. $as_echo "$as_me: failed program was:" >&5
  13901. sed 's/^/| /' conftest.$ac_ext >&5
  13902. am_cv_proto_iconv_arg1="const"
  13903. fi
  13904. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13905. 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);"
  13906. fi
  13907. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  13908. { $as_echo "$as_me:$LINENO: result: ${ac_t:-
  13909. }$am_cv_proto_iconv" >&5
  13910. $as_echo "${ac_t:-
  13911. }$am_cv_proto_iconv" >&6; }
  13912. cat >>confdefs.h <<_ACEOF
  13913. #define ICONV_CONST $am_cv_proto_iconv_arg1
  13914. _ACEOF
  13915. fi
  13916. { $as_echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  13917. $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
  13918. if test "${gt_cv_nl_locale_name+set}" = set; then
  13919. $as_echo_n "(cached) " >&6
  13920. else
  13921. cat >conftest.$ac_ext <<_ACEOF
  13922. /* confdefs.h. */
  13923. _ACEOF
  13924. cat confdefs.h >>conftest.$ac_ext
  13925. cat >>conftest.$ac_ext <<_ACEOF
  13926. /* end confdefs.h. */
  13927. #include <langinfo.h>
  13928. #include <locale.h>
  13929. int
  13930. main ()
  13931. {
  13932. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  13933. return !cs;
  13934. ;
  13935. return 0;
  13936. }
  13937. _ACEOF
  13938. rm -f conftest.$ac_objext conftest$ac_exeext
  13939. if { (ac_try="$ac_link"
  13940. case "(($ac_try" in
  13941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13942. *) ac_try_echo=$ac_try;;
  13943. esac
  13944. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13945. $as_echo "$ac_try_echo") >&5
  13946. (eval "$ac_link") 2>conftest.er1
  13947. ac_status=$?
  13948. grep -v '^ *+' conftest.er1 >conftest.err
  13949. rm -f conftest.er1
  13950. cat conftest.err >&5
  13951. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13952. (exit $ac_status); } && {
  13953. test -z "$ac_cxx_werror_flag" ||
  13954. test ! -s conftest.err
  13955. } && test -s conftest$ac_exeext && {
  13956. test "$cross_compiling" = yes ||
  13957. $as_test_x conftest$ac_exeext
  13958. }; then
  13959. gt_cv_nl_locale_name=yes
  13960. else
  13961. $as_echo "$as_me: failed program was:" >&5
  13962. sed 's/^/| /' conftest.$ac_ext >&5
  13963. gt_cv_nl_locale_name=no
  13964. fi
  13965. rm -rf conftest.dSYM
  13966. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13967. conftest$ac_exeext conftest.$ac_ext
  13968. fi
  13969. { $as_echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  13970. $as_echo "$gt_cv_nl_locale_name" >&6; }
  13971. if test $gt_cv_nl_locale_name = yes; then
  13972. cat >>confdefs.h <<\_ACEOF
  13973. #define HAVE_NL_LOCALE_NAME 1
  13974. _ACEOF
  13975. fi
  13976. for ac_prog in bison
  13977. do
  13978. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13979. set dummy $ac_prog; ac_word=$2
  13980. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  13981. $as_echo_n "checking for $ac_word... " >&6; }
  13982. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  13983. $as_echo_n "(cached) " >&6
  13984. else
  13985. if test -n "$INTLBISON"; then
  13986. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  13987. else
  13988. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13989. for as_dir in $PATH
  13990. do
  13991. IFS=$as_save_IFS
  13992. test -z "$as_dir" && as_dir=.
  13993. for ac_exec_ext in '' $ac_executable_extensions; do
  13994. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13995. ac_cv_prog_INTLBISON="$ac_prog"
  13996. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13997. break 2
  13998. fi
  13999. done
  14000. done
  14001. IFS=$as_save_IFS
  14002. fi
  14003. fi
  14004. INTLBISON=$ac_cv_prog_INTLBISON
  14005. if test -n "$INTLBISON"; then
  14006. { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
  14007. $as_echo "$INTLBISON" >&6; }
  14008. else
  14009. { $as_echo "$as_me:$LINENO: result: no" >&5
  14010. $as_echo "no" >&6; }
  14011. fi
  14012. test -n "$INTLBISON" && break
  14013. done
  14014. if test -z "$INTLBISON"; then
  14015. ac_verc_fail=yes
  14016. else
  14017. { $as_echo "$as_me:$LINENO: checking version of bison" >&5
  14018. $as_echo_n "checking version of bison... " >&6; }
  14019. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  14020. case $ac_prog_version in
  14021. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  14022. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  14023. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  14024. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  14025. esac
  14026. { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  14027. $as_echo "$ac_prog_version" >&6; }
  14028. fi
  14029. if test $ac_verc_fail = yes; then
  14030. INTLBISON=:
  14031. fi
  14032. { $as_echo "$as_me:$LINENO: checking for long long int" >&5
  14033. $as_echo_n "checking for long long int... " >&6; }
  14034. if test "${ac_cv_type_long_long_int+set}" = set; then
  14035. $as_echo_n "(cached) " >&6
  14036. else
  14037. cat >conftest.$ac_ext <<_ACEOF
  14038. /* confdefs.h. */
  14039. _ACEOF
  14040. cat confdefs.h >>conftest.$ac_ext
  14041. cat >>conftest.$ac_ext <<_ACEOF
  14042. /* end confdefs.h. */
  14043. /* Test preprocessor. */
  14044. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  14045. error in preprocessor;
  14046. #endif
  14047. #if ! (18446744073709551615ULL <= -1ull)
  14048. error in preprocessor;
  14049. #endif
  14050. /* Test literals. */
  14051. long long int ll = 9223372036854775807ll;
  14052. long long int nll = -9223372036854775807LL;
  14053. unsigned long long int ull = 18446744073709551615ULL;
  14054. /* Test constant expressions. */
  14055. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  14056. ? 1 : -1)];
  14057. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  14058. ? 1 : -1)];
  14059. int i = 63;
  14060. int
  14061. main ()
  14062. {
  14063. /* Test availability of runtime routines for shift and division. */
  14064. long long int llmax = 9223372036854775807ll;
  14065. unsigned long long int ullmax = 18446744073709551615ull;
  14066. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  14067. | (llmax / ll) | (llmax % ll)
  14068. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  14069. | (ullmax / ull) | (ullmax % ull));
  14070. ;
  14071. return 0;
  14072. }
  14073. _ACEOF
  14074. rm -f conftest.$ac_objext conftest$ac_exeext
  14075. if { (ac_try="$ac_link"
  14076. case "(($ac_try" in
  14077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14078. *) ac_try_echo=$ac_try;;
  14079. esac
  14080. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14081. $as_echo "$ac_try_echo") >&5
  14082. (eval "$ac_link") 2>conftest.er1
  14083. ac_status=$?
  14084. grep -v '^ *+' conftest.er1 >conftest.err
  14085. rm -f conftest.er1
  14086. cat conftest.err >&5
  14087. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14088. (exit $ac_status); } && {
  14089. test -z "$ac_cxx_werror_flag" ||
  14090. test ! -s conftest.err
  14091. } && test -s conftest$ac_exeext && {
  14092. test "$cross_compiling" = yes ||
  14093. $as_test_x conftest$ac_exeext
  14094. }; then
  14095. if test "$cross_compiling" = yes; then
  14096. ac_cv_type_long_long_int=yes
  14097. else
  14098. cat >conftest.$ac_ext <<_ACEOF
  14099. /* confdefs.h. */
  14100. _ACEOF
  14101. cat confdefs.h >>conftest.$ac_ext
  14102. cat >>conftest.$ac_ext <<_ACEOF
  14103. /* end confdefs.h. */
  14104. #include <limits.h>
  14105. #ifndef LLONG_MAX
  14106. # define HALF \
  14107. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  14108. # define LLONG_MAX (HALF - 1 + HALF)
  14109. #endif
  14110. int
  14111. main ()
  14112. {
  14113. long long int n = 1;
  14114. int i;
  14115. for (i = 0; ; i++)
  14116. {
  14117. long long int m = n << i;
  14118. if (m >> i != n)
  14119. return 1;
  14120. if (LLONG_MAX / 2 < m)
  14121. break;
  14122. }
  14123. return 0;
  14124. ;
  14125. return 0;
  14126. }
  14127. _ACEOF
  14128. rm -f conftest$ac_exeext
  14129. if { (ac_try="$ac_link"
  14130. case "(($ac_try" in
  14131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14132. *) ac_try_echo=$ac_try;;
  14133. esac
  14134. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14135. $as_echo "$ac_try_echo") >&5
  14136. (eval "$ac_link") 2>&5
  14137. ac_status=$?
  14138. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14139. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14140. { (case "(($ac_try" in
  14141. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14142. *) ac_try_echo=$ac_try;;
  14143. esac
  14144. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14145. $as_echo "$ac_try_echo") >&5
  14146. (eval "$ac_try") 2>&5
  14147. ac_status=$?
  14148. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14149. (exit $ac_status); }; }; then
  14150. ac_cv_type_long_long_int=yes
  14151. else
  14152. $as_echo "$as_me: program exited with status $ac_status" >&5
  14153. $as_echo "$as_me: failed program was:" >&5
  14154. sed 's/^/| /' conftest.$ac_ext >&5
  14155. ( exit $ac_status )
  14156. ac_cv_type_long_long_int=no
  14157. fi
  14158. rm -rf conftest.dSYM
  14159. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14160. fi
  14161. else
  14162. $as_echo "$as_me: failed program was:" >&5
  14163. sed 's/^/| /' conftest.$ac_ext >&5
  14164. ac_cv_type_long_long_int=no
  14165. fi
  14166. rm -rf conftest.dSYM
  14167. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14168. conftest$ac_exeext conftest.$ac_ext
  14169. fi
  14170. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  14171. $as_echo "$ac_cv_type_long_long_int" >&6; }
  14172. if test $ac_cv_type_long_long_int = yes; then
  14173. cat >>confdefs.h <<\_ACEOF
  14174. #define HAVE_LONG_LONG_INT 1
  14175. _ACEOF
  14176. fi
  14177. { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
  14178. $as_echo_n "checking for wchar_t... " >&6; }
  14179. if test "${gt_cv_c_wchar_t+set}" = set; then
  14180. $as_echo_n "(cached) " >&6
  14181. else
  14182. cat >conftest.$ac_ext <<_ACEOF
  14183. /* confdefs.h. */
  14184. _ACEOF
  14185. cat confdefs.h >>conftest.$ac_ext
  14186. cat >>conftest.$ac_ext <<_ACEOF
  14187. /* end confdefs.h. */
  14188. #include <stddef.h>
  14189. wchar_t foo = (wchar_t)'\0';
  14190. int
  14191. main ()
  14192. {
  14193. ;
  14194. return 0;
  14195. }
  14196. _ACEOF
  14197. rm -f conftest.$ac_objext
  14198. if { (ac_try="$ac_compile"
  14199. case "(($ac_try" in
  14200. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14201. *) ac_try_echo=$ac_try;;
  14202. esac
  14203. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14204. $as_echo "$ac_try_echo") >&5
  14205. (eval "$ac_compile") 2>conftest.er1
  14206. ac_status=$?
  14207. grep -v '^ *+' conftest.er1 >conftest.err
  14208. rm -f conftest.er1
  14209. cat conftest.err >&5
  14210. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14211. (exit $ac_status); } && {
  14212. test -z "$ac_cxx_werror_flag" ||
  14213. test ! -s conftest.err
  14214. } && test -s conftest.$ac_objext; then
  14215. gt_cv_c_wchar_t=yes
  14216. else
  14217. $as_echo "$as_me: failed program was:" >&5
  14218. sed 's/^/| /' conftest.$ac_ext >&5
  14219. gt_cv_c_wchar_t=no
  14220. fi
  14221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14222. fi
  14223. { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  14224. $as_echo "$gt_cv_c_wchar_t" >&6; }
  14225. if test $gt_cv_c_wchar_t = yes; then
  14226. cat >>confdefs.h <<\_ACEOF
  14227. #define HAVE_WCHAR_T 1
  14228. _ACEOF
  14229. fi
  14230. { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
  14231. $as_echo_n "checking for wint_t... " >&6; }
  14232. if test "${gt_cv_c_wint_t+set}" = set; then
  14233. $as_echo_n "(cached) " >&6
  14234. else
  14235. cat >conftest.$ac_ext <<_ACEOF
  14236. /* confdefs.h. */
  14237. _ACEOF
  14238. cat confdefs.h >>conftest.$ac_ext
  14239. cat >>conftest.$ac_ext <<_ACEOF
  14240. /* end confdefs.h. */
  14241. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  14242. <wchar.h>.
  14243. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  14244. before <wchar.h>. */
  14245. #include <stddef.h>
  14246. #include <stdio.h>
  14247. #include <time.h>
  14248. #include <wchar.h>
  14249. wint_t foo = (wchar_t)'\0';
  14250. int
  14251. main ()
  14252. {
  14253. ;
  14254. return 0;
  14255. }
  14256. _ACEOF
  14257. rm -f conftest.$ac_objext
  14258. if { (ac_try="$ac_compile"
  14259. case "(($ac_try" in
  14260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14261. *) ac_try_echo=$ac_try;;
  14262. esac
  14263. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14264. $as_echo "$ac_try_echo") >&5
  14265. (eval "$ac_compile") 2>conftest.er1
  14266. ac_status=$?
  14267. grep -v '^ *+' conftest.er1 >conftest.err
  14268. rm -f conftest.er1
  14269. cat conftest.err >&5
  14270. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14271. (exit $ac_status); } && {
  14272. test -z "$ac_cxx_werror_flag" ||
  14273. test ! -s conftest.err
  14274. } && test -s conftest.$ac_objext; then
  14275. gt_cv_c_wint_t=yes
  14276. else
  14277. $as_echo "$as_me: failed program was:" >&5
  14278. sed 's/^/| /' conftest.$ac_ext >&5
  14279. gt_cv_c_wint_t=no
  14280. fi
  14281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14282. fi
  14283. { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  14284. $as_echo "$gt_cv_c_wint_t" >&6; }
  14285. if test $gt_cv_c_wint_t = yes; then
  14286. cat >>confdefs.h <<\_ACEOF
  14287. #define HAVE_WINT_T 1
  14288. _ACEOF
  14289. fi
  14290. { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
  14291. $as_echo_n "checking for intmax_t... " >&6; }
  14292. if test "${gt_cv_c_intmax_t+set}" = set; then
  14293. $as_echo_n "(cached) " >&6
  14294. else
  14295. cat >conftest.$ac_ext <<_ACEOF
  14296. /* confdefs.h. */
  14297. _ACEOF
  14298. cat confdefs.h >>conftest.$ac_ext
  14299. cat >>conftest.$ac_ext <<_ACEOF
  14300. /* end confdefs.h. */
  14301. #include <stddef.h>
  14302. #include <stdlib.h>
  14303. #if HAVE_STDINT_H_WITH_UINTMAX
  14304. #include <stdint.h>
  14305. #endif
  14306. #if HAVE_INTTYPES_H_WITH_UINTMAX
  14307. #include <inttypes.h>
  14308. #endif
  14309. int
  14310. main ()
  14311. {
  14312. intmax_t x = -1;
  14313. return !x;
  14314. ;
  14315. return 0;
  14316. }
  14317. _ACEOF
  14318. rm -f conftest.$ac_objext
  14319. if { (ac_try="$ac_compile"
  14320. case "(($ac_try" in
  14321. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14322. *) ac_try_echo=$ac_try;;
  14323. esac
  14324. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14325. $as_echo "$ac_try_echo") >&5
  14326. (eval "$ac_compile") 2>conftest.er1
  14327. ac_status=$?
  14328. grep -v '^ *+' conftest.er1 >conftest.err
  14329. rm -f conftest.er1
  14330. cat conftest.err >&5
  14331. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14332. (exit $ac_status); } && {
  14333. test -z "$ac_cxx_werror_flag" ||
  14334. test ! -s conftest.err
  14335. } && test -s conftest.$ac_objext; then
  14336. gt_cv_c_intmax_t=yes
  14337. else
  14338. $as_echo "$as_me: failed program was:" >&5
  14339. sed 's/^/| /' conftest.$ac_ext >&5
  14340. gt_cv_c_intmax_t=no
  14341. fi
  14342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14343. fi
  14344. { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  14345. $as_echo "$gt_cv_c_intmax_t" >&6; }
  14346. if test $gt_cv_c_intmax_t = yes; then
  14347. cat >>confdefs.h <<\_ACEOF
  14348. #define HAVE_INTMAX_T 1
  14349. _ACEOF
  14350. fi
  14351. { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  14352. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  14353. if test "${gt_cv_func_printf_posix+set}" = set; then
  14354. $as_echo_n "(cached) " >&6
  14355. else
  14356. if test "$cross_compiling" = yes; then
  14357. cat >conftest.$ac_ext <<_ACEOF
  14358. /* confdefs.h. */
  14359. _ACEOF
  14360. cat confdefs.h >>conftest.$ac_ext
  14361. cat >>conftest.$ac_ext <<_ACEOF
  14362. /* end confdefs.h. */
  14363. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  14364. notposix
  14365. #endif
  14366. _ACEOF
  14367. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14368. $EGREP "notposix" >/dev/null 2>&1; then
  14369. gt_cv_func_printf_posix="guessing no"
  14370. else
  14371. gt_cv_func_printf_posix="guessing yes"
  14372. fi
  14373. rm -f conftest*
  14374. else
  14375. cat >conftest.$ac_ext <<_ACEOF
  14376. /* confdefs.h. */
  14377. _ACEOF
  14378. cat confdefs.h >>conftest.$ac_ext
  14379. cat >>conftest.$ac_ext <<_ACEOF
  14380. /* end confdefs.h. */
  14381. #include <stdio.h>
  14382. #include <string.h>
  14383. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  14384. dollar expansion (possibly an autoconf bug). */
  14385. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  14386. static char buf[100];
  14387. int main ()
  14388. {
  14389. sprintf (buf, format, 33, 55);
  14390. return (strcmp (buf, "55 33") != 0);
  14391. }
  14392. _ACEOF
  14393. rm -f conftest$ac_exeext
  14394. if { (ac_try="$ac_link"
  14395. case "(($ac_try" in
  14396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14397. *) ac_try_echo=$ac_try;;
  14398. esac
  14399. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14400. $as_echo "$ac_try_echo") >&5
  14401. (eval "$ac_link") 2>&5
  14402. ac_status=$?
  14403. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14404. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14405. { (case "(($ac_try" in
  14406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14407. *) ac_try_echo=$ac_try;;
  14408. esac
  14409. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14410. $as_echo "$ac_try_echo") >&5
  14411. (eval "$ac_try") 2>&5
  14412. ac_status=$?
  14413. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14414. (exit $ac_status); }; }; then
  14415. gt_cv_func_printf_posix=yes
  14416. else
  14417. $as_echo "$as_me: program exited with status $ac_status" >&5
  14418. $as_echo "$as_me: failed program was:" >&5
  14419. sed 's/^/| /' conftest.$ac_ext >&5
  14420. ( exit $ac_status )
  14421. gt_cv_func_printf_posix=no
  14422. fi
  14423. rm -rf conftest.dSYM
  14424. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14425. fi
  14426. fi
  14427. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  14428. $as_echo "$gt_cv_func_printf_posix" >&6; }
  14429. case $gt_cv_func_printf_posix in
  14430. *yes)
  14431. cat >>confdefs.h <<\_ACEOF
  14432. #define HAVE_POSIX_PRINTF 1
  14433. _ACEOF
  14434. ;;
  14435. esac
  14436. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  14437. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  14438. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  14439. $as_echo_n "(cached) " >&6
  14440. else
  14441. cat >conftest.$ac_ext <<_ACEOF
  14442. /* confdefs.h. */
  14443. _ACEOF
  14444. cat confdefs.h >>conftest.$ac_ext
  14445. cat >>conftest.$ac_ext <<_ACEOF
  14446. /* end confdefs.h. */
  14447. #include <features.h>
  14448. #ifdef __GNU_LIBRARY__
  14449. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  14450. Lucky GNU user
  14451. #endif
  14452. #endif
  14453. _ACEOF
  14454. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14455. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  14456. ac_cv_gnu_library_2_1=yes
  14457. else
  14458. ac_cv_gnu_library_2_1=no
  14459. fi
  14460. rm -f conftest*
  14461. fi
  14462. { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  14463. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  14464. GLIBC21="$ac_cv_gnu_library_2_1"
  14465. for ac_header in stdint.h
  14466. do
  14467. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14468. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14469. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14470. $as_echo_n "checking for $ac_header... " >&6; }
  14471. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14472. $as_echo_n "(cached) " >&6
  14473. fi
  14474. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14475. $as_echo "$as_val"'`
  14476. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14477. $as_echo "$ac_res" >&6; }
  14478. else
  14479. # Is the header compilable?
  14480. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14481. $as_echo_n "checking $ac_header usability... " >&6; }
  14482. cat >conftest.$ac_ext <<_ACEOF
  14483. /* confdefs.h. */
  14484. _ACEOF
  14485. cat confdefs.h >>conftest.$ac_ext
  14486. cat >>conftest.$ac_ext <<_ACEOF
  14487. /* end confdefs.h. */
  14488. $ac_includes_default
  14489. #include <$ac_header>
  14490. _ACEOF
  14491. rm -f conftest.$ac_objext
  14492. if { (ac_try="$ac_compile"
  14493. case "(($ac_try" in
  14494. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14495. *) ac_try_echo=$ac_try;;
  14496. esac
  14497. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14498. $as_echo "$ac_try_echo") >&5
  14499. (eval "$ac_compile") 2>conftest.er1
  14500. ac_status=$?
  14501. grep -v '^ *+' conftest.er1 >conftest.err
  14502. rm -f conftest.er1
  14503. cat conftest.err >&5
  14504. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14505. (exit $ac_status); } && {
  14506. test -z "$ac_cxx_werror_flag" ||
  14507. test ! -s conftest.err
  14508. } && test -s conftest.$ac_objext; then
  14509. ac_header_compiler=yes
  14510. else
  14511. $as_echo "$as_me: failed program was:" >&5
  14512. sed 's/^/| /' conftest.$ac_ext >&5
  14513. ac_header_compiler=no
  14514. fi
  14515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14516. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14517. $as_echo "$ac_header_compiler" >&6; }
  14518. # Is the header present?
  14519. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14520. $as_echo_n "checking $ac_header presence... " >&6; }
  14521. cat >conftest.$ac_ext <<_ACEOF
  14522. /* confdefs.h. */
  14523. _ACEOF
  14524. cat confdefs.h >>conftest.$ac_ext
  14525. cat >>conftest.$ac_ext <<_ACEOF
  14526. /* end confdefs.h. */
  14527. #include <$ac_header>
  14528. _ACEOF
  14529. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14530. case "(($ac_try" in
  14531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14532. *) ac_try_echo=$ac_try;;
  14533. esac
  14534. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14535. $as_echo "$ac_try_echo") >&5
  14536. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14537. ac_status=$?
  14538. grep -v '^ *+' conftest.er1 >conftest.err
  14539. rm -f conftest.er1
  14540. cat conftest.err >&5
  14541. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14542. (exit $ac_status); } >/dev/null && {
  14543. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14544. test ! -s conftest.err
  14545. }; then
  14546. ac_header_preproc=yes
  14547. else
  14548. $as_echo "$as_me: failed program was:" >&5
  14549. sed 's/^/| /' conftest.$ac_ext >&5
  14550. ac_header_preproc=no
  14551. fi
  14552. rm -f conftest.err conftest.$ac_ext
  14553. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14554. $as_echo "$ac_header_preproc" >&6; }
  14555. # So? What about this header?
  14556. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14557. yes:no: )
  14558. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14559. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14560. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14561. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14562. ac_header_preproc=yes
  14563. ;;
  14564. no:yes:* )
  14565. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14566. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14567. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14568. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14569. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14570. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14571. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14572. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14573. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14574. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14575. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14576. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14577. ( cat <<\_ASBOX
  14578. ## ----------------------------------------------- ##
  14579. ## Report this to t-tujikawa@users.sourceforge.net ##
  14580. ## ----------------------------------------------- ##
  14581. _ASBOX
  14582. ) | sed "s/^/$as_me: WARNING: /" >&2
  14583. ;;
  14584. esac
  14585. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14586. $as_echo_n "checking for $ac_header... " >&6; }
  14587. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14588. $as_echo_n "(cached) " >&6
  14589. else
  14590. eval "$as_ac_Header=\$ac_header_preproc"
  14591. fi
  14592. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14593. $as_echo "$as_val"'`
  14594. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14595. $as_echo "$ac_res" >&6; }
  14596. fi
  14597. as_val=`eval 'as_val=${'$as_ac_Header'}
  14598. $as_echo "$as_val"'`
  14599. if test "x$as_val" = x""yes; then
  14600. cat >>confdefs.h <<_ACEOF
  14601. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14602. _ACEOF
  14603. fi
  14604. done
  14605. { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  14606. $as_echo_n "checking for SIZE_MAX... " >&6; }
  14607. if test "${gl_cv_size_max+set}" = set; then
  14608. $as_echo_n "(cached) " >&6
  14609. else
  14610. gl_cv_size_max=
  14611. cat >conftest.$ac_ext <<_ACEOF
  14612. /* confdefs.h. */
  14613. _ACEOF
  14614. cat confdefs.h >>conftest.$ac_ext
  14615. cat >>conftest.$ac_ext <<_ACEOF
  14616. /* end confdefs.h. */
  14617. #include <limits.h>
  14618. #if HAVE_STDINT_H
  14619. #include <stdint.h>
  14620. #endif
  14621. #ifdef SIZE_MAX
  14622. Found it
  14623. #endif
  14624. _ACEOF
  14625. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14626. $EGREP "Found it" >/dev/null 2>&1; then
  14627. gl_cv_size_max=yes
  14628. fi
  14629. rm -f conftest*
  14630. if test -z "$gl_cv_size_max"; then
  14631. if test "$cross_compiling" = yes; then
  14632. # Depending upon the size, compute the lo and hi bounds.
  14633. cat >conftest.$ac_ext <<_ACEOF
  14634. /* confdefs.h. */
  14635. _ACEOF
  14636. cat confdefs.h >>conftest.$ac_ext
  14637. cat >>conftest.$ac_ext <<_ACEOF
  14638. /* end confdefs.h. */
  14639. #include <stddef.h>
  14640. #include <limits.h>
  14641. int
  14642. main ()
  14643. {
  14644. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  14645. test_array [0] = 0
  14646. ;
  14647. return 0;
  14648. }
  14649. _ACEOF
  14650. rm -f conftest.$ac_objext
  14651. if { (ac_try="$ac_compile"
  14652. case "(($ac_try" in
  14653. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14654. *) ac_try_echo=$ac_try;;
  14655. esac
  14656. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14657. $as_echo "$ac_try_echo") >&5
  14658. (eval "$ac_compile") 2>conftest.er1
  14659. ac_status=$?
  14660. grep -v '^ *+' conftest.er1 >conftest.err
  14661. rm -f conftest.er1
  14662. cat conftest.err >&5
  14663. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14664. (exit $ac_status); } && {
  14665. test -z "$ac_cxx_werror_flag" ||
  14666. test ! -s conftest.err
  14667. } && test -s conftest.$ac_objext; then
  14668. ac_lo=0 ac_mid=0
  14669. while :; do
  14670. cat >conftest.$ac_ext <<_ACEOF
  14671. /* confdefs.h. */
  14672. _ACEOF
  14673. cat confdefs.h >>conftest.$ac_ext
  14674. cat >>conftest.$ac_ext <<_ACEOF
  14675. /* end confdefs.h. */
  14676. #include <stddef.h>
  14677. #include <limits.h>
  14678. int
  14679. main ()
  14680. {
  14681. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  14682. test_array [0] = 0
  14683. ;
  14684. return 0;
  14685. }
  14686. _ACEOF
  14687. rm -f conftest.$ac_objext
  14688. if { (ac_try="$ac_compile"
  14689. case "(($ac_try" in
  14690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14691. *) ac_try_echo=$ac_try;;
  14692. esac
  14693. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14694. $as_echo "$ac_try_echo") >&5
  14695. (eval "$ac_compile") 2>conftest.er1
  14696. ac_status=$?
  14697. grep -v '^ *+' conftest.er1 >conftest.err
  14698. rm -f conftest.er1
  14699. cat conftest.err >&5
  14700. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14701. (exit $ac_status); } && {
  14702. test -z "$ac_cxx_werror_flag" ||
  14703. test ! -s conftest.err
  14704. } && test -s conftest.$ac_objext; then
  14705. ac_hi=$ac_mid; break
  14706. else
  14707. $as_echo "$as_me: failed program was:" >&5
  14708. sed 's/^/| /' conftest.$ac_ext >&5
  14709. ac_lo=`expr $ac_mid + 1`
  14710. if test $ac_lo -le $ac_mid; then
  14711. ac_lo= ac_hi=
  14712. break
  14713. fi
  14714. ac_mid=`expr 2 '*' $ac_mid + 1`
  14715. fi
  14716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14717. done
  14718. else
  14719. $as_echo "$as_me: failed program was:" >&5
  14720. sed 's/^/| /' conftest.$ac_ext >&5
  14721. cat >conftest.$ac_ext <<_ACEOF
  14722. /* confdefs.h. */
  14723. _ACEOF
  14724. cat confdefs.h >>conftest.$ac_ext
  14725. cat >>conftest.$ac_ext <<_ACEOF
  14726. /* end confdefs.h. */
  14727. #include <stddef.h>
  14728. #include <limits.h>
  14729. int
  14730. main ()
  14731. {
  14732. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  14733. test_array [0] = 0
  14734. ;
  14735. return 0;
  14736. }
  14737. _ACEOF
  14738. rm -f conftest.$ac_objext
  14739. if { (ac_try="$ac_compile"
  14740. case "(($ac_try" in
  14741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14742. *) ac_try_echo=$ac_try;;
  14743. esac
  14744. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14745. $as_echo "$ac_try_echo") >&5
  14746. (eval "$ac_compile") 2>conftest.er1
  14747. ac_status=$?
  14748. grep -v '^ *+' conftest.er1 >conftest.err
  14749. rm -f conftest.er1
  14750. cat conftest.err >&5
  14751. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14752. (exit $ac_status); } && {
  14753. test -z "$ac_cxx_werror_flag" ||
  14754. test ! -s conftest.err
  14755. } && test -s conftest.$ac_objext; then
  14756. ac_hi=-1 ac_mid=-1
  14757. while :; do
  14758. cat >conftest.$ac_ext <<_ACEOF
  14759. /* confdefs.h. */
  14760. _ACEOF
  14761. cat confdefs.h >>conftest.$ac_ext
  14762. cat >>conftest.$ac_ext <<_ACEOF
  14763. /* end confdefs.h. */
  14764. #include <stddef.h>
  14765. #include <limits.h>
  14766. int
  14767. main ()
  14768. {
  14769. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  14770. test_array [0] = 0
  14771. ;
  14772. return 0;
  14773. }
  14774. _ACEOF
  14775. rm -f conftest.$ac_objext
  14776. if { (ac_try="$ac_compile"
  14777. case "(($ac_try" in
  14778. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14779. *) ac_try_echo=$ac_try;;
  14780. esac
  14781. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14782. $as_echo "$ac_try_echo") >&5
  14783. (eval "$ac_compile") 2>conftest.er1
  14784. ac_status=$?
  14785. grep -v '^ *+' conftest.er1 >conftest.err
  14786. rm -f conftest.er1
  14787. cat conftest.err >&5
  14788. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14789. (exit $ac_status); } && {
  14790. test -z "$ac_cxx_werror_flag" ||
  14791. test ! -s conftest.err
  14792. } && test -s conftest.$ac_objext; then
  14793. ac_lo=$ac_mid; break
  14794. else
  14795. $as_echo "$as_me: failed program was:" >&5
  14796. sed 's/^/| /' conftest.$ac_ext >&5
  14797. ac_hi=`expr '(' $ac_mid ')' - 1`
  14798. if test $ac_mid -le $ac_hi; then
  14799. ac_lo= ac_hi=
  14800. break
  14801. fi
  14802. ac_mid=`expr 2 '*' $ac_mid`
  14803. fi
  14804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14805. done
  14806. else
  14807. $as_echo "$as_me: failed program was:" >&5
  14808. sed 's/^/| /' conftest.$ac_ext >&5
  14809. ac_lo= ac_hi=
  14810. fi
  14811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14812. fi
  14813. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14814. # Binary search between lo and hi bounds.
  14815. while test "x$ac_lo" != "x$ac_hi"; do
  14816. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  14817. cat >conftest.$ac_ext <<_ACEOF
  14818. /* confdefs.h. */
  14819. _ACEOF
  14820. cat confdefs.h >>conftest.$ac_ext
  14821. cat >>conftest.$ac_ext <<_ACEOF
  14822. /* end confdefs.h. */
  14823. #include <stddef.h>
  14824. #include <limits.h>
  14825. int
  14826. main ()
  14827. {
  14828. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  14829. test_array [0] = 0
  14830. ;
  14831. return 0;
  14832. }
  14833. _ACEOF
  14834. rm -f conftest.$ac_objext
  14835. if { (ac_try="$ac_compile"
  14836. case "(($ac_try" in
  14837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14838. *) ac_try_echo=$ac_try;;
  14839. esac
  14840. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14841. $as_echo "$ac_try_echo") >&5
  14842. (eval "$ac_compile") 2>conftest.er1
  14843. ac_status=$?
  14844. grep -v '^ *+' conftest.er1 >conftest.err
  14845. rm -f conftest.er1
  14846. cat conftest.err >&5
  14847. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14848. (exit $ac_status); } && {
  14849. test -z "$ac_cxx_werror_flag" ||
  14850. test ! -s conftest.err
  14851. } && test -s conftest.$ac_objext; then
  14852. ac_hi=$ac_mid
  14853. else
  14854. $as_echo "$as_me: failed program was:" >&5
  14855. sed 's/^/| /' conftest.$ac_ext >&5
  14856. ac_lo=`expr '(' $ac_mid ')' + 1`
  14857. fi
  14858. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14859. done
  14860. case $ac_lo in
  14861. ?*) size_t_bits_minus_1=$ac_lo;;
  14862. '') size_t_bits_minus_1= ;;
  14863. esac
  14864. else
  14865. cat >conftest.$ac_ext <<_ACEOF
  14866. /* confdefs.h. */
  14867. _ACEOF
  14868. cat confdefs.h >>conftest.$ac_ext
  14869. cat >>conftest.$ac_ext <<_ACEOF
  14870. /* end confdefs.h. */
  14871. #include <stddef.h>
  14872. #include <limits.h>
  14873. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  14874. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  14875. #include <stdio.h>
  14876. #include <stdlib.h>
  14877. int
  14878. main ()
  14879. {
  14880. FILE *f = fopen ("conftest.val", "w");
  14881. if (! f)
  14882. return 1;
  14883. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  14884. {
  14885. long int i = longval ();
  14886. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  14887. return 1;
  14888. fprintf (f, "%ld", i);
  14889. }
  14890. else
  14891. {
  14892. unsigned long int i = ulongval ();
  14893. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  14894. return 1;
  14895. fprintf (f, "%lu", i);
  14896. }
  14897. /* Do not output a trailing newline, as this causes \r\n confusion
  14898. on some platforms. */
  14899. return ferror (f) || fclose (f) != 0;
  14900. ;
  14901. return 0;
  14902. }
  14903. _ACEOF
  14904. rm -f conftest$ac_exeext
  14905. if { (ac_try="$ac_link"
  14906. case "(($ac_try" in
  14907. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14908. *) ac_try_echo=$ac_try;;
  14909. esac
  14910. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14911. $as_echo "$ac_try_echo") >&5
  14912. (eval "$ac_link") 2>&5
  14913. ac_status=$?
  14914. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14915. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14916. { (case "(($ac_try" in
  14917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14918. *) ac_try_echo=$ac_try;;
  14919. esac
  14920. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14921. $as_echo "$ac_try_echo") >&5
  14922. (eval "$ac_try") 2>&5
  14923. ac_status=$?
  14924. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14925. (exit $ac_status); }; }; then
  14926. size_t_bits_minus_1=`cat conftest.val`
  14927. else
  14928. $as_echo "$as_me: program exited with status $ac_status" >&5
  14929. $as_echo "$as_me: failed program was:" >&5
  14930. sed 's/^/| /' conftest.$ac_ext >&5
  14931. ( exit $ac_status )
  14932. size_t_bits_minus_1=
  14933. fi
  14934. rm -rf conftest.dSYM
  14935. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14936. fi
  14937. rm -f conftest.val
  14938. if test "$cross_compiling" = yes; then
  14939. # Depending upon the size, compute the lo and hi bounds.
  14940. cat >conftest.$ac_ext <<_ACEOF
  14941. /* confdefs.h. */
  14942. _ACEOF
  14943. cat confdefs.h >>conftest.$ac_ext
  14944. cat >>conftest.$ac_ext <<_ACEOF
  14945. /* end confdefs.h. */
  14946. #include <stddef.h>
  14947. int
  14948. main ()
  14949. {
  14950. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  14951. test_array [0] = 0
  14952. ;
  14953. return 0;
  14954. }
  14955. _ACEOF
  14956. rm -f conftest.$ac_objext
  14957. if { (ac_try="$ac_compile"
  14958. case "(($ac_try" in
  14959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14960. *) ac_try_echo=$ac_try;;
  14961. esac
  14962. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14963. $as_echo "$ac_try_echo") >&5
  14964. (eval "$ac_compile") 2>conftest.er1
  14965. ac_status=$?
  14966. grep -v '^ *+' conftest.er1 >conftest.err
  14967. rm -f conftest.er1
  14968. cat conftest.err >&5
  14969. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14970. (exit $ac_status); } && {
  14971. test -z "$ac_cxx_werror_flag" ||
  14972. test ! -s conftest.err
  14973. } && test -s conftest.$ac_objext; then
  14974. ac_lo=0 ac_mid=0
  14975. while :; do
  14976. cat >conftest.$ac_ext <<_ACEOF
  14977. /* confdefs.h. */
  14978. _ACEOF
  14979. cat confdefs.h >>conftest.$ac_ext
  14980. cat >>conftest.$ac_ext <<_ACEOF
  14981. /* end confdefs.h. */
  14982. #include <stddef.h>
  14983. int
  14984. main ()
  14985. {
  14986. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  14987. test_array [0] = 0
  14988. ;
  14989. return 0;
  14990. }
  14991. _ACEOF
  14992. rm -f conftest.$ac_objext
  14993. if { (ac_try="$ac_compile"
  14994. case "(($ac_try" in
  14995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14996. *) ac_try_echo=$ac_try;;
  14997. esac
  14998. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14999. $as_echo "$ac_try_echo") >&5
  15000. (eval "$ac_compile") 2>conftest.er1
  15001. ac_status=$?
  15002. grep -v '^ *+' conftest.er1 >conftest.err
  15003. rm -f conftest.er1
  15004. cat conftest.err >&5
  15005. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15006. (exit $ac_status); } && {
  15007. test -z "$ac_cxx_werror_flag" ||
  15008. test ! -s conftest.err
  15009. } && test -s conftest.$ac_objext; then
  15010. ac_hi=$ac_mid; break
  15011. else
  15012. $as_echo "$as_me: failed program was:" >&5
  15013. sed 's/^/| /' conftest.$ac_ext >&5
  15014. ac_lo=`expr $ac_mid + 1`
  15015. if test $ac_lo -le $ac_mid; then
  15016. ac_lo= ac_hi=
  15017. break
  15018. fi
  15019. ac_mid=`expr 2 '*' $ac_mid + 1`
  15020. fi
  15021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15022. done
  15023. else
  15024. $as_echo "$as_me: failed program was:" >&5
  15025. sed 's/^/| /' conftest.$ac_ext >&5
  15026. cat >conftest.$ac_ext <<_ACEOF
  15027. /* confdefs.h. */
  15028. _ACEOF
  15029. cat confdefs.h >>conftest.$ac_ext
  15030. cat >>conftest.$ac_ext <<_ACEOF
  15031. /* end confdefs.h. */
  15032. #include <stddef.h>
  15033. int
  15034. main ()
  15035. {
  15036. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  15037. test_array [0] = 0
  15038. ;
  15039. return 0;
  15040. }
  15041. _ACEOF
  15042. rm -f conftest.$ac_objext
  15043. if { (ac_try="$ac_compile"
  15044. case "(($ac_try" in
  15045. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15046. *) ac_try_echo=$ac_try;;
  15047. esac
  15048. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15049. $as_echo "$ac_try_echo") >&5
  15050. (eval "$ac_compile") 2>conftest.er1
  15051. ac_status=$?
  15052. grep -v '^ *+' conftest.er1 >conftest.err
  15053. rm -f conftest.er1
  15054. cat conftest.err >&5
  15055. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15056. (exit $ac_status); } && {
  15057. test -z "$ac_cxx_werror_flag" ||
  15058. test ! -s conftest.err
  15059. } && test -s conftest.$ac_objext; then
  15060. ac_hi=-1 ac_mid=-1
  15061. while :; do
  15062. cat >conftest.$ac_ext <<_ACEOF
  15063. /* confdefs.h. */
  15064. _ACEOF
  15065. cat confdefs.h >>conftest.$ac_ext
  15066. cat >>conftest.$ac_ext <<_ACEOF
  15067. /* end confdefs.h. */
  15068. #include <stddef.h>
  15069. int
  15070. main ()
  15071. {
  15072. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  15073. test_array [0] = 0
  15074. ;
  15075. return 0;
  15076. }
  15077. _ACEOF
  15078. rm -f conftest.$ac_objext
  15079. if { (ac_try="$ac_compile"
  15080. case "(($ac_try" in
  15081. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15082. *) ac_try_echo=$ac_try;;
  15083. esac
  15084. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15085. $as_echo "$ac_try_echo") >&5
  15086. (eval "$ac_compile") 2>conftest.er1
  15087. ac_status=$?
  15088. grep -v '^ *+' conftest.er1 >conftest.err
  15089. rm -f conftest.er1
  15090. cat conftest.err >&5
  15091. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15092. (exit $ac_status); } && {
  15093. test -z "$ac_cxx_werror_flag" ||
  15094. test ! -s conftest.err
  15095. } && test -s conftest.$ac_objext; then
  15096. ac_lo=$ac_mid; break
  15097. else
  15098. $as_echo "$as_me: failed program was:" >&5
  15099. sed 's/^/| /' conftest.$ac_ext >&5
  15100. ac_hi=`expr '(' $ac_mid ')' - 1`
  15101. if test $ac_mid -le $ac_hi; then
  15102. ac_lo= ac_hi=
  15103. break
  15104. fi
  15105. ac_mid=`expr 2 '*' $ac_mid`
  15106. fi
  15107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15108. done
  15109. else
  15110. $as_echo "$as_me: failed program was:" >&5
  15111. sed 's/^/| /' conftest.$ac_ext >&5
  15112. ac_lo= ac_hi=
  15113. fi
  15114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15115. fi
  15116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15117. # Binary search between lo and hi bounds.
  15118. while test "x$ac_lo" != "x$ac_hi"; do
  15119. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  15120. cat >conftest.$ac_ext <<_ACEOF
  15121. /* confdefs.h. */
  15122. _ACEOF
  15123. cat confdefs.h >>conftest.$ac_ext
  15124. cat >>conftest.$ac_ext <<_ACEOF
  15125. /* end confdefs.h. */
  15126. #include <stddef.h>
  15127. int
  15128. main ()
  15129. {
  15130. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  15131. test_array [0] = 0
  15132. ;
  15133. return 0;
  15134. }
  15135. _ACEOF
  15136. rm -f conftest.$ac_objext
  15137. if { (ac_try="$ac_compile"
  15138. case "(($ac_try" in
  15139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15140. *) ac_try_echo=$ac_try;;
  15141. esac
  15142. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15143. $as_echo "$ac_try_echo") >&5
  15144. (eval "$ac_compile") 2>conftest.er1
  15145. ac_status=$?
  15146. grep -v '^ *+' conftest.er1 >conftest.err
  15147. rm -f conftest.er1
  15148. cat conftest.err >&5
  15149. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15150. (exit $ac_status); } && {
  15151. test -z "$ac_cxx_werror_flag" ||
  15152. test ! -s conftest.err
  15153. } && test -s conftest.$ac_objext; then
  15154. ac_hi=$ac_mid
  15155. else
  15156. $as_echo "$as_me: failed program was:" >&5
  15157. sed 's/^/| /' conftest.$ac_ext >&5
  15158. ac_lo=`expr '(' $ac_mid ')' + 1`
  15159. fi
  15160. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15161. done
  15162. case $ac_lo in
  15163. ?*) fits_in_uint=$ac_lo;;
  15164. '') fits_in_uint= ;;
  15165. esac
  15166. else
  15167. cat >conftest.$ac_ext <<_ACEOF
  15168. /* confdefs.h. */
  15169. _ACEOF
  15170. cat confdefs.h >>conftest.$ac_ext
  15171. cat >>conftest.$ac_ext <<_ACEOF
  15172. /* end confdefs.h. */
  15173. #include <stddef.h>
  15174. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  15175. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  15176. #include <stdio.h>
  15177. #include <stdlib.h>
  15178. int
  15179. main ()
  15180. {
  15181. FILE *f = fopen ("conftest.val", "w");
  15182. if (! f)
  15183. return 1;
  15184. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  15185. {
  15186. long int i = longval ();
  15187. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  15188. return 1;
  15189. fprintf (f, "%ld", i);
  15190. }
  15191. else
  15192. {
  15193. unsigned long int i = ulongval ();
  15194. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  15195. return 1;
  15196. fprintf (f, "%lu", i);
  15197. }
  15198. /* Do not output a trailing newline, as this causes \r\n confusion
  15199. on some platforms. */
  15200. return ferror (f) || fclose (f) != 0;
  15201. ;
  15202. return 0;
  15203. }
  15204. _ACEOF
  15205. rm -f conftest$ac_exeext
  15206. if { (ac_try="$ac_link"
  15207. case "(($ac_try" in
  15208. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15209. *) ac_try_echo=$ac_try;;
  15210. esac
  15211. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15212. $as_echo "$ac_try_echo") >&5
  15213. (eval "$ac_link") 2>&5
  15214. ac_status=$?
  15215. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15216. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15217. { (case "(($ac_try" in
  15218. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15219. *) ac_try_echo=$ac_try;;
  15220. esac
  15221. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15222. $as_echo "$ac_try_echo") >&5
  15223. (eval "$ac_try") 2>&5
  15224. ac_status=$?
  15225. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15226. (exit $ac_status); }; }; then
  15227. fits_in_uint=`cat conftest.val`
  15228. else
  15229. $as_echo "$as_me: program exited with status $ac_status" >&5
  15230. $as_echo "$as_me: failed program was:" >&5
  15231. sed 's/^/| /' conftest.$ac_ext >&5
  15232. ( exit $ac_status )
  15233. fits_in_uint=
  15234. fi
  15235. rm -rf conftest.dSYM
  15236. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15237. fi
  15238. rm -f conftest.val
  15239. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  15240. if test $fits_in_uint = 1; then
  15241. cat >conftest.$ac_ext <<_ACEOF
  15242. /* confdefs.h. */
  15243. _ACEOF
  15244. cat confdefs.h >>conftest.$ac_ext
  15245. cat >>conftest.$ac_ext <<_ACEOF
  15246. /* end confdefs.h. */
  15247. #include <stddef.h>
  15248. extern size_t foo;
  15249. extern unsigned long foo;
  15250. int
  15251. main ()
  15252. {
  15253. ;
  15254. return 0;
  15255. }
  15256. _ACEOF
  15257. rm -f conftest.$ac_objext
  15258. if { (ac_try="$ac_compile"
  15259. case "(($ac_try" in
  15260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15261. *) ac_try_echo=$ac_try;;
  15262. esac
  15263. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15264. $as_echo "$ac_try_echo") >&5
  15265. (eval "$ac_compile") 2>conftest.er1
  15266. ac_status=$?
  15267. grep -v '^ *+' conftest.er1 >conftest.err
  15268. rm -f conftest.er1
  15269. cat conftest.err >&5
  15270. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15271. (exit $ac_status); } && {
  15272. test -z "$ac_cxx_werror_flag" ||
  15273. test ! -s conftest.err
  15274. } && test -s conftest.$ac_objext; then
  15275. fits_in_uint=0
  15276. else
  15277. $as_echo "$as_me: failed program was:" >&5
  15278. sed 's/^/| /' conftest.$ac_ext >&5
  15279. fi
  15280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15281. fi
  15282. if test $fits_in_uint = 1; then
  15283. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  15284. else
  15285. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  15286. fi
  15287. else
  15288. gl_cv_size_max='((size_t)~(size_t)0)'
  15289. fi
  15290. fi
  15291. fi
  15292. { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  15293. $as_echo "$gl_cv_size_max" >&6; }
  15294. if test "$gl_cv_size_max" != yes; then
  15295. cat >>confdefs.h <<_ACEOF
  15296. #define SIZE_MAX $gl_cv_size_max
  15297. _ACEOF
  15298. fi
  15299. for ac_header in stdint.h
  15300. do
  15301. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15302. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15303. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15304. $as_echo_n "checking for $ac_header... " >&6; }
  15305. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15306. $as_echo_n "(cached) " >&6
  15307. fi
  15308. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15309. $as_echo "$as_val"'`
  15310. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15311. $as_echo "$ac_res" >&6; }
  15312. else
  15313. # Is the header compilable?
  15314. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15315. $as_echo_n "checking $ac_header usability... " >&6; }
  15316. cat >conftest.$ac_ext <<_ACEOF
  15317. /* confdefs.h. */
  15318. _ACEOF
  15319. cat confdefs.h >>conftest.$ac_ext
  15320. cat >>conftest.$ac_ext <<_ACEOF
  15321. /* end confdefs.h. */
  15322. $ac_includes_default
  15323. #include <$ac_header>
  15324. _ACEOF
  15325. rm -f conftest.$ac_objext
  15326. if { (ac_try="$ac_compile"
  15327. case "(($ac_try" in
  15328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15329. *) ac_try_echo=$ac_try;;
  15330. esac
  15331. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15332. $as_echo "$ac_try_echo") >&5
  15333. (eval "$ac_compile") 2>conftest.er1
  15334. ac_status=$?
  15335. grep -v '^ *+' conftest.er1 >conftest.err
  15336. rm -f conftest.er1
  15337. cat conftest.err >&5
  15338. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15339. (exit $ac_status); } && {
  15340. test -z "$ac_cxx_werror_flag" ||
  15341. test ! -s conftest.err
  15342. } && test -s conftest.$ac_objext; then
  15343. ac_header_compiler=yes
  15344. else
  15345. $as_echo "$as_me: failed program was:" >&5
  15346. sed 's/^/| /' conftest.$ac_ext >&5
  15347. ac_header_compiler=no
  15348. fi
  15349. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15350. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15351. $as_echo "$ac_header_compiler" >&6; }
  15352. # Is the header present?
  15353. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15354. $as_echo_n "checking $ac_header presence... " >&6; }
  15355. cat >conftest.$ac_ext <<_ACEOF
  15356. /* confdefs.h. */
  15357. _ACEOF
  15358. cat confdefs.h >>conftest.$ac_ext
  15359. cat >>conftest.$ac_ext <<_ACEOF
  15360. /* end confdefs.h. */
  15361. #include <$ac_header>
  15362. _ACEOF
  15363. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15364. case "(($ac_try" in
  15365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15366. *) ac_try_echo=$ac_try;;
  15367. esac
  15368. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15369. $as_echo "$ac_try_echo") >&5
  15370. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15371. ac_status=$?
  15372. grep -v '^ *+' conftest.er1 >conftest.err
  15373. rm -f conftest.er1
  15374. cat conftest.err >&5
  15375. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15376. (exit $ac_status); } >/dev/null && {
  15377. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15378. test ! -s conftest.err
  15379. }; then
  15380. ac_header_preproc=yes
  15381. else
  15382. $as_echo "$as_me: failed program was:" >&5
  15383. sed 's/^/| /' conftest.$ac_ext >&5
  15384. ac_header_preproc=no
  15385. fi
  15386. rm -f conftest.err conftest.$ac_ext
  15387. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15388. $as_echo "$ac_header_preproc" >&6; }
  15389. # So? What about this header?
  15390. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15391. yes:no: )
  15392. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15393. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15394. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15395. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15396. ac_header_preproc=yes
  15397. ;;
  15398. no:yes:* )
  15399. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15400. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15401. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15402. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15403. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15404. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15405. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15406. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15407. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15408. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15409. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15410. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15411. ( cat <<\_ASBOX
  15412. ## ----------------------------------------------- ##
  15413. ## Report this to t-tujikawa@users.sourceforge.net ##
  15414. ## ----------------------------------------------- ##
  15415. _ASBOX
  15416. ) | sed "s/^/$as_me: WARNING: /" >&2
  15417. ;;
  15418. esac
  15419. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15420. $as_echo_n "checking for $ac_header... " >&6; }
  15421. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15422. $as_echo_n "(cached) " >&6
  15423. else
  15424. eval "$as_ac_Header=\$ac_header_preproc"
  15425. fi
  15426. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15427. $as_echo "$as_val"'`
  15428. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15429. $as_echo "$ac_res" >&6; }
  15430. fi
  15431. as_val=`eval 'as_val=${'$as_ac_Header'}
  15432. $as_echo "$as_val"'`
  15433. if test "x$as_val" = x""yes; then
  15434. cat >>confdefs.h <<_ACEOF
  15435. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15436. _ACEOF
  15437. fi
  15438. done
  15439. { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  15440. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  15441. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  15442. $as_echo_n "(cached) " >&6
  15443. else
  15444. gt_save_LIBS="$LIBS"
  15445. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15446. cat >conftest.$ac_ext <<_ACEOF
  15447. /* confdefs.h. */
  15448. _ACEOF
  15449. cat confdefs.h >>conftest.$ac_ext
  15450. cat >>conftest.$ac_ext <<_ACEOF
  15451. /* end confdefs.h. */
  15452. #include <CoreFoundation/CFPreferences.h>
  15453. int
  15454. main ()
  15455. {
  15456. CFPreferencesCopyAppValue(NULL, NULL)
  15457. ;
  15458. return 0;
  15459. }
  15460. _ACEOF
  15461. rm -f conftest.$ac_objext conftest$ac_exeext
  15462. if { (ac_try="$ac_link"
  15463. case "(($ac_try" in
  15464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15465. *) ac_try_echo=$ac_try;;
  15466. esac
  15467. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15468. $as_echo "$ac_try_echo") >&5
  15469. (eval "$ac_link") 2>conftest.er1
  15470. ac_status=$?
  15471. grep -v '^ *+' conftest.er1 >conftest.err
  15472. rm -f conftest.er1
  15473. cat conftest.err >&5
  15474. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15475. (exit $ac_status); } && {
  15476. test -z "$ac_cxx_werror_flag" ||
  15477. test ! -s conftest.err
  15478. } && test -s conftest$ac_exeext && {
  15479. test "$cross_compiling" = yes ||
  15480. $as_test_x conftest$ac_exeext
  15481. }; then
  15482. gt_cv_func_CFPreferencesCopyAppValue=yes
  15483. else
  15484. $as_echo "$as_me: failed program was:" >&5
  15485. sed 's/^/| /' conftest.$ac_ext >&5
  15486. gt_cv_func_CFPreferencesCopyAppValue=no
  15487. fi
  15488. rm -rf conftest.dSYM
  15489. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15490. conftest$ac_exeext conftest.$ac_ext
  15491. LIBS="$gt_save_LIBS"
  15492. fi
  15493. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  15494. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  15495. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  15496. cat >>confdefs.h <<\_ACEOF
  15497. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  15498. _ACEOF
  15499. fi
  15500. { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  15501. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  15502. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  15503. $as_echo_n "(cached) " >&6
  15504. else
  15505. gt_save_LIBS="$LIBS"
  15506. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15507. cat >conftest.$ac_ext <<_ACEOF
  15508. /* confdefs.h. */
  15509. _ACEOF
  15510. cat confdefs.h >>conftest.$ac_ext
  15511. cat >>conftest.$ac_ext <<_ACEOF
  15512. /* end confdefs.h. */
  15513. #include <CoreFoundation/CFLocale.h>
  15514. int
  15515. main ()
  15516. {
  15517. CFLocaleCopyCurrent();
  15518. ;
  15519. return 0;
  15520. }
  15521. _ACEOF
  15522. rm -f conftest.$ac_objext conftest$ac_exeext
  15523. if { (ac_try="$ac_link"
  15524. case "(($ac_try" in
  15525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15526. *) ac_try_echo=$ac_try;;
  15527. esac
  15528. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15529. $as_echo "$ac_try_echo") >&5
  15530. (eval "$ac_link") 2>conftest.er1
  15531. ac_status=$?
  15532. grep -v '^ *+' conftest.er1 >conftest.err
  15533. rm -f conftest.er1
  15534. cat conftest.err >&5
  15535. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15536. (exit $ac_status); } && {
  15537. test -z "$ac_cxx_werror_flag" ||
  15538. test ! -s conftest.err
  15539. } && test -s conftest$ac_exeext && {
  15540. test "$cross_compiling" = yes ||
  15541. $as_test_x conftest$ac_exeext
  15542. }; then
  15543. gt_cv_func_CFLocaleCopyCurrent=yes
  15544. else
  15545. $as_echo "$as_me: failed program was:" >&5
  15546. sed 's/^/| /' conftest.$ac_ext >&5
  15547. gt_cv_func_CFLocaleCopyCurrent=no
  15548. fi
  15549. rm -rf conftest.dSYM
  15550. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15551. conftest$ac_exeext conftest.$ac_ext
  15552. LIBS="$gt_save_LIBS"
  15553. fi
  15554. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  15555. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  15556. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15557. cat >>confdefs.h <<\_ACEOF
  15558. #define HAVE_CFLOCALECOPYCURRENT 1
  15559. _ACEOF
  15560. fi
  15561. INTL_MACOSX_LIBS=
  15562. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15563. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  15564. fi
  15565. { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  15566. $as_echo_n "checking for ptrdiff_t... " >&6; }
  15567. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  15568. $as_echo_n "(cached) " >&6
  15569. else
  15570. ac_cv_type_ptrdiff_t=no
  15571. cat >conftest.$ac_ext <<_ACEOF
  15572. /* confdefs.h. */
  15573. _ACEOF
  15574. cat confdefs.h >>conftest.$ac_ext
  15575. cat >>conftest.$ac_ext <<_ACEOF
  15576. /* end confdefs.h. */
  15577. $ac_includes_default
  15578. int
  15579. main ()
  15580. {
  15581. if (sizeof (ptrdiff_t))
  15582. return 0;
  15583. ;
  15584. return 0;
  15585. }
  15586. _ACEOF
  15587. rm -f conftest.$ac_objext
  15588. if { (ac_try="$ac_compile"
  15589. case "(($ac_try" in
  15590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15591. *) ac_try_echo=$ac_try;;
  15592. esac
  15593. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15594. $as_echo "$ac_try_echo") >&5
  15595. (eval "$ac_compile") 2>conftest.er1
  15596. ac_status=$?
  15597. grep -v '^ *+' conftest.er1 >conftest.err
  15598. rm -f conftest.er1
  15599. cat conftest.err >&5
  15600. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15601. (exit $ac_status); } && {
  15602. test -z "$ac_cxx_werror_flag" ||
  15603. test ! -s conftest.err
  15604. } && test -s conftest.$ac_objext; then
  15605. cat >conftest.$ac_ext <<_ACEOF
  15606. /* confdefs.h. */
  15607. _ACEOF
  15608. cat confdefs.h >>conftest.$ac_ext
  15609. cat >>conftest.$ac_ext <<_ACEOF
  15610. /* end confdefs.h. */
  15611. $ac_includes_default
  15612. int
  15613. main ()
  15614. {
  15615. if (sizeof ((ptrdiff_t)))
  15616. return 0;
  15617. ;
  15618. return 0;
  15619. }
  15620. _ACEOF
  15621. rm -f conftest.$ac_objext
  15622. if { (ac_try="$ac_compile"
  15623. case "(($ac_try" in
  15624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15625. *) ac_try_echo=$ac_try;;
  15626. esac
  15627. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15628. $as_echo "$ac_try_echo") >&5
  15629. (eval "$ac_compile") 2>conftest.er1
  15630. ac_status=$?
  15631. grep -v '^ *+' conftest.er1 >conftest.err
  15632. rm -f conftest.er1
  15633. cat conftest.err >&5
  15634. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15635. (exit $ac_status); } && {
  15636. test -z "$ac_cxx_werror_flag" ||
  15637. test ! -s conftest.err
  15638. } && test -s conftest.$ac_objext; then
  15639. :
  15640. else
  15641. $as_echo "$as_me: failed program was:" >&5
  15642. sed 's/^/| /' conftest.$ac_ext >&5
  15643. ac_cv_type_ptrdiff_t=yes
  15644. fi
  15645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15646. else
  15647. $as_echo "$as_me: failed program was:" >&5
  15648. sed 's/^/| /' conftest.$ac_ext >&5
  15649. fi
  15650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15651. fi
  15652. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  15653. $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
  15654. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
  15655. :
  15656. else
  15657. cat >>confdefs.h <<\_ACEOF
  15658. #define ptrdiff_t long
  15659. _ACEOF
  15660. fi
  15661. for ac_header in stddef.h stdlib.h string.h
  15662. do
  15663. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15664. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15665. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15666. $as_echo_n "checking for $ac_header... " >&6; }
  15667. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15668. $as_echo_n "(cached) " >&6
  15669. fi
  15670. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15671. $as_echo "$as_val"'`
  15672. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15673. $as_echo "$ac_res" >&6; }
  15674. else
  15675. # Is the header compilable?
  15676. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15677. $as_echo_n "checking $ac_header usability... " >&6; }
  15678. cat >conftest.$ac_ext <<_ACEOF
  15679. /* confdefs.h. */
  15680. _ACEOF
  15681. cat confdefs.h >>conftest.$ac_ext
  15682. cat >>conftest.$ac_ext <<_ACEOF
  15683. /* end confdefs.h. */
  15684. $ac_includes_default
  15685. #include <$ac_header>
  15686. _ACEOF
  15687. rm -f conftest.$ac_objext
  15688. if { (ac_try="$ac_compile"
  15689. case "(($ac_try" in
  15690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15691. *) ac_try_echo=$ac_try;;
  15692. esac
  15693. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15694. $as_echo "$ac_try_echo") >&5
  15695. (eval "$ac_compile") 2>conftest.er1
  15696. ac_status=$?
  15697. grep -v '^ *+' conftest.er1 >conftest.err
  15698. rm -f conftest.er1
  15699. cat conftest.err >&5
  15700. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15701. (exit $ac_status); } && {
  15702. test -z "$ac_cxx_werror_flag" ||
  15703. test ! -s conftest.err
  15704. } && test -s conftest.$ac_objext; then
  15705. ac_header_compiler=yes
  15706. else
  15707. $as_echo "$as_me: failed program was:" >&5
  15708. sed 's/^/| /' conftest.$ac_ext >&5
  15709. ac_header_compiler=no
  15710. fi
  15711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15712. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15713. $as_echo "$ac_header_compiler" >&6; }
  15714. # Is the header present?
  15715. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15716. $as_echo_n "checking $ac_header presence... " >&6; }
  15717. cat >conftest.$ac_ext <<_ACEOF
  15718. /* confdefs.h. */
  15719. _ACEOF
  15720. cat confdefs.h >>conftest.$ac_ext
  15721. cat >>conftest.$ac_ext <<_ACEOF
  15722. /* end confdefs.h. */
  15723. #include <$ac_header>
  15724. _ACEOF
  15725. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15726. case "(($ac_try" in
  15727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15728. *) ac_try_echo=$ac_try;;
  15729. esac
  15730. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15731. $as_echo "$ac_try_echo") >&5
  15732. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15733. ac_status=$?
  15734. grep -v '^ *+' conftest.er1 >conftest.err
  15735. rm -f conftest.er1
  15736. cat conftest.err >&5
  15737. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15738. (exit $ac_status); } >/dev/null && {
  15739. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15740. test ! -s conftest.err
  15741. }; then
  15742. ac_header_preproc=yes
  15743. else
  15744. $as_echo "$as_me: failed program was:" >&5
  15745. sed 's/^/| /' conftest.$ac_ext >&5
  15746. ac_header_preproc=no
  15747. fi
  15748. rm -f conftest.err conftest.$ac_ext
  15749. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15750. $as_echo "$ac_header_preproc" >&6; }
  15751. # So? What about this header?
  15752. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15753. yes:no: )
  15754. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15755. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15756. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15757. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15758. ac_header_preproc=yes
  15759. ;;
  15760. no:yes:* )
  15761. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15762. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15763. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15764. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15765. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15766. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15767. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15768. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15769. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15770. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15771. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15772. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15773. ( cat <<\_ASBOX
  15774. ## ----------------------------------------------- ##
  15775. ## Report this to t-tujikawa@users.sourceforge.net ##
  15776. ## ----------------------------------------------- ##
  15777. _ASBOX
  15778. ) | sed "s/^/$as_me: WARNING: /" >&2
  15779. ;;
  15780. esac
  15781. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15782. $as_echo_n "checking for $ac_header... " >&6; }
  15783. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15784. $as_echo_n "(cached) " >&6
  15785. else
  15786. eval "$as_ac_Header=\$ac_header_preproc"
  15787. fi
  15788. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15789. $as_echo "$as_val"'`
  15790. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15791. $as_echo "$ac_res" >&6; }
  15792. fi
  15793. as_val=`eval 'as_val=${'$as_ac_Header'}
  15794. $as_echo "$as_val"'`
  15795. if test "x$as_val" = x""yes; then
  15796. cat >>confdefs.h <<_ACEOF
  15797. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15798. _ACEOF
  15799. fi
  15800. done
  15801. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  15802. do
  15803. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15804. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  15805. $as_echo_n "checking for $ac_func... " >&6; }
  15806. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15807. $as_echo_n "(cached) " >&6
  15808. else
  15809. cat >conftest.$ac_ext <<_ACEOF
  15810. /* confdefs.h. */
  15811. _ACEOF
  15812. cat confdefs.h >>conftest.$ac_ext
  15813. cat >>conftest.$ac_ext <<_ACEOF
  15814. /* end confdefs.h. */
  15815. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15816. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15817. #define $ac_func innocuous_$ac_func
  15818. /* System header to define __stub macros and hopefully few prototypes,
  15819. which can conflict with char $ac_func (); below.
  15820. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15821. <limits.h> exists even on freestanding compilers. */
  15822. #ifdef __STDC__
  15823. # include <limits.h>
  15824. #else
  15825. # include <assert.h>
  15826. #endif
  15827. #undef $ac_func
  15828. /* Override any GCC internal prototype to avoid an error.
  15829. Use char because int might match the return type of a GCC
  15830. builtin and then its argument prototype would still apply. */
  15831. #ifdef __cplusplus
  15832. extern "C"
  15833. #endif
  15834. char $ac_func ();
  15835. /* The GNU C library defines this for functions which it implements
  15836. to always fail with ENOSYS. Some functions are actually named
  15837. something starting with __ and the normal name is an alias. */
  15838. #if defined __stub_$ac_func || defined __stub___$ac_func
  15839. choke me
  15840. #endif
  15841. int
  15842. main ()
  15843. {
  15844. return $ac_func ();
  15845. ;
  15846. return 0;
  15847. }
  15848. _ACEOF
  15849. rm -f conftest.$ac_objext conftest$ac_exeext
  15850. if { (ac_try="$ac_link"
  15851. case "(($ac_try" in
  15852. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15853. *) ac_try_echo=$ac_try;;
  15854. esac
  15855. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15856. $as_echo "$ac_try_echo") >&5
  15857. (eval "$ac_link") 2>conftest.er1
  15858. ac_status=$?
  15859. grep -v '^ *+' conftest.er1 >conftest.err
  15860. rm -f conftest.er1
  15861. cat conftest.err >&5
  15862. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15863. (exit $ac_status); } && {
  15864. test -z "$ac_cxx_werror_flag" ||
  15865. test ! -s conftest.err
  15866. } && test -s conftest$ac_exeext && {
  15867. test "$cross_compiling" = yes ||
  15868. $as_test_x conftest$ac_exeext
  15869. }; then
  15870. eval "$as_ac_var=yes"
  15871. else
  15872. $as_echo "$as_me: failed program was:" >&5
  15873. sed 's/^/| /' conftest.$ac_ext >&5
  15874. eval "$as_ac_var=no"
  15875. fi
  15876. rm -rf conftest.dSYM
  15877. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15878. conftest$ac_exeext conftest.$ac_ext
  15879. fi
  15880. ac_res=`eval 'as_val=${'$as_ac_var'}
  15881. $as_echo "$as_val"'`
  15882. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15883. $as_echo "$ac_res" >&6; }
  15884. as_val=`eval 'as_val=${'$as_ac_var'}
  15885. $as_echo "$as_val"'`
  15886. if test "x$as_val" = x""yes; then
  15887. cat >>confdefs.h <<_ACEOF
  15888. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15889. _ACEOF
  15890. fi
  15891. done
  15892. { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  15893. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  15894. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  15895. $as_echo_n "(cached) " >&6
  15896. else
  15897. cat >conftest.$ac_ext <<_ACEOF
  15898. /* confdefs.h. */
  15899. _ACEOF
  15900. cat confdefs.h >>conftest.$ac_ext
  15901. cat >>conftest.$ac_ext <<_ACEOF
  15902. /* end confdefs.h. */
  15903. #include <stdio.h>
  15904. int
  15905. main ()
  15906. {
  15907. #ifndef _snprintf
  15908. char *p = (char *) _snprintf;
  15909. #endif
  15910. ;
  15911. return 0;
  15912. }
  15913. _ACEOF
  15914. rm -f conftest.$ac_objext
  15915. if { (ac_try="$ac_compile"
  15916. case "(($ac_try" in
  15917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15918. *) ac_try_echo=$ac_try;;
  15919. esac
  15920. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15921. $as_echo "$ac_try_echo") >&5
  15922. (eval "$ac_compile") 2>conftest.er1
  15923. ac_status=$?
  15924. grep -v '^ *+' conftest.er1 >conftest.err
  15925. rm -f conftest.er1
  15926. cat conftest.err >&5
  15927. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15928. (exit $ac_status); } && {
  15929. test -z "$ac_cxx_werror_flag" ||
  15930. test ! -s conftest.err
  15931. } && test -s conftest.$ac_objext; then
  15932. ac_cv_have_decl__snprintf=yes
  15933. else
  15934. $as_echo "$as_me: failed program was:" >&5
  15935. sed 's/^/| /' conftest.$ac_ext >&5
  15936. ac_cv_have_decl__snprintf=no
  15937. fi
  15938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15939. fi
  15940. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  15941. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  15942. if test $ac_cv_have_decl__snprintf = yes; then
  15943. gt_value=1
  15944. else
  15945. gt_value=0
  15946. fi
  15947. cat >>confdefs.h <<_ACEOF
  15948. #define HAVE_DECL__SNPRINTF $gt_value
  15949. _ACEOF
  15950. { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  15951. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  15952. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  15953. $as_echo_n "(cached) " >&6
  15954. else
  15955. cat >conftest.$ac_ext <<_ACEOF
  15956. /* confdefs.h. */
  15957. _ACEOF
  15958. cat confdefs.h >>conftest.$ac_ext
  15959. cat >>conftest.$ac_ext <<_ACEOF
  15960. /* end confdefs.h. */
  15961. #include <stdio.h>
  15962. int
  15963. main ()
  15964. {
  15965. #ifndef _snwprintf
  15966. char *p = (char *) _snwprintf;
  15967. #endif
  15968. ;
  15969. return 0;
  15970. }
  15971. _ACEOF
  15972. rm -f conftest.$ac_objext
  15973. if { (ac_try="$ac_compile"
  15974. case "(($ac_try" in
  15975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15976. *) ac_try_echo=$ac_try;;
  15977. esac
  15978. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15979. $as_echo "$ac_try_echo") >&5
  15980. (eval "$ac_compile") 2>conftest.er1
  15981. ac_status=$?
  15982. grep -v '^ *+' conftest.er1 >conftest.err
  15983. rm -f conftest.er1
  15984. cat conftest.err >&5
  15985. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15986. (exit $ac_status); } && {
  15987. test -z "$ac_cxx_werror_flag" ||
  15988. test ! -s conftest.err
  15989. } && test -s conftest.$ac_objext; then
  15990. ac_cv_have_decl__snwprintf=yes
  15991. else
  15992. $as_echo "$as_me: failed program was:" >&5
  15993. sed 's/^/| /' conftest.$ac_ext >&5
  15994. ac_cv_have_decl__snwprintf=no
  15995. fi
  15996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15997. fi
  15998. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  15999. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  16000. if test $ac_cv_have_decl__snwprintf = yes; then
  16001. gt_value=1
  16002. else
  16003. gt_value=0
  16004. fi
  16005. cat >>confdefs.h <<_ACEOF
  16006. #define HAVE_DECL__SNWPRINTF $gt_value
  16007. _ACEOF
  16008. { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  16009. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  16010. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  16011. $as_echo_n "(cached) " >&6
  16012. else
  16013. cat >conftest.$ac_ext <<_ACEOF
  16014. /* confdefs.h. */
  16015. _ACEOF
  16016. cat confdefs.h >>conftest.$ac_ext
  16017. cat >>conftest.$ac_ext <<_ACEOF
  16018. /* end confdefs.h. */
  16019. #include <stdio.h>
  16020. int
  16021. main ()
  16022. {
  16023. #ifndef getc_unlocked
  16024. char *p = (char *) getc_unlocked;
  16025. #endif
  16026. ;
  16027. return 0;
  16028. }
  16029. _ACEOF
  16030. rm -f conftest.$ac_objext
  16031. if { (ac_try="$ac_compile"
  16032. case "(($ac_try" in
  16033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16034. *) ac_try_echo=$ac_try;;
  16035. esac
  16036. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16037. $as_echo "$ac_try_echo") >&5
  16038. (eval "$ac_compile") 2>conftest.er1
  16039. ac_status=$?
  16040. grep -v '^ *+' conftest.er1 >conftest.err
  16041. rm -f conftest.er1
  16042. cat conftest.err >&5
  16043. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16044. (exit $ac_status); } && {
  16045. test -z "$ac_cxx_werror_flag" ||
  16046. test ! -s conftest.err
  16047. } && test -s conftest.$ac_objext; then
  16048. ac_cv_have_decl_getc_unlocked=yes
  16049. else
  16050. $as_echo "$as_me: failed program was:" >&5
  16051. sed 's/^/| /' conftest.$ac_ext >&5
  16052. ac_cv_have_decl_getc_unlocked=no
  16053. fi
  16054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16055. fi
  16056. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  16057. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  16058. if test $ac_cv_have_decl_getc_unlocked = yes; then
  16059. gt_value=1
  16060. else
  16061. gt_value=0
  16062. fi
  16063. cat >>confdefs.h <<_ACEOF
  16064. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  16065. _ACEOF
  16066. case $gt_cv_func_printf_posix in
  16067. *yes) HAVE_POSIX_PRINTF=1 ;;
  16068. *) HAVE_POSIX_PRINTF=0 ;;
  16069. esac
  16070. if test "$ac_cv_func_asprintf" = yes; then
  16071. HAVE_ASPRINTF=1
  16072. else
  16073. HAVE_ASPRINTF=0
  16074. fi
  16075. if test "$ac_cv_func_snprintf" = yes; then
  16076. HAVE_SNPRINTF=1
  16077. else
  16078. HAVE_SNPRINTF=0
  16079. fi
  16080. if test "$ac_cv_func_wprintf" = yes; then
  16081. HAVE_WPRINTF=1
  16082. else
  16083. HAVE_WPRINTF=0
  16084. fi
  16085. { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  16086. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  16087. if test "${am_cv_langinfo_codeset+set}" = set; then
  16088. $as_echo_n "(cached) " >&6
  16089. else
  16090. cat >conftest.$ac_ext <<_ACEOF
  16091. /* confdefs.h. */
  16092. _ACEOF
  16093. cat confdefs.h >>conftest.$ac_ext
  16094. cat >>conftest.$ac_ext <<_ACEOF
  16095. /* end confdefs.h. */
  16096. #include <langinfo.h>
  16097. int
  16098. main ()
  16099. {
  16100. char* cs = nl_langinfo(CODESET); return !cs;
  16101. ;
  16102. return 0;
  16103. }
  16104. _ACEOF
  16105. rm -f conftest.$ac_objext conftest$ac_exeext
  16106. if { (ac_try="$ac_link"
  16107. case "(($ac_try" in
  16108. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16109. *) ac_try_echo=$ac_try;;
  16110. esac
  16111. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16112. $as_echo "$ac_try_echo") >&5
  16113. (eval "$ac_link") 2>conftest.er1
  16114. ac_status=$?
  16115. grep -v '^ *+' conftest.er1 >conftest.err
  16116. rm -f conftest.er1
  16117. cat conftest.err >&5
  16118. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16119. (exit $ac_status); } && {
  16120. test -z "$ac_cxx_werror_flag" ||
  16121. test ! -s conftest.err
  16122. } && test -s conftest$ac_exeext && {
  16123. test "$cross_compiling" = yes ||
  16124. $as_test_x conftest$ac_exeext
  16125. }; then
  16126. am_cv_langinfo_codeset=yes
  16127. else
  16128. $as_echo "$as_me: failed program was:" >&5
  16129. sed 's/^/| /' conftest.$ac_ext >&5
  16130. am_cv_langinfo_codeset=no
  16131. fi
  16132. rm -rf conftest.dSYM
  16133. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16134. conftest$ac_exeext conftest.$ac_ext
  16135. fi
  16136. { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  16137. $as_echo "$am_cv_langinfo_codeset" >&6; }
  16138. if test $am_cv_langinfo_codeset = yes; then
  16139. cat >>confdefs.h <<\_ACEOF
  16140. #define HAVE_LANGINFO_CODESET 1
  16141. _ACEOF
  16142. fi
  16143. { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  16144. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  16145. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  16146. $as_echo_n "(cached) " >&6
  16147. else
  16148. cat >conftest.$ac_ext <<_ACEOF
  16149. /* confdefs.h. */
  16150. _ACEOF
  16151. cat confdefs.h >>conftest.$ac_ext
  16152. cat >>conftest.$ac_ext <<_ACEOF
  16153. /* end confdefs.h. */
  16154. #include <locale.h>
  16155. int
  16156. main ()
  16157. {
  16158. return LC_MESSAGES
  16159. ;
  16160. return 0;
  16161. }
  16162. _ACEOF
  16163. rm -f conftest.$ac_objext conftest$ac_exeext
  16164. if { (ac_try="$ac_link"
  16165. case "(($ac_try" in
  16166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16167. *) ac_try_echo=$ac_try;;
  16168. esac
  16169. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16170. $as_echo "$ac_try_echo") >&5
  16171. (eval "$ac_link") 2>conftest.er1
  16172. ac_status=$?
  16173. grep -v '^ *+' conftest.er1 >conftest.err
  16174. rm -f conftest.er1
  16175. cat conftest.err >&5
  16176. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16177. (exit $ac_status); } && {
  16178. test -z "$ac_cxx_werror_flag" ||
  16179. test ! -s conftest.err
  16180. } && test -s conftest$ac_exeext && {
  16181. test "$cross_compiling" = yes ||
  16182. $as_test_x conftest$ac_exeext
  16183. }; then
  16184. gt_cv_val_LC_MESSAGES=yes
  16185. else
  16186. $as_echo "$as_me: failed program was:" >&5
  16187. sed 's/^/| /' conftest.$ac_ext >&5
  16188. gt_cv_val_LC_MESSAGES=no
  16189. fi
  16190. rm -rf conftest.dSYM
  16191. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16192. conftest$ac_exeext conftest.$ac_ext
  16193. fi
  16194. { $as_echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  16195. $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
  16196. if test $gt_cv_val_LC_MESSAGES = yes; then
  16197. cat >>confdefs.h <<\_ACEOF
  16198. #define HAVE_LC_MESSAGES 1
  16199. _ACEOF
  16200. fi
  16201. if test "$enable_shared" = yes; then
  16202. case "$host_os" in
  16203. mingw* | cygwin*) is_woe32dll=yes ;;
  16204. *) is_woe32dll=no ;;
  16205. esac
  16206. else
  16207. is_woe32dll=no
  16208. fi
  16209. WOE32DLL=$is_woe32dll
  16210. case "$host_os" in
  16211. mingw* | cygwin*) is_woe32=yes ;;
  16212. *) is_woe32=no ;;
  16213. esac
  16214. WOE32=$is_woe32
  16215. if test $WOE32 = yes; then
  16216. if test -n "$ac_tool_prefix"; then
  16217. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  16218. set dummy ${ac_tool_prefix}windres; ac_word=$2
  16219. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  16220. $as_echo_n "checking for $ac_word... " >&6; }
  16221. if test "${ac_cv_prog_WINDRES+set}" = set; then
  16222. $as_echo_n "(cached) " >&6
  16223. else
  16224. if test -n "$WINDRES"; then
  16225. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  16226. else
  16227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16228. for as_dir in $PATH
  16229. do
  16230. IFS=$as_save_IFS
  16231. test -z "$as_dir" && as_dir=.
  16232. for ac_exec_ext in '' $ac_executable_extensions; do
  16233. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16234. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  16235. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16236. break 2
  16237. fi
  16238. done
  16239. done
  16240. IFS=$as_save_IFS
  16241. fi
  16242. fi
  16243. WINDRES=$ac_cv_prog_WINDRES
  16244. if test -n "$WINDRES"; then
  16245. { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
  16246. $as_echo "$WINDRES" >&6; }
  16247. else
  16248. { $as_echo "$as_me:$LINENO: result: no" >&5
  16249. $as_echo "no" >&6; }
  16250. fi
  16251. fi
  16252. if test -z "$ac_cv_prog_WINDRES"; then
  16253. ac_ct_WINDRES=$WINDRES
  16254. # Extract the first word of "windres", so it can be a program name with args.
  16255. set dummy windres; ac_word=$2
  16256. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  16257. $as_echo_n "checking for $ac_word... " >&6; }
  16258. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  16259. $as_echo_n "(cached) " >&6
  16260. else
  16261. if test -n "$ac_ct_WINDRES"; then
  16262. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  16263. else
  16264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16265. for as_dir in $PATH
  16266. do
  16267. IFS=$as_save_IFS
  16268. test -z "$as_dir" && as_dir=.
  16269. for ac_exec_ext in '' $ac_executable_extensions; do
  16270. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16271. ac_cv_prog_ac_ct_WINDRES="windres"
  16272. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16273. break 2
  16274. fi
  16275. done
  16276. done
  16277. IFS=$as_save_IFS
  16278. fi
  16279. fi
  16280. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  16281. if test -n "$ac_ct_WINDRES"; then
  16282. { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  16283. $as_echo "$ac_ct_WINDRES" >&6; }
  16284. else
  16285. { $as_echo "$as_me:$LINENO: result: no" >&5
  16286. $as_echo "no" >&6; }
  16287. fi
  16288. if test "x$ac_ct_WINDRES" = x; then
  16289. WINDRES=""
  16290. else
  16291. case $cross_compiling:$ac_tool_warned in
  16292. yes:)
  16293. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  16294. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16295. ac_tool_warned=yes ;;
  16296. esac
  16297. WINDRES=$ac_ct_WINDRES
  16298. fi
  16299. else
  16300. WINDRES="$ac_cv_prog_WINDRES"
  16301. fi
  16302. fi
  16303. case "$host_os" in
  16304. hpux*) LTLIBC="" ;;
  16305. *) LTLIBC="-lc" ;;
  16306. esac
  16307. { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  16308. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  16309. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  16310. $as_echo_n "(cached) " >&6
  16311. else
  16312. gt_save_LIBS="$LIBS"
  16313. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  16314. cat >conftest.$ac_ext <<_ACEOF
  16315. /* confdefs.h. */
  16316. _ACEOF
  16317. cat confdefs.h >>conftest.$ac_ext
  16318. cat >>conftest.$ac_ext <<_ACEOF
  16319. /* end confdefs.h. */
  16320. #include <CoreFoundation/CFPreferences.h>
  16321. int
  16322. main ()
  16323. {
  16324. CFPreferencesCopyAppValue(NULL, NULL)
  16325. ;
  16326. return 0;
  16327. }
  16328. _ACEOF
  16329. rm -f conftest.$ac_objext conftest$ac_exeext
  16330. if { (ac_try="$ac_link"
  16331. case "(($ac_try" in
  16332. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16333. *) ac_try_echo=$ac_try;;
  16334. esac
  16335. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16336. $as_echo "$ac_try_echo") >&5
  16337. (eval "$ac_link") 2>conftest.er1
  16338. ac_status=$?
  16339. grep -v '^ *+' conftest.er1 >conftest.err
  16340. rm -f conftest.er1
  16341. cat conftest.err >&5
  16342. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16343. (exit $ac_status); } && {
  16344. test -z "$ac_cxx_werror_flag" ||
  16345. test ! -s conftest.err
  16346. } && test -s conftest$ac_exeext && {
  16347. test "$cross_compiling" = yes ||
  16348. $as_test_x conftest$ac_exeext
  16349. }; then
  16350. gt_cv_func_CFPreferencesCopyAppValue=yes
  16351. else
  16352. $as_echo "$as_me: failed program was:" >&5
  16353. sed 's/^/| /' conftest.$ac_ext >&5
  16354. gt_cv_func_CFPreferencesCopyAppValue=no
  16355. fi
  16356. rm -rf conftest.dSYM
  16357. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16358. conftest$ac_exeext conftest.$ac_ext
  16359. LIBS="$gt_save_LIBS"
  16360. fi
  16361. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  16362. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  16363. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  16364. cat >>confdefs.h <<\_ACEOF
  16365. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  16366. _ACEOF
  16367. fi
  16368. { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  16369. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  16370. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  16371. $as_echo_n "(cached) " >&6
  16372. else
  16373. gt_save_LIBS="$LIBS"
  16374. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  16375. cat >conftest.$ac_ext <<_ACEOF
  16376. /* confdefs.h. */
  16377. _ACEOF
  16378. cat confdefs.h >>conftest.$ac_ext
  16379. cat >>conftest.$ac_ext <<_ACEOF
  16380. /* end confdefs.h. */
  16381. #include <CoreFoundation/CFLocale.h>
  16382. int
  16383. main ()
  16384. {
  16385. CFLocaleCopyCurrent();
  16386. ;
  16387. return 0;
  16388. }
  16389. _ACEOF
  16390. rm -f conftest.$ac_objext conftest$ac_exeext
  16391. if { (ac_try="$ac_link"
  16392. case "(($ac_try" in
  16393. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16394. *) ac_try_echo=$ac_try;;
  16395. esac
  16396. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16397. $as_echo "$ac_try_echo") >&5
  16398. (eval "$ac_link") 2>conftest.er1
  16399. ac_status=$?
  16400. grep -v '^ *+' conftest.er1 >conftest.err
  16401. rm -f conftest.er1
  16402. cat conftest.err >&5
  16403. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16404. (exit $ac_status); } && {
  16405. test -z "$ac_cxx_werror_flag" ||
  16406. test ! -s conftest.err
  16407. } && test -s conftest$ac_exeext && {
  16408. test "$cross_compiling" = yes ||
  16409. $as_test_x conftest$ac_exeext
  16410. }; then
  16411. gt_cv_func_CFLocaleCopyCurrent=yes
  16412. else
  16413. $as_echo "$as_me: failed program was:" >&5
  16414. sed 's/^/| /' conftest.$ac_ext >&5
  16415. gt_cv_func_CFLocaleCopyCurrent=no
  16416. fi
  16417. rm -rf conftest.dSYM
  16418. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16419. conftest$ac_exeext conftest.$ac_ext
  16420. LIBS="$gt_save_LIBS"
  16421. fi
  16422. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  16423. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  16424. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  16425. cat >>confdefs.h <<\_ACEOF
  16426. #define HAVE_CFLOCALECOPYCURRENT 1
  16427. _ACEOF
  16428. fi
  16429. INTL_MACOSX_LIBS=
  16430. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  16431. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  16432. fi
  16433. BUILD_INCLUDED_LIBINTL=no
  16434. USE_INCLUDED_LIBINTL=no
  16435. LIBINTL=
  16436. LTLIBINTL=
  16437. POSUB=
  16438. case " $gt_needs " in
  16439. *" need-formatstring-macros "*) gt_api_version=3 ;;
  16440. *" need-ngettext "*) gt_api_version=2 ;;
  16441. *) gt_api_version=1 ;;
  16442. esac
  16443. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  16444. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  16445. if test "$USE_NLS" = "yes"; then
  16446. gt_use_preinstalled_gnugettext=no
  16447. { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  16448. $as_echo_n "checking whether included gettext is requested... " >&6; }
  16449. # Check whether --with-included-gettext was given.
  16450. if test "${with_included_gettext+set}" = set; then
  16451. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  16452. else
  16453. nls_cv_force_use_gnu_gettext=no
  16454. fi
  16455. { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  16456. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  16457. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  16458. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  16459. if test $gt_api_version -ge 3; then
  16460. gt_revision_test_code='
  16461. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  16462. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  16463. #endif
  16464. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  16465. '
  16466. else
  16467. gt_revision_test_code=
  16468. fi
  16469. if test $gt_api_version -ge 2; then
  16470. gt_expression_test_code=' + * ngettext ("", "", 0)'
  16471. else
  16472. gt_expression_test_code=
  16473. fi
  16474. { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  16475. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  16476. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  16477. $as_echo_n "(cached) " >&6
  16478. else
  16479. cat >conftest.$ac_ext <<_ACEOF
  16480. /* confdefs.h. */
  16481. _ACEOF
  16482. cat confdefs.h >>conftest.$ac_ext
  16483. cat >>conftest.$ac_ext <<_ACEOF
  16484. /* end confdefs.h. */
  16485. #include <libintl.h>
  16486. $gt_revision_test_code
  16487. extern int _nl_msg_cat_cntr;
  16488. extern int *_nl_domain_bindings;
  16489. int
  16490. main ()
  16491. {
  16492. bindtextdomain ("", "");
  16493. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  16494. ;
  16495. return 0;
  16496. }
  16497. _ACEOF
  16498. rm -f conftest.$ac_objext conftest$ac_exeext
  16499. if { (ac_try="$ac_link"
  16500. case "(($ac_try" in
  16501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16502. *) ac_try_echo=$ac_try;;
  16503. esac
  16504. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16505. $as_echo "$ac_try_echo") >&5
  16506. (eval "$ac_link") 2>conftest.er1
  16507. ac_status=$?
  16508. grep -v '^ *+' conftest.er1 >conftest.err
  16509. rm -f conftest.er1
  16510. cat conftest.err >&5
  16511. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16512. (exit $ac_status); } && {
  16513. test -z "$ac_cxx_werror_flag" ||
  16514. test ! -s conftest.err
  16515. } && test -s conftest$ac_exeext && {
  16516. test "$cross_compiling" = yes ||
  16517. $as_test_x conftest$ac_exeext
  16518. }; then
  16519. eval "$gt_func_gnugettext_libc=yes"
  16520. else
  16521. $as_echo "$as_me: failed program was:" >&5
  16522. sed 's/^/| /' conftest.$ac_ext >&5
  16523. eval "$gt_func_gnugettext_libc=no"
  16524. fi
  16525. rm -rf conftest.dSYM
  16526. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16527. conftest$ac_exeext conftest.$ac_ext
  16528. fi
  16529. ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
  16530. $as_echo "$as_val"'`
  16531. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16532. $as_echo "$ac_res" >&6; }
  16533. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  16534. use_additional=yes
  16535. acl_save_prefix="$prefix"
  16536. prefix="$acl_final_prefix"
  16537. acl_save_exec_prefix="$exec_prefix"
  16538. exec_prefix="$acl_final_exec_prefix"
  16539. eval additional_includedir=\"$includedir\"
  16540. eval additional_libdir=\"$libdir\"
  16541. exec_prefix="$acl_save_exec_prefix"
  16542. prefix="$acl_save_prefix"
  16543. # Check whether --with-libintl-prefix was given.
  16544. if test "${with_libintl_prefix+set}" = set; then
  16545. withval=$with_libintl_prefix;
  16546. if test "X$withval" = "Xno"; then
  16547. use_additional=no
  16548. else
  16549. if test "X$withval" = "X"; then
  16550. acl_save_prefix="$prefix"
  16551. prefix="$acl_final_prefix"
  16552. acl_save_exec_prefix="$exec_prefix"
  16553. exec_prefix="$acl_final_exec_prefix"
  16554. eval additional_includedir=\"$includedir\"
  16555. eval additional_libdir=\"$libdir\"
  16556. exec_prefix="$acl_save_exec_prefix"
  16557. prefix="$acl_save_prefix"
  16558. else
  16559. additional_includedir="$withval/include"
  16560. additional_libdir="$withval/$acl_libdirstem"
  16561. fi
  16562. fi
  16563. fi
  16564. LIBINTL=
  16565. LTLIBINTL=
  16566. INCINTL=
  16567. LIBINTL_PREFIX=
  16568. rpathdirs=
  16569. ltrpathdirs=
  16570. names_already_handled=
  16571. names_next_round='intl '
  16572. while test -n "$names_next_round"; do
  16573. names_this_round="$names_next_round"
  16574. names_next_round=
  16575. for name in $names_this_round; do
  16576. already_handled=
  16577. for n in $names_already_handled; do
  16578. if test "$n" = "$name"; then
  16579. already_handled=yes
  16580. break
  16581. fi
  16582. done
  16583. if test -z "$already_handled"; then
  16584. names_already_handled="$names_already_handled $name"
  16585. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  16586. eval value=\"\$HAVE_LIB$uppername\"
  16587. if test -n "$value"; then
  16588. if test "$value" = yes; then
  16589. eval value=\"\$LIB$uppername\"
  16590. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  16591. eval value=\"\$LTLIB$uppername\"
  16592. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  16593. else
  16594. :
  16595. fi
  16596. else
  16597. found_dir=
  16598. found_la=
  16599. found_so=
  16600. found_a=
  16601. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  16602. if test -n "$acl_shlibext"; then
  16603. shrext=".$acl_shlibext" # typically: shrext=.so
  16604. else
  16605. shrext=
  16606. fi
  16607. if test $use_additional = yes; then
  16608. dir="$additional_libdir"
  16609. if test -n "$acl_shlibext"; then
  16610. if test -f "$dir/$libname$shrext"; then
  16611. found_dir="$dir"
  16612. found_so="$dir/$libname$shrext"
  16613. else
  16614. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  16615. ver=`(cd "$dir" && \
  16616. for f in "$libname$shrext".*; do echo "$f"; done \
  16617. | sed -e "s,^$libname$shrext\\\\.,," \
  16618. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  16619. | sed 1q ) 2>/dev/null`
  16620. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  16621. found_dir="$dir"
  16622. found_so="$dir/$libname$shrext.$ver"
  16623. fi
  16624. else
  16625. eval library_names=\"$acl_library_names_spec\"
  16626. for f in $library_names; do
  16627. if test -f "$dir/$f"; then
  16628. found_dir="$dir"
  16629. found_so="$dir/$f"
  16630. break
  16631. fi
  16632. done
  16633. fi
  16634. fi
  16635. fi
  16636. if test "X$found_dir" = "X"; then
  16637. if test -f "$dir/$libname.$acl_libext"; then
  16638. found_dir="$dir"
  16639. found_a="$dir/$libname.$acl_libext"
  16640. fi
  16641. fi
  16642. if test "X$found_dir" != "X"; then
  16643. if test -f "$dir/$libname.la"; then
  16644. found_la="$dir/$libname.la"
  16645. fi
  16646. fi
  16647. fi
  16648. if test "X$found_dir" = "X"; then
  16649. for x in $LDFLAGS $LTLIBINTL; do
  16650. acl_save_prefix="$prefix"
  16651. prefix="$acl_final_prefix"
  16652. acl_save_exec_prefix="$exec_prefix"
  16653. exec_prefix="$acl_final_exec_prefix"
  16654. eval x=\"$x\"
  16655. exec_prefix="$acl_save_exec_prefix"
  16656. prefix="$acl_save_prefix"
  16657. case "$x" in
  16658. -L*)
  16659. dir=`echo "X$x" | sed -e 's/^X-L//'`
  16660. if test -n "$acl_shlibext"; then
  16661. if test -f "$dir/$libname$shrext"; then
  16662. found_dir="$dir"
  16663. found_so="$dir/$libname$shrext"
  16664. else
  16665. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  16666. ver=`(cd "$dir" && \
  16667. for f in "$libname$shrext".*; do echo "$f"; done \
  16668. | sed -e "s,^$libname$shrext\\\\.,," \
  16669. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  16670. | sed 1q ) 2>/dev/null`
  16671. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  16672. found_dir="$dir"
  16673. found_so="$dir/$libname$shrext.$ver"
  16674. fi
  16675. else
  16676. eval library_names=\"$acl_library_names_spec\"
  16677. for f in $library_names; do
  16678. if test -f "$dir/$f"; then
  16679. found_dir="$dir"
  16680. found_so="$dir/$f"
  16681. break
  16682. fi
  16683. done
  16684. fi
  16685. fi
  16686. fi
  16687. if test "X$found_dir" = "X"; then
  16688. if test -f "$dir/$libname.$acl_libext"; then
  16689. found_dir="$dir"
  16690. found_a="$dir/$libname.$acl_libext"
  16691. fi
  16692. fi
  16693. if test "X$found_dir" != "X"; then
  16694. if test -f "$dir/$libname.la"; then
  16695. found_la="$dir/$libname.la"
  16696. fi
  16697. fi
  16698. ;;
  16699. esac
  16700. if test "X$found_dir" != "X"; then
  16701. break
  16702. fi
  16703. done
  16704. fi
  16705. if test "X$found_dir" != "X"; then
  16706. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  16707. if test "X$found_so" != "X"; then
  16708. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  16709. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16710. else
  16711. haveit=
  16712. for x in $ltrpathdirs; do
  16713. if test "X$x" = "X$found_dir"; then
  16714. haveit=yes
  16715. break
  16716. fi
  16717. done
  16718. if test -z "$haveit"; then
  16719. ltrpathdirs="$ltrpathdirs $found_dir"
  16720. fi
  16721. if test "$acl_hardcode_direct" = yes; then
  16722. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16723. else
  16724. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  16725. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16726. haveit=
  16727. for x in $rpathdirs; do
  16728. if test "X$x" = "X$found_dir"; then
  16729. haveit=yes
  16730. break
  16731. fi
  16732. done
  16733. if test -z "$haveit"; then
  16734. rpathdirs="$rpathdirs $found_dir"
  16735. fi
  16736. else
  16737. haveit=
  16738. for x in $LDFLAGS $LIBINTL; do
  16739. acl_save_prefix="$prefix"
  16740. prefix="$acl_final_prefix"
  16741. acl_save_exec_prefix="$exec_prefix"
  16742. exec_prefix="$acl_final_exec_prefix"
  16743. eval x=\"$x\"
  16744. exec_prefix="$acl_save_exec_prefix"
  16745. prefix="$acl_save_prefix"
  16746. if test "X$x" = "X-L$found_dir"; then
  16747. haveit=yes
  16748. break
  16749. fi
  16750. done
  16751. if test -z "$haveit"; then
  16752. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  16753. fi
  16754. if test "$acl_hardcode_minus_L" != no; then
  16755. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16756. else
  16757. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  16758. fi
  16759. fi
  16760. fi
  16761. fi
  16762. else
  16763. if test "X$found_a" != "X"; then
  16764. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  16765. else
  16766. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  16767. fi
  16768. fi
  16769. additional_includedir=
  16770. case "$found_dir" in
  16771. */$acl_libdirstem | */$acl_libdirstem/)
  16772. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  16773. LIBINTL_PREFIX="$basedir"
  16774. additional_includedir="$basedir/include"
  16775. ;;
  16776. esac
  16777. if test "X$additional_includedir" != "X"; then
  16778. if test "X$additional_includedir" != "X/usr/include"; then
  16779. haveit=
  16780. if test "X$additional_includedir" = "X/usr/local/include"; then
  16781. if test -n "$GCC"; then
  16782. case $host_os in
  16783. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  16784. esac
  16785. fi
  16786. fi
  16787. if test -z "$haveit"; then
  16788. for x in $CPPFLAGS $INCINTL; do
  16789. acl_save_prefix="$prefix"
  16790. prefix="$acl_final_prefix"
  16791. acl_save_exec_prefix="$exec_prefix"
  16792. exec_prefix="$acl_final_exec_prefix"
  16793. eval x=\"$x\"
  16794. exec_prefix="$acl_save_exec_prefix"
  16795. prefix="$acl_save_prefix"
  16796. if test "X$x" = "X-I$additional_includedir"; then
  16797. haveit=yes
  16798. break
  16799. fi
  16800. done
  16801. if test -z "$haveit"; then
  16802. if test -d "$additional_includedir"; then
  16803. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  16804. fi
  16805. fi
  16806. fi
  16807. fi
  16808. fi
  16809. if test -n "$found_la"; then
  16810. save_libdir="$libdir"
  16811. case "$found_la" in
  16812. */* | *\\*) . "$found_la" ;;
  16813. *) . "./$found_la" ;;
  16814. esac
  16815. libdir="$save_libdir"
  16816. for dep in $dependency_libs; do
  16817. case "$dep" in
  16818. -L*)
  16819. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  16820. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  16821. haveit=
  16822. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  16823. if test -n "$GCC"; then
  16824. case $host_os in
  16825. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  16826. esac
  16827. fi
  16828. fi
  16829. if test -z "$haveit"; then
  16830. haveit=
  16831. for x in $LDFLAGS $LIBINTL; do
  16832. acl_save_prefix="$prefix"
  16833. prefix="$acl_final_prefix"
  16834. acl_save_exec_prefix="$exec_prefix"
  16835. exec_prefix="$acl_final_exec_prefix"
  16836. eval x=\"$x\"
  16837. exec_prefix="$acl_save_exec_prefix"
  16838. prefix="$acl_save_prefix"
  16839. if test "X$x" = "X-L$additional_libdir"; then
  16840. haveit=yes
  16841. break
  16842. fi
  16843. done
  16844. if test -z "$haveit"; then
  16845. if test -d "$additional_libdir"; then
  16846. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  16847. fi
  16848. fi
  16849. haveit=
  16850. for x in $LDFLAGS $LTLIBINTL; do
  16851. acl_save_prefix="$prefix"
  16852. prefix="$acl_final_prefix"
  16853. acl_save_exec_prefix="$exec_prefix"
  16854. exec_prefix="$acl_final_exec_prefix"
  16855. eval x=\"$x\"
  16856. exec_prefix="$acl_save_exec_prefix"
  16857. prefix="$acl_save_prefix"
  16858. if test "X$x" = "X-L$additional_libdir"; then
  16859. haveit=yes
  16860. break
  16861. fi
  16862. done
  16863. if test -z "$haveit"; then
  16864. if test -d "$additional_libdir"; then
  16865. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  16866. fi
  16867. fi
  16868. fi
  16869. fi
  16870. ;;
  16871. -R*)
  16872. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  16873. if test "$enable_rpath" != no; then
  16874. haveit=
  16875. for x in $rpathdirs; do
  16876. if test "X$x" = "X$dir"; then
  16877. haveit=yes
  16878. break
  16879. fi
  16880. done
  16881. if test -z "$haveit"; then
  16882. rpathdirs="$rpathdirs $dir"
  16883. fi
  16884. haveit=
  16885. for x in $ltrpathdirs; do
  16886. if test "X$x" = "X$dir"; then
  16887. haveit=yes
  16888. break
  16889. fi
  16890. done
  16891. if test -z "$haveit"; then
  16892. ltrpathdirs="$ltrpathdirs $dir"
  16893. fi
  16894. fi
  16895. ;;
  16896. -l*)
  16897. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  16898. ;;
  16899. *.la)
  16900. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  16901. ;;
  16902. *)
  16903. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  16904. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  16905. ;;
  16906. esac
  16907. done
  16908. fi
  16909. else
  16910. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  16911. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  16912. fi
  16913. fi
  16914. fi
  16915. done
  16916. done
  16917. if test "X$rpathdirs" != "X"; then
  16918. if test -n "$acl_hardcode_libdir_separator"; then
  16919. alldirs=
  16920. for found_dir in $rpathdirs; do
  16921. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  16922. done
  16923. acl_save_libdir="$libdir"
  16924. libdir="$alldirs"
  16925. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  16926. libdir="$acl_save_libdir"
  16927. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  16928. else
  16929. for found_dir in $rpathdirs; do
  16930. acl_save_libdir="$libdir"
  16931. libdir="$found_dir"
  16932. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  16933. libdir="$acl_save_libdir"
  16934. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  16935. done
  16936. fi
  16937. fi
  16938. if test "X$ltrpathdirs" != "X"; then
  16939. for found_dir in $ltrpathdirs; do
  16940. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  16941. done
  16942. fi
  16943. { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  16944. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  16945. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  16946. $as_echo_n "(cached) " >&6
  16947. else
  16948. gt_save_CPPFLAGS="$CPPFLAGS"
  16949. CPPFLAGS="$CPPFLAGS $INCINTL"
  16950. gt_save_LIBS="$LIBS"
  16951. LIBS="$LIBS $LIBINTL"
  16952. cat >conftest.$ac_ext <<_ACEOF
  16953. /* confdefs.h. */
  16954. _ACEOF
  16955. cat confdefs.h >>conftest.$ac_ext
  16956. cat >>conftest.$ac_ext <<_ACEOF
  16957. /* end confdefs.h. */
  16958. #include <libintl.h>
  16959. $gt_revision_test_code
  16960. extern int _nl_msg_cat_cntr;
  16961. extern
  16962. #ifdef __cplusplus
  16963. "C"
  16964. #endif
  16965. const char *_nl_expand_alias (const char *);
  16966. int
  16967. main ()
  16968. {
  16969. bindtextdomain ("", "");
  16970. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  16971. ;
  16972. return 0;
  16973. }
  16974. _ACEOF
  16975. rm -f conftest.$ac_objext conftest$ac_exeext
  16976. if { (ac_try="$ac_link"
  16977. case "(($ac_try" in
  16978. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16979. *) ac_try_echo=$ac_try;;
  16980. esac
  16981. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16982. $as_echo "$ac_try_echo") >&5
  16983. (eval "$ac_link") 2>conftest.er1
  16984. ac_status=$?
  16985. grep -v '^ *+' conftest.er1 >conftest.err
  16986. rm -f conftest.er1
  16987. cat conftest.err >&5
  16988. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16989. (exit $ac_status); } && {
  16990. test -z "$ac_cxx_werror_flag" ||
  16991. test ! -s conftest.err
  16992. } && test -s conftest$ac_exeext && {
  16993. test "$cross_compiling" = yes ||
  16994. $as_test_x conftest$ac_exeext
  16995. }; then
  16996. eval "$gt_func_gnugettext_libintl=yes"
  16997. else
  16998. $as_echo "$as_me: failed program was:" >&5
  16999. sed 's/^/| /' conftest.$ac_ext >&5
  17000. eval "$gt_func_gnugettext_libintl=no"
  17001. fi
  17002. rm -rf conftest.dSYM
  17003. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17004. conftest$ac_exeext conftest.$ac_ext
  17005. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  17006. LIBS="$LIBS $LIBICONV"
  17007. cat >conftest.$ac_ext <<_ACEOF
  17008. /* confdefs.h. */
  17009. _ACEOF
  17010. cat confdefs.h >>conftest.$ac_ext
  17011. cat >>conftest.$ac_ext <<_ACEOF
  17012. /* end confdefs.h. */
  17013. #include <libintl.h>
  17014. $gt_revision_test_code
  17015. extern int _nl_msg_cat_cntr;
  17016. extern
  17017. #ifdef __cplusplus
  17018. "C"
  17019. #endif
  17020. const char *_nl_expand_alias (const char *);
  17021. int
  17022. main ()
  17023. {
  17024. bindtextdomain ("", "");
  17025. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  17026. ;
  17027. return 0;
  17028. }
  17029. _ACEOF
  17030. rm -f conftest.$ac_objext conftest$ac_exeext
  17031. if { (ac_try="$ac_link"
  17032. case "(($ac_try" in
  17033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17034. *) ac_try_echo=$ac_try;;
  17035. esac
  17036. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17037. $as_echo "$ac_try_echo") >&5
  17038. (eval "$ac_link") 2>conftest.er1
  17039. ac_status=$?
  17040. grep -v '^ *+' conftest.er1 >conftest.err
  17041. rm -f conftest.er1
  17042. cat conftest.err >&5
  17043. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17044. (exit $ac_status); } && {
  17045. test -z "$ac_cxx_werror_flag" ||
  17046. test ! -s conftest.err
  17047. } && test -s conftest$ac_exeext && {
  17048. test "$cross_compiling" = yes ||
  17049. $as_test_x conftest$ac_exeext
  17050. }; then
  17051. LIBINTL="$LIBINTL $LIBICONV"
  17052. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  17053. eval "$gt_func_gnugettext_libintl=yes"
  17054. else
  17055. $as_echo "$as_me: failed program was:" >&5
  17056. sed 's/^/| /' conftest.$ac_ext >&5
  17057. fi
  17058. rm -rf conftest.dSYM
  17059. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17060. conftest$ac_exeext conftest.$ac_ext
  17061. fi
  17062. CPPFLAGS="$gt_save_CPPFLAGS"
  17063. LIBS="$gt_save_LIBS"
  17064. fi
  17065. ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
  17066. $as_echo "$as_val"'`
  17067. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17068. $as_echo "$ac_res" >&6; }
  17069. fi
  17070. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  17071. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  17072. && test "$PACKAGE" != gettext-runtime \
  17073. && test "$PACKAGE" != gettext-tools; }; then
  17074. gt_use_preinstalled_gnugettext=yes
  17075. else
  17076. LIBINTL=
  17077. LTLIBINTL=
  17078. INCINTL=
  17079. fi
  17080. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  17081. nls_cv_use_gnu_gettext=yes
  17082. fi
  17083. fi
  17084. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  17085. BUILD_INCLUDED_LIBINTL=yes
  17086. USE_INCLUDED_LIBINTL=yes
  17087. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  17088. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  17089. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  17090. fi
  17091. CATOBJEXT=
  17092. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  17093. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  17094. CATOBJEXT=.gmo
  17095. fi
  17096. if test -n "$INTL_MACOSX_LIBS"; then
  17097. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  17098. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  17099. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  17100. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  17101. fi
  17102. fi
  17103. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  17104. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  17105. cat >>confdefs.h <<\_ACEOF
  17106. #define ENABLE_NLS 1
  17107. _ACEOF
  17108. else
  17109. USE_NLS=no
  17110. fi
  17111. fi
  17112. { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
  17113. $as_echo_n "checking whether to use NLS... " >&6; }
  17114. { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
  17115. $as_echo "$USE_NLS" >&6; }
  17116. if test "$USE_NLS" = "yes"; then
  17117. { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  17118. $as_echo_n "checking where the gettext function comes from... " >&6; }
  17119. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  17120. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  17121. gt_source="external libintl"
  17122. else
  17123. gt_source="libc"
  17124. fi
  17125. else
  17126. gt_source="included intl directory"
  17127. fi
  17128. { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
  17129. $as_echo "$gt_source" >&6; }
  17130. fi
  17131. if test "$USE_NLS" = "yes"; then
  17132. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  17133. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  17134. { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
  17135. $as_echo_n "checking how to link with libintl... " >&6; }
  17136. { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
  17137. $as_echo "$LIBINTL" >&6; }
  17138. for element in $INCINTL; do
  17139. haveit=
  17140. for x in $CPPFLAGS; do
  17141. acl_save_prefix="$prefix"
  17142. prefix="$acl_final_prefix"
  17143. acl_save_exec_prefix="$exec_prefix"
  17144. exec_prefix="$acl_final_exec_prefix"
  17145. eval x=\"$x\"
  17146. exec_prefix="$acl_save_exec_prefix"
  17147. prefix="$acl_save_prefix"
  17148. if test "X$x" = "X$element"; then
  17149. haveit=yes
  17150. break
  17151. fi
  17152. done
  17153. if test -z "$haveit"; then
  17154. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  17155. fi
  17156. done
  17157. fi
  17158. cat >>confdefs.h <<\_ACEOF
  17159. #define HAVE_GETTEXT 1
  17160. _ACEOF
  17161. cat >>confdefs.h <<\_ACEOF
  17162. #define HAVE_DCGETTEXT 1
  17163. _ACEOF
  17164. fi
  17165. POSUB=po
  17166. fi
  17167. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  17168. BUILD_INCLUDED_LIBINTL=yes
  17169. fi
  17170. nls_cv_header_intl=
  17171. nls_cv_header_libgt=
  17172. DATADIRNAME=share
  17173. INSTOBJEXT=.mo
  17174. GENCAT=gencat
  17175. INTLOBJS=
  17176. if test "$USE_INCLUDED_LIBINTL" = yes; then
  17177. INTLOBJS="\$(GETTOBJS)"
  17178. fi
  17179. INTL_LIBTOOL_SUFFIX_PREFIX=
  17180. INTLLIBS="$LIBINTL"
  17181. { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
  17182. $as_echo_n "checking for error_at_line... " >&6; }
  17183. if test "${ac_cv_lib_error_at_line+set}" = set; then
  17184. $as_echo_n "(cached) " >&6
  17185. else
  17186. cat >conftest.$ac_ext <<_ACEOF
  17187. /* confdefs.h. */
  17188. _ACEOF
  17189. cat confdefs.h >>conftest.$ac_ext
  17190. cat >>conftest.$ac_ext <<_ACEOF
  17191. /* end confdefs.h. */
  17192. #include <error.h>
  17193. int
  17194. main ()
  17195. {
  17196. error_at_line (0, 0, "", 0, "an error occurred");
  17197. ;
  17198. return 0;
  17199. }
  17200. _ACEOF
  17201. rm -f conftest.$ac_objext conftest$ac_exeext
  17202. if { (ac_try="$ac_link"
  17203. case "(($ac_try" in
  17204. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17205. *) ac_try_echo=$ac_try;;
  17206. esac
  17207. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17208. $as_echo "$ac_try_echo") >&5
  17209. (eval "$ac_link") 2>conftest.er1
  17210. ac_status=$?
  17211. grep -v '^ *+' conftest.er1 >conftest.err
  17212. rm -f conftest.er1
  17213. cat conftest.err >&5
  17214. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17215. (exit $ac_status); } && {
  17216. test -z "$ac_cxx_werror_flag" ||
  17217. test ! -s conftest.err
  17218. } && test -s conftest$ac_exeext && {
  17219. test "$cross_compiling" = yes ||
  17220. $as_test_x conftest$ac_exeext
  17221. }; then
  17222. ac_cv_lib_error_at_line=yes
  17223. else
  17224. $as_echo "$as_me: failed program was:" >&5
  17225. sed 's/^/| /' conftest.$ac_ext >&5
  17226. ac_cv_lib_error_at_line=no
  17227. fi
  17228. rm -rf conftest.dSYM
  17229. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17230. conftest$ac_exeext conftest.$ac_ext
  17231. fi
  17232. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  17233. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  17234. if test $ac_cv_lib_error_at_line = no; then
  17235. case " $LIBOBJS " in
  17236. *" error.$ac_objext "* ) ;;
  17237. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  17238. ;;
  17239. esac
  17240. fi
  17241. if test $ac_cv_c_compiler_gnu = yes; then
  17242. { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  17243. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  17244. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  17245. $as_echo_n "(cached) " >&6
  17246. else
  17247. ac_pattern="Autoconf.*'x'"
  17248. cat >conftest.$ac_ext <<_ACEOF
  17249. /* confdefs.h. */
  17250. _ACEOF
  17251. cat confdefs.h >>conftest.$ac_ext
  17252. cat >>conftest.$ac_ext <<_ACEOF
  17253. /* end confdefs.h. */
  17254. #include <sgtty.h>
  17255. Autoconf TIOCGETP
  17256. _ACEOF
  17257. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17258. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  17259. ac_cv_prog_gcc_traditional=yes
  17260. else
  17261. ac_cv_prog_gcc_traditional=no
  17262. fi
  17263. rm -f conftest*
  17264. if test $ac_cv_prog_gcc_traditional = no; then
  17265. cat >conftest.$ac_ext <<_ACEOF
  17266. /* confdefs.h. */
  17267. _ACEOF
  17268. cat confdefs.h >>conftest.$ac_ext
  17269. cat >>conftest.$ac_ext <<_ACEOF
  17270. /* end confdefs.h. */
  17271. #include <termio.h>
  17272. Autoconf TCGETA
  17273. _ACEOF
  17274. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17275. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  17276. ac_cv_prog_gcc_traditional=yes
  17277. fi
  17278. rm -f conftest*
  17279. fi
  17280. fi
  17281. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  17282. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  17283. if test $ac_cv_prog_gcc_traditional = yes; then
  17284. CC="$CC -traditional"
  17285. fi
  17286. fi
  17287. { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
  17288. $as_echo_n "checking for working memcmp... " >&6; }
  17289. if test "${ac_cv_func_memcmp_working+set}" = set; then
  17290. $as_echo_n "(cached) " >&6
  17291. else
  17292. if test "$cross_compiling" = yes; then
  17293. ac_cv_func_memcmp_working=no
  17294. else
  17295. cat >conftest.$ac_ext <<_ACEOF
  17296. /* confdefs.h. */
  17297. _ACEOF
  17298. cat confdefs.h >>conftest.$ac_ext
  17299. cat >>conftest.$ac_ext <<_ACEOF
  17300. /* end confdefs.h. */
  17301. $ac_includes_default
  17302. int
  17303. main ()
  17304. {
  17305. /* Some versions of memcmp are not 8-bit clean. */
  17306. char c0 = '\100', c1 = '\200', c2 = '\201';
  17307. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  17308. return 1;
  17309. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  17310. or more and with at least one buffer not starting on a 4-byte boundary.
  17311. William Lewis provided this test program. */
  17312. {
  17313. char foo[21];
  17314. char bar[21];
  17315. int i;
  17316. for (i = 0; i < 4; i++)
  17317. {
  17318. char *a = foo + i;
  17319. char *b = bar + i;
  17320. strcpy (a, "--------01111111");
  17321. strcpy (b, "--------10000000");
  17322. if (memcmp (a, b, 16) >= 0)
  17323. return 1;
  17324. }
  17325. return 0;
  17326. }
  17327. ;
  17328. return 0;
  17329. }
  17330. _ACEOF
  17331. rm -f conftest$ac_exeext
  17332. if { (ac_try="$ac_link"
  17333. case "(($ac_try" in
  17334. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17335. *) ac_try_echo=$ac_try;;
  17336. esac
  17337. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17338. $as_echo "$ac_try_echo") >&5
  17339. (eval "$ac_link") 2>&5
  17340. ac_status=$?
  17341. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17342. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17343. { (case "(($ac_try" in
  17344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17345. *) ac_try_echo=$ac_try;;
  17346. esac
  17347. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17348. $as_echo "$ac_try_echo") >&5
  17349. (eval "$ac_try") 2>&5
  17350. ac_status=$?
  17351. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17352. (exit $ac_status); }; }; then
  17353. ac_cv_func_memcmp_working=yes
  17354. else
  17355. $as_echo "$as_me: program exited with status $ac_status" >&5
  17356. $as_echo "$as_me: failed program was:" >&5
  17357. sed 's/^/| /' conftest.$ac_ext >&5
  17358. ( exit $ac_status )
  17359. ac_cv_func_memcmp_working=no
  17360. fi
  17361. rm -rf conftest.dSYM
  17362. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17363. fi
  17364. fi
  17365. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  17366. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  17367. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  17368. *" memcmp.$ac_objext "* ) ;;
  17369. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  17370. ;;
  17371. esac
  17372. for ac_header in $ac_header_list
  17373. do
  17374. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17375. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17376. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17377. $as_echo_n "checking for $ac_header... " >&6; }
  17378. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17379. $as_echo_n "(cached) " >&6
  17380. fi
  17381. ac_res=`eval 'as_val=${'$as_ac_Header'}
  17382. $as_echo "$as_val"'`
  17383. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17384. $as_echo "$ac_res" >&6; }
  17385. else
  17386. # Is the header compilable?
  17387. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17388. $as_echo_n "checking $ac_header usability... " >&6; }
  17389. cat >conftest.$ac_ext <<_ACEOF
  17390. /* confdefs.h. */
  17391. _ACEOF
  17392. cat confdefs.h >>conftest.$ac_ext
  17393. cat >>conftest.$ac_ext <<_ACEOF
  17394. /* end confdefs.h. */
  17395. $ac_includes_default
  17396. #include <$ac_header>
  17397. _ACEOF
  17398. rm -f conftest.$ac_objext
  17399. if { (ac_try="$ac_compile"
  17400. case "(($ac_try" in
  17401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17402. *) ac_try_echo=$ac_try;;
  17403. esac
  17404. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17405. $as_echo "$ac_try_echo") >&5
  17406. (eval "$ac_compile") 2>conftest.er1
  17407. ac_status=$?
  17408. grep -v '^ *+' conftest.er1 >conftest.err
  17409. rm -f conftest.er1
  17410. cat conftest.err >&5
  17411. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17412. (exit $ac_status); } && {
  17413. test -z "$ac_cxx_werror_flag" ||
  17414. test ! -s conftest.err
  17415. } && test -s conftest.$ac_objext; then
  17416. ac_header_compiler=yes
  17417. else
  17418. $as_echo "$as_me: failed program was:" >&5
  17419. sed 's/^/| /' conftest.$ac_ext >&5
  17420. ac_header_compiler=no
  17421. fi
  17422. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17423. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17424. $as_echo "$ac_header_compiler" >&6; }
  17425. # Is the header present?
  17426. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17427. $as_echo_n "checking $ac_header presence... " >&6; }
  17428. cat >conftest.$ac_ext <<_ACEOF
  17429. /* confdefs.h. */
  17430. _ACEOF
  17431. cat confdefs.h >>conftest.$ac_ext
  17432. cat >>conftest.$ac_ext <<_ACEOF
  17433. /* end confdefs.h. */
  17434. #include <$ac_header>
  17435. _ACEOF
  17436. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17437. case "(($ac_try" in
  17438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17439. *) ac_try_echo=$ac_try;;
  17440. esac
  17441. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17442. $as_echo "$ac_try_echo") >&5
  17443. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17444. ac_status=$?
  17445. grep -v '^ *+' conftest.er1 >conftest.err
  17446. rm -f conftest.er1
  17447. cat conftest.err >&5
  17448. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17449. (exit $ac_status); } >/dev/null && {
  17450. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17451. test ! -s conftest.err
  17452. }; then
  17453. ac_header_preproc=yes
  17454. else
  17455. $as_echo "$as_me: failed program was:" >&5
  17456. sed 's/^/| /' conftest.$ac_ext >&5
  17457. ac_header_preproc=no
  17458. fi
  17459. rm -f conftest.err conftest.$ac_ext
  17460. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17461. $as_echo "$ac_header_preproc" >&6; }
  17462. # So? What about this header?
  17463. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17464. yes:no: )
  17465. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17466. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17467. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17468. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17469. ac_header_preproc=yes
  17470. ;;
  17471. no:yes:* )
  17472. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17473. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17474. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17475. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17476. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17477. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17478. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17479. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17480. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17481. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17482. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17483. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17484. ( cat <<\_ASBOX
  17485. ## ----------------------------------------------- ##
  17486. ## Report this to t-tujikawa@users.sourceforge.net ##
  17487. ## ----------------------------------------------- ##
  17488. _ASBOX
  17489. ) | sed "s/^/$as_me: WARNING: /" >&2
  17490. ;;
  17491. esac
  17492. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17493. $as_echo_n "checking for $ac_header... " >&6; }
  17494. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17495. $as_echo_n "(cached) " >&6
  17496. else
  17497. eval "$as_ac_Header=\$ac_header_preproc"
  17498. fi
  17499. ac_res=`eval 'as_val=${'$as_ac_Header'}
  17500. $as_echo "$as_val"'`
  17501. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17502. $as_echo "$ac_res" >&6; }
  17503. fi
  17504. as_val=`eval 'as_val=${'$as_ac_Header'}
  17505. $as_echo "$as_val"'`
  17506. if test "x$as_val" = x""yes; then
  17507. cat >>confdefs.h <<_ACEOF
  17508. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17509. _ACEOF
  17510. fi
  17511. done
  17512. for ac_func in $ac_func_list
  17513. do
  17514. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17515. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17516. $as_echo_n "checking for $ac_func... " >&6; }
  17517. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17518. $as_echo_n "(cached) " >&6
  17519. else
  17520. cat >conftest.$ac_ext <<_ACEOF
  17521. /* confdefs.h. */
  17522. _ACEOF
  17523. cat confdefs.h >>conftest.$ac_ext
  17524. cat >>conftest.$ac_ext <<_ACEOF
  17525. /* end confdefs.h. */
  17526. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17527. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17528. #define $ac_func innocuous_$ac_func
  17529. /* System header to define __stub macros and hopefully few prototypes,
  17530. which can conflict with char $ac_func (); below.
  17531. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17532. <limits.h> exists even on freestanding compilers. */
  17533. #ifdef __STDC__
  17534. # include <limits.h>
  17535. #else
  17536. # include <assert.h>
  17537. #endif
  17538. #undef $ac_func
  17539. /* Override any GCC internal prototype to avoid an error.
  17540. Use char because int might match the return type of a GCC
  17541. builtin and then its argument prototype would still apply. */
  17542. #ifdef __cplusplus
  17543. extern "C"
  17544. #endif
  17545. char $ac_func ();
  17546. /* The GNU C library defines this for functions which it implements
  17547. to always fail with ENOSYS. Some functions are actually named
  17548. something starting with __ and the normal name is an alias. */
  17549. #if defined __stub_$ac_func || defined __stub___$ac_func
  17550. choke me
  17551. #endif
  17552. int
  17553. main ()
  17554. {
  17555. return $ac_func ();
  17556. ;
  17557. return 0;
  17558. }
  17559. _ACEOF
  17560. rm -f conftest.$ac_objext conftest$ac_exeext
  17561. if { (ac_try="$ac_link"
  17562. case "(($ac_try" in
  17563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17564. *) ac_try_echo=$ac_try;;
  17565. esac
  17566. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17567. $as_echo "$ac_try_echo") >&5
  17568. (eval "$ac_link") 2>conftest.er1
  17569. ac_status=$?
  17570. grep -v '^ *+' conftest.er1 >conftest.err
  17571. rm -f conftest.er1
  17572. cat conftest.err >&5
  17573. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17574. (exit $ac_status); } && {
  17575. test -z "$ac_cxx_werror_flag" ||
  17576. test ! -s conftest.err
  17577. } && test -s conftest$ac_exeext && {
  17578. test "$cross_compiling" = yes ||
  17579. $as_test_x conftest$ac_exeext
  17580. }; then
  17581. eval "$as_ac_var=yes"
  17582. else
  17583. $as_echo "$as_me: failed program was:" >&5
  17584. sed 's/^/| /' conftest.$ac_ext >&5
  17585. eval "$as_ac_var=no"
  17586. fi
  17587. rm -rf conftest.dSYM
  17588. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17589. conftest$ac_exeext conftest.$ac_ext
  17590. fi
  17591. ac_res=`eval 'as_val=${'$as_ac_var'}
  17592. $as_echo "$as_val"'`
  17593. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17594. $as_echo "$ac_res" >&6; }
  17595. as_val=`eval 'as_val=${'$as_ac_var'}
  17596. $as_echo "$as_val"'`
  17597. if test "x$as_val" = x""yes; then
  17598. cat >>confdefs.h <<_ACEOF
  17599. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17600. _ACEOF
  17601. fi
  17602. done
  17603. { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
  17604. $as_echo_n "checking for working mktime... " >&6; }
  17605. if test "${ac_cv_func_working_mktime+set}" = set; then
  17606. $as_echo_n "(cached) " >&6
  17607. else
  17608. if test "$cross_compiling" = yes; then
  17609. ac_cv_func_working_mktime=no
  17610. else
  17611. cat >conftest.$ac_ext <<_ACEOF
  17612. /* confdefs.h. */
  17613. _ACEOF
  17614. cat confdefs.h >>conftest.$ac_ext
  17615. cat >>conftest.$ac_ext <<_ACEOF
  17616. /* end confdefs.h. */
  17617. /* Test program from Paul Eggert and Tony Leneis. */
  17618. #ifdef TIME_WITH_SYS_TIME
  17619. # include <sys/time.h>
  17620. # include <time.h>
  17621. #else
  17622. # ifdef HAVE_SYS_TIME_H
  17623. # include <sys/time.h>
  17624. # else
  17625. # include <time.h>
  17626. # endif
  17627. #endif
  17628. #include <limits.h>
  17629. #include <stdlib.h>
  17630. #ifdef HAVE_UNISTD_H
  17631. # include <unistd.h>
  17632. #endif
  17633. #ifndef HAVE_ALARM
  17634. # define alarm(X) /* empty */
  17635. #endif
  17636. /* Work around redefinition to rpl_putenv by other config tests. */
  17637. #undef putenv
  17638. static time_t time_t_max;
  17639. static time_t time_t_min;
  17640. /* Values we'll use to set the TZ environment variable. */
  17641. static char *tz_strings[] = {
  17642. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  17643. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  17644. };
  17645. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  17646. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  17647. Based on a problem report from Andreas Jaeger. */
  17648. static int
  17649. spring_forward_gap ()
  17650. {
  17651. /* glibc (up to about 1998-10-07) failed this test. */
  17652. struct tm tm;
  17653. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17654. instead of "TZ=America/Vancouver" in order to detect the bug even
  17655. on systems that don't support the Olson extension, or don't have the
  17656. full zoneinfo tables installed. */
  17657. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17658. tm.tm_year = 98;
  17659. tm.tm_mon = 3;
  17660. tm.tm_mday = 5;
  17661. tm.tm_hour = 2;
  17662. tm.tm_min = 0;
  17663. tm.tm_sec = 0;
  17664. tm.tm_isdst = -1;
  17665. return mktime (&tm) != (time_t) -1;
  17666. }
  17667. static int
  17668. mktime_test1 (now)
  17669. time_t now;
  17670. {
  17671. struct tm *lt;
  17672. return ! (lt = localtime (&now)) || mktime (lt) == now;
  17673. }
  17674. static int
  17675. mktime_test (now)
  17676. time_t now;
  17677. {
  17678. return (mktime_test1 (now)
  17679. && mktime_test1 ((time_t) (time_t_max - now))
  17680. && mktime_test1 ((time_t) (time_t_min + now)));
  17681. }
  17682. static int
  17683. irix_6_4_bug ()
  17684. {
  17685. /* Based on code from Ariel Faigon. */
  17686. struct tm tm;
  17687. tm.tm_year = 96;
  17688. tm.tm_mon = 3;
  17689. tm.tm_mday = 0;
  17690. tm.tm_hour = 0;
  17691. tm.tm_min = 0;
  17692. tm.tm_sec = 0;
  17693. tm.tm_isdst = -1;
  17694. mktime (&tm);
  17695. return tm.tm_mon == 2 && tm.tm_mday == 31;
  17696. }
  17697. static int
  17698. bigtime_test (j)
  17699. int j;
  17700. {
  17701. struct tm tm;
  17702. time_t now;
  17703. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  17704. now = mktime (&tm);
  17705. if (now != (time_t) -1)
  17706. {
  17707. struct tm *lt = localtime (&now);
  17708. if (! (lt
  17709. && lt->tm_year == tm.tm_year
  17710. && lt->tm_mon == tm.tm_mon
  17711. && lt->tm_mday == tm.tm_mday
  17712. && lt->tm_hour == tm.tm_hour
  17713. && lt->tm_min == tm.tm_min
  17714. && lt->tm_sec == tm.tm_sec
  17715. && lt->tm_yday == tm.tm_yday
  17716. && lt->tm_wday == tm.tm_wday
  17717. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  17718. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  17719. return 0;
  17720. }
  17721. return 1;
  17722. }
  17723. static int
  17724. year_2050_test ()
  17725. {
  17726. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  17727. ignoring leap seconds. */
  17728. unsigned long int answer = 2527315200UL;
  17729. struct tm tm;
  17730. time_t t;
  17731. tm.tm_year = 2050 - 1900;
  17732. tm.tm_mon = 2 - 1;
  17733. tm.tm_mday = 1;
  17734. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  17735. tm.tm_isdst = -1;
  17736. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17737. instead of "TZ=America/Vancouver" in order to detect the bug even
  17738. on systems that don't support the Olson extension, or don't have the
  17739. full zoneinfo tables installed. */
  17740. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17741. t = mktime (&tm);
  17742. /* Check that the result is either a failure, or close enough
  17743. to the correct answer that we can assume the discrepancy is
  17744. due to leap seconds. */
  17745. return (t == (time_t) -1
  17746. || (0 < t && answer - 120 <= t && t <= answer + 120));
  17747. }
  17748. int
  17749. main ()
  17750. {
  17751. time_t t, delta;
  17752. int i, j;
  17753. /* This test makes some buggy mktime implementations loop.
  17754. Give up after 60 seconds; a mktime slower than that
  17755. isn't worth using anyway. */
  17756. alarm (60);
  17757. for (;;)
  17758. {
  17759. t = (time_t_max << 1) + 1;
  17760. if (t <= time_t_max)
  17761. break;
  17762. time_t_max = t;
  17763. }
  17764. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  17765. delta = time_t_max / 997; /* a suitable prime number */
  17766. for (i = 0; i < N_STRINGS; i++)
  17767. {
  17768. if (tz_strings[i])
  17769. putenv (tz_strings[i]);
  17770. for (t = 0; t <= time_t_max - delta; t += delta)
  17771. if (! mktime_test (t))
  17772. return 1;
  17773. if (! (mktime_test ((time_t) 1)
  17774. && mktime_test ((time_t) (60 * 60))
  17775. && mktime_test ((time_t) (60 * 60 * 24))))
  17776. return 1;
  17777. for (j = 1; ; j <<= 1)
  17778. if (! bigtime_test (j))
  17779. return 1;
  17780. else if (INT_MAX / 2 < j)
  17781. break;
  17782. if (! bigtime_test (INT_MAX))
  17783. return 1;
  17784. }
  17785. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  17786. }
  17787. _ACEOF
  17788. rm -f conftest$ac_exeext
  17789. if { (ac_try="$ac_link"
  17790. case "(($ac_try" in
  17791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17792. *) ac_try_echo=$ac_try;;
  17793. esac
  17794. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17795. $as_echo "$ac_try_echo") >&5
  17796. (eval "$ac_link") 2>&5
  17797. ac_status=$?
  17798. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17799. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17800. { (case "(($ac_try" in
  17801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17802. *) ac_try_echo=$ac_try;;
  17803. esac
  17804. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17805. $as_echo "$ac_try_echo") >&5
  17806. (eval "$ac_try") 2>&5
  17807. ac_status=$?
  17808. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17809. (exit $ac_status); }; }; then
  17810. ac_cv_func_working_mktime=yes
  17811. else
  17812. $as_echo "$as_me: program exited with status $ac_status" >&5
  17813. $as_echo "$as_me: failed program was:" >&5
  17814. sed 's/^/| /' conftest.$ac_ext >&5
  17815. ( exit $ac_status )
  17816. ac_cv_func_working_mktime=no
  17817. fi
  17818. rm -rf conftest.dSYM
  17819. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17820. fi
  17821. fi
  17822. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  17823. $as_echo "$ac_cv_func_working_mktime" >&6; }
  17824. if test $ac_cv_func_working_mktime = no; then
  17825. case " $LIBOBJS " in
  17826. *" mktime.$ac_objext "* ) ;;
  17827. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  17828. ;;
  17829. esac
  17830. fi
  17831. for ac_header in stdlib.h unistd.h
  17832. do
  17833. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17834. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17835. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17836. $as_echo_n "checking for $ac_header... " >&6; }
  17837. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17838. $as_echo_n "(cached) " >&6
  17839. fi
  17840. ac_res=`eval 'as_val=${'$as_ac_Header'}
  17841. $as_echo "$as_val"'`
  17842. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17843. $as_echo "$ac_res" >&6; }
  17844. else
  17845. # Is the header compilable?
  17846. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17847. $as_echo_n "checking $ac_header usability... " >&6; }
  17848. cat >conftest.$ac_ext <<_ACEOF
  17849. /* confdefs.h. */
  17850. _ACEOF
  17851. cat confdefs.h >>conftest.$ac_ext
  17852. cat >>conftest.$ac_ext <<_ACEOF
  17853. /* end confdefs.h. */
  17854. $ac_includes_default
  17855. #include <$ac_header>
  17856. _ACEOF
  17857. rm -f conftest.$ac_objext
  17858. if { (ac_try="$ac_compile"
  17859. case "(($ac_try" in
  17860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17861. *) ac_try_echo=$ac_try;;
  17862. esac
  17863. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17864. $as_echo "$ac_try_echo") >&5
  17865. (eval "$ac_compile") 2>conftest.er1
  17866. ac_status=$?
  17867. grep -v '^ *+' conftest.er1 >conftest.err
  17868. rm -f conftest.er1
  17869. cat conftest.err >&5
  17870. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17871. (exit $ac_status); } && {
  17872. test -z "$ac_cxx_werror_flag" ||
  17873. test ! -s conftest.err
  17874. } && test -s conftest.$ac_objext; then
  17875. ac_header_compiler=yes
  17876. else
  17877. $as_echo "$as_me: failed program was:" >&5
  17878. sed 's/^/| /' conftest.$ac_ext >&5
  17879. ac_header_compiler=no
  17880. fi
  17881. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17882. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17883. $as_echo "$ac_header_compiler" >&6; }
  17884. # Is the header present?
  17885. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17886. $as_echo_n "checking $ac_header presence... " >&6; }
  17887. cat >conftest.$ac_ext <<_ACEOF
  17888. /* confdefs.h. */
  17889. _ACEOF
  17890. cat confdefs.h >>conftest.$ac_ext
  17891. cat >>conftest.$ac_ext <<_ACEOF
  17892. /* end confdefs.h. */
  17893. #include <$ac_header>
  17894. _ACEOF
  17895. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17896. case "(($ac_try" in
  17897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17898. *) ac_try_echo=$ac_try;;
  17899. esac
  17900. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17901. $as_echo "$ac_try_echo") >&5
  17902. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17903. ac_status=$?
  17904. grep -v '^ *+' conftest.er1 >conftest.err
  17905. rm -f conftest.er1
  17906. cat conftest.err >&5
  17907. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17908. (exit $ac_status); } >/dev/null && {
  17909. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17910. test ! -s conftest.err
  17911. }; then
  17912. ac_header_preproc=yes
  17913. else
  17914. $as_echo "$as_me: failed program was:" >&5
  17915. sed 's/^/| /' conftest.$ac_ext >&5
  17916. ac_header_preproc=no
  17917. fi
  17918. rm -f conftest.err conftest.$ac_ext
  17919. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17920. $as_echo "$ac_header_preproc" >&6; }
  17921. # So? What about this header?
  17922. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17923. yes:no: )
  17924. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17925. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17926. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17927. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17928. ac_header_preproc=yes
  17929. ;;
  17930. no:yes:* )
  17931. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17932. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17933. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17934. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17935. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17936. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17937. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17938. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17939. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17940. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17941. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17942. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17943. ( cat <<\_ASBOX
  17944. ## ----------------------------------------------- ##
  17945. ## Report this to t-tujikawa@users.sourceforge.net ##
  17946. ## ----------------------------------------------- ##
  17947. _ASBOX
  17948. ) | sed "s/^/$as_me: WARNING: /" >&2
  17949. ;;
  17950. esac
  17951. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17952. $as_echo_n "checking for $ac_header... " >&6; }
  17953. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17954. $as_echo_n "(cached) " >&6
  17955. else
  17956. eval "$as_ac_Header=\$ac_header_preproc"
  17957. fi
  17958. ac_res=`eval 'as_val=${'$as_ac_Header'}
  17959. $as_echo "$as_val"'`
  17960. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17961. $as_echo "$ac_res" >&6; }
  17962. fi
  17963. as_val=`eval 'as_val=${'$as_ac_Header'}
  17964. $as_echo "$as_val"'`
  17965. if test "x$as_val" = x""yes; then
  17966. cat >>confdefs.h <<_ACEOF
  17967. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17968. _ACEOF
  17969. fi
  17970. done
  17971. for ac_func in getpagesize
  17972. do
  17973. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17974. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17975. $as_echo_n "checking for $ac_func... " >&6; }
  17976. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17977. $as_echo_n "(cached) " >&6
  17978. else
  17979. cat >conftest.$ac_ext <<_ACEOF
  17980. /* confdefs.h. */
  17981. _ACEOF
  17982. cat confdefs.h >>conftest.$ac_ext
  17983. cat >>conftest.$ac_ext <<_ACEOF
  17984. /* end confdefs.h. */
  17985. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17986. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17987. #define $ac_func innocuous_$ac_func
  17988. /* System header to define __stub macros and hopefully few prototypes,
  17989. which can conflict with char $ac_func (); below.
  17990. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17991. <limits.h> exists even on freestanding compilers. */
  17992. #ifdef __STDC__
  17993. # include <limits.h>
  17994. #else
  17995. # include <assert.h>
  17996. #endif
  17997. #undef $ac_func
  17998. /* Override any GCC internal prototype to avoid an error.
  17999. Use char because int might match the return type of a GCC
  18000. builtin and then its argument prototype would still apply. */
  18001. #ifdef __cplusplus
  18002. extern "C"
  18003. #endif
  18004. char $ac_func ();
  18005. /* The GNU C library defines this for functions which it implements
  18006. to always fail with ENOSYS. Some functions are actually named
  18007. something starting with __ and the normal name is an alias. */
  18008. #if defined __stub_$ac_func || defined __stub___$ac_func
  18009. choke me
  18010. #endif
  18011. int
  18012. main ()
  18013. {
  18014. return $ac_func ();
  18015. ;
  18016. return 0;
  18017. }
  18018. _ACEOF
  18019. rm -f conftest.$ac_objext conftest$ac_exeext
  18020. if { (ac_try="$ac_link"
  18021. case "(($ac_try" in
  18022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18023. *) ac_try_echo=$ac_try;;
  18024. esac
  18025. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18026. $as_echo "$ac_try_echo") >&5
  18027. (eval "$ac_link") 2>conftest.er1
  18028. ac_status=$?
  18029. grep -v '^ *+' conftest.er1 >conftest.err
  18030. rm -f conftest.er1
  18031. cat conftest.err >&5
  18032. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18033. (exit $ac_status); } && {
  18034. test -z "$ac_cxx_werror_flag" ||
  18035. test ! -s conftest.err
  18036. } && test -s conftest$ac_exeext && {
  18037. test "$cross_compiling" = yes ||
  18038. $as_test_x conftest$ac_exeext
  18039. }; then
  18040. eval "$as_ac_var=yes"
  18041. else
  18042. $as_echo "$as_me: failed program was:" >&5
  18043. sed 's/^/| /' conftest.$ac_ext >&5
  18044. eval "$as_ac_var=no"
  18045. fi
  18046. rm -rf conftest.dSYM
  18047. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18048. conftest$ac_exeext conftest.$ac_ext
  18049. fi
  18050. ac_res=`eval 'as_val=${'$as_ac_var'}
  18051. $as_echo "$as_val"'`
  18052. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18053. $as_echo "$ac_res" >&6; }
  18054. as_val=`eval 'as_val=${'$as_ac_var'}
  18055. $as_echo "$as_val"'`
  18056. if test "x$as_val" = x""yes; then
  18057. cat >>confdefs.h <<_ACEOF
  18058. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18059. _ACEOF
  18060. fi
  18061. done
  18062. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  18063. $as_echo_n "checking for working mmap... " >&6; }
  18064. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  18065. $as_echo_n "(cached) " >&6
  18066. else
  18067. if test "$cross_compiling" = yes; then
  18068. ac_cv_func_mmap_fixed_mapped=no
  18069. else
  18070. cat >conftest.$ac_ext <<_ACEOF
  18071. /* confdefs.h. */
  18072. _ACEOF
  18073. cat confdefs.h >>conftest.$ac_ext
  18074. cat >>conftest.$ac_ext <<_ACEOF
  18075. /* end confdefs.h. */
  18076. $ac_includes_default
  18077. /* malloc might have been renamed as rpl_malloc. */
  18078. #undef malloc
  18079. /* Thanks to Mike Haertel and Jim Avera for this test.
  18080. Here is a matrix of mmap possibilities:
  18081. mmap private not fixed
  18082. mmap private fixed at somewhere currently unmapped
  18083. mmap private fixed at somewhere already mapped
  18084. mmap shared not fixed
  18085. mmap shared fixed at somewhere currently unmapped
  18086. mmap shared fixed at somewhere already mapped
  18087. For private mappings, we should verify that changes cannot be read()
  18088. back from the file, nor mmap's back from the file at a different
  18089. address. (There have been systems where private was not correctly
  18090. implemented like the infamous i386 svr4.0, and systems where the
  18091. VM page cache was not coherent with the file system buffer cache
  18092. like early versions of FreeBSD and possibly contemporary NetBSD.)
  18093. For shared mappings, we should conversely verify that changes get
  18094. propagated back to all the places they're supposed to be.
  18095. Grep wants private fixed already mapped.
  18096. The main things grep needs to know about mmap are:
  18097. * does it exist and is it safe to write into the mmap'd area
  18098. * how to use it (BSD variants) */
  18099. #include <fcntl.h>
  18100. #include <sys/mman.h>
  18101. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  18102. char *malloc ();
  18103. #endif
  18104. /* This mess was copied from the GNU getpagesize.h. */
  18105. #ifndef HAVE_GETPAGESIZE
  18106. /* Assume that all systems that can run configure have sys/param.h. */
  18107. # ifndef HAVE_SYS_PARAM_H
  18108. # define HAVE_SYS_PARAM_H 1
  18109. # endif
  18110. # ifdef _SC_PAGESIZE
  18111. # define getpagesize() sysconf(_SC_PAGESIZE)
  18112. # else /* no _SC_PAGESIZE */
  18113. # ifdef HAVE_SYS_PARAM_H
  18114. # include <sys/param.h>
  18115. # ifdef EXEC_PAGESIZE
  18116. # define getpagesize() EXEC_PAGESIZE
  18117. # else /* no EXEC_PAGESIZE */
  18118. # ifdef NBPG
  18119. # define getpagesize() NBPG * CLSIZE
  18120. # ifndef CLSIZE
  18121. # define CLSIZE 1
  18122. # endif /* no CLSIZE */
  18123. # else /* no NBPG */
  18124. # ifdef NBPC
  18125. # define getpagesize() NBPC
  18126. # else /* no NBPC */
  18127. # ifdef PAGESIZE
  18128. # define getpagesize() PAGESIZE
  18129. # endif /* PAGESIZE */
  18130. # endif /* no NBPC */
  18131. # endif /* no NBPG */
  18132. # endif /* no EXEC_PAGESIZE */
  18133. # else /* no HAVE_SYS_PARAM_H */
  18134. # define getpagesize() 8192 /* punt totally */
  18135. # endif /* no HAVE_SYS_PARAM_H */
  18136. # endif /* no _SC_PAGESIZE */
  18137. #endif /* no HAVE_GETPAGESIZE */
  18138. int
  18139. main ()
  18140. {
  18141. char *data, *data2, *data3;
  18142. int i, pagesize;
  18143. int fd;
  18144. pagesize = getpagesize ();
  18145. /* First, make a file with some known garbage in it. */
  18146. data = (char *) malloc (pagesize);
  18147. if (!data)
  18148. return 1;
  18149. for (i = 0; i < pagesize; ++i)
  18150. *(data + i) = rand ();
  18151. umask (0);
  18152. fd = creat ("conftest.mmap", 0600);
  18153. if (fd < 0)
  18154. return 1;
  18155. if (write (fd, data, pagesize) != pagesize)
  18156. return 1;
  18157. close (fd);
  18158. /* Next, try to mmap the file at a fixed address which already has
  18159. something else allocated at it. If we can, also make sure that
  18160. we see the same garbage. */
  18161. fd = open ("conftest.mmap", O_RDWR);
  18162. if (fd < 0)
  18163. return 1;
  18164. data2 = (char *) malloc (2 * pagesize);
  18165. if (!data2)
  18166. return 1;
  18167. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  18168. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  18169. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  18170. return 1;
  18171. for (i = 0; i < pagesize; ++i)
  18172. if (*(data + i) != *(data2 + i))
  18173. return 1;
  18174. /* Finally, make sure that changes to the mapped area do not
  18175. percolate back to the file as seen by read(). (This is a bug on
  18176. some variants of i386 svr4.0.) */
  18177. for (i = 0; i < pagesize; ++i)
  18178. *(data2 + i) = *(data2 + i) + 1;
  18179. data3 = (char *) malloc (pagesize);
  18180. if (!data3)
  18181. return 1;
  18182. if (read (fd, data3, pagesize) != pagesize)
  18183. return 1;
  18184. for (i = 0; i < pagesize; ++i)
  18185. if (*(data + i) != *(data3 + i))
  18186. return 1;
  18187. close (fd);
  18188. return 0;
  18189. }
  18190. _ACEOF
  18191. rm -f conftest$ac_exeext
  18192. if { (ac_try="$ac_link"
  18193. case "(($ac_try" in
  18194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18195. *) ac_try_echo=$ac_try;;
  18196. esac
  18197. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18198. $as_echo "$ac_try_echo") >&5
  18199. (eval "$ac_link") 2>&5
  18200. ac_status=$?
  18201. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18202. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18203. { (case "(($ac_try" in
  18204. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18205. *) ac_try_echo=$ac_try;;
  18206. esac
  18207. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18208. $as_echo "$ac_try_echo") >&5
  18209. (eval "$ac_try") 2>&5
  18210. ac_status=$?
  18211. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18212. (exit $ac_status); }; }; then
  18213. ac_cv_func_mmap_fixed_mapped=yes
  18214. else
  18215. $as_echo "$as_me: program exited with status $ac_status" >&5
  18216. $as_echo "$as_me: failed program was:" >&5
  18217. sed 's/^/| /' conftest.$ac_ext >&5
  18218. ( exit $ac_status )
  18219. ac_cv_func_mmap_fixed_mapped=no
  18220. fi
  18221. rm -rf conftest.dSYM
  18222. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18223. fi
  18224. fi
  18225. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  18226. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  18227. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  18228. cat >>confdefs.h <<\_ACEOF
  18229. #define HAVE_MMAP 1
  18230. _ACEOF
  18231. fi
  18232. rm -f conftest.mmap
  18233. for ac_header in sys/select.h sys/socket.h
  18234. do
  18235. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18236. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18237. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18238. $as_echo_n "checking for $ac_header... " >&6; }
  18239. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18240. $as_echo_n "(cached) " >&6
  18241. fi
  18242. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18243. $as_echo "$as_val"'`
  18244. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18245. $as_echo "$ac_res" >&6; }
  18246. else
  18247. # Is the header compilable?
  18248. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18249. $as_echo_n "checking $ac_header usability... " >&6; }
  18250. cat >conftest.$ac_ext <<_ACEOF
  18251. /* confdefs.h. */
  18252. _ACEOF
  18253. cat confdefs.h >>conftest.$ac_ext
  18254. cat >>conftest.$ac_ext <<_ACEOF
  18255. /* end confdefs.h. */
  18256. $ac_includes_default
  18257. #include <$ac_header>
  18258. _ACEOF
  18259. rm -f conftest.$ac_objext
  18260. if { (ac_try="$ac_compile"
  18261. case "(($ac_try" in
  18262. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18263. *) ac_try_echo=$ac_try;;
  18264. esac
  18265. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18266. $as_echo "$ac_try_echo") >&5
  18267. (eval "$ac_compile") 2>conftest.er1
  18268. ac_status=$?
  18269. grep -v '^ *+' conftest.er1 >conftest.err
  18270. rm -f conftest.er1
  18271. cat conftest.err >&5
  18272. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18273. (exit $ac_status); } && {
  18274. test -z "$ac_cxx_werror_flag" ||
  18275. test ! -s conftest.err
  18276. } && test -s conftest.$ac_objext; then
  18277. ac_header_compiler=yes
  18278. else
  18279. $as_echo "$as_me: failed program was:" >&5
  18280. sed 's/^/| /' conftest.$ac_ext >&5
  18281. ac_header_compiler=no
  18282. fi
  18283. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18284. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18285. $as_echo "$ac_header_compiler" >&6; }
  18286. # Is the header present?
  18287. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18288. $as_echo_n "checking $ac_header presence... " >&6; }
  18289. cat >conftest.$ac_ext <<_ACEOF
  18290. /* confdefs.h. */
  18291. _ACEOF
  18292. cat confdefs.h >>conftest.$ac_ext
  18293. cat >>conftest.$ac_ext <<_ACEOF
  18294. /* end confdefs.h. */
  18295. #include <$ac_header>
  18296. _ACEOF
  18297. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18298. case "(($ac_try" in
  18299. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18300. *) ac_try_echo=$ac_try;;
  18301. esac
  18302. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18303. $as_echo "$ac_try_echo") >&5
  18304. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18305. ac_status=$?
  18306. grep -v '^ *+' conftest.er1 >conftest.err
  18307. rm -f conftest.er1
  18308. cat conftest.err >&5
  18309. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18310. (exit $ac_status); } >/dev/null && {
  18311. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  18312. test ! -s conftest.err
  18313. }; then
  18314. ac_header_preproc=yes
  18315. else
  18316. $as_echo "$as_me: failed program was:" >&5
  18317. sed 's/^/| /' conftest.$ac_ext >&5
  18318. ac_header_preproc=no
  18319. fi
  18320. rm -f conftest.err conftest.$ac_ext
  18321. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18322. $as_echo "$ac_header_preproc" >&6; }
  18323. # So? What about this header?
  18324. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  18325. yes:no: )
  18326. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18327. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18328. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18329. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18330. ac_header_preproc=yes
  18331. ;;
  18332. no:yes:* )
  18333. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18334. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18335. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18336. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18337. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18338. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18339. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18340. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18341. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18342. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18343. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18344. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18345. ( cat <<\_ASBOX
  18346. ## ----------------------------------------------- ##
  18347. ## Report this to t-tujikawa@users.sourceforge.net ##
  18348. ## ----------------------------------------------- ##
  18349. _ASBOX
  18350. ) | sed "s/^/$as_me: WARNING: /" >&2
  18351. ;;
  18352. esac
  18353. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18354. $as_echo_n "checking for $ac_header... " >&6; }
  18355. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18356. $as_echo_n "(cached) " >&6
  18357. else
  18358. eval "$as_ac_Header=\$ac_header_preproc"
  18359. fi
  18360. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18361. $as_echo "$as_val"'`
  18362. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18363. $as_echo "$ac_res" >&6; }
  18364. fi
  18365. as_val=`eval 'as_val=${'$as_ac_Header'}
  18366. $as_echo "$as_val"'`
  18367. if test "x$as_val" = x""yes; then
  18368. cat >>confdefs.h <<_ACEOF
  18369. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18370. _ACEOF
  18371. fi
  18372. done
  18373. { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
  18374. $as_echo_n "checking types of arguments for select... " >&6; }
  18375. if test "${ac_cv_func_select_args+set}" = set; then
  18376. $as_echo_n "(cached) " >&6
  18377. else
  18378. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  18379. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  18380. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  18381. cat >conftest.$ac_ext <<_ACEOF
  18382. /* confdefs.h. */
  18383. _ACEOF
  18384. cat confdefs.h >>conftest.$ac_ext
  18385. cat >>conftest.$ac_ext <<_ACEOF
  18386. /* end confdefs.h. */
  18387. $ac_includes_default
  18388. #ifdef HAVE_SYS_SELECT_H
  18389. # include <sys/select.h>
  18390. #endif
  18391. #ifdef HAVE_SYS_SOCKET_H
  18392. # include <sys/socket.h>
  18393. #endif
  18394. int
  18395. main ()
  18396. {
  18397. extern int select ($ac_arg1,
  18398. $ac_arg234, $ac_arg234, $ac_arg234,
  18399. $ac_arg5);
  18400. ;
  18401. return 0;
  18402. }
  18403. _ACEOF
  18404. rm -f conftest.$ac_objext
  18405. if { (ac_try="$ac_compile"
  18406. case "(($ac_try" in
  18407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18408. *) ac_try_echo=$ac_try;;
  18409. esac
  18410. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18411. $as_echo "$ac_try_echo") >&5
  18412. (eval "$ac_compile") 2>conftest.er1
  18413. ac_status=$?
  18414. grep -v '^ *+' conftest.er1 >conftest.err
  18415. rm -f conftest.er1
  18416. cat conftest.err >&5
  18417. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18418. (exit $ac_status); } && {
  18419. test -z "$ac_cxx_werror_flag" ||
  18420. test ! -s conftest.err
  18421. } && test -s conftest.$ac_objext; then
  18422. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  18423. else
  18424. $as_echo "$as_me: failed program was:" >&5
  18425. sed 's/^/| /' conftest.$ac_ext >&5
  18426. fi
  18427. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18428. done
  18429. done
  18430. done
  18431. # Provide a safe default value.
  18432. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  18433. fi
  18434. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  18435. $as_echo "$ac_cv_func_select_args" >&6; }
  18436. ac_save_IFS=$IFS; IFS=','
  18437. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  18438. IFS=$ac_save_IFS
  18439. shift
  18440. cat >>confdefs.h <<_ACEOF
  18441. #define SELECT_TYPE_ARG1 $1
  18442. _ACEOF
  18443. cat >>confdefs.h <<_ACEOF
  18444. #define SELECT_TYPE_ARG234 ($2)
  18445. _ACEOF
  18446. cat >>confdefs.h <<_ACEOF
  18447. #define SELECT_TYPE_ARG5 ($3)
  18448. _ACEOF
  18449. rm -f conftest*
  18450. { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  18451. $as_echo_n "checking return type of signal handlers... " >&6; }
  18452. if test "${ac_cv_type_signal+set}" = set; then
  18453. $as_echo_n "(cached) " >&6
  18454. else
  18455. cat >conftest.$ac_ext <<_ACEOF
  18456. /* confdefs.h. */
  18457. _ACEOF
  18458. cat confdefs.h >>conftest.$ac_ext
  18459. cat >>conftest.$ac_ext <<_ACEOF
  18460. /* end confdefs.h. */
  18461. #include <sys/types.h>
  18462. #include <signal.h>
  18463. int
  18464. main ()
  18465. {
  18466. return *(signal (0, 0)) (0) == 1;
  18467. ;
  18468. return 0;
  18469. }
  18470. _ACEOF
  18471. rm -f conftest.$ac_objext
  18472. if { (ac_try="$ac_compile"
  18473. case "(($ac_try" in
  18474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18475. *) ac_try_echo=$ac_try;;
  18476. esac
  18477. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18478. $as_echo "$ac_try_echo") >&5
  18479. (eval "$ac_compile") 2>conftest.er1
  18480. ac_status=$?
  18481. grep -v '^ *+' conftest.er1 >conftest.err
  18482. rm -f conftest.er1
  18483. cat conftest.err >&5
  18484. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18485. (exit $ac_status); } && {
  18486. test -z "$ac_cxx_werror_flag" ||
  18487. test ! -s conftest.err
  18488. } && test -s conftest.$ac_objext; then
  18489. ac_cv_type_signal=int
  18490. else
  18491. $as_echo "$as_me: failed program was:" >&5
  18492. sed 's/^/| /' conftest.$ac_ext >&5
  18493. ac_cv_type_signal=void
  18494. fi
  18495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18496. fi
  18497. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  18498. $as_echo "$ac_cv_type_signal" >&6; }
  18499. cat >>confdefs.h <<_ACEOF
  18500. #define RETSIGTYPE $ac_cv_type_signal
  18501. _ACEOF
  18502. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18503. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  18504. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18505. $as_echo_n "(cached) " >&6
  18506. else
  18507. rm -f conftest.sym conftest.file
  18508. echo >conftest.file
  18509. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18510. if test "$cross_compiling" = yes; then
  18511. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18512. else
  18513. cat >conftest.$ac_ext <<_ACEOF
  18514. /* confdefs.h. */
  18515. _ACEOF
  18516. cat confdefs.h >>conftest.$ac_ext
  18517. cat >>conftest.$ac_ext <<_ACEOF
  18518. /* end confdefs.h. */
  18519. $ac_includes_default
  18520. int
  18521. main ()
  18522. {
  18523. struct stat sbuf;
  18524. /* Linux will dereference the symlink and fail.
  18525. That is better in the sense that it means we will not
  18526. have to compile and use the lstat wrapper. */
  18527. return lstat ("conftest.sym/", &sbuf) == 0;
  18528. ;
  18529. return 0;
  18530. }
  18531. _ACEOF
  18532. rm -f conftest$ac_exeext
  18533. if { (ac_try="$ac_link"
  18534. case "(($ac_try" in
  18535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18536. *) ac_try_echo=$ac_try;;
  18537. esac
  18538. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18539. $as_echo "$ac_try_echo") >&5
  18540. (eval "$ac_link") 2>&5
  18541. ac_status=$?
  18542. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18543. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18544. { (case "(($ac_try" in
  18545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18546. *) ac_try_echo=$ac_try;;
  18547. esac
  18548. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18549. $as_echo "$ac_try_echo") >&5
  18550. (eval "$ac_try") 2>&5
  18551. ac_status=$?
  18552. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18553. (exit $ac_status); }; }; then
  18554. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18555. else
  18556. $as_echo "$as_me: program exited with status $ac_status" >&5
  18557. $as_echo "$as_me: failed program was:" >&5
  18558. sed 's/^/| /' conftest.$ac_ext >&5
  18559. ( exit $ac_status )
  18560. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18561. fi
  18562. rm -rf conftest.dSYM
  18563. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18564. fi
  18565. else
  18566. # If the `ln -s' command failed, then we probably don't even
  18567. # have an lstat function.
  18568. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18569. fi
  18570. rm -f conftest.sym conftest.file
  18571. fi
  18572. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18573. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  18574. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18575. cat >>confdefs.h <<_ACEOF
  18576. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18577. _ACEOF
  18578. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18579. case " $LIBOBJS " in
  18580. *" lstat.$ac_objext "* ) ;;
  18581. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  18582. ;;
  18583. esac
  18584. fi
  18585. { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  18586. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  18587. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  18588. $as_echo_n "(cached) " >&6
  18589. else
  18590. if test "$cross_compiling" = yes; then
  18591. ac_cv_func_stat_empty_string_bug=yes
  18592. else
  18593. cat >conftest.$ac_ext <<_ACEOF
  18594. /* confdefs.h. */
  18595. _ACEOF
  18596. cat confdefs.h >>conftest.$ac_ext
  18597. cat >>conftest.$ac_ext <<_ACEOF
  18598. /* end confdefs.h. */
  18599. $ac_includes_default
  18600. int
  18601. main ()
  18602. {
  18603. struct stat sbuf;
  18604. return stat ("", &sbuf) == 0;
  18605. ;
  18606. return 0;
  18607. }
  18608. _ACEOF
  18609. rm -f conftest$ac_exeext
  18610. if { (ac_try="$ac_link"
  18611. case "(($ac_try" in
  18612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18613. *) ac_try_echo=$ac_try;;
  18614. esac
  18615. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18616. $as_echo "$ac_try_echo") >&5
  18617. (eval "$ac_link") 2>&5
  18618. ac_status=$?
  18619. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18620. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18621. { (case "(($ac_try" in
  18622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18623. *) ac_try_echo=$ac_try;;
  18624. esac
  18625. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18626. $as_echo "$ac_try_echo") >&5
  18627. (eval "$ac_try") 2>&5
  18628. ac_status=$?
  18629. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18630. (exit $ac_status); }; }; then
  18631. ac_cv_func_stat_empty_string_bug=no
  18632. else
  18633. $as_echo "$as_me: program exited with status $ac_status" >&5
  18634. $as_echo "$as_me: failed program was:" >&5
  18635. sed 's/^/| /' conftest.$ac_ext >&5
  18636. ( exit $ac_status )
  18637. ac_cv_func_stat_empty_string_bug=yes
  18638. fi
  18639. rm -rf conftest.dSYM
  18640. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18641. fi
  18642. fi
  18643. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  18644. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  18645. if test $ac_cv_func_stat_empty_string_bug = yes; then
  18646. case " $LIBOBJS " in
  18647. *" stat.$ac_objext "* ) ;;
  18648. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  18649. ;;
  18650. esac
  18651. cat >>confdefs.h <<_ACEOF
  18652. #define HAVE_STAT_EMPTY_STRING_BUG 1
  18653. _ACEOF
  18654. fi
  18655. for ac_func in strftime
  18656. do
  18657. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18658. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  18659. $as_echo_n "checking for $ac_func... " >&6; }
  18660. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18661. $as_echo_n "(cached) " >&6
  18662. else
  18663. cat >conftest.$ac_ext <<_ACEOF
  18664. /* confdefs.h. */
  18665. _ACEOF
  18666. cat confdefs.h >>conftest.$ac_ext
  18667. cat >>conftest.$ac_ext <<_ACEOF
  18668. /* end confdefs.h. */
  18669. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18670. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18671. #define $ac_func innocuous_$ac_func
  18672. /* System header to define __stub macros and hopefully few prototypes,
  18673. which can conflict with char $ac_func (); below.
  18674. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18675. <limits.h> exists even on freestanding compilers. */
  18676. #ifdef __STDC__
  18677. # include <limits.h>
  18678. #else
  18679. # include <assert.h>
  18680. #endif
  18681. #undef $ac_func
  18682. /* Override any GCC internal prototype to avoid an error.
  18683. Use char because int might match the return type of a GCC
  18684. builtin and then its argument prototype would still apply. */
  18685. #ifdef __cplusplus
  18686. extern "C"
  18687. #endif
  18688. char $ac_func ();
  18689. /* The GNU C library defines this for functions which it implements
  18690. to always fail with ENOSYS. Some functions are actually named
  18691. something starting with __ and the normal name is an alias. */
  18692. #if defined __stub_$ac_func || defined __stub___$ac_func
  18693. choke me
  18694. #endif
  18695. int
  18696. main ()
  18697. {
  18698. return $ac_func ();
  18699. ;
  18700. return 0;
  18701. }
  18702. _ACEOF
  18703. rm -f conftest.$ac_objext conftest$ac_exeext
  18704. if { (ac_try="$ac_link"
  18705. case "(($ac_try" in
  18706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18707. *) ac_try_echo=$ac_try;;
  18708. esac
  18709. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18710. $as_echo "$ac_try_echo") >&5
  18711. (eval "$ac_link") 2>conftest.er1
  18712. ac_status=$?
  18713. grep -v '^ *+' conftest.er1 >conftest.err
  18714. rm -f conftest.er1
  18715. cat conftest.err >&5
  18716. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18717. (exit $ac_status); } && {
  18718. test -z "$ac_cxx_werror_flag" ||
  18719. test ! -s conftest.err
  18720. } && test -s conftest$ac_exeext && {
  18721. test "$cross_compiling" = yes ||
  18722. $as_test_x conftest$ac_exeext
  18723. }; then
  18724. eval "$as_ac_var=yes"
  18725. else
  18726. $as_echo "$as_me: failed program was:" >&5
  18727. sed 's/^/| /' conftest.$ac_ext >&5
  18728. eval "$as_ac_var=no"
  18729. fi
  18730. rm -rf conftest.dSYM
  18731. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18732. conftest$ac_exeext conftest.$ac_ext
  18733. fi
  18734. ac_res=`eval 'as_val=${'$as_ac_var'}
  18735. $as_echo "$as_val"'`
  18736. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18737. $as_echo "$ac_res" >&6; }
  18738. as_val=`eval 'as_val=${'$as_ac_var'}
  18739. $as_echo "$as_val"'`
  18740. if test "x$as_val" = x""yes; then
  18741. cat >>confdefs.h <<_ACEOF
  18742. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18743. _ACEOF
  18744. else
  18745. # strftime is in -lintl on SCO UNIX.
  18746. { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  18747. $as_echo_n "checking for strftime in -lintl... " >&6; }
  18748. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  18749. $as_echo_n "(cached) " >&6
  18750. else
  18751. ac_check_lib_save_LIBS=$LIBS
  18752. LIBS="-lintl $LIBS"
  18753. cat >conftest.$ac_ext <<_ACEOF
  18754. /* confdefs.h. */
  18755. _ACEOF
  18756. cat confdefs.h >>conftest.$ac_ext
  18757. cat >>conftest.$ac_ext <<_ACEOF
  18758. /* end confdefs.h. */
  18759. /* Override any GCC internal prototype to avoid an error.
  18760. Use char because int might match the return type of a GCC
  18761. builtin and then its argument prototype would still apply. */
  18762. #ifdef __cplusplus
  18763. extern "C"
  18764. #endif
  18765. char strftime ();
  18766. int
  18767. main ()
  18768. {
  18769. return strftime ();
  18770. ;
  18771. return 0;
  18772. }
  18773. _ACEOF
  18774. rm -f conftest.$ac_objext conftest$ac_exeext
  18775. if { (ac_try="$ac_link"
  18776. case "(($ac_try" in
  18777. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18778. *) ac_try_echo=$ac_try;;
  18779. esac
  18780. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18781. $as_echo "$ac_try_echo") >&5
  18782. (eval "$ac_link") 2>conftest.er1
  18783. ac_status=$?
  18784. grep -v '^ *+' conftest.er1 >conftest.err
  18785. rm -f conftest.er1
  18786. cat conftest.err >&5
  18787. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18788. (exit $ac_status); } && {
  18789. test -z "$ac_cxx_werror_flag" ||
  18790. test ! -s conftest.err
  18791. } && test -s conftest$ac_exeext && {
  18792. test "$cross_compiling" = yes ||
  18793. $as_test_x conftest$ac_exeext
  18794. }; then
  18795. ac_cv_lib_intl_strftime=yes
  18796. else
  18797. $as_echo "$as_me: failed program was:" >&5
  18798. sed 's/^/| /' conftest.$ac_ext >&5
  18799. ac_cv_lib_intl_strftime=no
  18800. fi
  18801. rm -rf conftest.dSYM
  18802. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18803. conftest$ac_exeext conftest.$ac_ext
  18804. LIBS=$ac_check_lib_save_LIBS
  18805. fi
  18806. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  18807. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  18808. if test "x$ac_cv_lib_intl_strftime" = x""yes; then
  18809. cat >>confdefs.h <<\_ACEOF
  18810. #define HAVE_STRFTIME 1
  18811. _ACEOF
  18812. LIBS="-lintl $LIBS"
  18813. fi
  18814. fi
  18815. done
  18816. for ac_func in vprintf
  18817. do
  18818. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18819. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  18820. $as_echo_n "checking for $ac_func... " >&6; }
  18821. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18822. $as_echo_n "(cached) " >&6
  18823. else
  18824. cat >conftest.$ac_ext <<_ACEOF
  18825. /* confdefs.h. */
  18826. _ACEOF
  18827. cat confdefs.h >>conftest.$ac_ext
  18828. cat >>conftest.$ac_ext <<_ACEOF
  18829. /* end confdefs.h. */
  18830. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18831. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18832. #define $ac_func innocuous_$ac_func
  18833. /* System header to define __stub macros and hopefully few prototypes,
  18834. which can conflict with char $ac_func (); below.
  18835. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18836. <limits.h> exists even on freestanding compilers. */
  18837. #ifdef __STDC__
  18838. # include <limits.h>
  18839. #else
  18840. # include <assert.h>
  18841. #endif
  18842. #undef $ac_func
  18843. /* Override any GCC internal prototype to avoid an error.
  18844. Use char because int might match the return type of a GCC
  18845. builtin and then its argument prototype would still apply. */
  18846. #ifdef __cplusplus
  18847. extern "C"
  18848. #endif
  18849. char $ac_func ();
  18850. /* The GNU C library defines this for functions which it implements
  18851. to always fail with ENOSYS. Some functions are actually named
  18852. something starting with __ and the normal name is an alias. */
  18853. #if defined __stub_$ac_func || defined __stub___$ac_func
  18854. choke me
  18855. #endif
  18856. int
  18857. main ()
  18858. {
  18859. return $ac_func ();
  18860. ;
  18861. return 0;
  18862. }
  18863. _ACEOF
  18864. rm -f conftest.$ac_objext conftest$ac_exeext
  18865. if { (ac_try="$ac_link"
  18866. case "(($ac_try" in
  18867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18868. *) ac_try_echo=$ac_try;;
  18869. esac
  18870. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18871. $as_echo "$ac_try_echo") >&5
  18872. (eval "$ac_link") 2>conftest.er1
  18873. ac_status=$?
  18874. grep -v '^ *+' conftest.er1 >conftest.err
  18875. rm -f conftest.er1
  18876. cat conftest.err >&5
  18877. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18878. (exit $ac_status); } && {
  18879. test -z "$ac_cxx_werror_flag" ||
  18880. test ! -s conftest.err
  18881. } && test -s conftest$ac_exeext && {
  18882. test "$cross_compiling" = yes ||
  18883. $as_test_x conftest$ac_exeext
  18884. }; then
  18885. eval "$as_ac_var=yes"
  18886. else
  18887. $as_echo "$as_me: failed program was:" >&5
  18888. sed 's/^/| /' conftest.$ac_ext >&5
  18889. eval "$as_ac_var=no"
  18890. fi
  18891. rm -rf conftest.dSYM
  18892. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18893. conftest$ac_exeext conftest.$ac_ext
  18894. fi
  18895. ac_res=`eval 'as_val=${'$as_ac_var'}
  18896. $as_echo "$as_val"'`
  18897. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18898. $as_echo "$ac_res" >&6; }
  18899. as_val=`eval 'as_val=${'$as_ac_var'}
  18900. $as_echo "$as_val"'`
  18901. if test "x$as_val" = x""yes; then
  18902. cat >>confdefs.h <<_ACEOF
  18903. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18904. _ACEOF
  18905. { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
  18906. $as_echo_n "checking for _doprnt... " >&6; }
  18907. if test "${ac_cv_func__doprnt+set}" = set; then
  18908. $as_echo_n "(cached) " >&6
  18909. else
  18910. cat >conftest.$ac_ext <<_ACEOF
  18911. /* confdefs.h. */
  18912. _ACEOF
  18913. cat confdefs.h >>conftest.$ac_ext
  18914. cat >>conftest.$ac_ext <<_ACEOF
  18915. /* end confdefs.h. */
  18916. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  18917. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18918. #define _doprnt innocuous__doprnt
  18919. /* System header to define __stub macros and hopefully few prototypes,
  18920. which can conflict with char _doprnt (); below.
  18921. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18922. <limits.h> exists even on freestanding compilers. */
  18923. #ifdef __STDC__
  18924. # include <limits.h>
  18925. #else
  18926. # include <assert.h>
  18927. #endif
  18928. #undef _doprnt
  18929. /* Override any GCC internal prototype to avoid an error.
  18930. Use char because int might match the return type of a GCC
  18931. builtin and then its argument prototype would still apply. */
  18932. #ifdef __cplusplus
  18933. extern "C"
  18934. #endif
  18935. char _doprnt ();
  18936. /* The GNU C library defines this for functions which it implements
  18937. to always fail with ENOSYS. Some functions are actually named
  18938. something starting with __ and the normal name is an alias. */
  18939. #if defined __stub__doprnt || defined __stub____doprnt
  18940. choke me
  18941. #endif
  18942. int
  18943. main ()
  18944. {
  18945. return _doprnt ();
  18946. ;
  18947. return 0;
  18948. }
  18949. _ACEOF
  18950. rm -f conftest.$ac_objext conftest$ac_exeext
  18951. if { (ac_try="$ac_link"
  18952. case "(($ac_try" in
  18953. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18954. *) ac_try_echo=$ac_try;;
  18955. esac
  18956. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18957. $as_echo "$ac_try_echo") >&5
  18958. (eval "$ac_link") 2>conftest.er1
  18959. ac_status=$?
  18960. grep -v '^ *+' conftest.er1 >conftest.err
  18961. rm -f conftest.er1
  18962. cat conftest.err >&5
  18963. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18964. (exit $ac_status); } && {
  18965. test -z "$ac_cxx_werror_flag" ||
  18966. test ! -s conftest.err
  18967. } && test -s conftest$ac_exeext && {
  18968. test "$cross_compiling" = yes ||
  18969. $as_test_x conftest$ac_exeext
  18970. }; then
  18971. ac_cv_func__doprnt=yes
  18972. else
  18973. $as_echo "$as_me: failed program was:" >&5
  18974. sed 's/^/| /' conftest.$ac_ext >&5
  18975. ac_cv_func__doprnt=no
  18976. fi
  18977. rm -rf conftest.dSYM
  18978. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18979. conftest$ac_exeext conftest.$ac_ext
  18980. fi
  18981. { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  18982. $as_echo "$ac_cv_func__doprnt" >&6; }
  18983. if test "x$ac_cv_func__doprnt" = x""yes; then
  18984. cat >>confdefs.h <<\_ACEOF
  18985. #define HAVE_DOPRNT 1
  18986. _ACEOF
  18987. fi
  18988. fi
  18989. done
  18990. for ac_func in __argz_count \
  18991. __argz_next \
  18992. __argz_stringify \
  18993. atexit \
  18994. daemon \
  18995. ftruncate \
  18996. getcwd \
  18997. gethostbyaddr \
  18998. gethostbyname \
  18999. getpagesize \
  19000. inet_ntoa \
  19001. memchr \
  19002. memmove \
  19003. mempcpy \
  19004. memset \
  19005. mkdir \
  19006. munmap \
  19007. nl_langinfo \
  19008. posix_memalign \
  19009. putenv \
  19010. rmdir \
  19011. select \
  19012. setlocale \
  19013. sleep \
  19014. socket \
  19015. stpcpy \
  19016. strcasecmp \
  19017. strchr \
  19018. strcspn \
  19019. strdup \
  19020. strerror \
  19021. strncasecmp \
  19022. strstr \
  19023. strtol \
  19024. strtoul \
  19025. strtoull \
  19026. tzset \
  19027. unsetenv \
  19028. usleep
  19029. do
  19030. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19031. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19032. $as_echo_n "checking for $ac_func... " >&6; }
  19033. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19034. $as_echo_n "(cached) " >&6
  19035. else
  19036. cat >conftest.$ac_ext <<_ACEOF
  19037. /* confdefs.h. */
  19038. _ACEOF
  19039. cat confdefs.h >>conftest.$ac_ext
  19040. cat >>conftest.$ac_ext <<_ACEOF
  19041. /* end confdefs.h. */
  19042. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19043. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19044. #define $ac_func innocuous_$ac_func
  19045. /* System header to define __stub macros and hopefully few prototypes,
  19046. which can conflict with char $ac_func (); below.
  19047. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19048. <limits.h> exists even on freestanding compilers. */
  19049. #ifdef __STDC__
  19050. # include <limits.h>
  19051. #else
  19052. # include <assert.h>
  19053. #endif
  19054. #undef $ac_func
  19055. /* Override any GCC internal prototype to avoid an error.
  19056. Use char because int might match the return type of a GCC
  19057. builtin and then its argument prototype would still apply. */
  19058. #ifdef __cplusplus
  19059. extern "C"
  19060. #endif
  19061. char $ac_func ();
  19062. /* The GNU C library defines this for functions which it implements
  19063. to always fail with ENOSYS. Some functions are actually named
  19064. something starting with __ and the normal name is an alias. */
  19065. #if defined __stub_$ac_func || defined __stub___$ac_func
  19066. choke me
  19067. #endif
  19068. int
  19069. main ()
  19070. {
  19071. return $ac_func ();
  19072. ;
  19073. return 0;
  19074. }
  19075. _ACEOF
  19076. rm -f conftest.$ac_objext conftest$ac_exeext
  19077. if { (ac_try="$ac_link"
  19078. case "(($ac_try" in
  19079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19080. *) ac_try_echo=$ac_try;;
  19081. esac
  19082. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19083. $as_echo "$ac_try_echo") >&5
  19084. (eval "$ac_link") 2>conftest.er1
  19085. ac_status=$?
  19086. grep -v '^ *+' conftest.er1 >conftest.err
  19087. rm -f conftest.er1
  19088. cat conftest.err >&5
  19089. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19090. (exit $ac_status); } && {
  19091. test -z "$ac_cxx_werror_flag" ||
  19092. test ! -s conftest.err
  19093. } && test -s conftest$ac_exeext && {
  19094. test "$cross_compiling" = yes ||
  19095. $as_test_x conftest$ac_exeext
  19096. }; then
  19097. eval "$as_ac_var=yes"
  19098. else
  19099. $as_echo "$as_me: failed program was:" >&5
  19100. sed 's/^/| /' conftest.$ac_ext >&5
  19101. eval "$as_ac_var=no"
  19102. fi
  19103. rm -rf conftest.dSYM
  19104. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19105. conftest$ac_exeext conftest.$ac_ext
  19106. fi
  19107. ac_res=`eval 'as_val=${'$as_ac_var'}
  19108. $as_echo "$as_val"'`
  19109. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19110. $as_echo "$ac_res" >&6; }
  19111. as_val=`eval 'as_val=${'$as_ac_var'}
  19112. $as_echo "$as_val"'`
  19113. if test "x$as_val" = x""yes; then
  19114. cat >>confdefs.h <<_ACEOF
  19115. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19116. _ACEOF
  19117. fi
  19118. done
  19119. if test "x$enable_epoll" = "xyes"; then
  19120. for ac_func in epoll_create
  19121. do
  19122. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19123. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19124. $as_echo_n "checking for $ac_func... " >&6; }
  19125. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19126. $as_echo_n "(cached) " >&6
  19127. else
  19128. cat >conftest.$ac_ext <<_ACEOF
  19129. /* confdefs.h. */
  19130. _ACEOF
  19131. cat confdefs.h >>conftest.$ac_ext
  19132. cat >>conftest.$ac_ext <<_ACEOF
  19133. /* end confdefs.h. */
  19134. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19135. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19136. #define $ac_func innocuous_$ac_func
  19137. /* System header to define __stub macros and hopefully few prototypes,
  19138. which can conflict with char $ac_func (); below.
  19139. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19140. <limits.h> exists even on freestanding compilers. */
  19141. #ifdef __STDC__
  19142. # include <limits.h>
  19143. #else
  19144. # include <assert.h>
  19145. #endif
  19146. #undef $ac_func
  19147. /* Override any GCC internal prototype to avoid an error.
  19148. Use char because int might match the return type of a GCC
  19149. builtin and then its argument prototype would still apply. */
  19150. #ifdef __cplusplus
  19151. extern "C"
  19152. #endif
  19153. char $ac_func ();
  19154. /* The GNU C library defines this for functions which it implements
  19155. to always fail with ENOSYS. Some functions are actually named
  19156. something starting with __ and the normal name is an alias. */
  19157. #if defined __stub_$ac_func || defined __stub___$ac_func
  19158. choke me
  19159. #endif
  19160. int
  19161. main ()
  19162. {
  19163. return $ac_func ();
  19164. ;
  19165. return 0;
  19166. }
  19167. _ACEOF
  19168. rm -f conftest.$ac_objext conftest$ac_exeext
  19169. if { (ac_try="$ac_link"
  19170. case "(($ac_try" in
  19171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19172. *) ac_try_echo=$ac_try;;
  19173. esac
  19174. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19175. $as_echo "$ac_try_echo") >&5
  19176. (eval "$ac_link") 2>conftest.er1
  19177. ac_status=$?
  19178. grep -v '^ *+' conftest.er1 >conftest.err
  19179. rm -f conftest.er1
  19180. cat conftest.err >&5
  19181. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19182. (exit $ac_status); } && {
  19183. test -z "$ac_cxx_werror_flag" ||
  19184. test ! -s conftest.err
  19185. } && test -s conftest$ac_exeext && {
  19186. test "$cross_compiling" = yes ||
  19187. $as_test_x conftest$ac_exeext
  19188. }; then
  19189. eval "$as_ac_var=yes"
  19190. else
  19191. $as_echo "$as_me: failed program was:" >&5
  19192. sed 's/^/| /' conftest.$ac_ext >&5
  19193. eval "$as_ac_var=no"
  19194. fi
  19195. rm -rf conftest.dSYM
  19196. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19197. conftest$ac_exeext conftest.$ac_ext
  19198. fi
  19199. ac_res=`eval 'as_val=${'$as_ac_var'}
  19200. $as_echo "$as_val"'`
  19201. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19202. $as_echo "$ac_res" >&6; }
  19203. as_val=`eval 'as_val=${'$as_ac_var'}
  19204. $as_echo "$as_val"'`
  19205. if test "x$as_val" = x""yes; then
  19206. cat >>confdefs.h <<_ACEOF
  19207. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19208. _ACEOF
  19209. have_epoll=yes
  19210. fi
  19211. done
  19212. if test "x$have_epoll" = "xyes"; then
  19213. cat >>confdefs.h <<\_ACEOF
  19214. #define HAVE_EPOLL 1
  19215. _ACEOF
  19216. fi
  19217. fi
  19218. if test "x$have_epoll" = "xyes"; then
  19219. HAVE_EPOLL_TRUE=
  19220. HAVE_EPOLL_FALSE='#'
  19221. else
  19222. HAVE_EPOLL_TRUE='#'
  19223. HAVE_EPOLL_FALSE=
  19224. fi
  19225. for ac_func in posix_fallocate
  19226. do
  19227. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19228. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19229. $as_echo_n "checking for $ac_func... " >&6; }
  19230. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19231. $as_echo_n "(cached) " >&6
  19232. else
  19233. cat >conftest.$ac_ext <<_ACEOF
  19234. /* confdefs.h. */
  19235. _ACEOF
  19236. cat confdefs.h >>conftest.$ac_ext
  19237. cat >>conftest.$ac_ext <<_ACEOF
  19238. /* end confdefs.h. */
  19239. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19240. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19241. #define $ac_func innocuous_$ac_func
  19242. /* System header to define __stub macros and hopefully few prototypes,
  19243. which can conflict with char $ac_func (); below.
  19244. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19245. <limits.h> exists even on freestanding compilers. */
  19246. #ifdef __STDC__
  19247. # include <limits.h>
  19248. #else
  19249. # include <assert.h>
  19250. #endif
  19251. #undef $ac_func
  19252. /* Override any GCC internal prototype to avoid an error.
  19253. Use char because int might match the return type of a GCC
  19254. builtin and then its argument prototype would still apply. */
  19255. #ifdef __cplusplus
  19256. extern "C"
  19257. #endif
  19258. char $ac_func ();
  19259. /* The GNU C library defines this for functions which it implements
  19260. to always fail with ENOSYS. Some functions are actually named
  19261. something starting with __ and the normal name is an alias. */
  19262. #if defined __stub_$ac_func || defined __stub___$ac_func
  19263. choke me
  19264. #endif
  19265. int
  19266. main ()
  19267. {
  19268. return $ac_func ();
  19269. ;
  19270. return 0;
  19271. }
  19272. _ACEOF
  19273. rm -f conftest.$ac_objext conftest$ac_exeext
  19274. if { (ac_try="$ac_link"
  19275. case "(($ac_try" in
  19276. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19277. *) ac_try_echo=$ac_try;;
  19278. esac
  19279. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19280. $as_echo "$ac_try_echo") >&5
  19281. (eval "$ac_link") 2>conftest.er1
  19282. ac_status=$?
  19283. grep -v '^ *+' conftest.er1 >conftest.err
  19284. rm -f conftest.er1
  19285. cat conftest.err >&5
  19286. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19287. (exit $ac_status); } && {
  19288. test -z "$ac_cxx_werror_flag" ||
  19289. test ! -s conftest.err
  19290. } && test -s conftest$ac_exeext && {
  19291. test "$cross_compiling" = yes ||
  19292. $as_test_x conftest$ac_exeext
  19293. }; then
  19294. eval "$as_ac_var=yes"
  19295. else
  19296. $as_echo "$as_me: failed program was:" >&5
  19297. sed 's/^/| /' conftest.$ac_ext >&5
  19298. eval "$as_ac_var=no"
  19299. fi
  19300. rm -rf conftest.dSYM
  19301. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19302. conftest$ac_exeext conftest.$ac_ext
  19303. fi
  19304. ac_res=`eval 'as_val=${'$as_ac_var'}
  19305. $as_echo "$as_val"'`
  19306. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19307. $as_echo "$ac_res" >&6; }
  19308. as_val=`eval 'as_val=${'$as_ac_var'}
  19309. $as_echo "$as_val"'`
  19310. if test "x$as_val" = x""yes; then
  19311. cat >>confdefs.h <<_ACEOF
  19312. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19313. _ACEOF
  19314. have_posix_fallocate=yes
  19315. fi
  19316. done
  19317. if test "x$have_posix_fallocate" = "xyes"; then
  19318. HAVE_POSIX_FALLOCATE_TRUE=
  19319. HAVE_POSIX_FALLOCATE_FALSE='#'
  19320. else
  19321. HAVE_POSIX_FALLOCATE_TRUE='#'
  19322. HAVE_POSIX_FALLOCATE_FALSE=
  19323. fi
  19324. for ac_func in asctime_r
  19325. do
  19326. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19327. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19328. $as_echo_n "checking for $ac_func... " >&6; }
  19329. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19330. $as_echo_n "(cached) " >&6
  19331. else
  19332. cat >conftest.$ac_ext <<_ACEOF
  19333. /* confdefs.h. */
  19334. _ACEOF
  19335. cat confdefs.h >>conftest.$ac_ext
  19336. cat >>conftest.$ac_ext <<_ACEOF
  19337. /* end confdefs.h. */
  19338. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19339. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19340. #define $ac_func innocuous_$ac_func
  19341. /* System header to define __stub macros and hopefully few prototypes,
  19342. which can conflict with char $ac_func (); below.
  19343. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19344. <limits.h> exists even on freestanding compilers. */
  19345. #ifdef __STDC__
  19346. # include <limits.h>
  19347. #else
  19348. # include <assert.h>
  19349. #endif
  19350. #undef $ac_func
  19351. /* Override any GCC internal prototype to avoid an error.
  19352. Use char because int might match the return type of a GCC
  19353. builtin and then its argument prototype would still apply. */
  19354. #ifdef __cplusplus
  19355. extern "C"
  19356. #endif
  19357. char $ac_func ();
  19358. /* The GNU C library defines this for functions which it implements
  19359. to always fail with ENOSYS. Some functions are actually named
  19360. something starting with __ and the normal name is an alias. */
  19361. #if defined __stub_$ac_func || defined __stub___$ac_func
  19362. choke me
  19363. #endif
  19364. int
  19365. main ()
  19366. {
  19367. return $ac_func ();
  19368. ;
  19369. return 0;
  19370. }
  19371. _ACEOF
  19372. rm -f conftest.$ac_objext conftest$ac_exeext
  19373. if { (ac_try="$ac_link"
  19374. case "(($ac_try" in
  19375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19376. *) ac_try_echo=$ac_try;;
  19377. esac
  19378. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19379. $as_echo "$ac_try_echo") >&5
  19380. (eval "$ac_link") 2>conftest.er1
  19381. ac_status=$?
  19382. grep -v '^ *+' conftest.er1 >conftest.err
  19383. rm -f conftest.er1
  19384. cat conftest.err >&5
  19385. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19386. (exit $ac_status); } && {
  19387. test -z "$ac_cxx_werror_flag" ||
  19388. test ! -s conftest.err
  19389. } && test -s conftest$ac_exeext && {
  19390. test "$cross_compiling" = yes ||
  19391. $as_test_x conftest$ac_exeext
  19392. }; then
  19393. eval "$as_ac_var=yes"
  19394. else
  19395. $as_echo "$as_me: failed program was:" >&5
  19396. sed 's/^/| /' conftest.$ac_ext >&5
  19397. eval "$as_ac_var=no"
  19398. fi
  19399. rm -rf conftest.dSYM
  19400. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19401. conftest$ac_exeext conftest.$ac_ext
  19402. fi
  19403. ac_res=`eval 'as_val=${'$as_ac_var'}
  19404. $as_echo "$as_val"'`
  19405. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19406. $as_echo "$ac_res" >&6; }
  19407. as_val=`eval 'as_val=${'$as_ac_var'}
  19408. $as_echo "$as_val"'`
  19409. if test "x$as_val" = x""yes; then
  19410. cat >>confdefs.h <<_ACEOF
  19411. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19412. _ACEOF
  19413. if true; then
  19414. HAVE_ASCTIME_R_TRUE=
  19415. HAVE_ASCTIME_R_FALSE='#'
  19416. else
  19417. HAVE_ASCTIME_R_TRUE='#'
  19418. HAVE_ASCTIME_R_FALSE=
  19419. fi
  19420. else
  19421. if false; then
  19422. HAVE_ASCTIME_R_TRUE=
  19423. HAVE_ASCTIME_R_FALSE='#'
  19424. else
  19425. HAVE_ASCTIME_R_TRUE='#'
  19426. HAVE_ASCTIME_R_FALSE=
  19427. fi
  19428. fi
  19429. done
  19430. for ac_func in basename
  19431. do
  19432. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19433. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19434. $as_echo_n "checking for $ac_func... " >&6; }
  19435. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19436. $as_echo_n "(cached) " >&6
  19437. else
  19438. cat >conftest.$ac_ext <<_ACEOF
  19439. /* confdefs.h. */
  19440. _ACEOF
  19441. cat confdefs.h >>conftest.$ac_ext
  19442. cat >>conftest.$ac_ext <<_ACEOF
  19443. /* end confdefs.h. */
  19444. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19445. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19446. #define $ac_func innocuous_$ac_func
  19447. /* System header to define __stub macros and hopefully few prototypes,
  19448. which can conflict with char $ac_func (); below.
  19449. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19450. <limits.h> exists even on freestanding compilers. */
  19451. #ifdef __STDC__
  19452. # include <limits.h>
  19453. #else
  19454. # include <assert.h>
  19455. #endif
  19456. #undef $ac_func
  19457. /* Override any GCC internal prototype to avoid an error.
  19458. Use char because int might match the return type of a GCC
  19459. builtin and then its argument prototype would still apply. */
  19460. #ifdef __cplusplus
  19461. extern "C"
  19462. #endif
  19463. char $ac_func ();
  19464. /* The GNU C library defines this for functions which it implements
  19465. to always fail with ENOSYS. Some functions are actually named
  19466. something starting with __ and the normal name is an alias. */
  19467. #if defined __stub_$ac_func || defined __stub___$ac_func
  19468. choke me
  19469. #endif
  19470. int
  19471. main ()
  19472. {
  19473. return $ac_func ();
  19474. ;
  19475. return 0;
  19476. }
  19477. _ACEOF
  19478. rm -f conftest.$ac_objext conftest$ac_exeext
  19479. if { (ac_try="$ac_link"
  19480. case "(($ac_try" in
  19481. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19482. *) ac_try_echo=$ac_try;;
  19483. esac
  19484. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19485. $as_echo "$ac_try_echo") >&5
  19486. (eval "$ac_link") 2>conftest.er1
  19487. ac_status=$?
  19488. grep -v '^ *+' conftest.er1 >conftest.err
  19489. rm -f conftest.er1
  19490. cat conftest.err >&5
  19491. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19492. (exit $ac_status); } && {
  19493. test -z "$ac_cxx_werror_flag" ||
  19494. test ! -s conftest.err
  19495. } && test -s conftest$ac_exeext && {
  19496. test "$cross_compiling" = yes ||
  19497. $as_test_x conftest$ac_exeext
  19498. }; then
  19499. eval "$as_ac_var=yes"
  19500. else
  19501. $as_echo "$as_me: failed program was:" >&5
  19502. sed 's/^/| /' conftest.$ac_ext >&5
  19503. eval "$as_ac_var=no"
  19504. fi
  19505. rm -rf conftest.dSYM
  19506. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19507. conftest$ac_exeext conftest.$ac_ext
  19508. fi
  19509. ac_res=`eval 'as_val=${'$as_ac_var'}
  19510. $as_echo "$as_val"'`
  19511. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19512. $as_echo "$ac_res" >&6; }
  19513. as_val=`eval 'as_val=${'$as_ac_var'}
  19514. $as_echo "$as_val"'`
  19515. if test "x$as_val" = x""yes; then
  19516. cat >>confdefs.h <<_ACEOF
  19517. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19518. _ACEOF
  19519. if true; then
  19520. HAVE_BASENAME_TRUE=
  19521. HAVE_BASENAME_FALSE='#'
  19522. else
  19523. HAVE_BASENAME_TRUE='#'
  19524. HAVE_BASENAME_FALSE=
  19525. fi
  19526. else
  19527. if false; then
  19528. HAVE_BASENAME_TRUE=
  19529. HAVE_BASENAME_FALSE='#'
  19530. else
  19531. HAVE_BASENAME_TRUE='#'
  19532. HAVE_BASENAME_FALSE=
  19533. fi
  19534. fi
  19535. done
  19536. for ac_func in gai_strerror
  19537. do
  19538. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19539. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19540. $as_echo_n "checking for $ac_func... " >&6; }
  19541. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19542. $as_echo_n "(cached) " >&6
  19543. else
  19544. cat >conftest.$ac_ext <<_ACEOF
  19545. /* confdefs.h. */
  19546. _ACEOF
  19547. cat confdefs.h >>conftest.$ac_ext
  19548. cat >>conftest.$ac_ext <<_ACEOF
  19549. /* end confdefs.h. */
  19550. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19551. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19552. #define $ac_func innocuous_$ac_func
  19553. /* System header to define __stub macros and hopefully few prototypes,
  19554. which can conflict with char $ac_func (); below.
  19555. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19556. <limits.h> exists even on freestanding compilers. */
  19557. #ifdef __STDC__
  19558. # include <limits.h>
  19559. #else
  19560. # include <assert.h>
  19561. #endif
  19562. #undef $ac_func
  19563. /* Override any GCC internal prototype to avoid an error.
  19564. Use char because int might match the return type of a GCC
  19565. builtin and then its argument prototype would still apply. */
  19566. #ifdef __cplusplus
  19567. extern "C"
  19568. #endif
  19569. char $ac_func ();
  19570. /* The GNU C library defines this for functions which it implements
  19571. to always fail with ENOSYS. Some functions are actually named
  19572. something starting with __ and the normal name is an alias. */
  19573. #if defined __stub_$ac_func || defined __stub___$ac_func
  19574. choke me
  19575. #endif
  19576. int
  19577. main ()
  19578. {
  19579. return $ac_func ();
  19580. ;
  19581. return 0;
  19582. }
  19583. _ACEOF
  19584. rm -f conftest.$ac_objext conftest$ac_exeext
  19585. if { (ac_try="$ac_link"
  19586. case "(($ac_try" in
  19587. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19588. *) ac_try_echo=$ac_try;;
  19589. esac
  19590. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19591. $as_echo "$ac_try_echo") >&5
  19592. (eval "$ac_link") 2>conftest.er1
  19593. ac_status=$?
  19594. grep -v '^ *+' conftest.er1 >conftest.err
  19595. rm -f conftest.er1
  19596. cat conftest.err >&5
  19597. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19598. (exit $ac_status); } && {
  19599. test -z "$ac_cxx_werror_flag" ||
  19600. test ! -s conftest.err
  19601. } && test -s conftest$ac_exeext && {
  19602. test "$cross_compiling" = yes ||
  19603. $as_test_x conftest$ac_exeext
  19604. }; then
  19605. eval "$as_ac_var=yes"
  19606. else
  19607. $as_echo "$as_me: failed program was:" >&5
  19608. sed 's/^/| /' conftest.$ac_ext >&5
  19609. eval "$as_ac_var=no"
  19610. fi
  19611. rm -rf conftest.dSYM
  19612. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19613. conftest$ac_exeext conftest.$ac_ext
  19614. fi
  19615. ac_res=`eval 'as_val=${'$as_ac_var'}
  19616. $as_echo "$as_val"'`
  19617. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19618. $as_echo "$ac_res" >&6; }
  19619. as_val=`eval 'as_val=${'$as_ac_var'}
  19620. $as_echo "$as_val"'`
  19621. if test "x$as_val" = x""yes; then
  19622. cat >>confdefs.h <<_ACEOF
  19623. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19624. _ACEOF
  19625. if true; then
  19626. HAVE_GAI_STRERROR_TRUE=
  19627. HAVE_GAI_STRERROR_FALSE='#'
  19628. else
  19629. HAVE_GAI_STRERROR_TRUE='#'
  19630. HAVE_GAI_STRERROR_FALSE=
  19631. fi
  19632. else
  19633. if false; then
  19634. HAVE_GAI_STRERROR_TRUE=
  19635. HAVE_GAI_STRERROR_FALSE='#'
  19636. else
  19637. HAVE_GAI_STRERROR_TRUE='#'
  19638. HAVE_GAI_STRERROR_FALSE=
  19639. fi
  19640. fi
  19641. done
  19642. for ac_func in getaddrinfo
  19643. do
  19644. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19645. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19646. $as_echo_n "checking for $ac_func... " >&6; }
  19647. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19648. $as_echo_n "(cached) " >&6
  19649. else
  19650. cat >conftest.$ac_ext <<_ACEOF
  19651. /* confdefs.h. */
  19652. _ACEOF
  19653. cat confdefs.h >>conftest.$ac_ext
  19654. cat >>conftest.$ac_ext <<_ACEOF
  19655. /* end confdefs.h. */
  19656. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19657. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19658. #define $ac_func innocuous_$ac_func
  19659. /* System header to define __stub macros and hopefully few prototypes,
  19660. which can conflict with char $ac_func (); below.
  19661. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19662. <limits.h> exists even on freestanding compilers. */
  19663. #ifdef __STDC__
  19664. # include <limits.h>
  19665. #else
  19666. # include <assert.h>
  19667. #endif
  19668. #undef $ac_func
  19669. /* Override any GCC internal prototype to avoid an error.
  19670. Use char because int might match the return type of a GCC
  19671. builtin and then its argument prototype would still apply. */
  19672. #ifdef __cplusplus
  19673. extern "C"
  19674. #endif
  19675. char $ac_func ();
  19676. /* The GNU C library defines this for functions which it implements
  19677. to always fail with ENOSYS. Some functions are actually named
  19678. something starting with __ and the normal name is an alias. */
  19679. #if defined __stub_$ac_func || defined __stub___$ac_func
  19680. choke me
  19681. #endif
  19682. int
  19683. main ()
  19684. {
  19685. return $ac_func ();
  19686. ;
  19687. return 0;
  19688. }
  19689. _ACEOF
  19690. rm -f conftest.$ac_objext conftest$ac_exeext
  19691. if { (ac_try="$ac_link"
  19692. case "(($ac_try" in
  19693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19694. *) ac_try_echo=$ac_try;;
  19695. esac
  19696. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19697. $as_echo "$ac_try_echo") >&5
  19698. (eval "$ac_link") 2>conftest.er1
  19699. ac_status=$?
  19700. grep -v '^ *+' conftest.er1 >conftest.err
  19701. rm -f conftest.er1
  19702. cat conftest.err >&5
  19703. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19704. (exit $ac_status); } && {
  19705. test -z "$ac_cxx_werror_flag" ||
  19706. test ! -s conftest.err
  19707. } && test -s conftest$ac_exeext && {
  19708. test "$cross_compiling" = yes ||
  19709. $as_test_x conftest$ac_exeext
  19710. }; then
  19711. eval "$as_ac_var=yes"
  19712. else
  19713. $as_echo "$as_me: failed program was:" >&5
  19714. sed 's/^/| /' conftest.$ac_ext >&5
  19715. eval "$as_ac_var=no"
  19716. fi
  19717. rm -rf conftest.dSYM
  19718. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19719. conftest$ac_exeext conftest.$ac_ext
  19720. fi
  19721. ac_res=`eval 'as_val=${'$as_ac_var'}
  19722. $as_echo "$as_val"'`
  19723. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19724. $as_echo "$ac_res" >&6; }
  19725. as_val=`eval 'as_val=${'$as_ac_var'}
  19726. $as_echo "$as_val"'`
  19727. if test "x$as_val" = x""yes; then
  19728. cat >>confdefs.h <<_ACEOF
  19729. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19730. _ACEOF
  19731. if true; then
  19732. HAVE_GETADDRINFO_TRUE=
  19733. HAVE_GETADDRINFO_FALSE='#'
  19734. else
  19735. HAVE_GETADDRINFO_TRUE='#'
  19736. HAVE_GETADDRINFO_FALSE=
  19737. fi
  19738. else
  19739. if false; then
  19740. HAVE_GETADDRINFO_TRUE=
  19741. HAVE_GETADDRINFO_FALSE='#'
  19742. else
  19743. HAVE_GETADDRINFO_TRUE='#'
  19744. HAVE_GETADDRINFO_FALSE=
  19745. fi
  19746. fi
  19747. done
  19748. for ac_func in gettimeofday
  19749. do
  19750. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19751. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19752. $as_echo_n "checking for $ac_func... " >&6; }
  19753. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19754. $as_echo_n "(cached) " >&6
  19755. else
  19756. cat >conftest.$ac_ext <<_ACEOF
  19757. /* confdefs.h. */
  19758. _ACEOF
  19759. cat confdefs.h >>conftest.$ac_ext
  19760. cat >>conftest.$ac_ext <<_ACEOF
  19761. /* end confdefs.h. */
  19762. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19763. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19764. #define $ac_func innocuous_$ac_func
  19765. /* System header to define __stub macros and hopefully few prototypes,
  19766. which can conflict with char $ac_func (); below.
  19767. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19768. <limits.h> exists even on freestanding compilers. */
  19769. #ifdef __STDC__
  19770. # include <limits.h>
  19771. #else
  19772. # include <assert.h>
  19773. #endif
  19774. #undef $ac_func
  19775. /* Override any GCC internal prototype to avoid an error.
  19776. Use char because int might match the return type of a GCC
  19777. builtin and then its argument prototype would still apply. */
  19778. #ifdef __cplusplus
  19779. extern "C"
  19780. #endif
  19781. char $ac_func ();
  19782. /* The GNU C library defines this for functions which it implements
  19783. to always fail with ENOSYS. Some functions are actually named
  19784. something starting with __ and the normal name is an alias. */
  19785. #if defined __stub_$ac_func || defined __stub___$ac_func
  19786. choke me
  19787. #endif
  19788. int
  19789. main ()
  19790. {
  19791. return $ac_func ();
  19792. ;
  19793. return 0;
  19794. }
  19795. _ACEOF
  19796. rm -f conftest.$ac_objext conftest$ac_exeext
  19797. if { (ac_try="$ac_link"
  19798. case "(($ac_try" in
  19799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19800. *) ac_try_echo=$ac_try;;
  19801. esac
  19802. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19803. $as_echo "$ac_try_echo") >&5
  19804. (eval "$ac_link") 2>conftest.er1
  19805. ac_status=$?
  19806. grep -v '^ *+' conftest.er1 >conftest.err
  19807. rm -f conftest.er1
  19808. cat conftest.err >&5
  19809. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19810. (exit $ac_status); } && {
  19811. test -z "$ac_cxx_werror_flag" ||
  19812. test ! -s conftest.err
  19813. } && test -s conftest$ac_exeext && {
  19814. test "$cross_compiling" = yes ||
  19815. $as_test_x conftest$ac_exeext
  19816. }; then
  19817. eval "$as_ac_var=yes"
  19818. else
  19819. $as_echo "$as_me: failed program was:" >&5
  19820. sed 's/^/| /' conftest.$ac_ext >&5
  19821. eval "$as_ac_var=no"
  19822. fi
  19823. rm -rf conftest.dSYM
  19824. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19825. conftest$ac_exeext conftest.$ac_ext
  19826. fi
  19827. ac_res=`eval 'as_val=${'$as_ac_var'}
  19828. $as_echo "$as_val"'`
  19829. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19830. $as_echo "$ac_res" >&6; }
  19831. as_val=`eval 'as_val=${'$as_ac_var'}
  19832. $as_echo "$as_val"'`
  19833. if test "x$as_val" = x""yes; then
  19834. cat >>confdefs.h <<_ACEOF
  19835. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19836. _ACEOF
  19837. if true; then
  19838. HAVE_GETTIMEOFDAY_TRUE=
  19839. HAVE_GETTIMEOFDAY_FALSE='#'
  19840. else
  19841. HAVE_GETTIMEOFDAY_TRUE='#'
  19842. HAVE_GETTIMEOFDAY_FALSE=
  19843. fi
  19844. else
  19845. if false; then
  19846. HAVE_GETTIMEOFDAY_TRUE=
  19847. HAVE_GETTIMEOFDAY_FALSE='#'
  19848. else
  19849. HAVE_GETTIMEOFDAY_TRUE='#'
  19850. HAVE_GETTIMEOFDAY_FALSE=
  19851. fi
  19852. fi
  19853. done
  19854. for ac_func in inet_aton
  19855. do
  19856. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19857. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19858. $as_echo_n "checking for $ac_func... " >&6; }
  19859. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19860. $as_echo_n "(cached) " >&6
  19861. else
  19862. cat >conftest.$ac_ext <<_ACEOF
  19863. /* confdefs.h. */
  19864. _ACEOF
  19865. cat confdefs.h >>conftest.$ac_ext
  19866. cat >>conftest.$ac_ext <<_ACEOF
  19867. /* end confdefs.h. */
  19868. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19869. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19870. #define $ac_func innocuous_$ac_func
  19871. /* System header to define __stub macros and hopefully few prototypes,
  19872. which can conflict with char $ac_func (); below.
  19873. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19874. <limits.h> exists even on freestanding compilers. */
  19875. #ifdef __STDC__
  19876. # include <limits.h>
  19877. #else
  19878. # include <assert.h>
  19879. #endif
  19880. #undef $ac_func
  19881. /* Override any GCC internal prototype to avoid an error.
  19882. Use char because int might match the return type of a GCC
  19883. builtin and then its argument prototype would still apply. */
  19884. #ifdef __cplusplus
  19885. extern "C"
  19886. #endif
  19887. char $ac_func ();
  19888. /* The GNU C library defines this for functions which it implements
  19889. to always fail with ENOSYS. Some functions are actually named
  19890. something starting with __ and the normal name is an alias. */
  19891. #if defined __stub_$ac_func || defined __stub___$ac_func
  19892. choke me
  19893. #endif
  19894. int
  19895. main ()
  19896. {
  19897. return $ac_func ();
  19898. ;
  19899. return 0;
  19900. }
  19901. _ACEOF
  19902. rm -f conftest.$ac_objext conftest$ac_exeext
  19903. if { (ac_try="$ac_link"
  19904. case "(($ac_try" in
  19905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19906. *) ac_try_echo=$ac_try;;
  19907. esac
  19908. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19909. $as_echo "$ac_try_echo") >&5
  19910. (eval "$ac_link") 2>conftest.er1
  19911. ac_status=$?
  19912. grep -v '^ *+' conftest.er1 >conftest.err
  19913. rm -f conftest.er1
  19914. cat conftest.err >&5
  19915. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19916. (exit $ac_status); } && {
  19917. test -z "$ac_cxx_werror_flag" ||
  19918. test ! -s conftest.err
  19919. } && test -s conftest$ac_exeext && {
  19920. test "$cross_compiling" = yes ||
  19921. $as_test_x conftest$ac_exeext
  19922. }; then
  19923. eval "$as_ac_var=yes"
  19924. else
  19925. $as_echo "$as_me: failed program was:" >&5
  19926. sed 's/^/| /' conftest.$ac_ext >&5
  19927. eval "$as_ac_var=no"
  19928. fi
  19929. rm -rf conftest.dSYM
  19930. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19931. conftest$ac_exeext conftest.$ac_ext
  19932. fi
  19933. ac_res=`eval 'as_val=${'$as_ac_var'}
  19934. $as_echo "$as_val"'`
  19935. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19936. $as_echo "$ac_res" >&6; }
  19937. as_val=`eval 'as_val=${'$as_ac_var'}
  19938. $as_echo "$as_val"'`
  19939. if test "x$as_val" = x""yes; then
  19940. cat >>confdefs.h <<_ACEOF
  19941. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19942. _ACEOF
  19943. if true; then
  19944. HAVE_INET_ATON_TRUE=
  19945. HAVE_INET_ATON_FALSE='#'
  19946. else
  19947. HAVE_INET_ATON_TRUE='#'
  19948. HAVE_INET_ATON_FALSE=
  19949. fi
  19950. else
  19951. if false; then
  19952. HAVE_INET_ATON_TRUE=
  19953. HAVE_INET_ATON_FALSE='#'
  19954. else
  19955. HAVE_INET_ATON_TRUE='#'
  19956. HAVE_INET_ATON_FALSE=
  19957. fi
  19958. fi
  19959. done
  19960. for ac_func in localtime_r
  19961. do
  19962. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19963. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19964. $as_echo_n "checking for $ac_func... " >&6; }
  19965. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19966. $as_echo_n "(cached) " >&6
  19967. else
  19968. cat >conftest.$ac_ext <<_ACEOF
  19969. /* confdefs.h. */
  19970. _ACEOF
  19971. cat confdefs.h >>conftest.$ac_ext
  19972. cat >>conftest.$ac_ext <<_ACEOF
  19973. /* end confdefs.h. */
  19974. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19975. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19976. #define $ac_func innocuous_$ac_func
  19977. /* System header to define __stub macros and hopefully few prototypes,
  19978. which can conflict with char $ac_func (); below.
  19979. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19980. <limits.h> exists even on freestanding compilers. */
  19981. #ifdef __STDC__
  19982. # include <limits.h>
  19983. #else
  19984. # include <assert.h>
  19985. #endif
  19986. #undef $ac_func
  19987. /* Override any GCC internal prototype to avoid an error.
  19988. Use char because int might match the return type of a GCC
  19989. builtin and then its argument prototype would still apply. */
  19990. #ifdef __cplusplus
  19991. extern "C"
  19992. #endif
  19993. char $ac_func ();
  19994. /* The GNU C library defines this for functions which it implements
  19995. to always fail with ENOSYS. Some functions are actually named
  19996. something starting with __ and the normal name is an alias. */
  19997. #if defined __stub_$ac_func || defined __stub___$ac_func
  19998. choke me
  19999. #endif
  20000. int
  20001. main ()
  20002. {
  20003. return $ac_func ();
  20004. ;
  20005. return 0;
  20006. }
  20007. _ACEOF
  20008. rm -f conftest.$ac_objext conftest$ac_exeext
  20009. if { (ac_try="$ac_link"
  20010. case "(($ac_try" in
  20011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20012. *) ac_try_echo=$ac_try;;
  20013. esac
  20014. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20015. $as_echo "$ac_try_echo") >&5
  20016. (eval "$ac_link") 2>conftest.er1
  20017. ac_status=$?
  20018. grep -v '^ *+' conftest.er1 >conftest.err
  20019. rm -f conftest.er1
  20020. cat conftest.err >&5
  20021. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20022. (exit $ac_status); } && {
  20023. test -z "$ac_cxx_werror_flag" ||
  20024. test ! -s conftest.err
  20025. } && test -s conftest$ac_exeext && {
  20026. test "$cross_compiling" = yes ||
  20027. $as_test_x conftest$ac_exeext
  20028. }; then
  20029. eval "$as_ac_var=yes"
  20030. else
  20031. $as_echo "$as_me: failed program was:" >&5
  20032. sed 's/^/| /' conftest.$ac_ext >&5
  20033. eval "$as_ac_var=no"
  20034. fi
  20035. rm -rf conftest.dSYM
  20036. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20037. conftest$ac_exeext conftest.$ac_ext
  20038. fi
  20039. ac_res=`eval 'as_val=${'$as_ac_var'}
  20040. $as_echo "$as_val"'`
  20041. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20042. $as_echo "$ac_res" >&6; }
  20043. as_val=`eval 'as_val=${'$as_ac_var'}
  20044. $as_echo "$as_val"'`
  20045. if test "x$as_val" = x""yes; then
  20046. cat >>confdefs.h <<_ACEOF
  20047. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20048. _ACEOF
  20049. if true; then
  20050. HAVE_LOCALTIME_R_TRUE=
  20051. HAVE_LOCALTIME_R_FALSE='#'
  20052. else
  20053. HAVE_LOCALTIME_R_TRUE='#'
  20054. HAVE_LOCALTIME_R_FALSE=
  20055. fi
  20056. else
  20057. if false; then
  20058. HAVE_LOCALTIME_R_TRUE=
  20059. HAVE_LOCALTIME_R_FALSE='#'
  20060. else
  20061. HAVE_LOCALTIME_R_TRUE='#'
  20062. HAVE_LOCALTIME_R_FALSE=
  20063. fi
  20064. fi
  20065. done
  20066. for ac_func in strptime
  20067. do
  20068. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20069. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  20070. $as_echo_n "checking for $ac_func... " >&6; }
  20071. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20072. $as_echo_n "(cached) " >&6
  20073. else
  20074. cat >conftest.$ac_ext <<_ACEOF
  20075. /* confdefs.h. */
  20076. _ACEOF
  20077. cat confdefs.h >>conftest.$ac_ext
  20078. cat >>conftest.$ac_ext <<_ACEOF
  20079. /* end confdefs.h. */
  20080. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20081. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20082. #define $ac_func innocuous_$ac_func
  20083. /* System header to define __stub macros and hopefully few prototypes,
  20084. which can conflict with char $ac_func (); below.
  20085. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20086. <limits.h> exists even on freestanding compilers. */
  20087. #ifdef __STDC__
  20088. # include <limits.h>
  20089. #else
  20090. # include <assert.h>
  20091. #endif
  20092. #undef $ac_func
  20093. /* Override any GCC internal prototype to avoid an error.
  20094. Use char because int might match the return type of a GCC
  20095. builtin and then its argument prototype would still apply. */
  20096. #ifdef __cplusplus
  20097. extern "C"
  20098. #endif
  20099. char $ac_func ();
  20100. /* The GNU C library defines this for functions which it implements
  20101. to always fail with ENOSYS. Some functions are actually named
  20102. something starting with __ and the normal name is an alias. */
  20103. #if defined __stub_$ac_func || defined __stub___$ac_func
  20104. choke me
  20105. #endif
  20106. int
  20107. main ()
  20108. {
  20109. return $ac_func ();
  20110. ;
  20111. return 0;
  20112. }
  20113. _ACEOF
  20114. rm -f conftest.$ac_objext conftest$ac_exeext
  20115. if { (ac_try="$ac_link"
  20116. case "(($ac_try" in
  20117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20118. *) ac_try_echo=$ac_try;;
  20119. esac
  20120. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20121. $as_echo "$ac_try_echo") >&5
  20122. (eval "$ac_link") 2>conftest.er1
  20123. ac_status=$?
  20124. grep -v '^ *+' conftest.er1 >conftest.err
  20125. rm -f conftest.er1
  20126. cat conftest.err >&5
  20127. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20128. (exit $ac_status); } && {
  20129. test -z "$ac_cxx_werror_flag" ||
  20130. test ! -s conftest.err
  20131. } && test -s conftest$ac_exeext && {
  20132. test "$cross_compiling" = yes ||
  20133. $as_test_x conftest$ac_exeext
  20134. }; then
  20135. eval "$as_ac_var=yes"
  20136. else
  20137. $as_echo "$as_me: failed program was:" >&5
  20138. sed 's/^/| /' conftest.$ac_ext >&5
  20139. eval "$as_ac_var=no"
  20140. fi
  20141. rm -rf conftest.dSYM
  20142. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20143. conftest$ac_exeext conftest.$ac_ext
  20144. fi
  20145. ac_res=`eval 'as_val=${'$as_ac_var'}
  20146. $as_echo "$as_val"'`
  20147. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20148. $as_echo "$ac_res" >&6; }
  20149. as_val=`eval 'as_val=${'$as_ac_var'}
  20150. $as_echo "$as_val"'`
  20151. if test "x$as_val" = x""yes; then
  20152. cat >>confdefs.h <<_ACEOF
  20153. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20154. _ACEOF
  20155. if true; then
  20156. HAVE_STRPTIME_TRUE=
  20157. HAVE_STRPTIME_FALSE='#'
  20158. else
  20159. HAVE_STRPTIME_TRUE='#'
  20160. HAVE_STRPTIME_FALSE=
  20161. fi
  20162. else
  20163. if false; then
  20164. HAVE_STRPTIME_TRUE=
  20165. HAVE_STRPTIME_FALSE='#'
  20166. else
  20167. HAVE_STRPTIME_TRUE='#'
  20168. HAVE_STRPTIME_FALSE=
  20169. fi
  20170. fi
  20171. done
  20172. for ac_func in timegm
  20173. do
  20174. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20175. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  20176. $as_echo_n "checking for $ac_func... " >&6; }
  20177. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20178. $as_echo_n "(cached) " >&6
  20179. else
  20180. cat >conftest.$ac_ext <<_ACEOF
  20181. /* confdefs.h. */
  20182. _ACEOF
  20183. cat confdefs.h >>conftest.$ac_ext
  20184. cat >>conftest.$ac_ext <<_ACEOF
  20185. /* end confdefs.h. */
  20186. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20187. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20188. #define $ac_func innocuous_$ac_func
  20189. /* System header to define __stub macros and hopefully few prototypes,
  20190. which can conflict with char $ac_func (); below.
  20191. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20192. <limits.h> exists even on freestanding compilers. */
  20193. #ifdef __STDC__
  20194. # include <limits.h>
  20195. #else
  20196. # include <assert.h>
  20197. #endif
  20198. #undef $ac_func
  20199. /* Override any GCC internal prototype to avoid an error.
  20200. Use char because int might match the return type of a GCC
  20201. builtin and then its argument prototype would still apply. */
  20202. #ifdef __cplusplus
  20203. extern "C"
  20204. #endif
  20205. char $ac_func ();
  20206. /* The GNU C library defines this for functions which it implements
  20207. to always fail with ENOSYS. Some functions are actually named
  20208. something starting with __ and the normal name is an alias. */
  20209. #if defined __stub_$ac_func || defined __stub___$ac_func
  20210. choke me
  20211. #endif
  20212. int
  20213. main ()
  20214. {
  20215. return $ac_func ();
  20216. ;
  20217. return 0;
  20218. }
  20219. _ACEOF
  20220. rm -f conftest.$ac_objext conftest$ac_exeext
  20221. if { (ac_try="$ac_link"
  20222. case "(($ac_try" in
  20223. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20224. *) ac_try_echo=$ac_try;;
  20225. esac
  20226. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20227. $as_echo "$ac_try_echo") >&5
  20228. (eval "$ac_link") 2>conftest.er1
  20229. ac_status=$?
  20230. grep -v '^ *+' conftest.er1 >conftest.err
  20231. rm -f conftest.er1
  20232. cat conftest.err >&5
  20233. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20234. (exit $ac_status); } && {
  20235. test -z "$ac_cxx_werror_flag" ||
  20236. test ! -s conftest.err
  20237. } && test -s conftest$ac_exeext && {
  20238. test "$cross_compiling" = yes ||
  20239. $as_test_x conftest$ac_exeext
  20240. }; then
  20241. eval "$as_ac_var=yes"
  20242. else
  20243. $as_echo "$as_me: failed program was:" >&5
  20244. sed 's/^/| /' conftest.$ac_ext >&5
  20245. eval "$as_ac_var=no"
  20246. fi
  20247. rm -rf conftest.dSYM
  20248. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20249. conftest$ac_exeext conftest.$ac_ext
  20250. fi
  20251. ac_res=`eval 'as_val=${'$as_ac_var'}
  20252. $as_echo "$as_val"'`
  20253. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20254. $as_echo "$ac_res" >&6; }
  20255. as_val=`eval 'as_val=${'$as_ac_var'}
  20256. $as_echo "$as_val"'`
  20257. if test "x$as_val" = x""yes; then
  20258. cat >>confdefs.h <<_ACEOF
  20259. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20260. _ACEOF
  20261. if true; then
  20262. HAVE_TIMEGM_TRUE=
  20263. HAVE_TIMEGM_FALSE='#'
  20264. else
  20265. HAVE_TIMEGM_TRUE='#'
  20266. HAVE_TIMEGM_FALSE=
  20267. fi
  20268. else
  20269. if false; then
  20270. HAVE_TIMEGM_TRUE=
  20271. HAVE_TIMEGM_FALSE='#'
  20272. else
  20273. HAVE_TIMEGM_TRUE='#'
  20274. HAVE_TIMEGM_FALSE=
  20275. fi
  20276. fi
  20277. done
  20278. case "$target" in
  20279. *mingw*)
  20280. if true; then
  20281. HAVE_GETADDRINFO_TRUE=
  20282. HAVE_GETADDRINFO_FALSE='#'
  20283. else
  20284. HAVE_GETADDRINFO_TRUE='#'
  20285. HAVE_GETADDRINFO_FALSE=
  20286. fi
  20287. if false; then
  20288. HAVE_GAI_STRERROR_TRUE=
  20289. HAVE_GAI_STRERROR_FALSE='#'
  20290. else
  20291. HAVE_GAI_STRERROR_TRUE='#'
  20292. HAVE_GAI_STRERROR_FALSE=
  20293. fi
  20294. ;;
  20295. esac
  20296. { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
  20297. $as_echo_n "checking for struct sockaddr_in.sin_len... " >&6; }
  20298. if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
  20299. $as_echo_n "(cached) " >&6
  20300. else
  20301. cat >conftest.$ac_ext <<_ACEOF
  20302. /* confdefs.h. */
  20303. _ACEOF
  20304. cat confdefs.h >>conftest.$ac_ext
  20305. cat >>conftest.$ac_ext <<_ACEOF
  20306. /* end confdefs.h. */
  20307. #include <netinet/in.h>
  20308. int
  20309. main ()
  20310. {
  20311. static struct sockaddr_in ac_aggr;
  20312. if (ac_aggr.sin_len)
  20313. return 0;
  20314. ;
  20315. return 0;
  20316. }
  20317. _ACEOF
  20318. rm -f conftest.$ac_objext
  20319. if { (ac_try="$ac_compile"
  20320. case "(($ac_try" in
  20321. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20322. *) ac_try_echo=$ac_try;;
  20323. esac
  20324. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20325. $as_echo "$ac_try_echo") >&5
  20326. (eval "$ac_compile") 2>conftest.er1
  20327. ac_status=$?
  20328. grep -v '^ *+' conftest.er1 >conftest.err
  20329. rm -f conftest.er1
  20330. cat conftest.err >&5
  20331. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20332. (exit $ac_status); } && {
  20333. test -z "$ac_cxx_werror_flag" ||
  20334. test ! -s conftest.err
  20335. } && test -s conftest.$ac_objext; then
  20336. ac_cv_member_struct_sockaddr_in_sin_len=yes
  20337. else
  20338. $as_echo "$as_me: failed program was:" >&5
  20339. sed 's/^/| /' conftest.$ac_ext >&5
  20340. cat >conftest.$ac_ext <<_ACEOF
  20341. /* confdefs.h. */
  20342. _ACEOF
  20343. cat confdefs.h >>conftest.$ac_ext
  20344. cat >>conftest.$ac_ext <<_ACEOF
  20345. /* end confdefs.h. */
  20346. #include <netinet/in.h>
  20347. int
  20348. main ()
  20349. {
  20350. static struct sockaddr_in ac_aggr;
  20351. if (sizeof ac_aggr.sin_len)
  20352. return 0;
  20353. ;
  20354. return 0;
  20355. }
  20356. _ACEOF
  20357. rm -f conftest.$ac_objext
  20358. if { (ac_try="$ac_compile"
  20359. case "(($ac_try" in
  20360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20361. *) ac_try_echo=$ac_try;;
  20362. esac
  20363. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20364. $as_echo "$ac_try_echo") >&5
  20365. (eval "$ac_compile") 2>conftest.er1
  20366. ac_status=$?
  20367. grep -v '^ *+' conftest.er1 >conftest.err
  20368. rm -f conftest.er1
  20369. cat conftest.err >&5
  20370. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20371. (exit $ac_status); } && {
  20372. test -z "$ac_cxx_werror_flag" ||
  20373. test ! -s conftest.err
  20374. } && test -s conftest.$ac_objext; then
  20375. ac_cv_member_struct_sockaddr_in_sin_len=yes
  20376. else
  20377. $as_echo "$as_me: failed program was:" >&5
  20378. sed 's/^/| /' conftest.$ac_ext >&5
  20379. ac_cv_member_struct_sockaddr_in_sin_len=no
  20380. fi
  20381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20382. fi
  20383. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20384. fi
  20385. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
  20386. $as_echo "$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
  20387. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then
  20388. cat >>confdefs.h <<\_ACEOF
  20389. #define HAVE_SOCKADDR_IN_SIN_LEN 1
  20390. _ACEOF
  20391. fi
  20392. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  20393. cat >confcache <<\_ACEOF
  20394. # This file is a shell script that caches the results of configure
  20395. # tests run on this system so they can be shared between configure
  20396. # scripts and configure runs, see configure's option --config-cache.
  20397. # It is not useful on other systems. If it contains results you don't
  20398. # want to keep, you may remove or edit it.
  20399. #
  20400. # config.status only pays attention to the cache file if you give it
  20401. # the --recheck option to rerun configure.
  20402. #
  20403. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20404. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20405. # following values.
  20406. _ACEOF
  20407. # The following way of writing the cache mishandles newlines in values,
  20408. # but we know of no workaround that is simple, portable, and efficient.
  20409. # So, we kill variables containing newlines.
  20410. # Ultrix sh set writes to stderr and can't be redirected directly,
  20411. # and sets the high bit in the cache file unless we assign to the vars.
  20412. (
  20413. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20414. eval ac_val=\$$ac_var
  20415. case $ac_val in #(
  20416. *${as_nl}*)
  20417. case $ac_var in #(
  20418. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  20419. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  20420. esac
  20421. case $ac_var in #(
  20422. _ | IFS | as_nl) ;; #(
  20423. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  20424. *) $as_unset $ac_var ;;
  20425. esac ;;
  20426. esac
  20427. done
  20428. (set) 2>&1 |
  20429. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20430. *${as_nl}ac_space=\ *)
  20431. # `set' does not quote correctly, so add quotes (double-quote
  20432. # substitution turns \\\\ into \\, and sed turns \\ into \).
  20433. sed -n \
  20434. "s/'/'\\\\''/g;
  20435. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20436. ;; #(
  20437. *)
  20438. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20439. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20440. ;;
  20441. esac |
  20442. sort
  20443. ) |
  20444. sed '
  20445. /^ac_cv_env_/b end
  20446. t clear
  20447. :clear
  20448. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20449. t end
  20450. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20451. :end' >>confcache
  20452. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20453. if test -w "$cache_file"; then
  20454. test "x$cache_file" != "x/dev/null" &&
  20455. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  20456. $as_echo "$as_me: updating cache $cache_file" >&6;}
  20457. cat confcache >$cache_file
  20458. else
  20459. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  20460. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20461. fi
  20462. fi
  20463. rm -f confcache
  20464. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20465. # Let make expand exec_prefix.
  20466. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20467. DEFS=-DHAVE_CONFIG_H
  20468. ac_libobjs=
  20469. ac_ltlibobjs=
  20470. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20471. # 1. Remove the extension, and $U if already installed.
  20472. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20473. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  20474. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20475. # will be set to the directory where LIBOBJS objects are built.
  20476. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20477. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  20478. done
  20479. LIBOBJS=$ac_libobjs
  20480. LTLIBOBJS=$ac_ltlibobjs
  20481. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  20482. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  20483. Usually this means the macro was only invoked conditionally." >&5
  20484. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  20485. Usually this means the macro was only invoked conditionally." >&2;}
  20486. { (exit 1); exit 1; }; }
  20487. fi
  20488. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  20489. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  20490. Usually this means the macro was only invoked conditionally." >&5
  20491. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  20492. Usually this means the macro was only invoked conditionally." >&2;}
  20493. { (exit 1); exit 1; }; }
  20494. fi
  20495. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  20496. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  20497. Usually this means the macro was only invoked conditionally." >&5
  20498. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  20499. Usually this means the macro was only invoked conditionally." >&2;}
  20500. { (exit 1); exit 1; }; }
  20501. fi
  20502. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  20503. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
  20504. Usually this means the macro was only invoked conditionally." >&5
  20505. $as_echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
  20506. Usually this means the macro was only invoked conditionally." >&2;}
  20507. { (exit 1); exit 1; }; }
  20508. fi
  20509. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  20510. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
  20511. Usually this means the macro was only invoked conditionally." >&5
  20512. $as_echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
  20513. Usually this means the macro was only invoked conditionally." >&2;}
  20514. { (exit 1); exit 1; }; }
  20515. fi
  20516. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  20517. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  20518. Usually this means the macro was only invoked conditionally." >&5
  20519. $as_echo "$as_me: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  20520. Usually this means the macro was only invoked conditionally." >&2;}
  20521. { (exit 1); exit 1; }; }
  20522. fi
  20523. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  20524. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBSSL\" was never defined.
  20525. Usually this means the macro was only invoked conditionally." >&5
  20526. $as_echo "$as_me: error: conditional \"HAVE_LIBSSL\" was never defined.
  20527. Usually this means the macro was only invoked conditionally." >&2;}
  20528. { (exit 1); exit 1; }; }
  20529. fi
  20530. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  20531. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20532. Usually this means the macro was only invoked conditionally." >&5
  20533. $as_echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20534. Usually this means the macro was only invoked conditionally." >&2;}
  20535. { (exit 1); exit 1; }; }
  20536. fi
  20537. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  20538. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20539. Usually this means the macro was only invoked conditionally." >&5
  20540. $as_echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20541. Usually this means the macro was only invoked conditionally." >&2;}
  20542. { (exit 1); exit 1; }; }
  20543. fi
  20544. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  20545. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20546. Usually this means the macro was only invoked conditionally." >&5
  20547. $as_echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20548. Usually this means the macro was only invoked conditionally." >&2;}
  20549. { (exit 1); exit 1; }; }
  20550. fi
  20551. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  20552. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20553. Usually this means the macro was only invoked conditionally." >&5
  20554. $as_echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20555. Usually this means the macro was only invoked conditionally." >&2;}
  20556. { (exit 1); exit 1; }; }
  20557. fi
  20558. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  20559. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  20560. Usually this means the macro was only invoked conditionally." >&5
  20561. $as_echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  20562. Usually this means the macro was only invoked conditionally." >&2;}
  20563. { (exit 1); exit 1; }; }
  20564. fi
  20565. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  20566. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  20567. Usually this means the macro was only invoked conditionally." >&5
  20568. $as_echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  20569. Usually this means the macro was only invoked conditionally." >&2;}
  20570. { (exit 1); exit 1; }; }
  20571. fi
  20572. if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
  20573. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  20574. Usually this means the macro was only invoked conditionally." >&5
  20575. $as_echo "$as_me: error: conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  20576. Usually this means the macro was only invoked conditionally." >&2;}
  20577. { (exit 1); exit 1; }; }
  20578. fi
  20579. if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
  20580. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  20581. Usually this means the macro was only invoked conditionally." >&5
  20582. $as_echo "$as_me: error: conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  20583. Usually this means the macro was only invoked conditionally." >&2;}
  20584. { (exit 1); exit 1; }; }
  20585. fi
  20586. if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
  20587. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_XML_RPC\" was never defined.
  20588. Usually this means the macro was only invoked conditionally." >&5
  20589. $as_echo "$as_me: error: conditional \"ENABLE_XML_RPC\" was never defined.
  20590. Usually this means the macro was only invoked conditionally." >&2;}
  20591. { (exit 1); exit 1; }; }
  20592. fi
  20593. if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
  20594. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBXML2\" was never defined.
  20595. Usually this means the macro was only invoked conditionally." >&5
  20596. $as_echo "$as_me: error: conditional \"HAVE_LIBXML2\" was never defined.
  20597. Usually this means the macro was only invoked conditionally." >&2;}
  20598. { (exit 1); exit 1; }; }
  20599. fi
  20600. if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
  20601. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBEXPAT\" was never defined.
  20602. Usually this means the macro was only invoked conditionally." >&5
  20603. $as_echo "$as_me: error: conditional \"HAVE_LIBEXPAT\" was never defined.
  20604. Usually this means the macro was only invoked conditionally." >&2;}
  20605. { (exit 1); exit 1; }; }
  20606. fi
  20607. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  20608. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  20609. Usually this means the macro was only invoked conditionally." >&5
  20610. $as_echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  20611. Usually this means the macro was only invoked conditionally." >&2;}
  20612. { (exit 1); exit 1; }; }
  20613. fi
  20614. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  20615. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  20616. Usually this means the macro was only invoked conditionally." >&5
  20617. $as_echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  20618. Usually this means the macro was only invoked conditionally." >&2;}
  20619. { (exit 1); exit 1; }; }
  20620. fi
  20621. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  20622. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
  20623. Usually this means the macro was only invoked conditionally." >&5
  20624. $as_echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
  20625. Usually this means the macro was only invoked conditionally." >&2;}
  20626. { (exit 1); exit 1; }; }
  20627. fi
  20628. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  20629. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SQLITE3\" was never defined.
  20630. Usually this means the macro was only invoked conditionally." >&5
  20631. $as_echo "$as_me: error: conditional \"HAVE_SQLITE3\" was never defined.
  20632. Usually this means the macro was only invoked conditionally." >&2;}
  20633. { (exit 1); exit 1; }; }
  20634. fi
  20635. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  20636. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_EPOLL\" was never defined.
  20637. Usually this means the macro was only invoked conditionally." >&5
  20638. $as_echo "$as_me: error: conditional \"HAVE_EPOLL\" was never defined.
  20639. Usually this means the macro was only invoked conditionally." >&2;}
  20640. { (exit 1); exit 1; }; }
  20641. fi
  20642. if test -z "${HAVE_POSIX_FALLOCATE_TRUE}" && test -z "${HAVE_POSIX_FALLOCATE_FALSE}"; then
  20643. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  20644. Usually this means the macro was only invoked conditionally." >&5
  20645. $as_echo "$as_me: error: conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  20646. Usually this means the macro was only invoked conditionally." >&2;}
  20647. { (exit 1); exit 1; }; }
  20648. fi
  20649. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  20650. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  20651. Usually this means the macro was only invoked conditionally." >&5
  20652. $as_echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  20653. Usually this means the macro was only invoked conditionally." >&2;}
  20654. { (exit 1); exit 1; }; }
  20655. fi
  20656. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  20657. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  20658. Usually this means the macro was only invoked conditionally." >&5
  20659. $as_echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  20660. Usually this means the macro was only invoked conditionally." >&2;}
  20661. { (exit 1); exit 1; }; }
  20662. fi
  20663. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  20664. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  20665. Usually this means the macro was only invoked conditionally." >&5
  20666. $as_echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  20667. Usually this means the macro was only invoked conditionally." >&2;}
  20668. { (exit 1); exit 1; }; }
  20669. fi
  20670. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  20671. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  20672. Usually this means the macro was only invoked conditionally." >&5
  20673. $as_echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  20674. Usually this means the macro was only invoked conditionally." >&2;}
  20675. { (exit 1); exit 1; }; }
  20676. fi
  20677. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  20678. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20679. Usually this means the macro was only invoked conditionally." >&5
  20680. $as_echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20681. Usually this means the macro was only invoked conditionally." >&2;}
  20682. { (exit 1); exit 1; }; }
  20683. fi
  20684. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  20685. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20686. Usually this means the macro was only invoked conditionally." >&5
  20687. $as_echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20688. Usually this means the macro was only invoked conditionally." >&2;}
  20689. { (exit 1); exit 1; }; }
  20690. fi
  20691. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  20692. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20693. Usually this means the macro was only invoked conditionally." >&5
  20694. $as_echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20695. Usually this means the macro was only invoked conditionally." >&2;}
  20696. { (exit 1); exit 1; }; }
  20697. fi
  20698. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  20699. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20700. Usually this means the macro was only invoked conditionally." >&5
  20701. $as_echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20702. Usually this means the macro was only invoked conditionally." >&2;}
  20703. { (exit 1); exit 1; }; }
  20704. fi
  20705. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  20706. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  20707. Usually this means the macro was only invoked conditionally." >&5
  20708. $as_echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  20709. Usually this means the macro was only invoked conditionally." >&2;}
  20710. { (exit 1); exit 1; }; }
  20711. fi
  20712. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  20713. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  20714. Usually this means the macro was only invoked conditionally." >&5
  20715. $as_echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  20716. Usually this means the macro was only invoked conditionally." >&2;}
  20717. { (exit 1); exit 1; }; }
  20718. fi
  20719. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  20720. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  20721. Usually this means the macro was only invoked conditionally." >&5
  20722. $as_echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  20723. Usually this means the macro was only invoked conditionally." >&2;}
  20724. { (exit 1); exit 1; }; }
  20725. fi
  20726. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  20727. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  20728. Usually this means the macro was only invoked conditionally." >&5
  20729. $as_echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  20730. Usually this means the macro was only invoked conditionally." >&2;}
  20731. { (exit 1); exit 1; }; }
  20732. fi
  20733. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  20734. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  20735. Usually this means the macro was only invoked conditionally." >&5
  20736. $as_echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  20737. Usually this means the macro was only invoked conditionally." >&2;}
  20738. { (exit 1); exit 1; }; }
  20739. fi
  20740. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  20741. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  20742. Usually this means the macro was only invoked conditionally." >&5
  20743. $as_echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  20744. Usually this means the macro was only invoked conditionally." >&2;}
  20745. { (exit 1); exit 1; }; }
  20746. fi
  20747. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  20748. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  20749. Usually this means the macro was only invoked conditionally." >&5
  20750. $as_echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  20751. Usually this means the macro was only invoked conditionally." >&2;}
  20752. { (exit 1); exit 1; }; }
  20753. fi
  20754. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  20755. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  20756. Usually this means the macro was only invoked conditionally." >&5
  20757. $as_echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  20758. Usually this means the macro was only invoked conditionally." >&2;}
  20759. { (exit 1); exit 1; }; }
  20760. fi
  20761. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  20762. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  20763. Usually this means the macro was only invoked conditionally." >&5
  20764. $as_echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  20765. Usually this means the macro was only invoked conditionally." >&2;}
  20766. { (exit 1); exit 1; }; }
  20767. fi
  20768. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  20769. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  20770. Usually this means the macro was only invoked conditionally." >&5
  20771. $as_echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  20772. Usually this means the macro was only invoked conditionally." >&2;}
  20773. { (exit 1); exit 1; }; }
  20774. fi
  20775. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  20776. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20777. Usually this means the macro was only invoked conditionally." >&5
  20778. $as_echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20779. Usually this means the macro was only invoked conditionally." >&2;}
  20780. { (exit 1); exit 1; }; }
  20781. fi
  20782. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  20783. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20784. Usually this means the macro was only invoked conditionally." >&5
  20785. $as_echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20786. Usually this means the macro was only invoked conditionally." >&2;}
  20787. { (exit 1); exit 1; }; }
  20788. fi
  20789. : ${CONFIG_STATUS=./config.status}
  20790. ac_write_fail=0
  20791. ac_clean_files_save=$ac_clean_files
  20792. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20793. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  20794. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20795. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20796. #! $SHELL
  20797. # Generated by $as_me.
  20798. # Run this file to recreate the current configuration.
  20799. # Compiler output produced by configure, useful for debugging
  20800. # configure, is in config.log if it exists.
  20801. debug=false
  20802. ac_cs_recheck=false
  20803. ac_cs_silent=false
  20804. SHELL=\${CONFIG_SHELL-$SHELL}
  20805. _ACEOF
  20806. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20807. ## --------------------- ##
  20808. ## M4sh Initialization. ##
  20809. ## --------------------- ##
  20810. # Be more Bourne compatible
  20811. DUALCASE=1; export DUALCASE # for MKS sh
  20812. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  20813. emulate sh
  20814. NULLCMD=:
  20815. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20816. # is contrary to our usage. Disable this feature.
  20817. alias -g '${1+"$@"}'='"$@"'
  20818. setopt NO_GLOB_SUBST
  20819. else
  20820. case `(set -o) 2>/dev/null` in
  20821. *posix*) set -o posix ;;
  20822. esac
  20823. fi
  20824. # PATH needs CR
  20825. # Avoid depending upon Character Ranges.
  20826. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20827. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20828. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20829. as_cr_digits='0123456789'
  20830. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20831. as_nl='
  20832. '
  20833. export as_nl
  20834. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  20835. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  20836. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  20837. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  20838. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  20839. as_echo='printf %s\n'
  20840. as_echo_n='printf %s'
  20841. else
  20842. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  20843. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  20844. as_echo_n='/usr/ucb/echo -n'
  20845. else
  20846. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  20847. as_echo_n_body='eval
  20848. arg=$1;
  20849. case $arg in
  20850. *"$as_nl"*)
  20851. expr "X$arg" : "X\\(.*\\)$as_nl";
  20852. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  20853. esac;
  20854. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  20855. '
  20856. export as_echo_n_body
  20857. as_echo_n='sh -c $as_echo_n_body as_echo'
  20858. fi
  20859. export as_echo_body
  20860. as_echo='sh -c $as_echo_body as_echo'
  20861. fi
  20862. # The user is always right.
  20863. if test "${PATH_SEPARATOR+set}" != set; then
  20864. PATH_SEPARATOR=:
  20865. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  20866. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  20867. PATH_SEPARATOR=';'
  20868. }
  20869. fi
  20870. # Support unset when possible.
  20871. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  20872. as_unset=unset
  20873. else
  20874. as_unset=false
  20875. fi
  20876. # IFS
  20877. # We need space, tab and new line, in precisely that order. Quoting is
  20878. # there to prevent editors from complaining about space-tab.
  20879. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20880. # splitting by setting IFS to empty value.)
  20881. IFS=" "" $as_nl"
  20882. # Find who we are. Look in the path if we contain no directory separator.
  20883. case $0 in
  20884. *[\\/]* ) as_myself=$0 ;;
  20885. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20886. for as_dir in $PATH
  20887. do
  20888. IFS=$as_save_IFS
  20889. test -z "$as_dir" && as_dir=.
  20890. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20891. done
  20892. IFS=$as_save_IFS
  20893. ;;
  20894. esac
  20895. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20896. # in which case we are not to be found in the path.
  20897. if test "x$as_myself" = x; then
  20898. as_myself=$0
  20899. fi
  20900. if test ! -f "$as_myself"; then
  20901. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20902. { (exit 1); exit 1; }
  20903. fi
  20904. # Work around bugs in pre-3.0 UWIN ksh.
  20905. for as_var in ENV MAIL MAILPATH
  20906. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  20907. done
  20908. PS1='$ '
  20909. PS2='> '
  20910. PS4='+ '
  20911. # NLS nuisances.
  20912. LC_ALL=C
  20913. export LC_ALL
  20914. LANGUAGE=C
  20915. export LANGUAGE
  20916. # Required to use basename.
  20917. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20918. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20919. as_expr=expr
  20920. else
  20921. as_expr=false
  20922. fi
  20923. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20924. as_basename=basename
  20925. else
  20926. as_basename=false
  20927. fi
  20928. # Name of the executable.
  20929. as_me=`$as_basename -- "$0" ||
  20930. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20931. X"$0" : 'X\(//\)$' \| \
  20932. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20933. $as_echo X/"$0" |
  20934. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20935. s//\1/
  20936. q
  20937. }
  20938. /^X\/\(\/\/\)$/{
  20939. s//\1/
  20940. q
  20941. }
  20942. /^X\/\(\/\).*/{
  20943. s//\1/
  20944. q
  20945. }
  20946. s/.*/./; q'`
  20947. # CDPATH.
  20948. $as_unset CDPATH
  20949. as_lineno_1=$LINENO
  20950. as_lineno_2=$LINENO
  20951. test "x$as_lineno_1" != "x$as_lineno_2" &&
  20952. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  20953. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  20954. # uniformly replaced by the line number. The first 'sed' inserts a
  20955. # line-number line after each line using $LINENO; the second 'sed'
  20956. # does the real work. The second script uses 'N' to pair each
  20957. # line-number line with the line containing $LINENO, and appends
  20958. # trailing '-' during substitution so that $LINENO is not a special
  20959. # case at line end.
  20960. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  20961. # scripts with optimization help from Paolo Bonzini. Blame Lee
  20962. # E. McMahon (1931-1989) for sed's syntax. :-)
  20963. sed -n '
  20964. p
  20965. /[$]LINENO/=
  20966. ' <$as_myself |
  20967. sed '
  20968. s/[$]LINENO.*/&-/
  20969. t lineno
  20970. b
  20971. :lineno
  20972. N
  20973. :loop
  20974. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  20975. t loop
  20976. s/-\n.*//
  20977. ' >$as_me.lineno &&
  20978. chmod +x "$as_me.lineno" ||
  20979. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  20980. { (exit 1); exit 1; }; }
  20981. # Don't try to exec as it changes $[0], causing all sort of problems
  20982. # (the dirname of $[0] is not the place where we might find the
  20983. # original and so on. Autoconf is especially sensitive to this).
  20984. . "./$as_me.lineno"
  20985. # Exit status is that of the last command.
  20986. exit
  20987. }
  20988. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20989. as_dirname=dirname
  20990. else
  20991. as_dirname=false
  20992. fi
  20993. ECHO_C= ECHO_N= ECHO_T=
  20994. case `echo -n x` in
  20995. -n*)
  20996. case `echo 'x\c'` in
  20997. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20998. *) ECHO_C='\c';;
  20999. esac;;
  21000. *)
  21001. ECHO_N='-n';;
  21002. esac
  21003. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21004. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21005. as_expr=expr
  21006. else
  21007. as_expr=false
  21008. fi
  21009. rm -f conf$$ conf$$.exe conf$$.file
  21010. if test -d conf$$.dir; then
  21011. rm -f conf$$.dir/conf$$.file
  21012. else
  21013. rm -f conf$$.dir
  21014. mkdir conf$$.dir 2>/dev/null
  21015. fi
  21016. if (echo >conf$$.file) 2>/dev/null; then
  21017. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21018. as_ln_s='ln -s'
  21019. # ... but there are two gotchas:
  21020. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21021. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21022. # In both cases, we have to default to `cp -p'.
  21023. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21024. as_ln_s='cp -p'
  21025. elif ln conf$$.file conf$$ 2>/dev/null; then
  21026. as_ln_s=ln
  21027. else
  21028. as_ln_s='cp -p'
  21029. fi
  21030. else
  21031. as_ln_s='cp -p'
  21032. fi
  21033. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21034. rmdir conf$$.dir 2>/dev/null
  21035. if mkdir -p . 2>/dev/null; then
  21036. as_mkdir_p=:
  21037. else
  21038. test -d ./-p && rmdir ./-p
  21039. as_mkdir_p=false
  21040. fi
  21041. if test -x / >/dev/null 2>&1; then
  21042. as_test_x='test -x'
  21043. else
  21044. if ls -dL / >/dev/null 2>&1; then
  21045. as_ls_L_option=L
  21046. else
  21047. as_ls_L_option=
  21048. fi
  21049. as_test_x='
  21050. eval sh -c '\''
  21051. if test -d "$1"; then
  21052. test -d "$1/.";
  21053. else
  21054. case $1 in
  21055. -*)set "./$1";;
  21056. esac;
  21057. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  21058. ???[sx]*):;;*)false;;esac;fi
  21059. '\'' sh
  21060. '
  21061. fi
  21062. as_executable_p=$as_test_x
  21063. # Sed expression to map a string onto a valid CPP name.
  21064. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21065. # Sed expression to map a string onto a valid variable name.
  21066. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21067. exec 6>&1
  21068. # Save the log message, to keep $[0] and so on meaningful, and to
  21069. # report actual input values of CONFIG_FILES etc. instead of their
  21070. # values after options handling.
  21071. ac_log="
  21072. This file was extended by aria2 $as_me 1.3.3, which was
  21073. generated by GNU Autoconf 2.63. Invocation command line was
  21074. CONFIG_FILES = $CONFIG_FILES
  21075. CONFIG_HEADERS = $CONFIG_HEADERS
  21076. CONFIG_LINKS = $CONFIG_LINKS
  21077. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21078. $ $0 $@
  21079. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21080. "
  21081. _ACEOF
  21082. case $ac_config_files in *"
  21083. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21084. esac
  21085. case $ac_config_headers in *"
  21086. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21087. esac
  21088. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21089. # Files that config.status was made for.
  21090. config_files="$ac_config_files"
  21091. config_headers="$ac_config_headers"
  21092. config_commands="$ac_config_commands"
  21093. _ACEOF
  21094. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21095. ac_cs_usage="\
  21096. \`$as_me' instantiates files from templates according to the
  21097. current configuration.
  21098. Usage: $0 [OPTION]... [FILE]...
  21099. -h, --help print this help, then exit
  21100. -V, --version print version number and configuration settings, then exit
  21101. -q, --quiet, --silent
  21102. do not print progress messages
  21103. -d, --debug don't remove temporary files
  21104. --recheck update $as_me by reconfiguring in the same conditions
  21105. --file=FILE[:TEMPLATE]
  21106. instantiate the configuration file FILE
  21107. --header=FILE[:TEMPLATE]
  21108. instantiate the configuration header FILE
  21109. Configuration files:
  21110. $config_files
  21111. Configuration headers:
  21112. $config_headers
  21113. Configuration commands:
  21114. $config_commands
  21115. Report bugs to <bug-autoconf@gnu.org>."
  21116. _ACEOF
  21117. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21118. ac_cs_version="\\
  21119. aria2 config.status 1.3.3
  21120. configured by $0, generated by GNU Autoconf 2.63,
  21121. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  21122. Copyright (C) 2008 Free Software Foundation, Inc.
  21123. This config.status script is free software; the Free Software Foundation
  21124. gives unlimited permission to copy, distribute and modify it."
  21125. ac_pwd='$ac_pwd'
  21126. srcdir='$srcdir'
  21127. INSTALL='$INSTALL'
  21128. MKDIR_P='$MKDIR_P'
  21129. AWK='$AWK'
  21130. test -n "\$AWK" || AWK=awk
  21131. _ACEOF
  21132. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21133. # The default lists apply if the user does not specify any file.
  21134. ac_need_defaults=:
  21135. while test $# != 0
  21136. do
  21137. case $1 in
  21138. --*=*)
  21139. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21140. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21141. ac_shift=:
  21142. ;;
  21143. *)
  21144. ac_option=$1
  21145. ac_optarg=$2
  21146. ac_shift=shift
  21147. ;;
  21148. esac
  21149. case $ac_option in
  21150. # Handling of the options.
  21151. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21152. ac_cs_recheck=: ;;
  21153. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21154. $as_echo "$ac_cs_version"; exit ;;
  21155. --debug | --debu | --deb | --de | --d | -d )
  21156. debug=: ;;
  21157. --file | --fil | --fi | --f )
  21158. $ac_shift
  21159. case $ac_optarg in
  21160. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21161. esac
  21162. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  21163. ac_need_defaults=false;;
  21164. --header | --heade | --head | --hea )
  21165. $ac_shift
  21166. case $ac_optarg in
  21167. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21168. esac
  21169. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  21170. ac_need_defaults=false;;
  21171. --he | --h)
  21172. # Conflict between --help and --header
  21173. { $as_echo "$as_me: error: ambiguous option: $1
  21174. Try \`$0 --help' for more information." >&2
  21175. { (exit 1); exit 1; }; };;
  21176. --help | --hel | -h )
  21177. $as_echo "$ac_cs_usage"; exit ;;
  21178. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21179. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21180. ac_cs_silent=: ;;
  21181. # This is an error.
  21182. -*) { $as_echo "$as_me: error: unrecognized option: $1
  21183. Try \`$0 --help' for more information." >&2
  21184. { (exit 1); exit 1; }; } ;;
  21185. *) ac_config_targets="$ac_config_targets $1"
  21186. ac_need_defaults=false ;;
  21187. esac
  21188. shift
  21189. done
  21190. ac_configure_extra_args=
  21191. if $ac_cs_silent; then
  21192. exec 6>/dev/null
  21193. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21194. fi
  21195. _ACEOF
  21196. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21197. if \$ac_cs_recheck; then
  21198. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21199. shift
  21200. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21201. CONFIG_SHELL='$SHELL'
  21202. export CONFIG_SHELL
  21203. exec "\$@"
  21204. fi
  21205. _ACEOF
  21206. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21207. exec 5>>config.log
  21208. {
  21209. echo
  21210. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21211. ## Running $as_me. ##
  21212. _ASBOX
  21213. $as_echo "$ac_log"
  21214. } >&5
  21215. _ACEOF
  21216. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21217. #
  21218. # INIT-COMMANDS
  21219. #
  21220. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  21221. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  21222. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  21223. # from automake < 1.5.
  21224. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  21225. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  21226. LINGUAS="${LINGUAS-%UNSET%}"
  21227. _ACEOF
  21228. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21229. # Handling of arguments.
  21230. for ac_config_target in $ac_config_targets
  21231. do
  21232. case $ac_config_target in
  21233. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  21234. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  21235. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  21236. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  21237. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  21238. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  21239. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  21240. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  21241. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  21242. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  21243. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  21244. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  21245. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  21246. { (exit 1); exit 1; }; };;
  21247. esac
  21248. done
  21249. # If the user did not use the arguments to specify the items to instantiate,
  21250. # then the envvar interface is used. Set only those that are not.
  21251. # We use the long form for the default assignment because of an extremely
  21252. # bizarre bug on SunOS 4.1.3.
  21253. if $ac_need_defaults; then
  21254. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21255. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21256. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21257. fi
  21258. # Have a temporary directory for convenience. Make it in the build tree
  21259. # simply because there is no reason against having it here, and in addition,
  21260. # creating and moving files from /tmp can sometimes cause problems.
  21261. # Hook for its removal unless debugging.
  21262. # Note that there is a small window in which the directory will not be cleaned:
  21263. # after its creation but before its name has been assigned to `$tmp'.
  21264. $debug ||
  21265. {
  21266. tmp=
  21267. trap 'exit_status=$?
  21268. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  21269. ' 0
  21270. trap '{ (exit 1); exit 1; }' 1 2 13 15
  21271. }
  21272. # Create a (secure) tmp directory for tmp files.
  21273. {
  21274. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21275. test -n "$tmp" && test -d "$tmp"
  21276. } ||
  21277. {
  21278. tmp=./conf$$-$RANDOM
  21279. (umask 077 && mkdir "$tmp")
  21280. } ||
  21281. {
  21282. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  21283. { (exit 1); exit 1; }
  21284. }
  21285. # Set up the scripts for CONFIG_FILES section.
  21286. # No need to generate them if there are no CONFIG_FILES.
  21287. # This happens for instance with `./config.status config.h'.
  21288. if test -n "$CONFIG_FILES"; then
  21289. ac_cr=' '
  21290. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  21291. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  21292. ac_cs_awk_cr='\\r'
  21293. else
  21294. ac_cs_awk_cr=$ac_cr
  21295. fi
  21296. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  21297. _ACEOF
  21298. {
  21299. echo "cat >conf$$subs.awk <<_ACEOF" &&
  21300. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  21301. echo "_ACEOF"
  21302. } >conf$$subs.sh ||
  21303. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21304. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21305. { (exit 1); exit 1; }; }
  21306. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  21307. ac_delim='%!_!# '
  21308. for ac_last_try in false false false false false :; do
  21309. . ./conf$$subs.sh ||
  21310. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21311. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21312. { (exit 1); exit 1; }; }
  21313. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  21314. if test $ac_delim_n = $ac_delim_num; then
  21315. break
  21316. elif $ac_last_try; then
  21317. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21318. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21319. { (exit 1); exit 1; }; }
  21320. else
  21321. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21322. fi
  21323. done
  21324. rm -f conf$$subs.sh
  21325. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21326. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  21327. _ACEOF
  21328. sed -n '
  21329. h
  21330. s/^/S["/; s/!.*/"]=/
  21331. p
  21332. g
  21333. s/^[^!]*!//
  21334. :repl
  21335. t repl
  21336. s/'"$ac_delim"'$//
  21337. t delim
  21338. :nl
  21339. h
  21340. s/\(.\{148\}\).*/\1/
  21341. t more1
  21342. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  21343. p
  21344. n
  21345. b repl
  21346. :more1
  21347. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21348. p
  21349. g
  21350. s/.\{148\}//
  21351. t nl
  21352. :delim
  21353. h
  21354. s/\(.\{148\}\).*/\1/
  21355. t more2
  21356. s/["\\]/\\&/g; s/^/"/; s/$/"/
  21357. p
  21358. b
  21359. :more2
  21360. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21361. p
  21362. g
  21363. s/.\{148\}//
  21364. t delim
  21365. ' <conf$$subs.awk | sed '
  21366. /^[^""]/{
  21367. N
  21368. s/\n//
  21369. }
  21370. ' >>$CONFIG_STATUS || ac_write_fail=1
  21371. rm -f conf$$subs.awk
  21372. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21373. _ACAWK
  21374. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  21375. for (key in S) S_is_set[key] = 1
  21376. FS = ""
  21377. }
  21378. {
  21379. line = $ 0
  21380. nfields = split(line, field, "@")
  21381. substed = 0
  21382. len = length(field[1])
  21383. for (i = 2; i < nfields; i++) {
  21384. key = field[i]
  21385. keylen = length(key)
  21386. if (S_is_set[key]) {
  21387. value = S[key]
  21388. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  21389. len += length(value) + length(field[++i])
  21390. substed = 1
  21391. } else
  21392. len += 1 + keylen
  21393. }
  21394. print line
  21395. }
  21396. _ACAWK
  21397. _ACEOF
  21398. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21399. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  21400. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  21401. else
  21402. cat
  21403. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  21404. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  21405. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  21406. { (exit 1); exit 1; }; }
  21407. _ACEOF
  21408. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  21409. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  21410. # trailing colons and then remove the whole line if VPATH becomes empty
  21411. # (actually we leave an empty line to preserve line numbers).
  21412. if test "x$srcdir" = x.; then
  21413. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  21414. s/:*\$(srcdir):*/:/
  21415. s/:*\${srcdir}:*/:/
  21416. s/:*@srcdir@:*/:/
  21417. s/^\([^=]*=[ ]*\):*/\1/
  21418. s/:*$//
  21419. s/^[^=]*=[ ]*$//
  21420. }'
  21421. fi
  21422. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21423. fi # test -n "$CONFIG_FILES"
  21424. # Set up the scripts for CONFIG_HEADERS section.
  21425. # No need to generate them if there are no CONFIG_HEADERS.
  21426. # This happens for instance with `./config.status Makefile'.
  21427. if test -n "$CONFIG_HEADERS"; then
  21428. cat >"$tmp/defines.awk" <<\_ACAWK ||
  21429. BEGIN {
  21430. _ACEOF
  21431. # Transform confdefs.h into an awk script `defines.awk', embedded as
  21432. # here-document in config.status, that substitutes the proper values into
  21433. # config.h.in to produce config.h.
  21434. # Create a delimiter string that does not exist in confdefs.h, to ease
  21435. # handling of long lines.
  21436. ac_delim='%!_!# '
  21437. for ac_last_try in false false :; do
  21438. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  21439. if test -z "$ac_t"; then
  21440. break
  21441. elif $ac_last_try; then
  21442. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  21443. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  21444. { (exit 1); exit 1; }; }
  21445. else
  21446. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21447. fi
  21448. done
  21449. # For the awk script, D is an array of macro values keyed by name,
  21450. # likewise P contains macro parameters if any. Preserve backslash
  21451. # newline sequences.
  21452. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21453. sed -n '
  21454. s/.\{148\}/&'"$ac_delim"'/g
  21455. t rset
  21456. :rset
  21457. s/^[ ]*#[ ]*define[ ][ ]*/ /
  21458. t def
  21459. d
  21460. :def
  21461. s/\\$//
  21462. t bsnl
  21463. s/["\\]/\\&/g
  21464. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21465. D["\1"]=" \3"/p
  21466. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21467. d
  21468. :bsnl
  21469. s/["\\]/\\&/g
  21470. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21471. D["\1"]=" \3\\\\\\n"\\/p
  21472. t cont
  21473. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21474. t cont
  21475. d
  21476. :cont
  21477. n
  21478. s/.\{148\}/&'"$ac_delim"'/g
  21479. t clear
  21480. :clear
  21481. s/\\$//
  21482. t bsnlc
  21483. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21484. d
  21485. :bsnlc
  21486. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21487. b cont
  21488. ' <confdefs.h | sed '
  21489. s/'"$ac_delim"'/"\\\
  21490. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  21491. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21492. for (key in D) D_is_set[key] = 1
  21493. FS = ""
  21494. }
  21495. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21496. line = \$ 0
  21497. split(line, arg, " ")
  21498. if (arg[1] == "#") {
  21499. defundef = arg[2]
  21500. mac1 = arg[3]
  21501. } else {
  21502. defundef = substr(arg[1], 2)
  21503. mac1 = arg[2]
  21504. }
  21505. split(mac1, mac2, "(") #)
  21506. macro = mac2[1]
  21507. prefix = substr(line, 1, index(line, defundef) - 1)
  21508. if (D_is_set[macro]) {
  21509. # Preserve the white space surrounding the "#".
  21510. print prefix "define", macro P[macro] D[macro]
  21511. next
  21512. } else {
  21513. # Replace #undef with comments. This is necessary, for example,
  21514. # in the case of _POSIX_SOURCE, which is predefined and required
  21515. # on some systems where configure will not decide to define it.
  21516. if (defundef == "undef") {
  21517. print "/*", prefix defundef, macro, "*/"
  21518. next
  21519. }
  21520. }
  21521. }
  21522. { print }
  21523. _ACAWK
  21524. _ACEOF
  21525. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21526. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  21527. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  21528. { (exit 1); exit 1; }; }
  21529. fi # test -n "$CONFIG_HEADERS"
  21530. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21531. shift
  21532. for ac_tag
  21533. do
  21534. case $ac_tag in
  21535. :[FHLC]) ac_mode=$ac_tag; continue;;
  21536. esac
  21537. case $ac_mode$ac_tag in
  21538. :[FHL]*:*);;
  21539. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  21540. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  21541. { (exit 1); exit 1; }; };;
  21542. :[FH]-) ac_tag=-:-;;
  21543. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21544. esac
  21545. ac_save_IFS=$IFS
  21546. IFS=:
  21547. set x $ac_tag
  21548. IFS=$ac_save_IFS
  21549. shift
  21550. ac_file=$1
  21551. shift
  21552. case $ac_mode in
  21553. :L) ac_source=$1;;
  21554. :[FH])
  21555. ac_file_inputs=
  21556. for ac_f
  21557. do
  21558. case $ac_f in
  21559. -) ac_f="$tmp/stdin";;
  21560. *) # Look for the file first in the build tree, then in the source tree
  21561. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21562. # because $ac_f cannot contain `:'.
  21563. test -f "$ac_f" ||
  21564. case $ac_f in
  21565. [\\/$]*) false;;
  21566. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21567. esac ||
  21568. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  21569. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  21570. { (exit 1); exit 1; }; };;
  21571. esac
  21572. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21573. ac_file_inputs="$ac_file_inputs '$ac_f'"
  21574. done
  21575. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21576. # use $as_me), people would be surprised to read:
  21577. # /* config.h. Generated by config.status. */
  21578. configure_input='Generated from '`
  21579. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21580. `' by configure.'
  21581. if test x"$ac_file" != x-; then
  21582. configure_input="$ac_file. $configure_input"
  21583. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  21584. $as_echo "$as_me: creating $ac_file" >&6;}
  21585. fi
  21586. # Neutralize special characters interpreted by sed in replacement strings.
  21587. case $configure_input in #(
  21588. *\&* | *\|* | *\\* )
  21589. ac_sed_conf_input=`$as_echo "$configure_input" |
  21590. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21591. *) ac_sed_conf_input=$configure_input;;
  21592. esac
  21593. case $ac_tag in
  21594. *:-:* | *:-) cat >"$tmp/stdin" \
  21595. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  21596. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  21597. { (exit 1); exit 1; }; } ;;
  21598. esac
  21599. ;;
  21600. esac
  21601. ac_dir=`$as_dirname -- "$ac_file" ||
  21602. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21603. X"$ac_file" : 'X\(//\)[^/]' \| \
  21604. X"$ac_file" : 'X\(//\)$' \| \
  21605. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21606. $as_echo X"$ac_file" |
  21607. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21608. s//\1/
  21609. q
  21610. }
  21611. /^X\(\/\/\)[^/].*/{
  21612. s//\1/
  21613. q
  21614. }
  21615. /^X\(\/\/\)$/{
  21616. s//\1/
  21617. q
  21618. }
  21619. /^X\(\/\).*/{
  21620. s//\1/
  21621. q
  21622. }
  21623. s/.*/./; q'`
  21624. { as_dir="$ac_dir"
  21625. case $as_dir in #(
  21626. -*) as_dir=./$as_dir;;
  21627. esac
  21628. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  21629. as_dirs=
  21630. while :; do
  21631. case $as_dir in #(
  21632. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21633. *) as_qdir=$as_dir;;
  21634. esac
  21635. as_dirs="'$as_qdir' $as_dirs"
  21636. as_dir=`$as_dirname -- "$as_dir" ||
  21637. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21638. X"$as_dir" : 'X\(//\)[^/]' \| \
  21639. X"$as_dir" : 'X\(//\)$' \| \
  21640. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21641. $as_echo X"$as_dir" |
  21642. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21643. s//\1/
  21644. q
  21645. }
  21646. /^X\(\/\/\)[^/].*/{
  21647. s//\1/
  21648. q
  21649. }
  21650. /^X\(\/\/\)$/{
  21651. s//\1/
  21652. q
  21653. }
  21654. /^X\(\/\).*/{
  21655. s//\1/
  21656. q
  21657. }
  21658. s/.*/./; q'`
  21659. test -d "$as_dir" && break
  21660. done
  21661. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21662. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  21663. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  21664. { (exit 1); exit 1; }; }; }
  21665. ac_builddir=.
  21666. case "$ac_dir" in
  21667. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21668. *)
  21669. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  21670. # A ".." for each directory in $ac_dir_suffix.
  21671. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  21672. case $ac_top_builddir_sub in
  21673. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21674. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21675. esac ;;
  21676. esac
  21677. ac_abs_top_builddir=$ac_pwd
  21678. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21679. # for backward compatibility:
  21680. ac_top_builddir=$ac_top_build_prefix
  21681. case $srcdir in
  21682. .) # We are building in place.
  21683. ac_srcdir=.
  21684. ac_top_srcdir=$ac_top_builddir_sub
  21685. ac_abs_top_srcdir=$ac_pwd ;;
  21686. [\\/]* | ?:[\\/]* ) # Absolute name.
  21687. ac_srcdir=$srcdir$ac_dir_suffix;
  21688. ac_top_srcdir=$srcdir
  21689. ac_abs_top_srcdir=$srcdir ;;
  21690. *) # Relative name.
  21691. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21692. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21693. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21694. esac
  21695. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21696. case $ac_mode in
  21697. :F)
  21698. #
  21699. # CONFIG_FILE
  21700. #
  21701. case $INSTALL in
  21702. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21703. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21704. esac
  21705. ac_MKDIR_P=$MKDIR_P
  21706. case $MKDIR_P in
  21707. [\\/$]* | ?:[\\/]* ) ;;
  21708. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  21709. esac
  21710. _ACEOF
  21711. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21712. # If the template does not know about datarootdir, expand it.
  21713. # FIXME: This hack should be removed a few years after 2.60.
  21714. ac_datarootdir_hack=; ac_datarootdir_seen=
  21715. ac_sed_dataroot='
  21716. /datarootdir/ {
  21717. p
  21718. q
  21719. }
  21720. /@datadir@/p
  21721. /@docdir@/p
  21722. /@infodir@/p
  21723. /@localedir@/p
  21724. /@mandir@/p
  21725. '
  21726. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  21727. *datarootdir*) ac_datarootdir_seen=yes;;
  21728. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21729. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21730. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21731. _ACEOF
  21732. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21733. ac_datarootdir_hack='
  21734. s&@datadir@&$datadir&g
  21735. s&@docdir@&$docdir&g
  21736. s&@infodir@&$infodir&g
  21737. s&@localedir@&$localedir&g
  21738. s&@mandir@&$mandir&g
  21739. s&\\\${datarootdir}&$datarootdir&g' ;;
  21740. esac
  21741. _ACEOF
  21742. # Neutralize VPATH when `$srcdir' = `.'.
  21743. # Shell code in configure.ac might set extrasub.
  21744. # FIXME: do we really want to maintain this feature?
  21745. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21746. ac_sed_extra="$ac_vpsub
  21747. $extrasub
  21748. _ACEOF
  21749. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21750. :t
  21751. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21752. s|@configure_input@|$ac_sed_conf_input|;t t
  21753. s&@top_builddir@&$ac_top_builddir_sub&;t t
  21754. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  21755. s&@srcdir@&$ac_srcdir&;t t
  21756. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21757. s&@top_srcdir@&$ac_top_srcdir&;t t
  21758. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21759. s&@builddir@&$ac_builddir&;t t
  21760. s&@abs_builddir@&$ac_abs_builddir&;t t
  21761. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21762. s&@INSTALL@&$ac_INSTALL&;t t
  21763. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  21764. $ac_datarootdir_hack
  21765. "
  21766. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  21767. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  21768. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  21769. { (exit 1); exit 1; }; }
  21770. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21771. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  21772. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  21773. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21774. which seems to be undefined. Please make sure it is defined." >&5
  21775. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21776. which seems to be undefined. Please make sure it is defined." >&2;}
  21777. rm -f "$tmp/stdin"
  21778. case $ac_file in
  21779. -) cat "$tmp/out" && rm -f "$tmp/out";;
  21780. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  21781. esac \
  21782. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  21783. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  21784. { (exit 1); exit 1; }; }
  21785. ;;
  21786. :H)
  21787. #
  21788. # CONFIG_HEADER
  21789. #
  21790. if test x"$ac_file" != x-; then
  21791. {
  21792. $as_echo "/* $configure_input */" \
  21793. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  21794. } >"$tmp/config.h" \
  21795. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  21796. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  21797. { (exit 1); exit 1; }; }
  21798. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  21799. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  21800. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  21801. else
  21802. rm -f "$ac_file"
  21803. mv "$tmp/config.h" "$ac_file" \
  21804. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  21805. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  21806. { (exit 1); exit 1; }; }
  21807. fi
  21808. else
  21809. $as_echo "/* $configure_input */" \
  21810. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  21811. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  21812. $as_echo "$as_me: error: could not create -" >&2;}
  21813. { (exit 1); exit 1; }; }
  21814. fi
  21815. # Compute "$ac_file"'s index in $config_headers.
  21816. _am_arg="$ac_file"
  21817. _am_stamp_count=1
  21818. for _am_header in $config_headers :; do
  21819. case $_am_header in
  21820. $_am_arg | $_am_arg:* )
  21821. break ;;
  21822. * )
  21823. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  21824. esac
  21825. done
  21826. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  21827. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21828. X"$_am_arg" : 'X\(//\)[^/]' \| \
  21829. X"$_am_arg" : 'X\(//\)$' \| \
  21830. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  21831. $as_echo X"$_am_arg" |
  21832. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21833. s//\1/
  21834. q
  21835. }
  21836. /^X\(\/\/\)[^/].*/{
  21837. s//\1/
  21838. q
  21839. }
  21840. /^X\(\/\/\)$/{
  21841. s//\1/
  21842. q
  21843. }
  21844. /^X\(\/\).*/{
  21845. s//\1/
  21846. q
  21847. }
  21848. s/.*/./; q'`/stamp-h$_am_stamp_count
  21849. ;;
  21850. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  21851. $as_echo "$as_me: executing $ac_file commands" >&6;}
  21852. ;;
  21853. esac
  21854. case $ac_file$ac_mode in
  21855. "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
  21856. # are listed without --file. Let's play safe and only enable the eval
  21857. # if we detect the quoting.
  21858. case $CONFIG_FILES in
  21859. *\'*) eval set x "$CONFIG_FILES" ;;
  21860. *) set x $CONFIG_FILES ;;
  21861. esac
  21862. shift
  21863. for mf
  21864. do
  21865. # Strip MF so we end up with the name of the file.
  21866. mf=`echo "$mf" | sed -e 's/:.*$//'`
  21867. # Check whether this is an Automake generated Makefile or not.
  21868. # We used to match only the files named `Makefile.in', but
  21869. # some people rename them; so instead we look at the file content.
  21870. # Grep'ing the first line is not enough: some people post-process
  21871. # each Makefile.in and add a new line on top of each file to say so.
  21872. # Grep'ing the whole file is not good either: AIX grep has a line
  21873. # limit of 2048, but all sed's we know have understand at least 4000.
  21874. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  21875. dirpart=`$as_dirname -- "$mf" ||
  21876. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21877. X"$mf" : 'X\(//\)[^/]' \| \
  21878. X"$mf" : 'X\(//\)$' \| \
  21879. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  21880. $as_echo X"$mf" |
  21881. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21882. s//\1/
  21883. q
  21884. }
  21885. /^X\(\/\/\)[^/].*/{
  21886. s//\1/
  21887. q
  21888. }
  21889. /^X\(\/\/\)$/{
  21890. s//\1/
  21891. q
  21892. }
  21893. /^X\(\/\).*/{
  21894. s//\1/
  21895. q
  21896. }
  21897. s/.*/./; q'`
  21898. else
  21899. continue
  21900. fi
  21901. # Extract the definition of DEPDIR, am__include, and am__quote
  21902. # from the Makefile without running `make'.
  21903. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  21904. test -z "$DEPDIR" && continue
  21905. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  21906. test -z "am__include" && continue
  21907. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  21908. # When using ansi2knr, U may be empty or an underscore; expand it
  21909. U=`sed -n 's/^U = //p' < "$mf"`
  21910. # Find all dependency output files, they are included files with
  21911. # $(DEPDIR) in their names. We invoke sed twice because it is the
  21912. # simplest approach to changing $(DEPDIR) to its actual value in the
  21913. # expansion.
  21914. for file in `sed -n "
  21915. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  21916. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  21917. # Make sure the directory exists.
  21918. test -f "$dirpart/$file" && continue
  21919. fdir=`$as_dirname -- "$file" ||
  21920. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21921. X"$file" : 'X\(//\)[^/]' \| \
  21922. X"$file" : 'X\(//\)$' \| \
  21923. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  21924. $as_echo X"$file" |
  21925. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21926. s//\1/
  21927. q
  21928. }
  21929. /^X\(\/\/\)[^/].*/{
  21930. s//\1/
  21931. q
  21932. }
  21933. /^X\(\/\/\)$/{
  21934. s//\1/
  21935. q
  21936. }
  21937. /^X\(\/\).*/{
  21938. s//\1/
  21939. q
  21940. }
  21941. s/.*/./; q'`
  21942. { as_dir=$dirpart/$fdir
  21943. case $as_dir in #(
  21944. -*) as_dir=./$as_dir;;
  21945. esac
  21946. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  21947. as_dirs=
  21948. while :; do
  21949. case $as_dir in #(
  21950. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21951. *) as_qdir=$as_dir;;
  21952. esac
  21953. as_dirs="'$as_qdir' $as_dirs"
  21954. as_dir=`$as_dirname -- "$as_dir" ||
  21955. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21956. X"$as_dir" : 'X\(//\)[^/]' \| \
  21957. X"$as_dir" : 'X\(//\)$' \| \
  21958. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21959. $as_echo X"$as_dir" |
  21960. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21961. s//\1/
  21962. q
  21963. }
  21964. /^X\(\/\/\)[^/].*/{
  21965. s//\1/
  21966. q
  21967. }
  21968. /^X\(\/\/\)$/{
  21969. s//\1/
  21970. q
  21971. }
  21972. /^X\(\/\).*/{
  21973. s//\1/
  21974. q
  21975. }
  21976. s/.*/./; q'`
  21977. test -d "$as_dir" && break
  21978. done
  21979. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21980. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  21981. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  21982. { (exit 1); exit 1; }; }; }
  21983. # echo "creating $dirpart/$file"
  21984. echo '# dummy' > "$dirpart/$file"
  21985. done
  21986. done
  21987. ;;
  21988. "po-directories":C)
  21989. for ac_file in $CONFIG_FILES; do
  21990. # Support "outfile[:infile[:infile...]]"
  21991. case "$ac_file" in
  21992. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  21993. esac
  21994. # PO directories have a Makefile.in generated from Makefile.in.in.
  21995. case "$ac_file" in */Makefile.in)
  21996. # Adjust a relative srcdir.
  21997. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  21998. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  21999. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  22000. # In autoconf-2.13 it is called $ac_given_srcdir.
  22001. # In autoconf-2.50 it is called $srcdir.
  22002. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  22003. case "$ac_given_srcdir" in
  22004. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  22005. /*) top_srcdir="$ac_given_srcdir" ;;
  22006. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  22007. esac
  22008. # Treat a directory as a PO directory if and only if it has a
  22009. # POTFILES.in file. This allows packages to have multiple PO
  22010. # directories under different names or in different locations.
  22011. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  22012. rm -f "$ac_dir/POTFILES"
  22013. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  22014. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  22015. POMAKEFILEDEPS="POTFILES.in"
  22016. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  22017. # on $ac_dir but don't depend on user-specified configuration
  22018. # parameters.
  22019. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  22020. # The LINGUAS file contains the set of available languages.
  22021. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  22022. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  22023. fi
  22024. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  22025. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  22026. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  22027. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  22028. else
  22029. # The set of available languages was given in configure.in.
  22030. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  22031. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  22032. fi
  22033. # Compute POFILES
  22034. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  22035. # Compute UPDATEPOFILES
  22036. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  22037. # Compute DUMMYPOFILES
  22038. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  22039. # Compute GMOFILES
  22040. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  22041. case "$ac_given_srcdir" in
  22042. .) srcdirpre= ;;
  22043. *) srcdirpre='$(srcdir)/' ;;
  22044. esac
  22045. POFILES=
  22046. UPDATEPOFILES=
  22047. DUMMYPOFILES=
  22048. GMOFILES=
  22049. for lang in $ALL_LINGUAS; do
  22050. POFILES="$POFILES $srcdirpre$lang.po"
  22051. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  22052. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  22053. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  22054. done
  22055. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  22056. # environment variable.
  22057. INST_LINGUAS=
  22058. if test -n "$ALL_LINGUAS"; then
  22059. for presentlang in $ALL_LINGUAS; do
  22060. useit=no
  22061. if test "%UNSET%" != "$LINGUAS"; then
  22062. desiredlanguages="$LINGUAS"
  22063. else
  22064. desiredlanguages="$ALL_LINGUAS"
  22065. fi
  22066. for desiredlang in $desiredlanguages; do
  22067. # Use the presentlang catalog if desiredlang is
  22068. # a. equal to presentlang, or
  22069. # b. a variant of presentlang (because in this case,
  22070. # presentlang can be used as a fallback for messages
  22071. # which are not translated in the desiredlang catalog).
  22072. case "$desiredlang" in
  22073. "$presentlang"*) useit=yes;;
  22074. esac
  22075. done
  22076. if test $useit = yes; then
  22077. INST_LINGUAS="$INST_LINGUAS $presentlang"
  22078. fi
  22079. done
  22080. fi
  22081. CATALOGS=
  22082. if test -n "$INST_LINGUAS"; then
  22083. for lang in $INST_LINGUAS; do
  22084. CATALOGS="$CATALOGS $lang.gmo"
  22085. done
  22086. fi
  22087. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  22088. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  22089. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  22090. if test -f "$f"; then
  22091. case "$f" in
  22092. *.orig | *.bak | *~) ;;
  22093. *) cat "$f" >> "$ac_dir/Makefile" ;;
  22094. esac
  22095. fi
  22096. done
  22097. fi
  22098. ;;
  22099. esac
  22100. done ;;
  22101. esac
  22102. done # for ac_tag
  22103. { (exit 0); exit 0; }
  22104. _ACEOF
  22105. chmod +x $CONFIG_STATUS
  22106. ac_clean_files=$ac_clean_files_save
  22107. test $ac_write_fail = 0 ||
  22108. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  22109. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  22110. { (exit 1); exit 1; }; }
  22111. # configure is writing to config.log, and then calls config.status.
  22112. # config.status does its own redirection, appending to config.log.
  22113. # Unfortunately, on DOS this fails, as config.log is still kept open
  22114. # by configure, so config.status won't be able to write to it; its
  22115. # output is simply discarded. So we exec the FD to /dev/null,
  22116. # effectively closing config.log, so it can be properly (re)opened and
  22117. # appended to by config.status. When coming back to configure, we
  22118. # need to make the FD available again.
  22119. if test "$no_create" != yes; then
  22120. ac_cs_success=:
  22121. ac_config_status_args=
  22122. test "$silent" = yes &&
  22123. ac_config_status_args="$ac_config_status_args --quiet"
  22124. exec 5>/dev/null
  22125. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22126. exec 5>>config.log
  22127. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22128. # would make configure fail if this is the last instruction.
  22129. $ac_cs_success || { (exit 1); exit 1; }
  22130. fi
  22131. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  22132. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  22133. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  22134. fi
  22135. echo " "
  22136. echo "Build: $build"
  22137. echo "Target: $target"
  22138. echo "Install prefix: $prefix"
  22139. echo "CFLAGS: $CFLAGS"
  22140. echo "CPPFLAGS: $CPPFLAGS"
  22141. echo "LDFLAGS: $LDFLAGS"
  22142. echo "LIBS: $LIBS"
  22143. echo "SQLite3: $have_sqlite3"
  22144. echo "GnuTLS: $have_libgnutls"
  22145. echo "OpenSSL: $have_openssl"
  22146. echo "CA Bundle: $ca_bundle"
  22147. echo "LibXML2: $have_libxml2"
  22148. echo "LibExpat: $have_libexpat"
  22149. echo "LibCares: $have_libcares"
  22150. echo "Libz: $have_libz"
  22151. echo "Epoll: $have_epoll"
  22152. echo "Bittorrent: $enable_bittorrent"
  22153. echo "Metalink: $enable_metalink"
  22154. echo "XML-RPC: $enable_xml_rpc"