configure 690 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773
  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. cat >>confdefs.h <<\_ACEOF
  6822. #define ENABLE_XML_RPC 1
  6823. _ACEOF
  6824. fi
  6825. if test "x$enable_xml_rpc" = "xyes"; then
  6826. ENABLE_XML_RPC_TRUE=
  6827. ENABLE_XML_RPC_FALSE='#'
  6828. else
  6829. ENABLE_XML_RPC_TRUE='#'
  6830. ENABLE_XML_RPC_FALSE=
  6831. fi
  6832. if test "x$have_libxml2" = "xyes"; then
  6833. HAVE_LIBXML2_TRUE=
  6834. HAVE_LIBXML2_FALSE='#'
  6835. else
  6836. HAVE_LIBXML2_TRUE='#'
  6837. HAVE_LIBXML2_FALSE=
  6838. fi
  6839. if test "x$have_libexpat" = "xyes"; then
  6840. HAVE_LIBEXPAT_TRUE=
  6841. HAVE_LIBEXPAT_FALSE='#'
  6842. else
  6843. HAVE_LIBEXPAT_TRUE='#'
  6844. HAVE_LIBEXPAT_FALSE=
  6845. fi
  6846. if test "x$have_libcares" = "xyes"; then
  6847. cat >>confdefs.h <<\_ACEOF
  6848. #define ENABLE_ASYNC_DNS 1
  6849. _ACEOF
  6850. if true; then
  6851. ENABLE_ASYNC_DNS_TRUE=
  6852. ENABLE_ASYNC_DNS_FALSE='#'
  6853. else
  6854. ENABLE_ASYNC_DNS_TRUE='#'
  6855. ENABLE_ASYNC_DNS_FALSE=
  6856. fi
  6857. else
  6858. if false; then
  6859. ENABLE_ASYNC_DNS_TRUE=
  6860. ENABLE_ASYNC_DNS_FALSE='#'
  6861. else
  6862. ENABLE_ASYNC_DNS_TRUE='#'
  6863. ENABLE_ASYNC_DNS_FALSE=
  6864. fi
  6865. fi
  6866. # Set conditional for libz
  6867. if test "x$have_libz" = "xyes"; then
  6868. HAVE_LIBZ_TRUE=
  6869. HAVE_LIBZ_FALSE='#'
  6870. else
  6871. HAVE_LIBZ_TRUE='#'
  6872. HAVE_LIBZ_FALSE=
  6873. fi
  6874. # Set conditional for sqlite3
  6875. if test "x$have_sqlite3" = "xyes"; then
  6876. HAVE_SQLITE3_TRUE=
  6877. HAVE_SQLITE3_FALSE='#'
  6878. else
  6879. HAVE_SQLITE3_TRUE='#'
  6880. HAVE_SQLITE3_FALSE=
  6881. fi
  6882. # Checks for header files.
  6883. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6884. # for constant arguments. Useless!
  6885. { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
  6886. $as_echo_n "checking for working alloca.h... " >&6; }
  6887. if test "${ac_cv_working_alloca_h+set}" = set; then
  6888. $as_echo_n "(cached) " >&6
  6889. else
  6890. cat >conftest.$ac_ext <<_ACEOF
  6891. /* confdefs.h. */
  6892. _ACEOF
  6893. cat confdefs.h >>conftest.$ac_ext
  6894. cat >>conftest.$ac_ext <<_ACEOF
  6895. /* end confdefs.h. */
  6896. #include <alloca.h>
  6897. int
  6898. main ()
  6899. {
  6900. char *p = (char *) alloca (2 * sizeof (int));
  6901. if (p) return 0;
  6902. ;
  6903. return 0;
  6904. }
  6905. _ACEOF
  6906. rm -f conftest.$ac_objext conftest$ac_exeext
  6907. if { (ac_try="$ac_link"
  6908. case "(($ac_try" in
  6909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6910. *) ac_try_echo=$ac_try;;
  6911. esac
  6912. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6913. $as_echo "$ac_try_echo") >&5
  6914. (eval "$ac_link") 2>conftest.er1
  6915. ac_status=$?
  6916. grep -v '^ *+' conftest.er1 >conftest.err
  6917. rm -f conftest.er1
  6918. cat conftest.err >&5
  6919. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6920. (exit $ac_status); } && {
  6921. test -z "$ac_cxx_werror_flag" ||
  6922. test ! -s conftest.err
  6923. } && test -s conftest$ac_exeext && {
  6924. test "$cross_compiling" = yes ||
  6925. $as_test_x conftest$ac_exeext
  6926. }; then
  6927. ac_cv_working_alloca_h=yes
  6928. else
  6929. $as_echo "$as_me: failed program was:" >&5
  6930. sed 's/^/| /' conftest.$ac_ext >&5
  6931. ac_cv_working_alloca_h=no
  6932. fi
  6933. rm -rf conftest.dSYM
  6934. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6935. conftest$ac_exeext conftest.$ac_ext
  6936. fi
  6937. { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6938. $as_echo "$ac_cv_working_alloca_h" >&6; }
  6939. if test $ac_cv_working_alloca_h = yes; then
  6940. cat >>confdefs.h <<\_ACEOF
  6941. #define HAVE_ALLOCA_H 1
  6942. _ACEOF
  6943. fi
  6944. { $as_echo "$as_me:$LINENO: checking for alloca" >&5
  6945. $as_echo_n "checking for alloca... " >&6; }
  6946. if test "${ac_cv_func_alloca_works+set}" = set; then
  6947. $as_echo_n "(cached) " >&6
  6948. else
  6949. cat >conftest.$ac_ext <<_ACEOF
  6950. /* confdefs.h. */
  6951. _ACEOF
  6952. cat confdefs.h >>conftest.$ac_ext
  6953. cat >>conftest.$ac_ext <<_ACEOF
  6954. /* end confdefs.h. */
  6955. #ifdef __GNUC__
  6956. # define alloca __builtin_alloca
  6957. #else
  6958. # ifdef _MSC_VER
  6959. # include <malloc.h>
  6960. # define alloca _alloca
  6961. # else
  6962. # ifdef HAVE_ALLOCA_H
  6963. # include <alloca.h>
  6964. # else
  6965. # ifdef _AIX
  6966. #pragma alloca
  6967. # else
  6968. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6969. char *alloca ();
  6970. # endif
  6971. # endif
  6972. # endif
  6973. # endif
  6974. #endif
  6975. int
  6976. main ()
  6977. {
  6978. char *p = (char *) alloca (1);
  6979. if (p) return 0;
  6980. ;
  6981. return 0;
  6982. }
  6983. _ACEOF
  6984. rm -f conftest.$ac_objext conftest$ac_exeext
  6985. if { (ac_try="$ac_link"
  6986. case "(($ac_try" in
  6987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6988. *) ac_try_echo=$ac_try;;
  6989. esac
  6990. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6991. $as_echo "$ac_try_echo") >&5
  6992. (eval "$ac_link") 2>conftest.er1
  6993. ac_status=$?
  6994. grep -v '^ *+' conftest.er1 >conftest.err
  6995. rm -f conftest.er1
  6996. cat conftest.err >&5
  6997. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6998. (exit $ac_status); } && {
  6999. test -z "$ac_cxx_werror_flag" ||
  7000. test ! -s conftest.err
  7001. } && test -s conftest$ac_exeext && {
  7002. test "$cross_compiling" = yes ||
  7003. $as_test_x conftest$ac_exeext
  7004. }; then
  7005. ac_cv_func_alloca_works=yes
  7006. else
  7007. $as_echo "$as_me: failed program was:" >&5
  7008. sed 's/^/| /' conftest.$ac_ext >&5
  7009. ac_cv_func_alloca_works=no
  7010. fi
  7011. rm -rf conftest.dSYM
  7012. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7013. conftest$ac_exeext conftest.$ac_ext
  7014. fi
  7015. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  7016. $as_echo "$ac_cv_func_alloca_works" >&6; }
  7017. if test $ac_cv_func_alloca_works = yes; then
  7018. cat >>confdefs.h <<\_ACEOF
  7019. #define HAVE_ALLOCA 1
  7020. _ACEOF
  7021. else
  7022. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  7023. # that cause trouble. Some versions do not even contain alloca or
  7024. # contain a buggy version. If you still want to use their alloca,
  7025. # use ar to extract alloca.o from them instead of compiling alloca.c.
  7026. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  7027. cat >>confdefs.h <<\_ACEOF
  7028. #define C_ALLOCA 1
  7029. _ACEOF
  7030. { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  7031. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  7032. if test "${ac_cv_os_cray+set}" = set; then
  7033. $as_echo_n "(cached) " >&6
  7034. else
  7035. cat >conftest.$ac_ext <<_ACEOF
  7036. /* confdefs.h. */
  7037. _ACEOF
  7038. cat confdefs.h >>conftest.$ac_ext
  7039. cat >>conftest.$ac_ext <<_ACEOF
  7040. /* end confdefs.h. */
  7041. #if defined CRAY && ! defined CRAY2
  7042. webecray
  7043. #else
  7044. wenotbecray
  7045. #endif
  7046. _ACEOF
  7047. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7048. $EGREP "webecray" >/dev/null 2>&1; then
  7049. ac_cv_os_cray=yes
  7050. else
  7051. ac_cv_os_cray=no
  7052. fi
  7053. rm -f conftest*
  7054. fi
  7055. { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  7056. $as_echo "$ac_cv_os_cray" >&6; }
  7057. if test $ac_cv_os_cray = yes; then
  7058. for ac_func in _getb67 GETB67 getb67; do
  7059. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7060. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  7061. $as_echo_n "checking for $ac_func... " >&6; }
  7062. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7063. $as_echo_n "(cached) " >&6
  7064. else
  7065. cat >conftest.$ac_ext <<_ACEOF
  7066. /* confdefs.h. */
  7067. _ACEOF
  7068. cat confdefs.h >>conftest.$ac_ext
  7069. cat >>conftest.$ac_ext <<_ACEOF
  7070. /* end confdefs.h. */
  7071. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7072. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7073. #define $ac_func innocuous_$ac_func
  7074. /* System header to define __stub macros and hopefully few prototypes,
  7075. which can conflict with char $ac_func (); below.
  7076. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7077. <limits.h> exists even on freestanding compilers. */
  7078. #ifdef __STDC__
  7079. # include <limits.h>
  7080. #else
  7081. # include <assert.h>
  7082. #endif
  7083. #undef $ac_func
  7084. /* Override any GCC internal prototype to avoid an error.
  7085. Use char because int might match the return type of a GCC
  7086. builtin and then its argument prototype would still apply. */
  7087. #ifdef __cplusplus
  7088. extern "C"
  7089. #endif
  7090. char $ac_func ();
  7091. /* The GNU C library defines this for functions which it implements
  7092. to always fail with ENOSYS. Some functions are actually named
  7093. something starting with __ and the normal name is an alias. */
  7094. #if defined __stub_$ac_func || defined __stub___$ac_func
  7095. choke me
  7096. #endif
  7097. int
  7098. main ()
  7099. {
  7100. return $ac_func ();
  7101. ;
  7102. return 0;
  7103. }
  7104. _ACEOF
  7105. rm -f conftest.$ac_objext conftest$ac_exeext
  7106. if { (ac_try="$ac_link"
  7107. case "(($ac_try" in
  7108. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7109. *) ac_try_echo=$ac_try;;
  7110. esac
  7111. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7112. $as_echo "$ac_try_echo") >&5
  7113. (eval "$ac_link") 2>conftest.er1
  7114. ac_status=$?
  7115. grep -v '^ *+' conftest.er1 >conftest.err
  7116. rm -f conftest.er1
  7117. cat conftest.err >&5
  7118. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7119. (exit $ac_status); } && {
  7120. test -z "$ac_cxx_werror_flag" ||
  7121. test ! -s conftest.err
  7122. } && test -s conftest$ac_exeext && {
  7123. test "$cross_compiling" = yes ||
  7124. $as_test_x conftest$ac_exeext
  7125. }; then
  7126. eval "$as_ac_var=yes"
  7127. else
  7128. $as_echo "$as_me: failed program was:" >&5
  7129. sed 's/^/| /' conftest.$ac_ext >&5
  7130. eval "$as_ac_var=no"
  7131. fi
  7132. rm -rf conftest.dSYM
  7133. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7134. conftest$ac_exeext conftest.$ac_ext
  7135. fi
  7136. ac_res=`eval 'as_val=${'$as_ac_var'}
  7137. $as_echo "$as_val"'`
  7138. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7139. $as_echo "$ac_res" >&6; }
  7140. as_val=`eval 'as_val=${'$as_ac_var'}
  7141. $as_echo "$as_val"'`
  7142. if test "x$as_val" = x""yes; then
  7143. cat >>confdefs.h <<_ACEOF
  7144. #define CRAY_STACKSEG_END $ac_func
  7145. _ACEOF
  7146. break
  7147. fi
  7148. done
  7149. fi
  7150. { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  7151. $as_echo_n "checking stack direction for C alloca... " >&6; }
  7152. if test "${ac_cv_c_stack_direction+set}" = set; then
  7153. $as_echo_n "(cached) " >&6
  7154. else
  7155. if test "$cross_compiling" = yes; then
  7156. ac_cv_c_stack_direction=0
  7157. else
  7158. cat >conftest.$ac_ext <<_ACEOF
  7159. /* confdefs.h. */
  7160. _ACEOF
  7161. cat confdefs.h >>conftest.$ac_ext
  7162. cat >>conftest.$ac_ext <<_ACEOF
  7163. /* end confdefs.h. */
  7164. $ac_includes_default
  7165. int
  7166. find_stack_direction ()
  7167. {
  7168. static char *addr = 0;
  7169. auto char dummy;
  7170. if (addr == 0)
  7171. {
  7172. addr = &dummy;
  7173. return find_stack_direction ();
  7174. }
  7175. else
  7176. return (&dummy > addr) ? 1 : -1;
  7177. }
  7178. int
  7179. main ()
  7180. {
  7181. return find_stack_direction () < 0;
  7182. }
  7183. _ACEOF
  7184. rm -f conftest$ac_exeext
  7185. if { (ac_try="$ac_link"
  7186. case "(($ac_try" in
  7187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7188. *) ac_try_echo=$ac_try;;
  7189. esac
  7190. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7191. $as_echo "$ac_try_echo") >&5
  7192. (eval "$ac_link") 2>&5
  7193. ac_status=$?
  7194. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7195. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7196. { (case "(($ac_try" in
  7197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7198. *) ac_try_echo=$ac_try;;
  7199. esac
  7200. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7201. $as_echo "$ac_try_echo") >&5
  7202. (eval "$ac_try") 2>&5
  7203. ac_status=$?
  7204. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7205. (exit $ac_status); }; }; then
  7206. ac_cv_c_stack_direction=1
  7207. else
  7208. $as_echo "$as_me: program exited with status $ac_status" >&5
  7209. $as_echo "$as_me: failed program was:" >&5
  7210. sed 's/^/| /' conftest.$ac_ext >&5
  7211. ( exit $ac_status )
  7212. ac_cv_c_stack_direction=-1
  7213. fi
  7214. rm -rf conftest.dSYM
  7215. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7216. fi
  7217. fi
  7218. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  7219. $as_echo "$ac_cv_c_stack_direction" >&6; }
  7220. cat >>confdefs.h <<_ACEOF
  7221. #define STACK_DIRECTION $ac_cv_c_stack_direction
  7222. _ACEOF
  7223. fi
  7224. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  7225. $as_echo_n "checking for ANSI C header files... " >&6; }
  7226. if test "${ac_cv_header_stdc+set}" = set; then
  7227. $as_echo_n "(cached) " >&6
  7228. else
  7229. cat >conftest.$ac_ext <<_ACEOF
  7230. /* confdefs.h. */
  7231. _ACEOF
  7232. cat confdefs.h >>conftest.$ac_ext
  7233. cat >>conftest.$ac_ext <<_ACEOF
  7234. /* end confdefs.h. */
  7235. #include <stdlib.h>
  7236. #include <stdarg.h>
  7237. #include <string.h>
  7238. #include <float.h>
  7239. int
  7240. main ()
  7241. {
  7242. ;
  7243. return 0;
  7244. }
  7245. _ACEOF
  7246. rm -f conftest.$ac_objext
  7247. if { (ac_try="$ac_compile"
  7248. case "(($ac_try" in
  7249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7250. *) ac_try_echo=$ac_try;;
  7251. esac
  7252. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7253. $as_echo "$ac_try_echo") >&5
  7254. (eval "$ac_compile") 2>conftest.er1
  7255. ac_status=$?
  7256. grep -v '^ *+' conftest.er1 >conftest.err
  7257. rm -f conftest.er1
  7258. cat conftest.err >&5
  7259. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7260. (exit $ac_status); } && {
  7261. test -z "$ac_cxx_werror_flag" ||
  7262. test ! -s conftest.err
  7263. } && test -s conftest.$ac_objext; then
  7264. ac_cv_header_stdc=yes
  7265. else
  7266. $as_echo "$as_me: failed program was:" >&5
  7267. sed 's/^/| /' conftest.$ac_ext >&5
  7268. ac_cv_header_stdc=no
  7269. fi
  7270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7271. if test $ac_cv_header_stdc = yes; then
  7272. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7273. cat >conftest.$ac_ext <<_ACEOF
  7274. /* confdefs.h. */
  7275. _ACEOF
  7276. cat confdefs.h >>conftest.$ac_ext
  7277. cat >>conftest.$ac_ext <<_ACEOF
  7278. /* end confdefs.h. */
  7279. #include <string.h>
  7280. _ACEOF
  7281. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7282. $EGREP "memchr" >/dev/null 2>&1; then
  7283. :
  7284. else
  7285. ac_cv_header_stdc=no
  7286. fi
  7287. rm -f conftest*
  7288. fi
  7289. if test $ac_cv_header_stdc = yes; then
  7290. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7291. cat >conftest.$ac_ext <<_ACEOF
  7292. /* confdefs.h. */
  7293. _ACEOF
  7294. cat confdefs.h >>conftest.$ac_ext
  7295. cat >>conftest.$ac_ext <<_ACEOF
  7296. /* end confdefs.h. */
  7297. #include <stdlib.h>
  7298. _ACEOF
  7299. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7300. $EGREP "free" >/dev/null 2>&1; then
  7301. :
  7302. else
  7303. ac_cv_header_stdc=no
  7304. fi
  7305. rm -f conftest*
  7306. fi
  7307. if test $ac_cv_header_stdc = yes; then
  7308. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7309. if test "$cross_compiling" = yes; then
  7310. :
  7311. else
  7312. cat >conftest.$ac_ext <<_ACEOF
  7313. /* confdefs.h. */
  7314. _ACEOF
  7315. cat confdefs.h >>conftest.$ac_ext
  7316. cat >>conftest.$ac_ext <<_ACEOF
  7317. /* end confdefs.h. */
  7318. #include <ctype.h>
  7319. #include <stdlib.h>
  7320. #if ((' ' & 0x0FF) == 0x020)
  7321. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7322. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7323. #else
  7324. # define ISLOWER(c) \
  7325. (('a' <= (c) && (c) <= 'i') \
  7326. || ('j' <= (c) && (c) <= 'r') \
  7327. || ('s' <= (c) && (c) <= 'z'))
  7328. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7329. #endif
  7330. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7331. int
  7332. main ()
  7333. {
  7334. int i;
  7335. for (i = 0; i < 256; i++)
  7336. if (XOR (islower (i), ISLOWER (i))
  7337. || toupper (i) != TOUPPER (i))
  7338. return 2;
  7339. return 0;
  7340. }
  7341. _ACEOF
  7342. rm -f conftest$ac_exeext
  7343. if { (ac_try="$ac_link"
  7344. case "(($ac_try" in
  7345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7346. *) ac_try_echo=$ac_try;;
  7347. esac
  7348. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7349. $as_echo "$ac_try_echo") >&5
  7350. (eval "$ac_link") 2>&5
  7351. ac_status=$?
  7352. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7353. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7354. { (case "(($ac_try" in
  7355. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7356. *) ac_try_echo=$ac_try;;
  7357. esac
  7358. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7359. $as_echo "$ac_try_echo") >&5
  7360. (eval "$ac_try") 2>&5
  7361. ac_status=$?
  7362. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7363. (exit $ac_status); }; }; then
  7364. :
  7365. else
  7366. $as_echo "$as_me: program exited with status $ac_status" >&5
  7367. $as_echo "$as_me: failed program was:" >&5
  7368. sed 's/^/| /' conftest.$ac_ext >&5
  7369. ( exit $ac_status )
  7370. ac_cv_header_stdc=no
  7371. fi
  7372. rm -rf conftest.dSYM
  7373. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7374. fi
  7375. fi
  7376. fi
  7377. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  7378. $as_echo "$ac_cv_header_stdc" >&6; }
  7379. if test $ac_cv_header_stdc = yes; then
  7380. cat >>confdefs.h <<\_ACEOF
  7381. #define STDC_HEADERS 1
  7382. _ACEOF
  7383. fi
  7384. case "$target" in
  7385. *mingw*)
  7386. for ac_header in winsock2.h \
  7387. ws2tcpip.h
  7388. do
  7389. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7390. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7391. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7392. $as_echo_n "checking for $ac_header... " >&6; }
  7393. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7394. $as_echo_n "(cached) " >&6
  7395. fi
  7396. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7397. $as_echo "$as_val"'`
  7398. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7399. $as_echo "$ac_res" >&6; }
  7400. else
  7401. # Is the header compilable?
  7402. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7403. $as_echo_n "checking $ac_header usability... " >&6; }
  7404. cat >conftest.$ac_ext <<_ACEOF
  7405. /* confdefs.h. */
  7406. _ACEOF
  7407. cat confdefs.h >>conftest.$ac_ext
  7408. cat >>conftest.$ac_ext <<_ACEOF
  7409. /* end confdefs.h. */
  7410. $ac_includes_default
  7411. #include <$ac_header>
  7412. _ACEOF
  7413. rm -f conftest.$ac_objext
  7414. if { (ac_try="$ac_compile"
  7415. case "(($ac_try" in
  7416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7417. *) ac_try_echo=$ac_try;;
  7418. esac
  7419. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7420. $as_echo "$ac_try_echo") >&5
  7421. (eval "$ac_compile") 2>conftest.er1
  7422. ac_status=$?
  7423. grep -v '^ *+' conftest.er1 >conftest.err
  7424. rm -f conftest.er1
  7425. cat conftest.err >&5
  7426. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7427. (exit $ac_status); } && {
  7428. test -z "$ac_cxx_werror_flag" ||
  7429. test ! -s conftest.err
  7430. } && test -s conftest.$ac_objext; then
  7431. ac_header_compiler=yes
  7432. else
  7433. $as_echo "$as_me: failed program was:" >&5
  7434. sed 's/^/| /' conftest.$ac_ext >&5
  7435. ac_header_compiler=no
  7436. fi
  7437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7438. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7439. $as_echo "$ac_header_compiler" >&6; }
  7440. # Is the header present?
  7441. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7442. $as_echo_n "checking $ac_header presence... " >&6; }
  7443. cat >conftest.$ac_ext <<_ACEOF
  7444. /* confdefs.h. */
  7445. _ACEOF
  7446. cat confdefs.h >>conftest.$ac_ext
  7447. cat >>conftest.$ac_ext <<_ACEOF
  7448. /* end confdefs.h. */
  7449. #include <$ac_header>
  7450. _ACEOF
  7451. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7452. case "(($ac_try" in
  7453. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7454. *) ac_try_echo=$ac_try;;
  7455. esac
  7456. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7457. $as_echo "$ac_try_echo") >&5
  7458. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7459. ac_status=$?
  7460. grep -v '^ *+' conftest.er1 >conftest.err
  7461. rm -f conftest.er1
  7462. cat conftest.err >&5
  7463. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7464. (exit $ac_status); } >/dev/null && {
  7465. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7466. test ! -s conftest.err
  7467. }; then
  7468. ac_header_preproc=yes
  7469. else
  7470. $as_echo "$as_me: failed program was:" >&5
  7471. sed 's/^/| /' conftest.$ac_ext >&5
  7472. ac_header_preproc=no
  7473. fi
  7474. rm -f conftest.err conftest.$ac_ext
  7475. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7476. $as_echo "$ac_header_preproc" >&6; }
  7477. # So? What about this header?
  7478. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7479. yes:no: )
  7480. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7481. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7482. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7483. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7484. ac_header_preproc=yes
  7485. ;;
  7486. no:yes:* )
  7487. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7488. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7489. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7490. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7491. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7492. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7493. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7494. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7495. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7496. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7497. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7498. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7499. ( cat <<\_ASBOX
  7500. ## ----------------------------------------------- ##
  7501. ## Report this to t-tujikawa@users.sourceforge.net ##
  7502. ## ----------------------------------------------- ##
  7503. _ASBOX
  7504. ) | sed "s/^/$as_me: WARNING: /" >&2
  7505. ;;
  7506. esac
  7507. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7508. $as_echo_n "checking for $ac_header... " >&6; }
  7509. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7510. $as_echo_n "(cached) " >&6
  7511. else
  7512. eval "$as_ac_Header=\$ac_header_preproc"
  7513. fi
  7514. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7515. $as_echo "$as_val"'`
  7516. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7517. $as_echo "$ac_res" >&6; }
  7518. fi
  7519. as_val=`eval 'as_val=${'$as_ac_Header'}
  7520. $as_echo "$as_val"'`
  7521. if test "x$as_val" = x""yes; then
  7522. cat >>confdefs.h <<_ACEOF
  7523. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7524. _ACEOF
  7525. fi
  7526. done
  7527. ;;
  7528. esac
  7529. for ac_header in argz.h \
  7530. arpa/inet.h \
  7531. fcntl.h \
  7532. float.h \
  7533. inttypes.h \
  7534. io.h \
  7535. langinfo.h \
  7536. libintl.h \
  7537. limits.h \
  7538. locale.h \
  7539. malloc.h \
  7540. netdb.h \
  7541. netinet/in.h \
  7542. stddef.h \
  7543. stdint.h \
  7544. stdio_ext.h \
  7545. stdlib.h \
  7546. string.h \
  7547. strings.h \
  7548. sys/ioctl.h \
  7549. sys/param.h \
  7550. sys/socket.h \
  7551. sys/time.h \
  7552. termios.h \
  7553. unistd.h \
  7554. wchar.h
  7555. do
  7556. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7557. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7558. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7559. $as_echo_n "checking for $ac_header... " >&6; }
  7560. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7561. $as_echo_n "(cached) " >&6
  7562. fi
  7563. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7564. $as_echo "$as_val"'`
  7565. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7566. $as_echo "$ac_res" >&6; }
  7567. else
  7568. # Is the header compilable?
  7569. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7570. $as_echo_n "checking $ac_header usability... " >&6; }
  7571. cat >conftest.$ac_ext <<_ACEOF
  7572. /* confdefs.h. */
  7573. _ACEOF
  7574. cat confdefs.h >>conftest.$ac_ext
  7575. cat >>conftest.$ac_ext <<_ACEOF
  7576. /* end confdefs.h. */
  7577. $ac_includes_default
  7578. #include <$ac_header>
  7579. _ACEOF
  7580. rm -f conftest.$ac_objext
  7581. if { (ac_try="$ac_compile"
  7582. case "(($ac_try" in
  7583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7584. *) ac_try_echo=$ac_try;;
  7585. esac
  7586. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7587. $as_echo "$ac_try_echo") >&5
  7588. (eval "$ac_compile") 2>conftest.er1
  7589. ac_status=$?
  7590. grep -v '^ *+' conftest.er1 >conftest.err
  7591. rm -f conftest.er1
  7592. cat conftest.err >&5
  7593. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7594. (exit $ac_status); } && {
  7595. test -z "$ac_cxx_werror_flag" ||
  7596. test ! -s conftest.err
  7597. } && test -s conftest.$ac_objext; then
  7598. ac_header_compiler=yes
  7599. else
  7600. $as_echo "$as_me: failed program was:" >&5
  7601. sed 's/^/| /' conftest.$ac_ext >&5
  7602. ac_header_compiler=no
  7603. fi
  7604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7605. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7606. $as_echo "$ac_header_compiler" >&6; }
  7607. # Is the header present?
  7608. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7609. $as_echo_n "checking $ac_header presence... " >&6; }
  7610. cat >conftest.$ac_ext <<_ACEOF
  7611. /* confdefs.h. */
  7612. _ACEOF
  7613. cat confdefs.h >>conftest.$ac_ext
  7614. cat >>conftest.$ac_ext <<_ACEOF
  7615. /* end confdefs.h. */
  7616. #include <$ac_header>
  7617. _ACEOF
  7618. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7619. case "(($ac_try" in
  7620. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7621. *) ac_try_echo=$ac_try;;
  7622. esac
  7623. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7624. $as_echo "$ac_try_echo") >&5
  7625. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7626. ac_status=$?
  7627. grep -v '^ *+' conftest.er1 >conftest.err
  7628. rm -f conftest.er1
  7629. cat conftest.err >&5
  7630. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7631. (exit $ac_status); } >/dev/null && {
  7632. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7633. test ! -s conftest.err
  7634. }; then
  7635. ac_header_preproc=yes
  7636. else
  7637. $as_echo "$as_me: failed program was:" >&5
  7638. sed 's/^/| /' conftest.$ac_ext >&5
  7639. ac_header_preproc=no
  7640. fi
  7641. rm -f conftest.err conftest.$ac_ext
  7642. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7643. $as_echo "$ac_header_preproc" >&6; }
  7644. # So? What about this header?
  7645. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7646. yes:no: )
  7647. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7648. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7649. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7650. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7651. ac_header_preproc=yes
  7652. ;;
  7653. no:yes:* )
  7654. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7655. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7656. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7657. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7658. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7659. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7660. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7661. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7662. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7663. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7664. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7665. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7666. ( cat <<\_ASBOX
  7667. ## ----------------------------------------------- ##
  7668. ## Report this to t-tujikawa@users.sourceforge.net ##
  7669. ## ----------------------------------------------- ##
  7670. _ASBOX
  7671. ) | sed "s/^/$as_me: WARNING: /" >&2
  7672. ;;
  7673. esac
  7674. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7675. $as_echo_n "checking for $ac_header... " >&6; }
  7676. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7677. $as_echo_n "(cached) " >&6
  7678. else
  7679. eval "$as_ac_Header=\$ac_header_preproc"
  7680. fi
  7681. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7682. $as_echo "$as_val"'`
  7683. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7684. $as_echo "$ac_res" >&6; }
  7685. fi
  7686. as_val=`eval 'as_val=${'$as_ac_Header'}
  7687. $as_echo "$as_val"'`
  7688. if test "x$as_val" = x""yes; then
  7689. cat >>confdefs.h <<_ACEOF
  7690. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7691. _ACEOF
  7692. fi
  7693. done
  7694. # Checks for typedefs, structures, and compiler characteristics.
  7695. { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  7696. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  7697. if test "${ac_cv_header_stdbool_h+set}" = set; then
  7698. $as_echo_n "(cached) " >&6
  7699. else
  7700. cat >conftest.$ac_ext <<_ACEOF
  7701. /* confdefs.h. */
  7702. _ACEOF
  7703. cat confdefs.h >>conftest.$ac_ext
  7704. cat >>conftest.$ac_ext <<_ACEOF
  7705. /* end confdefs.h. */
  7706. #include <stdbool.h>
  7707. #ifndef bool
  7708. "error: bool is not defined"
  7709. #endif
  7710. #ifndef false
  7711. "error: false is not defined"
  7712. #endif
  7713. #if false
  7714. "error: false is not 0"
  7715. #endif
  7716. #ifndef true
  7717. "error: true is not defined"
  7718. #endif
  7719. #if true != 1
  7720. "error: true is not 1"
  7721. #endif
  7722. #ifndef __bool_true_false_are_defined
  7723. "error: __bool_true_false_are_defined is not defined"
  7724. #endif
  7725. struct s { _Bool s: 1; _Bool t; } s;
  7726. char a[true == 1 ? 1 : -1];
  7727. char b[false == 0 ? 1 : -1];
  7728. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7729. char d[(bool) 0.5 == true ? 1 : -1];
  7730. bool e = &s;
  7731. char f[(_Bool) 0.0 == false ? 1 : -1];
  7732. char g[true];
  7733. char h[sizeof (_Bool)];
  7734. char i[sizeof s.t];
  7735. enum { j = false, k = true, l = false * true, m = true * 256 };
  7736. /* The following fails for
  7737. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  7738. _Bool n[m];
  7739. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7740. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7741. # if defined __xlc__ || defined __GNUC__
  7742. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7743. reported by James Lemley on 2005-10-05; see
  7744. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7745. This test is not quite right, since xlc is allowed to
  7746. reject this program, as the initializer for xlcbug is
  7747. not one of the forms that C requires support for.
  7748. However, doing the test right would require a runtime
  7749. test, and that would make cross-compilation harder.
  7750. Let us hope that IBM fixes the xlc bug, and also adds
  7751. support for this kind of constant expression. In the
  7752. meantime, this test will reject xlc, which is OK, since
  7753. our stdbool.h substitute should suffice. We also test
  7754. this with GCC, where it should work, to detect more
  7755. quickly whether someone messes up the test in the
  7756. future. */
  7757. char digs[] = "0123456789";
  7758. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7759. # endif
  7760. /* Catch a bug in an HP-UX C compiler. See
  7761. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7762. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7763. */
  7764. _Bool q = true;
  7765. _Bool *pq = &q;
  7766. int
  7767. main ()
  7768. {
  7769. *pq |= q;
  7770. *pq |= ! q;
  7771. /* Refer to every declared value, to avoid compiler optimizations. */
  7772. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7773. + !m + !n + !o + !p + !q + !pq);
  7774. ;
  7775. return 0;
  7776. }
  7777. _ACEOF
  7778. rm -f conftest.$ac_objext
  7779. if { (ac_try="$ac_compile"
  7780. case "(($ac_try" in
  7781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7782. *) ac_try_echo=$ac_try;;
  7783. esac
  7784. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7785. $as_echo "$ac_try_echo") >&5
  7786. (eval "$ac_compile") 2>conftest.er1
  7787. ac_status=$?
  7788. grep -v '^ *+' conftest.er1 >conftest.err
  7789. rm -f conftest.er1
  7790. cat conftest.err >&5
  7791. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7792. (exit $ac_status); } && {
  7793. test -z "$ac_cxx_werror_flag" ||
  7794. test ! -s conftest.err
  7795. } && test -s conftest.$ac_objext; then
  7796. ac_cv_header_stdbool_h=yes
  7797. else
  7798. $as_echo "$as_me: failed program was:" >&5
  7799. sed 's/^/| /' conftest.$ac_ext >&5
  7800. ac_cv_header_stdbool_h=no
  7801. fi
  7802. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7803. fi
  7804. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  7805. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  7806. { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
  7807. $as_echo_n "checking for _Bool... " >&6; }
  7808. if test "${ac_cv_type__Bool+set}" = set; then
  7809. $as_echo_n "(cached) " >&6
  7810. else
  7811. ac_cv_type__Bool=no
  7812. cat >conftest.$ac_ext <<_ACEOF
  7813. /* confdefs.h. */
  7814. _ACEOF
  7815. cat confdefs.h >>conftest.$ac_ext
  7816. cat >>conftest.$ac_ext <<_ACEOF
  7817. /* end confdefs.h. */
  7818. $ac_includes_default
  7819. int
  7820. main ()
  7821. {
  7822. if (sizeof (_Bool))
  7823. return 0;
  7824. ;
  7825. return 0;
  7826. }
  7827. _ACEOF
  7828. rm -f conftest.$ac_objext
  7829. if { (ac_try="$ac_compile"
  7830. case "(($ac_try" in
  7831. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7832. *) ac_try_echo=$ac_try;;
  7833. esac
  7834. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7835. $as_echo "$ac_try_echo") >&5
  7836. (eval "$ac_compile") 2>conftest.er1
  7837. ac_status=$?
  7838. grep -v '^ *+' conftest.er1 >conftest.err
  7839. rm -f conftest.er1
  7840. cat conftest.err >&5
  7841. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7842. (exit $ac_status); } && {
  7843. test -z "$ac_cxx_werror_flag" ||
  7844. test ! -s conftest.err
  7845. } && test -s conftest.$ac_objext; then
  7846. cat >conftest.$ac_ext <<_ACEOF
  7847. /* confdefs.h. */
  7848. _ACEOF
  7849. cat confdefs.h >>conftest.$ac_ext
  7850. cat >>conftest.$ac_ext <<_ACEOF
  7851. /* end confdefs.h. */
  7852. $ac_includes_default
  7853. int
  7854. main ()
  7855. {
  7856. if (sizeof ((_Bool)))
  7857. return 0;
  7858. ;
  7859. return 0;
  7860. }
  7861. _ACEOF
  7862. rm -f conftest.$ac_objext
  7863. if { (ac_try="$ac_compile"
  7864. case "(($ac_try" in
  7865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7866. *) ac_try_echo=$ac_try;;
  7867. esac
  7868. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7869. $as_echo "$ac_try_echo") >&5
  7870. (eval "$ac_compile") 2>conftest.er1
  7871. ac_status=$?
  7872. grep -v '^ *+' conftest.er1 >conftest.err
  7873. rm -f conftest.er1
  7874. cat conftest.err >&5
  7875. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7876. (exit $ac_status); } && {
  7877. test -z "$ac_cxx_werror_flag" ||
  7878. test ! -s conftest.err
  7879. } && test -s conftest.$ac_objext; then
  7880. :
  7881. else
  7882. $as_echo "$as_me: failed program was:" >&5
  7883. sed 's/^/| /' conftest.$ac_ext >&5
  7884. ac_cv_type__Bool=yes
  7885. fi
  7886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7887. else
  7888. $as_echo "$as_me: failed program was:" >&5
  7889. sed 's/^/| /' conftest.$ac_ext >&5
  7890. fi
  7891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7892. fi
  7893. { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  7894. $as_echo "$ac_cv_type__Bool" >&6; }
  7895. if test "x$ac_cv_type__Bool" = x""yes; then
  7896. cat >>confdefs.h <<_ACEOF
  7897. #define HAVE__BOOL 1
  7898. _ACEOF
  7899. fi
  7900. if test $ac_cv_header_stdbool_h = yes; then
  7901. cat >>confdefs.h <<\_ACEOF
  7902. #define HAVE_STDBOOL_H 1
  7903. _ACEOF
  7904. fi
  7905. { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  7906. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  7907. if test "${ac_cv_c_const+set}" = set; then
  7908. $as_echo_n "(cached) " >&6
  7909. else
  7910. cat >conftest.$ac_ext <<_ACEOF
  7911. /* confdefs.h. */
  7912. _ACEOF
  7913. cat confdefs.h >>conftest.$ac_ext
  7914. cat >>conftest.$ac_ext <<_ACEOF
  7915. /* end confdefs.h. */
  7916. int
  7917. main ()
  7918. {
  7919. /* FIXME: Include the comments suggested by Paul. */
  7920. #ifndef __cplusplus
  7921. /* Ultrix mips cc rejects this. */
  7922. typedef int charset[2];
  7923. const charset cs;
  7924. /* SunOS 4.1.1 cc rejects this. */
  7925. char const *const *pcpcc;
  7926. char **ppc;
  7927. /* NEC SVR4.0.2 mips cc rejects this. */
  7928. struct point {int x, y;};
  7929. static struct point const zero = {0,0};
  7930. /* AIX XL C 1.02.0.0 rejects this.
  7931. It does not let you subtract one const X* pointer from another in
  7932. an arm of an if-expression whose if-part is not a constant
  7933. expression */
  7934. const char *g = "string";
  7935. pcpcc = &g + (g ? g-g : 0);
  7936. /* HPUX 7.0 cc rejects these. */
  7937. ++pcpcc;
  7938. ppc = (char**) pcpcc;
  7939. pcpcc = (char const *const *) ppc;
  7940. { /* SCO 3.2v4 cc rejects this. */
  7941. char *t;
  7942. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7943. *t++ = 0;
  7944. if (s) return 0;
  7945. }
  7946. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7947. int x[] = {25, 17};
  7948. const int *foo = &x[0];
  7949. ++foo;
  7950. }
  7951. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7952. typedef const int *iptr;
  7953. iptr p = 0;
  7954. ++p;
  7955. }
  7956. { /* AIX XL C 1.02.0.0 rejects this saying
  7957. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7958. struct s { int j; const int *ap[3]; };
  7959. struct s *b; b->j = 5;
  7960. }
  7961. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7962. const int foo = 10;
  7963. if (!foo) return 0;
  7964. }
  7965. return !cs[0] && !zero.x;
  7966. #endif
  7967. ;
  7968. return 0;
  7969. }
  7970. _ACEOF
  7971. rm -f conftest.$ac_objext
  7972. if { (ac_try="$ac_compile"
  7973. case "(($ac_try" in
  7974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7975. *) ac_try_echo=$ac_try;;
  7976. esac
  7977. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7978. $as_echo "$ac_try_echo") >&5
  7979. (eval "$ac_compile") 2>conftest.er1
  7980. ac_status=$?
  7981. grep -v '^ *+' conftest.er1 >conftest.err
  7982. rm -f conftest.er1
  7983. cat conftest.err >&5
  7984. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7985. (exit $ac_status); } && {
  7986. test -z "$ac_cxx_werror_flag" ||
  7987. test ! -s conftest.err
  7988. } && test -s conftest.$ac_objext; then
  7989. ac_cv_c_const=yes
  7990. else
  7991. $as_echo "$as_me: failed program was:" >&5
  7992. sed 's/^/| /' conftest.$ac_ext >&5
  7993. ac_cv_c_const=no
  7994. fi
  7995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7996. fi
  7997. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  7998. $as_echo "$ac_cv_c_const" >&6; }
  7999. if test $ac_cv_c_const = no; then
  8000. cat >>confdefs.h <<\_ACEOF
  8001. #define const /**/
  8002. _ACEOF
  8003. fi
  8004. { $as_echo "$as_me:$LINENO: checking for inline" >&5
  8005. $as_echo_n "checking for inline... " >&6; }
  8006. if test "${ac_cv_c_inline+set}" = set; then
  8007. $as_echo_n "(cached) " >&6
  8008. else
  8009. ac_cv_c_inline=no
  8010. for ac_kw in inline __inline__ __inline; do
  8011. cat >conftest.$ac_ext <<_ACEOF
  8012. /* confdefs.h. */
  8013. _ACEOF
  8014. cat confdefs.h >>conftest.$ac_ext
  8015. cat >>conftest.$ac_ext <<_ACEOF
  8016. /* end confdefs.h. */
  8017. #ifndef __cplusplus
  8018. typedef int foo_t;
  8019. static $ac_kw foo_t static_foo () {return 0; }
  8020. $ac_kw foo_t foo () {return 0; }
  8021. #endif
  8022. _ACEOF
  8023. rm -f conftest.$ac_objext
  8024. if { (ac_try="$ac_compile"
  8025. case "(($ac_try" in
  8026. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8027. *) ac_try_echo=$ac_try;;
  8028. esac
  8029. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8030. $as_echo "$ac_try_echo") >&5
  8031. (eval "$ac_compile") 2>conftest.er1
  8032. ac_status=$?
  8033. grep -v '^ *+' conftest.er1 >conftest.err
  8034. rm -f conftest.er1
  8035. cat conftest.err >&5
  8036. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8037. (exit $ac_status); } && {
  8038. test -z "$ac_cxx_werror_flag" ||
  8039. test ! -s conftest.err
  8040. } && test -s conftest.$ac_objext; then
  8041. ac_cv_c_inline=$ac_kw
  8042. else
  8043. $as_echo "$as_me: failed program was:" >&5
  8044. sed 's/^/| /' conftest.$ac_ext >&5
  8045. fi
  8046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8047. test "$ac_cv_c_inline" != no && break
  8048. done
  8049. fi
  8050. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  8051. $as_echo "$ac_cv_c_inline" >&6; }
  8052. case $ac_cv_c_inline in
  8053. inline | yes) ;;
  8054. *)
  8055. case $ac_cv_c_inline in
  8056. no) ac_val=;;
  8057. *) ac_val=$ac_cv_c_inline;;
  8058. esac
  8059. cat >>confdefs.h <<_ACEOF
  8060. #ifndef __cplusplus
  8061. #define inline $ac_val
  8062. #endif
  8063. _ACEOF
  8064. ;;
  8065. esac
  8066. { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
  8067. $as_echo_n "checking for int16_t... " >&6; }
  8068. if test "${ac_cv_c_int16_t+set}" = set; then
  8069. $as_echo_n "(cached) " >&6
  8070. else
  8071. ac_cv_c_int16_t=no
  8072. for ac_type in 'int16_t' 'int' 'long int' \
  8073. 'long long int' 'short int' 'signed char'; do
  8074. cat >conftest.$ac_ext <<_ACEOF
  8075. /* confdefs.h. */
  8076. _ACEOF
  8077. cat confdefs.h >>conftest.$ac_ext
  8078. cat >>conftest.$ac_ext <<_ACEOF
  8079. /* end confdefs.h. */
  8080. $ac_includes_default
  8081. int
  8082. main ()
  8083. {
  8084. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  8085. test_array [0] = 0
  8086. ;
  8087. return 0;
  8088. }
  8089. _ACEOF
  8090. rm -f conftest.$ac_objext
  8091. if { (ac_try="$ac_compile"
  8092. case "(($ac_try" in
  8093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8094. *) ac_try_echo=$ac_try;;
  8095. esac
  8096. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8097. $as_echo "$ac_try_echo") >&5
  8098. (eval "$ac_compile") 2>conftest.er1
  8099. ac_status=$?
  8100. grep -v '^ *+' conftest.er1 >conftest.err
  8101. rm -f conftest.er1
  8102. cat conftest.err >&5
  8103. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8104. (exit $ac_status); } && {
  8105. test -z "$ac_cxx_werror_flag" ||
  8106. test ! -s conftest.err
  8107. } && test -s conftest.$ac_objext; then
  8108. cat >conftest.$ac_ext <<_ACEOF
  8109. /* confdefs.h. */
  8110. _ACEOF
  8111. cat confdefs.h >>conftest.$ac_ext
  8112. cat >>conftest.$ac_ext <<_ACEOF
  8113. /* end confdefs.h. */
  8114. $ac_includes_default
  8115. int
  8116. main ()
  8117. {
  8118. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  8119. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  8120. test_array [0] = 0
  8121. ;
  8122. return 0;
  8123. }
  8124. _ACEOF
  8125. rm -f conftest.$ac_objext
  8126. if { (ac_try="$ac_compile"
  8127. case "(($ac_try" in
  8128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8129. *) ac_try_echo=$ac_try;;
  8130. esac
  8131. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8132. $as_echo "$ac_try_echo") >&5
  8133. (eval "$ac_compile") 2>conftest.er1
  8134. ac_status=$?
  8135. grep -v '^ *+' conftest.er1 >conftest.err
  8136. rm -f conftest.er1
  8137. cat conftest.err >&5
  8138. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8139. (exit $ac_status); } && {
  8140. test -z "$ac_cxx_werror_flag" ||
  8141. test ! -s conftest.err
  8142. } && test -s conftest.$ac_objext; then
  8143. :
  8144. else
  8145. $as_echo "$as_me: failed program was:" >&5
  8146. sed 's/^/| /' conftest.$ac_ext >&5
  8147. case $ac_type in
  8148. int16_t) ac_cv_c_int16_t=yes ;;
  8149. *) ac_cv_c_int16_t=$ac_type ;;
  8150. esac
  8151. fi
  8152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8153. else
  8154. $as_echo "$as_me: failed program was:" >&5
  8155. sed 's/^/| /' conftest.$ac_ext >&5
  8156. fi
  8157. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8158. test "$ac_cv_c_int16_t" != no && break
  8159. done
  8160. fi
  8161. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  8162. $as_echo "$ac_cv_c_int16_t" >&6; }
  8163. case $ac_cv_c_int16_t in #(
  8164. no|yes) ;; #(
  8165. *)
  8166. cat >>confdefs.h <<_ACEOF
  8167. #define int16_t $ac_cv_c_int16_t
  8168. _ACEOF
  8169. ;;
  8170. esac
  8171. { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
  8172. $as_echo_n "checking for int32_t... " >&6; }
  8173. if test "${ac_cv_c_int32_t+set}" = set; then
  8174. $as_echo_n "(cached) " >&6
  8175. else
  8176. ac_cv_c_int32_t=no
  8177. for ac_type in 'int32_t' 'int' 'long int' \
  8178. 'long long int' 'short int' 'signed char'; do
  8179. cat >conftest.$ac_ext <<_ACEOF
  8180. /* confdefs.h. */
  8181. _ACEOF
  8182. cat confdefs.h >>conftest.$ac_ext
  8183. cat >>conftest.$ac_ext <<_ACEOF
  8184. /* end confdefs.h. */
  8185. $ac_includes_default
  8186. int
  8187. main ()
  8188. {
  8189. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  8190. test_array [0] = 0
  8191. ;
  8192. return 0;
  8193. }
  8194. _ACEOF
  8195. rm -f conftest.$ac_objext
  8196. if { (ac_try="$ac_compile"
  8197. case "(($ac_try" in
  8198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8199. *) ac_try_echo=$ac_try;;
  8200. esac
  8201. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8202. $as_echo "$ac_try_echo") >&5
  8203. (eval "$ac_compile") 2>conftest.er1
  8204. ac_status=$?
  8205. grep -v '^ *+' conftest.er1 >conftest.err
  8206. rm -f conftest.er1
  8207. cat conftest.err >&5
  8208. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8209. (exit $ac_status); } && {
  8210. test -z "$ac_cxx_werror_flag" ||
  8211. test ! -s conftest.err
  8212. } && test -s conftest.$ac_objext; then
  8213. cat >conftest.$ac_ext <<_ACEOF
  8214. /* confdefs.h. */
  8215. _ACEOF
  8216. cat confdefs.h >>conftest.$ac_ext
  8217. cat >>conftest.$ac_ext <<_ACEOF
  8218. /* end confdefs.h. */
  8219. $ac_includes_default
  8220. int
  8221. main ()
  8222. {
  8223. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  8224. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  8225. test_array [0] = 0
  8226. ;
  8227. return 0;
  8228. }
  8229. _ACEOF
  8230. rm -f conftest.$ac_objext
  8231. if { (ac_try="$ac_compile"
  8232. case "(($ac_try" in
  8233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8234. *) ac_try_echo=$ac_try;;
  8235. esac
  8236. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8237. $as_echo "$ac_try_echo") >&5
  8238. (eval "$ac_compile") 2>conftest.er1
  8239. ac_status=$?
  8240. grep -v '^ *+' conftest.er1 >conftest.err
  8241. rm -f conftest.er1
  8242. cat conftest.err >&5
  8243. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8244. (exit $ac_status); } && {
  8245. test -z "$ac_cxx_werror_flag" ||
  8246. test ! -s conftest.err
  8247. } && test -s conftest.$ac_objext; then
  8248. :
  8249. else
  8250. $as_echo "$as_me: failed program was:" >&5
  8251. sed 's/^/| /' conftest.$ac_ext >&5
  8252. case $ac_type in
  8253. int32_t) ac_cv_c_int32_t=yes ;;
  8254. *) ac_cv_c_int32_t=$ac_type ;;
  8255. esac
  8256. fi
  8257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8258. else
  8259. $as_echo "$as_me: failed program was:" >&5
  8260. sed 's/^/| /' conftest.$ac_ext >&5
  8261. fi
  8262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8263. test "$ac_cv_c_int32_t" != no && break
  8264. done
  8265. fi
  8266. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  8267. $as_echo "$ac_cv_c_int32_t" >&6; }
  8268. case $ac_cv_c_int32_t in #(
  8269. no|yes) ;; #(
  8270. *)
  8271. cat >>confdefs.h <<_ACEOF
  8272. #define int32_t $ac_cv_c_int32_t
  8273. _ACEOF
  8274. ;;
  8275. esac
  8276. { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
  8277. $as_echo_n "checking for int64_t... " >&6; }
  8278. if test "${ac_cv_c_int64_t+set}" = set; then
  8279. $as_echo_n "(cached) " >&6
  8280. else
  8281. ac_cv_c_int64_t=no
  8282. for ac_type in 'int64_t' 'int' 'long int' \
  8283. 'long long int' 'short int' 'signed char'; do
  8284. cat >conftest.$ac_ext <<_ACEOF
  8285. /* confdefs.h. */
  8286. _ACEOF
  8287. cat confdefs.h >>conftest.$ac_ext
  8288. cat >>conftest.$ac_ext <<_ACEOF
  8289. /* end confdefs.h. */
  8290. $ac_includes_default
  8291. int
  8292. main ()
  8293. {
  8294. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  8295. test_array [0] = 0
  8296. ;
  8297. return 0;
  8298. }
  8299. _ACEOF
  8300. rm -f conftest.$ac_objext
  8301. if { (ac_try="$ac_compile"
  8302. case "(($ac_try" in
  8303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8304. *) ac_try_echo=$ac_try;;
  8305. esac
  8306. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8307. $as_echo "$ac_try_echo") >&5
  8308. (eval "$ac_compile") 2>conftest.er1
  8309. ac_status=$?
  8310. grep -v '^ *+' conftest.er1 >conftest.err
  8311. rm -f conftest.er1
  8312. cat conftest.err >&5
  8313. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8314. (exit $ac_status); } && {
  8315. test -z "$ac_cxx_werror_flag" ||
  8316. test ! -s conftest.err
  8317. } && test -s conftest.$ac_objext; then
  8318. cat >conftest.$ac_ext <<_ACEOF
  8319. /* confdefs.h. */
  8320. _ACEOF
  8321. cat confdefs.h >>conftest.$ac_ext
  8322. cat >>conftest.$ac_ext <<_ACEOF
  8323. /* end confdefs.h. */
  8324. $ac_includes_default
  8325. int
  8326. main ()
  8327. {
  8328. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  8329. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  8330. test_array [0] = 0
  8331. ;
  8332. return 0;
  8333. }
  8334. _ACEOF
  8335. rm -f conftest.$ac_objext
  8336. if { (ac_try="$ac_compile"
  8337. case "(($ac_try" in
  8338. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8339. *) ac_try_echo=$ac_try;;
  8340. esac
  8341. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8342. $as_echo "$ac_try_echo") >&5
  8343. (eval "$ac_compile") 2>conftest.er1
  8344. ac_status=$?
  8345. grep -v '^ *+' conftest.er1 >conftest.err
  8346. rm -f conftest.er1
  8347. cat conftest.err >&5
  8348. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8349. (exit $ac_status); } && {
  8350. test -z "$ac_cxx_werror_flag" ||
  8351. test ! -s conftest.err
  8352. } && test -s conftest.$ac_objext; then
  8353. :
  8354. else
  8355. $as_echo "$as_me: failed program was:" >&5
  8356. sed 's/^/| /' conftest.$ac_ext >&5
  8357. case $ac_type in
  8358. int64_t) ac_cv_c_int64_t=yes ;;
  8359. *) ac_cv_c_int64_t=$ac_type ;;
  8360. esac
  8361. fi
  8362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8363. else
  8364. $as_echo "$as_me: failed program was:" >&5
  8365. sed 's/^/| /' conftest.$ac_ext >&5
  8366. fi
  8367. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8368. test "$ac_cv_c_int64_t" != no && break
  8369. done
  8370. fi
  8371. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  8372. $as_echo "$ac_cv_c_int64_t" >&6; }
  8373. case $ac_cv_c_int64_t in #(
  8374. no|yes) ;; #(
  8375. *)
  8376. cat >>confdefs.h <<_ACEOF
  8377. #define int64_t $ac_cv_c_int64_t
  8378. _ACEOF
  8379. ;;
  8380. esac
  8381. { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
  8382. $as_echo_n "checking for int8_t... " >&6; }
  8383. if test "${ac_cv_c_int8_t+set}" = set; then
  8384. $as_echo_n "(cached) " >&6
  8385. else
  8386. ac_cv_c_int8_t=no
  8387. for ac_type in 'int8_t' 'int' 'long int' \
  8388. 'long long int' 'short int' 'signed char'; do
  8389. cat >conftest.$ac_ext <<_ACEOF
  8390. /* confdefs.h. */
  8391. _ACEOF
  8392. cat confdefs.h >>conftest.$ac_ext
  8393. cat >>conftest.$ac_ext <<_ACEOF
  8394. /* end confdefs.h. */
  8395. $ac_includes_default
  8396. int
  8397. main ()
  8398. {
  8399. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  8400. test_array [0] = 0
  8401. ;
  8402. return 0;
  8403. }
  8404. _ACEOF
  8405. rm -f conftest.$ac_objext
  8406. if { (ac_try="$ac_compile"
  8407. case "(($ac_try" in
  8408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8409. *) ac_try_echo=$ac_try;;
  8410. esac
  8411. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8412. $as_echo "$ac_try_echo") >&5
  8413. (eval "$ac_compile") 2>conftest.er1
  8414. ac_status=$?
  8415. grep -v '^ *+' conftest.er1 >conftest.err
  8416. rm -f conftest.er1
  8417. cat conftest.err >&5
  8418. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8419. (exit $ac_status); } && {
  8420. test -z "$ac_cxx_werror_flag" ||
  8421. test ! -s conftest.err
  8422. } && test -s conftest.$ac_objext; then
  8423. cat >conftest.$ac_ext <<_ACEOF
  8424. /* confdefs.h. */
  8425. _ACEOF
  8426. cat confdefs.h >>conftest.$ac_ext
  8427. cat >>conftest.$ac_ext <<_ACEOF
  8428. /* end confdefs.h. */
  8429. $ac_includes_default
  8430. int
  8431. main ()
  8432. {
  8433. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  8434. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  8435. test_array [0] = 0
  8436. ;
  8437. return 0;
  8438. }
  8439. _ACEOF
  8440. rm -f conftest.$ac_objext
  8441. if { (ac_try="$ac_compile"
  8442. case "(($ac_try" in
  8443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8444. *) ac_try_echo=$ac_try;;
  8445. esac
  8446. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8447. $as_echo "$ac_try_echo") >&5
  8448. (eval "$ac_compile") 2>conftest.er1
  8449. ac_status=$?
  8450. grep -v '^ *+' conftest.er1 >conftest.err
  8451. rm -f conftest.er1
  8452. cat conftest.err >&5
  8453. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8454. (exit $ac_status); } && {
  8455. test -z "$ac_cxx_werror_flag" ||
  8456. test ! -s conftest.err
  8457. } && test -s conftest.$ac_objext; then
  8458. :
  8459. else
  8460. $as_echo "$as_me: failed program was:" >&5
  8461. sed 's/^/| /' conftest.$ac_ext >&5
  8462. case $ac_type in
  8463. int8_t) ac_cv_c_int8_t=yes ;;
  8464. *) ac_cv_c_int8_t=$ac_type ;;
  8465. esac
  8466. fi
  8467. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8468. else
  8469. $as_echo "$as_me: failed program was:" >&5
  8470. sed 's/^/| /' conftest.$ac_ext >&5
  8471. fi
  8472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8473. test "$ac_cv_c_int8_t" != no && break
  8474. done
  8475. fi
  8476. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  8477. $as_echo "$ac_cv_c_int8_t" >&6; }
  8478. case $ac_cv_c_int8_t in #(
  8479. no|yes) ;; #(
  8480. *)
  8481. cat >>confdefs.h <<_ACEOF
  8482. #define int8_t $ac_cv_c_int8_t
  8483. _ACEOF
  8484. ;;
  8485. esac
  8486. { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
  8487. $as_echo_n "checking for mode_t... " >&6; }
  8488. if test "${ac_cv_type_mode_t+set}" = set; then
  8489. $as_echo_n "(cached) " >&6
  8490. else
  8491. ac_cv_type_mode_t=no
  8492. cat >conftest.$ac_ext <<_ACEOF
  8493. /* confdefs.h. */
  8494. _ACEOF
  8495. cat confdefs.h >>conftest.$ac_ext
  8496. cat >>conftest.$ac_ext <<_ACEOF
  8497. /* end confdefs.h. */
  8498. $ac_includes_default
  8499. int
  8500. main ()
  8501. {
  8502. if (sizeof (mode_t))
  8503. return 0;
  8504. ;
  8505. return 0;
  8506. }
  8507. _ACEOF
  8508. rm -f conftest.$ac_objext
  8509. if { (ac_try="$ac_compile"
  8510. case "(($ac_try" in
  8511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8512. *) ac_try_echo=$ac_try;;
  8513. esac
  8514. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8515. $as_echo "$ac_try_echo") >&5
  8516. (eval "$ac_compile") 2>conftest.er1
  8517. ac_status=$?
  8518. grep -v '^ *+' conftest.er1 >conftest.err
  8519. rm -f conftest.er1
  8520. cat conftest.err >&5
  8521. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8522. (exit $ac_status); } && {
  8523. test -z "$ac_cxx_werror_flag" ||
  8524. test ! -s conftest.err
  8525. } && test -s conftest.$ac_objext; then
  8526. cat >conftest.$ac_ext <<_ACEOF
  8527. /* confdefs.h. */
  8528. _ACEOF
  8529. cat confdefs.h >>conftest.$ac_ext
  8530. cat >>conftest.$ac_ext <<_ACEOF
  8531. /* end confdefs.h. */
  8532. $ac_includes_default
  8533. int
  8534. main ()
  8535. {
  8536. if (sizeof ((mode_t)))
  8537. return 0;
  8538. ;
  8539. return 0;
  8540. }
  8541. _ACEOF
  8542. rm -f conftest.$ac_objext
  8543. if { (ac_try="$ac_compile"
  8544. case "(($ac_try" in
  8545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8546. *) ac_try_echo=$ac_try;;
  8547. esac
  8548. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8549. $as_echo "$ac_try_echo") >&5
  8550. (eval "$ac_compile") 2>conftest.er1
  8551. ac_status=$?
  8552. grep -v '^ *+' conftest.er1 >conftest.err
  8553. rm -f conftest.er1
  8554. cat conftest.err >&5
  8555. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8556. (exit $ac_status); } && {
  8557. test -z "$ac_cxx_werror_flag" ||
  8558. test ! -s conftest.err
  8559. } && test -s conftest.$ac_objext; then
  8560. :
  8561. else
  8562. $as_echo "$as_me: failed program was:" >&5
  8563. sed 's/^/| /' conftest.$ac_ext >&5
  8564. ac_cv_type_mode_t=yes
  8565. fi
  8566. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8567. else
  8568. $as_echo "$as_me: failed program was:" >&5
  8569. sed 's/^/| /' conftest.$ac_ext >&5
  8570. fi
  8571. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8572. fi
  8573. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  8574. $as_echo "$ac_cv_type_mode_t" >&6; }
  8575. if test "x$ac_cv_type_mode_t" = x""yes; then
  8576. :
  8577. else
  8578. cat >>confdefs.h <<_ACEOF
  8579. #define mode_t int
  8580. _ACEOF
  8581. fi
  8582. { $as_echo "$as_me:$LINENO: checking for off_t" >&5
  8583. $as_echo_n "checking for off_t... " >&6; }
  8584. if test "${ac_cv_type_off_t+set}" = set; then
  8585. $as_echo_n "(cached) " >&6
  8586. else
  8587. ac_cv_type_off_t=no
  8588. cat >conftest.$ac_ext <<_ACEOF
  8589. /* confdefs.h. */
  8590. _ACEOF
  8591. cat confdefs.h >>conftest.$ac_ext
  8592. cat >>conftest.$ac_ext <<_ACEOF
  8593. /* end confdefs.h. */
  8594. $ac_includes_default
  8595. int
  8596. main ()
  8597. {
  8598. if (sizeof (off_t))
  8599. return 0;
  8600. ;
  8601. return 0;
  8602. }
  8603. _ACEOF
  8604. rm -f conftest.$ac_objext
  8605. if { (ac_try="$ac_compile"
  8606. case "(($ac_try" in
  8607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8608. *) ac_try_echo=$ac_try;;
  8609. esac
  8610. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8611. $as_echo "$ac_try_echo") >&5
  8612. (eval "$ac_compile") 2>conftest.er1
  8613. ac_status=$?
  8614. grep -v '^ *+' conftest.er1 >conftest.err
  8615. rm -f conftest.er1
  8616. cat conftest.err >&5
  8617. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8618. (exit $ac_status); } && {
  8619. test -z "$ac_cxx_werror_flag" ||
  8620. test ! -s conftest.err
  8621. } && test -s conftest.$ac_objext; then
  8622. cat >conftest.$ac_ext <<_ACEOF
  8623. /* confdefs.h. */
  8624. _ACEOF
  8625. cat confdefs.h >>conftest.$ac_ext
  8626. cat >>conftest.$ac_ext <<_ACEOF
  8627. /* end confdefs.h. */
  8628. $ac_includes_default
  8629. int
  8630. main ()
  8631. {
  8632. if (sizeof ((off_t)))
  8633. return 0;
  8634. ;
  8635. return 0;
  8636. }
  8637. _ACEOF
  8638. rm -f conftest.$ac_objext
  8639. if { (ac_try="$ac_compile"
  8640. case "(($ac_try" in
  8641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8642. *) ac_try_echo=$ac_try;;
  8643. esac
  8644. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8645. $as_echo "$ac_try_echo") >&5
  8646. (eval "$ac_compile") 2>conftest.er1
  8647. ac_status=$?
  8648. grep -v '^ *+' conftest.er1 >conftest.err
  8649. rm -f conftest.er1
  8650. cat conftest.err >&5
  8651. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8652. (exit $ac_status); } && {
  8653. test -z "$ac_cxx_werror_flag" ||
  8654. test ! -s conftest.err
  8655. } && test -s conftest.$ac_objext; then
  8656. :
  8657. else
  8658. $as_echo "$as_me: failed program was:" >&5
  8659. sed 's/^/| /' conftest.$ac_ext >&5
  8660. ac_cv_type_off_t=yes
  8661. fi
  8662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8663. else
  8664. $as_echo "$as_me: failed program was:" >&5
  8665. sed 's/^/| /' conftest.$ac_ext >&5
  8666. fi
  8667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8668. fi
  8669. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  8670. $as_echo "$ac_cv_type_off_t" >&6; }
  8671. if test "x$ac_cv_type_off_t" = x""yes; then
  8672. :
  8673. else
  8674. cat >>confdefs.h <<_ACEOF
  8675. #define off_t long int
  8676. _ACEOF
  8677. fi
  8678. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  8679. $as_echo_n "checking for size_t... " >&6; }
  8680. if test "${ac_cv_type_size_t+set}" = set; then
  8681. $as_echo_n "(cached) " >&6
  8682. else
  8683. ac_cv_type_size_t=no
  8684. cat >conftest.$ac_ext <<_ACEOF
  8685. /* confdefs.h. */
  8686. _ACEOF
  8687. cat confdefs.h >>conftest.$ac_ext
  8688. cat >>conftest.$ac_ext <<_ACEOF
  8689. /* end confdefs.h. */
  8690. $ac_includes_default
  8691. int
  8692. main ()
  8693. {
  8694. if (sizeof (size_t))
  8695. return 0;
  8696. ;
  8697. return 0;
  8698. }
  8699. _ACEOF
  8700. rm -f conftest.$ac_objext
  8701. if { (ac_try="$ac_compile"
  8702. case "(($ac_try" in
  8703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8704. *) ac_try_echo=$ac_try;;
  8705. esac
  8706. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8707. $as_echo "$ac_try_echo") >&5
  8708. (eval "$ac_compile") 2>conftest.er1
  8709. ac_status=$?
  8710. grep -v '^ *+' conftest.er1 >conftest.err
  8711. rm -f conftest.er1
  8712. cat conftest.err >&5
  8713. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8714. (exit $ac_status); } && {
  8715. test -z "$ac_cxx_werror_flag" ||
  8716. test ! -s conftest.err
  8717. } && test -s conftest.$ac_objext; then
  8718. cat >conftest.$ac_ext <<_ACEOF
  8719. /* confdefs.h. */
  8720. _ACEOF
  8721. cat confdefs.h >>conftest.$ac_ext
  8722. cat >>conftest.$ac_ext <<_ACEOF
  8723. /* end confdefs.h. */
  8724. $ac_includes_default
  8725. int
  8726. main ()
  8727. {
  8728. if (sizeof ((size_t)))
  8729. return 0;
  8730. ;
  8731. return 0;
  8732. }
  8733. _ACEOF
  8734. rm -f conftest.$ac_objext
  8735. if { (ac_try="$ac_compile"
  8736. case "(($ac_try" in
  8737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8738. *) ac_try_echo=$ac_try;;
  8739. esac
  8740. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8741. $as_echo "$ac_try_echo") >&5
  8742. (eval "$ac_compile") 2>conftest.er1
  8743. ac_status=$?
  8744. grep -v '^ *+' conftest.er1 >conftest.err
  8745. rm -f conftest.er1
  8746. cat conftest.err >&5
  8747. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8748. (exit $ac_status); } && {
  8749. test -z "$ac_cxx_werror_flag" ||
  8750. test ! -s conftest.err
  8751. } && test -s conftest.$ac_objext; then
  8752. :
  8753. else
  8754. $as_echo "$as_me: failed program was:" >&5
  8755. sed 's/^/| /' conftest.$ac_ext >&5
  8756. ac_cv_type_size_t=yes
  8757. fi
  8758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8759. else
  8760. $as_echo "$as_me: failed program was:" >&5
  8761. sed 's/^/| /' conftest.$ac_ext >&5
  8762. fi
  8763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8764. fi
  8765. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  8766. $as_echo "$ac_cv_type_size_t" >&6; }
  8767. if test "x$ac_cv_type_size_t" = x""yes; then
  8768. :
  8769. else
  8770. cat >>confdefs.h <<_ACEOF
  8771. #define size_t unsigned int
  8772. _ACEOF
  8773. fi
  8774. { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
  8775. $as_echo_n "checking for ssize_t... " >&6; }
  8776. if test "${ac_cv_type_ssize_t+set}" = set; then
  8777. $as_echo_n "(cached) " >&6
  8778. else
  8779. ac_cv_type_ssize_t=no
  8780. cat >conftest.$ac_ext <<_ACEOF
  8781. /* confdefs.h. */
  8782. _ACEOF
  8783. cat confdefs.h >>conftest.$ac_ext
  8784. cat >>conftest.$ac_ext <<_ACEOF
  8785. /* end confdefs.h. */
  8786. $ac_includes_default
  8787. int
  8788. main ()
  8789. {
  8790. if (sizeof (ssize_t))
  8791. return 0;
  8792. ;
  8793. return 0;
  8794. }
  8795. _ACEOF
  8796. rm -f conftest.$ac_objext
  8797. if { (ac_try="$ac_compile"
  8798. case "(($ac_try" in
  8799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8800. *) ac_try_echo=$ac_try;;
  8801. esac
  8802. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8803. $as_echo "$ac_try_echo") >&5
  8804. (eval "$ac_compile") 2>conftest.er1
  8805. ac_status=$?
  8806. grep -v '^ *+' conftest.er1 >conftest.err
  8807. rm -f conftest.er1
  8808. cat conftest.err >&5
  8809. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8810. (exit $ac_status); } && {
  8811. test -z "$ac_cxx_werror_flag" ||
  8812. test ! -s conftest.err
  8813. } && test -s conftest.$ac_objext; then
  8814. cat >conftest.$ac_ext <<_ACEOF
  8815. /* confdefs.h. */
  8816. _ACEOF
  8817. cat confdefs.h >>conftest.$ac_ext
  8818. cat >>conftest.$ac_ext <<_ACEOF
  8819. /* end confdefs.h. */
  8820. $ac_includes_default
  8821. int
  8822. main ()
  8823. {
  8824. if (sizeof ((ssize_t)))
  8825. return 0;
  8826. ;
  8827. return 0;
  8828. }
  8829. _ACEOF
  8830. rm -f conftest.$ac_objext
  8831. if { (ac_try="$ac_compile"
  8832. case "(($ac_try" in
  8833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8834. *) ac_try_echo=$ac_try;;
  8835. esac
  8836. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8837. $as_echo "$ac_try_echo") >&5
  8838. (eval "$ac_compile") 2>conftest.er1
  8839. ac_status=$?
  8840. grep -v '^ *+' conftest.er1 >conftest.err
  8841. rm -f conftest.er1
  8842. cat conftest.err >&5
  8843. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8844. (exit $ac_status); } && {
  8845. test -z "$ac_cxx_werror_flag" ||
  8846. test ! -s conftest.err
  8847. } && test -s conftest.$ac_objext; then
  8848. :
  8849. else
  8850. $as_echo "$as_me: failed program was:" >&5
  8851. sed 's/^/| /' conftest.$ac_ext >&5
  8852. ac_cv_type_ssize_t=yes
  8853. fi
  8854. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8855. else
  8856. $as_echo "$as_me: failed program was:" >&5
  8857. sed 's/^/| /' conftest.$ac_ext >&5
  8858. fi
  8859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8860. fi
  8861. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  8862. $as_echo "$ac_cv_type_ssize_t" >&6; }
  8863. if test "x$ac_cv_type_ssize_t" = x""yes; then
  8864. :
  8865. else
  8866. cat >>confdefs.h <<_ACEOF
  8867. #define ssize_t int
  8868. _ACEOF
  8869. fi
  8870. { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  8871. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  8872. if test "${ac_cv_header_time+set}" = set; then
  8873. $as_echo_n "(cached) " >&6
  8874. else
  8875. cat >conftest.$ac_ext <<_ACEOF
  8876. /* confdefs.h. */
  8877. _ACEOF
  8878. cat confdefs.h >>conftest.$ac_ext
  8879. cat >>conftest.$ac_ext <<_ACEOF
  8880. /* end confdefs.h. */
  8881. #include <sys/types.h>
  8882. #include <sys/time.h>
  8883. #include <time.h>
  8884. int
  8885. main ()
  8886. {
  8887. if ((struct tm *) 0)
  8888. return 0;
  8889. ;
  8890. return 0;
  8891. }
  8892. _ACEOF
  8893. rm -f conftest.$ac_objext
  8894. if { (ac_try="$ac_compile"
  8895. case "(($ac_try" in
  8896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8897. *) ac_try_echo=$ac_try;;
  8898. esac
  8899. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8900. $as_echo "$ac_try_echo") >&5
  8901. (eval "$ac_compile") 2>conftest.er1
  8902. ac_status=$?
  8903. grep -v '^ *+' conftest.er1 >conftest.err
  8904. rm -f conftest.er1
  8905. cat conftest.err >&5
  8906. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8907. (exit $ac_status); } && {
  8908. test -z "$ac_cxx_werror_flag" ||
  8909. test ! -s conftest.err
  8910. } && test -s conftest.$ac_objext; then
  8911. ac_cv_header_time=yes
  8912. else
  8913. $as_echo "$as_me: failed program was:" >&5
  8914. sed 's/^/| /' conftest.$ac_ext >&5
  8915. ac_cv_header_time=no
  8916. fi
  8917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8918. fi
  8919. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  8920. $as_echo "$ac_cv_header_time" >&6; }
  8921. if test $ac_cv_header_time = yes; then
  8922. cat >>confdefs.h <<\_ACEOF
  8923. #define TIME_WITH_SYS_TIME 1
  8924. _ACEOF
  8925. fi
  8926. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8927. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  8928. if test "${ac_cv_struct_tm+set}" = set; then
  8929. $as_echo_n "(cached) " >&6
  8930. else
  8931. cat >conftest.$ac_ext <<_ACEOF
  8932. /* confdefs.h. */
  8933. _ACEOF
  8934. cat confdefs.h >>conftest.$ac_ext
  8935. cat >>conftest.$ac_ext <<_ACEOF
  8936. /* end confdefs.h. */
  8937. #include <sys/types.h>
  8938. #include <time.h>
  8939. int
  8940. main ()
  8941. {
  8942. struct tm tm;
  8943. int *p = &tm.tm_sec;
  8944. return !p;
  8945. ;
  8946. return 0;
  8947. }
  8948. _ACEOF
  8949. rm -f conftest.$ac_objext
  8950. if { (ac_try="$ac_compile"
  8951. case "(($ac_try" in
  8952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8953. *) ac_try_echo=$ac_try;;
  8954. esac
  8955. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8956. $as_echo "$ac_try_echo") >&5
  8957. (eval "$ac_compile") 2>conftest.er1
  8958. ac_status=$?
  8959. grep -v '^ *+' conftest.er1 >conftest.err
  8960. rm -f conftest.er1
  8961. cat conftest.err >&5
  8962. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8963. (exit $ac_status); } && {
  8964. test -z "$ac_cxx_werror_flag" ||
  8965. test ! -s conftest.err
  8966. } && test -s conftest.$ac_objext; then
  8967. ac_cv_struct_tm=time.h
  8968. else
  8969. $as_echo "$as_me: failed program was:" >&5
  8970. sed 's/^/| /' conftest.$ac_ext >&5
  8971. ac_cv_struct_tm=sys/time.h
  8972. fi
  8973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8974. fi
  8975. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8976. $as_echo "$ac_cv_struct_tm" >&6; }
  8977. if test $ac_cv_struct_tm = sys/time.h; then
  8978. cat >>confdefs.h <<\_ACEOF
  8979. #define TM_IN_SYS_TIME 1
  8980. _ACEOF
  8981. fi
  8982. { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
  8983. $as_echo_n "checking for uint16_t... " >&6; }
  8984. if test "${ac_cv_c_uint16_t+set}" = set; then
  8985. $as_echo_n "(cached) " >&6
  8986. else
  8987. ac_cv_c_uint16_t=no
  8988. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  8989. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8990. cat >conftest.$ac_ext <<_ACEOF
  8991. /* confdefs.h. */
  8992. _ACEOF
  8993. cat confdefs.h >>conftest.$ac_ext
  8994. cat >>conftest.$ac_ext <<_ACEOF
  8995. /* end confdefs.h. */
  8996. $ac_includes_default
  8997. int
  8998. main ()
  8999. {
  9000. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  9001. test_array [0] = 0
  9002. ;
  9003. return 0;
  9004. }
  9005. _ACEOF
  9006. rm -f conftest.$ac_objext
  9007. if { (ac_try="$ac_compile"
  9008. case "(($ac_try" in
  9009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9010. *) ac_try_echo=$ac_try;;
  9011. esac
  9012. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9013. $as_echo "$ac_try_echo") >&5
  9014. (eval "$ac_compile") 2>conftest.er1
  9015. ac_status=$?
  9016. grep -v '^ *+' conftest.er1 >conftest.err
  9017. rm -f conftest.er1
  9018. cat conftest.err >&5
  9019. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9020. (exit $ac_status); } && {
  9021. test -z "$ac_cxx_werror_flag" ||
  9022. test ! -s conftest.err
  9023. } && test -s conftest.$ac_objext; then
  9024. case $ac_type in
  9025. uint16_t) ac_cv_c_uint16_t=yes ;;
  9026. *) ac_cv_c_uint16_t=$ac_type ;;
  9027. esac
  9028. else
  9029. $as_echo "$as_me: failed program was:" >&5
  9030. sed 's/^/| /' conftest.$ac_ext >&5
  9031. fi
  9032. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9033. test "$ac_cv_c_uint16_t" != no && break
  9034. done
  9035. fi
  9036. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  9037. $as_echo "$ac_cv_c_uint16_t" >&6; }
  9038. case $ac_cv_c_uint16_t in #(
  9039. no|yes) ;; #(
  9040. *)
  9041. cat >>confdefs.h <<_ACEOF
  9042. #define uint16_t $ac_cv_c_uint16_t
  9043. _ACEOF
  9044. ;;
  9045. esac
  9046. { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
  9047. $as_echo_n "checking for uint32_t... " >&6; }
  9048. if test "${ac_cv_c_uint32_t+set}" = set; then
  9049. $as_echo_n "(cached) " >&6
  9050. else
  9051. ac_cv_c_uint32_t=no
  9052. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  9053. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  9054. cat >conftest.$ac_ext <<_ACEOF
  9055. /* confdefs.h. */
  9056. _ACEOF
  9057. cat confdefs.h >>conftest.$ac_ext
  9058. cat >>conftest.$ac_ext <<_ACEOF
  9059. /* end confdefs.h. */
  9060. $ac_includes_default
  9061. int
  9062. main ()
  9063. {
  9064. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  9065. test_array [0] = 0
  9066. ;
  9067. return 0;
  9068. }
  9069. _ACEOF
  9070. rm -f conftest.$ac_objext
  9071. if { (ac_try="$ac_compile"
  9072. case "(($ac_try" in
  9073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9074. *) ac_try_echo=$ac_try;;
  9075. esac
  9076. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9077. $as_echo "$ac_try_echo") >&5
  9078. (eval "$ac_compile") 2>conftest.er1
  9079. ac_status=$?
  9080. grep -v '^ *+' conftest.er1 >conftest.err
  9081. rm -f conftest.er1
  9082. cat conftest.err >&5
  9083. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9084. (exit $ac_status); } && {
  9085. test -z "$ac_cxx_werror_flag" ||
  9086. test ! -s conftest.err
  9087. } && test -s conftest.$ac_objext; then
  9088. case $ac_type in
  9089. uint32_t) ac_cv_c_uint32_t=yes ;;
  9090. *) ac_cv_c_uint32_t=$ac_type ;;
  9091. esac
  9092. else
  9093. $as_echo "$as_me: failed program was:" >&5
  9094. sed 's/^/| /' conftest.$ac_ext >&5
  9095. fi
  9096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9097. test "$ac_cv_c_uint32_t" != no && break
  9098. done
  9099. fi
  9100. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  9101. $as_echo "$ac_cv_c_uint32_t" >&6; }
  9102. case $ac_cv_c_uint32_t in #(
  9103. no|yes) ;; #(
  9104. *)
  9105. cat >>confdefs.h <<\_ACEOF
  9106. #define _UINT32_T 1
  9107. _ACEOF
  9108. cat >>confdefs.h <<_ACEOF
  9109. #define uint32_t $ac_cv_c_uint32_t
  9110. _ACEOF
  9111. ;;
  9112. esac
  9113. { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
  9114. $as_echo_n "checking for uint64_t... " >&6; }
  9115. if test "${ac_cv_c_uint64_t+set}" = set; then
  9116. $as_echo_n "(cached) " >&6
  9117. else
  9118. ac_cv_c_uint64_t=no
  9119. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  9120. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  9121. cat >conftest.$ac_ext <<_ACEOF
  9122. /* confdefs.h. */
  9123. _ACEOF
  9124. cat confdefs.h >>conftest.$ac_ext
  9125. cat >>conftest.$ac_ext <<_ACEOF
  9126. /* end confdefs.h. */
  9127. $ac_includes_default
  9128. int
  9129. main ()
  9130. {
  9131. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  9132. test_array [0] = 0
  9133. ;
  9134. return 0;
  9135. }
  9136. _ACEOF
  9137. rm -f conftest.$ac_objext
  9138. if { (ac_try="$ac_compile"
  9139. case "(($ac_try" in
  9140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9141. *) ac_try_echo=$ac_try;;
  9142. esac
  9143. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9144. $as_echo "$ac_try_echo") >&5
  9145. (eval "$ac_compile") 2>conftest.er1
  9146. ac_status=$?
  9147. grep -v '^ *+' conftest.er1 >conftest.err
  9148. rm -f conftest.er1
  9149. cat conftest.err >&5
  9150. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9151. (exit $ac_status); } && {
  9152. test -z "$ac_cxx_werror_flag" ||
  9153. test ! -s conftest.err
  9154. } && test -s conftest.$ac_objext; then
  9155. case $ac_type in
  9156. uint64_t) ac_cv_c_uint64_t=yes ;;
  9157. *) ac_cv_c_uint64_t=$ac_type ;;
  9158. esac
  9159. else
  9160. $as_echo "$as_me: failed program was:" >&5
  9161. sed 's/^/| /' conftest.$ac_ext >&5
  9162. fi
  9163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9164. test "$ac_cv_c_uint64_t" != no && break
  9165. done
  9166. fi
  9167. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  9168. $as_echo "$ac_cv_c_uint64_t" >&6; }
  9169. case $ac_cv_c_uint64_t in #(
  9170. no|yes) ;; #(
  9171. *)
  9172. cat >>confdefs.h <<\_ACEOF
  9173. #define _UINT64_T 1
  9174. _ACEOF
  9175. cat >>confdefs.h <<_ACEOF
  9176. #define uint64_t $ac_cv_c_uint64_t
  9177. _ACEOF
  9178. ;;
  9179. esac
  9180. { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
  9181. $as_echo_n "checking for uint8_t... " >&6; }
  9182. if test "${ac_cv_c_uint8_t+set}" = set; then
  9183. $as_echo_n "(cached) " >&6
  9184. else
  9185. ac_cv_c_uint8_t=no
  9186. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  9187. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  9188. cat >conftest.$ac_ext <<_ACEOF
  9189. /* confdefs.h. */
  9190. _ACEOF
  9191. cat confdefs.h >>conftest.$ac_ext
  9192. cat >>conftest.$ac_ext <<_ACEOF
  9193. /* end confdefs.h. */
  9194. $ac_includes_default
  9195. int
  9196. main ()
  9197. {
  9198. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  9199. test_array [0] = 0
  9200. ;
  9201. return 0;
  9202. }
  9203. _ACEOF
  9204. rm -f conftest.$ac_objext
  9205. if { (ac_try="$ac_compile"
  9206. case "(($ac_try" in
  9207. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9208. *) ac_try_echo=$ac_try;;
  9209. esac
  9210. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9211. $as_echo "$ac_try_echo") >&5
  9212. (eval "$ac_compile") 2>conftest.er1
  9213. ac_status=$?
  9214. grep -v '^ *+' conftest.er1 >conftest.err
  9215. rm -f conftest.er1
  9216. cat conftest.err >&5
  9217. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9218. (exit $ac_status); } && {
  9219. test -z "$ac_cxx_werror_flag" ||
  9220. test ! -s conftest.err
  9221. } && test -s conftest.$ac_objext; then
  9222. case $ac_type in
  9223. uint8_t) ac_cv_c_uint8_t=yes ;;
  9224. *) ac_cv_c_uint8_t=$ac_type ;;
  9225. esac
  9226. else
  9227. $as_echo "$as_me: failed program was:" >&5
  9228. sed 's/^/| /' conftest.$ac_ext >&5
  9229. fi
  9230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9231. test "$ac_cv_c_uint8_t" != no && break
  9232. done
  9233. fi
  9234. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  9235. $as_echo "$ac_cv_c_uint8_t" >&6; }
  9236. case $ac_cv_c_uint8_t in #(
  9237. no|yes) ;; #(
  9238. *)
  9239. cat >>confdefs.h <<\_ACEOF
  9240. #define _UINT8_T 1
  9241. _ACEOF
  9242. cat >>confdefs.h <<_ACEOF
  9243. #define uint8_t $ac_cv_c_uint8_t
  9244. _ACEOF
  9245. ;;
  9246. esac
  9247. { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
  9248. $as_echo_n "checking for working volatile... " >&6; }
  9249. if test "${ac_cv_c_volatile+set}" = set; then
  9250. $as_echo_n "(cached) " >&6
  9251. else
  9252. cat >conftest.$ac_ext <<_ACEOF
  9253. /* confdefs.h. */
  9254. _ACEOF
  9255. cat confdefs.h >>conftest.$ac_ext
  9256. cat >>conftest.$ac_ext <<_ACEOF
  9257. /* end confdefs.h. */
  9258. int
  9259. main ()
  9260. {
  9261. volatile int x;
  9262. int * volatile y = (int *) 0;
  9263. return !x && !y;
  9264. ;
  9265. return 0;
  9266. }
  9267. _ACEOF
  9268. rm -f conftest.$ac_objext
  9269. if { (ac_try="$ac_compile"
  9270. case "(($ac_try" in
  9271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9272. *) ac_try_echo=$ac_try;;
  9273. esac
  9274. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9275. $as_echo "$ac_try_echo") >&5
  9276. (eval "$ac_compile") 2>conftest.er1
  9277. ac_status=$?
  9278. grep -v '^ *+' conftest.er1 >conftest.err
  9279. rm -f conftest.er1
  9280. cat conftest.err >&5
  9281. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9282. (exit $ac_status); } && {
  9283. test -z "$ac_cxx_werror_flag" ||
  9284. test ! -s conftest.err
  9285. } && test -s conftest.$ac_objext; then
  9286. ac_cv_c_volatile=yes
  9287. else
  9288. $as_echo "$as_me: failed program was:" >&5
  9289. sed 's/^/| /' conftest.$ac_ext >&5
  9290. ac_cv_c_volatile=no
  9291. fi
  9292. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9293. fi
  9294. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  9295. $as_echo "$ac_cv_c_volatile" >&6; }
  9296. if test $ac_cv_c_volatile = no; then
  9297. cat >>confdefs.h <<\_ACEOF
  9298. #define volatile /**/
  9299. _ACEOF
  9300. fi
  9301. { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  9302. $as_echo_n "checking for ptrdiff_t... " >&6; }
  9303. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  9304. $as_echo_n "(cached) " >&6
  9305. else
  9306. ac_cv_type_ptrdiff_t=no
  9307. cat >conftest.$ac_ext <<_ACEOF
  9308. /* confdefs.h. */
  9309. _ACEOF
  9310. cat confdefs.h >>conftest.$ac_ext
  9311. cat >>conftest.$ac_ext <<_ACEOF
  9312. /* end confdefs.h. */
  9313. $ac_includes_default
  9314. int
  9315. main ()
  9316. {
  9317. if (sizeof (ptrdiff_t))
  9318. return 0;
  9319. ;
  9320. return 0;
  9321. }
  9322. _ACEOF
  9323. rm -f conftest.$ac_objext
  9324. if { (ac_try="$ac_compile"
  9325. case "(($ac_try" in
  9326. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9327. *) ac_try_echo=$ac_try;;
  9328. esac
  9329. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9330. $as_echo "$ac_try_echo") >&5
  9331. (eval "$ac_compile") 2>conftest.er1
  9332. ac_status=$?
  9333. grep -v '^ *+' conftest.er1 >conftest.err
  9334. rm -f conftest.er1
  9335. cat conftest.err >&5
  9336. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9337. (exit $ac_status); } && {
  9338. test -z "$ac_cxx_werror_flag" ||
  9339. test ! -s conftest.err
  9340. } && test -s conftest.$ac_objext; then
  9341. cat >conftest.$ac_ext <<_ACEOF
  9342. /* confdefs.h. */
  9343. _ACEOF
  9344. cat confdefs.h >>conftest.$ac_ext
  9345. cat >>conftest.$ac_ext <<_ACEOF
  9346. /* end confdefs.h. */
  9347. $ac_includes_default
  9348. int
  9349. main ()
  9350. {
  9351. if (sizeof ((ptrdiff_t)))
  9352. return 0;
  9353. ;
  9354. return 0;
  9355. }
  9356. _ACEOF
  9357. rm -f conftest.$ac_objext
  9358. if { (ac_try="$ac_compile"
  9359. case "(($ac_try" in
  9360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9361. *) ac_try_echo=$ac_try;;
  9362. esac
  9363. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9364. $as_echo "$ac_try_echo") >&5
  9365. (eval "$ac_compile") 2>conftest.er1
  9366. ac_status=$?
  9367. grep -v '^ *+' conftest.er1 >conftest.err
  9368. rm -f conftest.er1
  9369. cat conftest.err >&5
  9370. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9371. (exit $ac_status); } && {
  9372. test -z "$ac_cxx_werror_flag" ||
  9373. test ! -s conftest.err
  9374. } && test -s conftest.$ac_objext; then
  9375. :
  9376. else
  9377. $as_echo "$as_me: failed program was:" >&5
  9378. sed 's/^/| /' conftest.$ac_ext >&5
  9379. ac_cv_type_ptrdiff_t=yes
  9380. fi
  9381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9382. else
  9383. $as_echo "$as_me: failed program was:" >&5
  9384. sed 's/^/| /' conftest.$ac_ext >&5
  9385. fi
  9386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9387. fi
  9388. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  9389. $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
  9390. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
  9391. cat >>confdefs.h <<_ACEOF
  9392. #define HAVE_PTRDIFF_T 1
  9393. _ACEOF
  9394. fi
  9395. { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  9396. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  9397. if test "${ac_cv_c_bigendian+set}" = set; then
  9398. $as_echo_n "(cached) " >&6
  9399. else
  9400. ac_cv_c_bigendian=unknown
  9401. # See if we're dealing with a universal compiler.
  9402. cat >conftest.$ac_ext <<_ACEOF
  9403. /* confdefs.h. */
  9404. _ACEOF
  9405. cat confdefs.h >>conftest.$ac_ext
  9406. cat >>conftest.$ac_ext <<_ACEOF
  9407. /* end confdefs.h. */
  9408. #ifndef __APPLE_CC__
  9409. not a universal capable compiler
  9410. #endif
  9411. typedef int dummy;
  9412. _ACEOF
  9413. rm -f conftest.$ac_objext
  9414. if { (ac_try="$ac_compile"
  9415. case "(($ac_try" in
  9416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9417. *) ac_try_echo=$ac_try;;
  9418. esac
  9419. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9420. $as_echo "$ac_try_echo") >&5
  9421. (eval "$ac_compile") 2>conftest.er1
  9422. ac_status=$?
  9423. grep -v '^ *+' conftest.er1 >conftest.err
  9424. rm -f conftest.er1
  9425. cat conftest.err >&5
  9426. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9427. (exit $ac_status); } && {
  9428. test -z "$ac_cxx_werror_flag" ||
  9429. test ! -s conftest.err
  9430. } && test -s conftest.$ac_objext; then
  9431. # Check for potential -arch flags. It is not universal unless
  9432. # there are some -arch flags. Note that *ppc* also matches
  9433. # ppc64. This check is also rather less than ideal.
  9434. case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
  9435. *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
  9436. esac
  9437. else
  9438. $as_echo "$as_me: failed program was:" >&5
  9439. sed 's/^/| /' conftest.$ac_ext >&5
  9440. fi
  9441. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9442. if test $ac_cv_c_bigendian = unknown; then
  9443. # See if sys/param.h defines the BYTE_ORDER macro.
  9444. cat >conftest.$ac_ext <<_ACEOF
  9445. /* confdefs.h. */
  9446. _ACEOF
  9447. cat confdefs.h >>conftest.$ac_ext
  9448. cat >>conftest.$ac_ext <<_ACEOF
  9449. /* end confdefs.h. */
  9450. #include <sys/types.h>
  9451. #include <sys/param.h>
  9452. int
  9453. main ()
  9454. {
  9455. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  9456. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  9457. && LITTLE_ENDIAN)
  9458. bogus endian macros
  9459. #endif
  9460. ;
  9461. return 0;
  9462. }
  9463. _ACEOF
  9464. rm -f conftest.$ac_objext
  9465. if { (ac_try="$ac_compile"
  9466. case "(($ac_try" in
  9467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9468. *) ac_try_echo=$ac_try;;
  9469. esac
  9470. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9471. $as_echo "$ac_try_echo") >&5
  9472. (eval "$ac_compile") 2>conftest.er1
  9473. ac_status=$?
  9474. grep -v '^ *+' conftest.er1 >conftest.err
  9475. rm -f conftest.er1
  9476. cat conftest.err >&5
  9477. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9478. (exit $ac_status); } && {
  9479. test -z "$ac_cxx_werror_flag" ||
  9480. test ! -s conftest.err
  9481. } && test -s conftest.$ac_objext; then
  9482. # It does; now see whether it defined to BIG_ENDIAN or not.
  9483. cat >conftest.$ac_ext <<_ACEOF
  9484. /* confdefs.h. */
  9485. _ACEOF
  9486. cat confdefs.h >>conftest.$ac_ext
  9487. cat >>conftest.$ac_ext <<_ACEOF
  9488. /* end confdefs.h. */
  9489. #include <sys/types.h>
  9490. #include <sys/param.h>
  9491. int
  9492. main ()
  9493. {
  9494. #if BYTE_ORDER != BIG_ENDIAN
  9495. not big endian
  9496. #endif
  9497. ;
  9498. return 0;
  9499. }
  9500. _ACEOF
  9501. rm -f conftest.$ac_objext
  9502. if { (ac_try="$ac_compile"
  9503. case "(($ac_try" in
  9504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9505. *) ac_try_echo=$ac_try;;
  9506. esac
  9507. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9508. $as_echo "$ac_try_echo") >&5
  9509. (eval "$ac_compile") 2>conftest.er1
  9510. ac_status=$?
  9511. grep -v '^ *+' conftest.er1 >conftest.err
  9512. rm -f conftest.er1
  9513. cat conftest.err >&5
  9514. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9515. (exit $ac_status); } && {
  9516. test -z "$ac_cxx_werror_flag" ||
  9517. test ! -s conftest.err
  9518. } && test -s conftest.$ac_objext; then
  9519. ac_cv_c_bigendian=yes
  9520. else
  9521. $as_echo "$as_me: failed program was:" >&5
  9522. sed 's/^/| /' conftest.$ac_ext >&5
  9523. ac_cv_c_bigendian=no
  9524. fi
  9525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9526. else
  9527. $as_echo "$as_me: failed program was:" >&5
  9528. sed 's/^/| /' conftest.$ac_ext >&5
  9529. fi
  9530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9531. fi
  9532. if test $ac_cv_c_bigendian = unknown; then
  9533. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  9534. cat >conftest.$ac_ext <<_ACEOF
  9535. /* confdefs.h. */
  9536. _ACEOF
  9537. cat confdefs.h >>conftest.$ac_ext
  9538. cat >>conftest.$ac_ext <<_ACEOF
  9539. /* end confdefs.h. */
  9540. #include <limits.h>
  9541. int
  9542. main ()
  9543. {
  9544. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  9545. bogus endian macros
  9546. #endif
  9547. ;
  9548. return 0;
  9549. }
  9550. _ACEOF
  9551. rm -f conftest.$ac_objext
  9552. if { (ac_try="$ac_compile"
  9553. case "(($ac_try" in
  9554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9555. *) ac_try_echo=$ac_try;;
  9556. esac
  9557. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9558. $as_echo "$ac_try_echo") >&5
  9559. (eval "$ac_compile") 2>conftest.er1
  9560. ac_status=$?
  9561. grep -v '^ *+' conftest.er1 >conftest.err
  9562. rm -f conftest.er1
  9563. cat conftest.err >&5
  9564. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9565. (exit $ac_status); } && {
  9566. test -z "$ac_cxx_werror_flag" ||
  9567. test ! -s conftest.err
  9568. } && test -s conftest.$ac_objext; then
  9569. # It does; now see whether it defined to _BIG_ENDIAN or not.
  9570. cat >conftest.$ac_ext <<_ACEOF
  9571. /* confdefs.h. */
  9572. _ACEOF
  9573. cat confdefs.h >>conftest.$ac_ext
  9574. cat >>conftest.$ac_ext <<_ACEOF
  9575. /* end confdefs.h. */
  9576. #include <limits.h>
  9577. int
  9578. main ()
  9579. {
  9580. #ifndef _BIG_ENDIAN
  9581. not big endian
  9582. #endif
  9583. ;
  9584. return 0;
  9585. }
  9586. _ACEOF
  9587. rm -f conftest.$ac_objext
  9588. if { (ac_try="$ac_compile"
  9589. case "(($ac_try" in
  9590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9591. *) ac_try_echo=$ac_try;;
  9592. esac
  9593. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9594. $as_echo "$ac_try_echo") >&5
  9595. (eval "$ac_compile") 2>conftest.er1
  9596. ac_status=$?
  9597. grep -v '^ *+' conftest.er1 >conftest.err
  9598. rm -f conftest.er1
  9599. cat conftest.err >&5
  9600. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9601. (exit $ac_status); } && {
  9602. test -z "$ac_cxx_werror_flag" ||
  9603. test ! -s conftest.err
  9604. } && test -s conftest.$ac_objext; then
  9605. ac_cv_c_bigendian=yes
  9606. else
  9607. $as_echo "$as_me: failed program was:" >&5
  9608. sed 's/^/| /' conftest.$ac_ext >&5
  9609. ac_cv_c_bigendian=no
  9610. fi
  9611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9612. else
  9613. $as_echo "$as_me: failed program was:" >&5
  9614. sed 's/^/| /' conftest.$ac_ext >&5
  9615. fi
  9616. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9617. fi
  9618. if test $ac_cv_c_bigendian = unknown; then
  9619. # Compile a test program.
  9620. if test "$cross_compiling" = yes; then
  9621. # Try to guess by grepping values from an object file.
  9622. cat >conftest.$ac_ext <<_ACEOF
  9623. /* confdefs.h. */
  9624. _ACEOF
  9625. cat confdefs.h >>conftest.$ac_ext
  9626. cat >>conftest.$ac_ext <<_ACEOF
  9627. /* end confdefs.h. */
  9628. short int ascii_mm[] =
  9629. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  9630. short int ascii_ii[] =
  9631. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  9632. int use_ascii (int i) {
  9633. return ascii_mm[i] + ascii_ii[i];
  9634. }
  9635. short int ebcdic_ii[] =
  9636. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  9637. short int ebcdic_mm[] =
  9638. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  9639. int use_ebcdic (int i) {
  9640. return ebcdic_mm[i] + ebcdic_ii[i];
  9641. }
  9642. extern int foo;
  9643. int
  9644. main ()
  9645. {
  9646. return use_ascii (foo) == use_ebcdic (foo);
  9647. ;
  9648. return 0;
  9649. }
  9650. _ACEOF
  9651. rm -f conftest.$ac_objext
  9652. if { (ac_try="$ac_compile"
  9653. case "(($ac_try" in
  9654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9655. *) ac_try_echo=$ac_try;;
  9656. esac
  9657. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9658. $as_echo "$ac_try_echo") >&5
  9659. (eval "$ac_compile") 2>conftest.er1
  9660. ac_status=$?
  9661. grep -v '^ *+' conftest.er1 >conftest.err
  9662. rm -f conftest.er1
  9663. cat conftest.err >&5
  9664. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9665. (exit $ac_status); } && {
  9666. test -z "$ac_cxx_werror_flag" ||
  9667. test ! -s conftest.err
  9668. } && test -s conftest.$ac_objext; then
  9669. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  9670. ac_cv_c_bigendian=yes
  9671. fi
  9672. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  9673. if test "$ac_cv_c_bigendian" = unknown; then
  9674. ac_cv_c_bigendian=no
  9675. else
  9676. # finding both strings is unlikely to happen, but who knows?
  9677. ac_cv_c_bigendian=unknown
  9678. fi
  9679. fi
  9680. else
  9681. $as_echo "$as_me: failed program was:" >&5
  9682. sed 's/^/| /' conftest.$ac_ext >&5
  9683. fi
  9684. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9685. else
  9686. cat >conftest.$ac_ext <<_ACEOF
  9687. /* confdefs.h. */
  9688. _ACEOF
  9689. cat confdefs.h >>conftest.$ac_ext
  9690. cat >>conftest.$ac_ext <<_ACEOF
  9691. /* end confdefs.h. */
  9692. $ac_includes_default
  9693. int
  9694. main ()
  9695. {
  9696. /* Are we little or big endian? From Harbison&Steele. */
  9697. union
  9698. {
  9699. long int l;
  9700. char c[sizeof (long int)];
  9701. } u;
  9702. u.l = 1;
  9703. return u.c[sizeof (long int) - 1] == 1;
  9704. ;
  9705. return 0;
  9706. }
  9707. _ACEOF
  9708. rm -f conftest$ac_exeext
  9709. if { (ac_try="$ac_link"
  9710. case "(($ac_try" in
  9711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9712. *) ac_try_echo=$ac_try;;
  9713. esac
  9714. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9715. $as_echo "$ac_try_echo") >&5
  9716. (eval "$ac_link") 2>&5
  9717. ac_status=$?
  9718. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9719. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9720. { (case "(($ac_try" in
  9721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9722. *) ac_try_echo=$ac_try;;
  9723. esac
  9724. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9725. $as_echo "$ac_try_echo") >&5
  9726. (eval "$ac_try") 2>&5
  9727. ac_status=$?
  9728. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9729. (exit $ac_status); }; }; then
  9730. ac_cv_c_bigendian=no
  9731. else
  9732. $as_echo "$as_me: program exited with status $ac_status" >&5
  9733. $as_echo "$as_me: failed program was:" >&5
  9734. sed 's/^/| /' conftest.$ac_ext >&5
  9735. ( exit $ac_status )
  9736. ac_cv_c_bigendian=yes
  9737. fi
  9738. rm -rf conftest.dSYM
  9739. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9740. fi
  9741. fi
  9742. fi
  9743. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  9744. $as_echo "$ac_cv_c_bigendian" >&6; }
  9745. case $ac_cv_c_bigendian in #(
  9746. yes)
  9747. cat >>confdefs.h <<\_ACEOF
  9748. #define WORDS_BIGENDIAN 1
  9749. _ACEOF
  9750. ;; #(
  9751. no)
  9752. ;; #(
  9753. universal)
  9754. cat >>confdefs.h <<\_ACEOF
  9755. #define AC_APPLE_UNIVERSAL_BUILD 1
  9756. _ACEOF
  9757. ;; #(
  9758. *)
  9759. { { $as_echo "$as_me:$LINENO: error: unknown endianness
  9760. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  9761. $as_echo "$as_me: error: unknown endianness
  9762. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  9763. { (exit 1); exit 1; }; } ;;
  9764. esac
  9765. # Check whether --enable-largefile was given.
  9766. if test "${enable_largefile+set}" = set; then
  9767. enableval=$enable_largefile;
  9768. fi
  9769. if test "$enable_largefile" != no; then
  9770. { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  9771. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  9772. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  9773. $as_echo_n "(cached) " >&6
  9774. else
  9775. ac_cv_sys_largefile_CC=no
  9776. if test "$GCC" != yes; then
  9777. ac_save_CC=$CC
  9778. while :; do
  9779. # IRIX 6.2 and later do not support large files by default,
  9780. # so use the C compiler's -n32 option if that helps.
  9781. cat >conftest.$ac_ext <<_ACEOF
  9782. /* confdefs.h. */
  9783. _ACEOF
  9784. cat confdefs.h >>conftest.$ac_ext
  9785. cat >>conftest.$ac_ext <<_ACEOF
  9786. /* end confdefs.h. */
  9787. #include <sys/types.h>
  9788. /* Check that off_t can represent 2**63 - 1 correctly.
  9789. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9790. since some C++ compilers masquerading as C compilers
  9791. incorrectly reject 9223372036854775807. */
  9792. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9793. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9794. && LARGE_OFF_T % 2147483647 == 1)
  9795. ? 1 : -1];
  9796. int
  9797. main ()
  9798. {
  9799. ;
  9800. return 0;
  9801. }
  9802. _ACEOF
  9803. rm -f conftest.$ac_objext
  9804. if { (ac_try="$ac_compile"
  9805. case "(($ac_try" in
  9806. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9807. *) ac_try_echo=$ac_try;;
  9808. esac
  9809. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9810. $as_echo "$ac_try_echo") >&5
  9811. (eval "$ac_compile") 2>conftest.er1
  9812. ac_status=$?
  9813. grep -v '^ *+' conftest.er1 >conftest.err
  9814. rm -f conftest.er1
  9815. cat conftest.err >&5
  9816. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9817. (exit $ac_status); } && {
  9818. test -z "$ac_cxx_werror_flag" ||
  9819. test ! -s conftest.err
  9820. } && test -s conftest.$ac_objext; then
  9821. break
  9822. else
  9823. $as_echo "$as_me: failed program was:" >&5
  9824. sed 's/^/| /' conftest.$ac_ext >&5
  9825. fi
  9826. rm -f core conftest.err conftest.$ac_objext
  9827. CC="$CC -n32"
  9828. rm -f conftest.$ac_objext
  9829. if { (ac_try="$ac_compile"
  9830. case "(($ac_try" in
  9831. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9832. *) ac_try_echo=$ac_try;;
  9833. esac
  9834. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9835. $as_echo "$ac_try_echo") >&5
  9836. (eval "$ac_compile") 2>conftest.er1
  9837. ac_status=$?
  9838. grep -v '^ *+' conftest.er1 >conftest.err
  9839. rm -f conftest.er1
  9840. cat conftest.err >&5
  9841. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9842. (exit $ac_status); } && {
  9843. test -z "$ac_cxx_werror_flag" ||
  9844. test ! -s conftest.err
  9845. } && test -s conftest.$ac_objext; then
  9846. ac_cv_sys_largefile_CC=' -n32'; break
  9847. else
  9848. $as_echo "$as_me: failed program was:" >&5
  9849. sed 's/^/| /' conftest.$ac_ext >&5
  9850. fi
  9851. rm -f core conftest.err conftest.$ac_objext
  9852. break
  9853. done
  9854. CC=$ac_save_CC
  9855. rm -f conftest.$ac_ext
  9856. fi
  9857. fi
  9858. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  9859. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  9860. if test "$ac_cv_sys_largefile_CC" != no; then
  9861. CC=$CC$ac_cv_sys_largefile_CC
  9862. fi
  9863. { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  9864. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  9865. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  9866. $as_echo_n "(cached) " >&6
  9867. else
  9868. while :; do
  9869. cat >conftest.$ac_ext <<_ACEOF
  9870. /* confdefs.h. */
  9871. _ACEOF
  9872. cat confdefs.h >>conftest.$ac_ext
  9873. cat >>conftest.$ac_ext <<_ACEOF
  9874. /* end confdefs.h. */
  9875. #include <sys/types.h>
  9876. /* Check that off_t can represent 2**63 - 1 correctly.
  9877. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9878. since some C++ compilers masquerading as C compilers
  9879. incorrectly reject 9223372036854775807. */
  9880. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9881. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9882. && LARGE_OFF_T % 2147483647 == 1)
  9883. ? 1 : -1];
  9884. int
  9885. main ()
  9886. {
  9887. ;
  9888. return 0;
  9889. }
  9890. _ACEOF
  9891. rm -f conftest.$ac_objext
  9892. if { (ac_try="$ac_compile"
  9893. case "(($ac_try" in
  9894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9895. *) ac_try_echo=$ac_try;;
  9896. esac
  9897. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9898. $as_echo "$ac_try_echo") >&5
  9899. (eval "$ac_compile") 2>conftest.er1
  9900. ac_status=$?
  9901. grep -v '^ *+' conftest.er1 >conftest.err
  9902. rm -f conftest.er1
  9903. cat conftest.err >&5
  9904. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9905. (exit $ac_status); } && {
  9906. test -z "$ac_cxx_werror_flag" ||
  9907. test ! -s conftest.err
  9908. } && test -s conftest.$ac_objext; then
  9909. ac_cv_sys_file_offset_bits=no; break
  9910. else
  9911. $as_echo "$as_me: failed program was:" >&5
  9912. sed 's/^/| /' conftest.$ac_ext >&5
  9913. fi
  9914. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9915. cat >conftest.$ac_ext <<_ACEOF
  9916. /* confdefs.h. */
  9917. _ACEOF
  9918. cat confdefs.h >>conftest.$ac_ext
  9919. cat >>conftest.$ac_ext <<_ACEOF
  9920. /* end confdefs.h. */
  9921. #define _FILE_OFFSET_BITS 64
  9922. #include <sys/types.h>
  9923. /* Check that off_t can represent 2**63 - 1 correctly.
  9924. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9925. since some C++ compilers masquerading as C compilers
  9926. incorrectly reject 9223372036854775807. */
  9927. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9928. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9929. && LARGE_OFF_T % 2147483647 == 1)
  9930. ? 1 : -1];
  9931. int
  9932. main ()
  9933. {
  9934. ;
  9935. return 0;
  9936. }
  9937. _ACEOF
  9938. rm -f conftest.$ac_objext
  9939. if { (ac_try="$ac_compile"
  9940. case "(($ac_try" in
  9941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9942. *) ac_try_echo=$ac_try;;
  9943. esac
  9944. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9945. $as_echo "$ac_try_echo") >&5
  9946. (eval "$ac_compile") 2>conftest.er1
  9947. ac_status=$?
  9948. grep -v '^ *+' conftest.er1 >conftest.err
  9949. rm -f conftest.er1
  9950. cat conftest.err >&5
  9951. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9952. (exit $ac_status); } && {
  9953. test -z "$ac_cxx_werror_flag" ||
  9954. test ! -s conftest.err
  9955. } && test -s conftest.$ac_objext; then
  9956. ac_cv_sys_file_offset_bits=64; break
  9957. else
  9958. $as_echo "$as_me: failed program was:" >&5
  9959. sed 's/^/| /' conftest.$ac_ext >&5
  9960. fi
  9961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9962. ac_cv_sys_file_offset_bits=unknown
  9963. break
  9964. done
  9965. fi
  9966. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  9967. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  9968. case $ac_cv_sys_file_offset_bits in #(
  9969. no | unknown) ;;
  9970. *)
  9971. cat >>confdefs.h <<_ACEOF
  9972. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  9973. _ACEOF
  9974. ;;
  9975. esac
  9976. rm -rf conftest*
  9977. if test $ac_cv_sys_file_offset_bits = unknown; then
  9978. { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  9979. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  9980. if test "${ac_cv_sys_large_files+set}" = set; then
  9981. $as_echo_n "(cached) " >&6
  9982. else
  9983. while :; do
  9984. cat >conftest.$ac_ext <<_ACEOF
  9985. /* confdefs.h. */
  9986. _ACEOF
  9987. cat confdefs.h >>conftest.$ac_ext
  9988. cat >>conftest.$ac_ext <<_ACEOF
  9989. /* end confdefs.h. */
  9990. #include <sys/types.h>
  9991. /* Check that off_t can represent 2**63 - 1 correctly.
  9992. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9993. since some C++ compilers masquerading as C compilers
  9994. incorrectly reject 9223372036854775807. */
  9995. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9996. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9997. && LARGE_OFF_T % 2147483647 == 1)
  9998. ? 1 : -1];
  9999. int
  10000. main ()
  10001. {
  10002. ;
  10003. return 0;
  10004. }
  10005. _ACEOF
  10006. rm -f conftest.$ac_objext
  10007. if { (ac_try="$ac_compile"
  10008. case "(($ac_try" in
  10009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10010. *) ac_try_echo=$ac_try;;
  10011. esac
  10012. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10013. $as_echo "$ac_try_echo") >&5
  10014. (eval "$ac_compile") 2>conftest.er1
  10015. ac_status=$?
  10016. grep -v '^ *+' conftest.er1 >conftest.err
  10017. rm -f conftest.er1
  10018. cat conftest.err >&5
  10019. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10020. (exit $ac_status); } && {
  10021. test -z "$ac_cxx_werror_flag" ||
  10022. test ! -s conftest.err
  10023. } && test -s conftest.$ac_objext; then
  10024. ac_cv_sys_large_files=no; break
  10025. else
  10026. $as_echo "$as_me: failed program was:" >&5
  10027. sed 's/^/| /' conftest.$ac_ext >&5
  10028. fi
  10029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10030. cat >conftest.$ac_ext <<_ACEOF
  10031. /* confdefs.h. */
  10032. _ACEOF
  10033. cat confdefs.h >>conftest.$ac_ext
  10034. cat >>conftest.$ac_ext <<_ACEOF
  10035. /* end confdefs.h. */
  10036. #define _LARGE_FILES 1
  10037. #include <sys/types.h>
  10038. /* Check that off_t can represent 2**63 - 1 correctly.
  10039. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10040. since some C++ compilers masquerading as C compilers
  10041. incorrectly reject 9223372036854775807. */
  10042. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10043. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10044. && LARGE_OFF_T % 2147483647 == 1)
  10045. ? 1 : -1];
  10046. int
  10047. main ()
  10048. {
  10049. ;
  10050. return 0;
  10051. }
  10052. _ACEOF
  10053. rm -f conftest.$ac_objext
  10054. if { (ac_try="$ac_compile"
  10055. case "(($ac_try" in
  10056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10057. *) ac_try_echo=$ac_try;;
  10058. esac
  10059. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10060. $as_echo "$ac_try_echo") >&5
  10061. (eval "$ac_compile") 2>conftest.er1
  10062. ac_status=$?
  10063. grep -v '^ *+' conftest.er1 >conftest.err
  10064. rm -f conftest.er1
  10065. cat conftest.err >&5
  10066. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10067. (exit $ac_status); } && {
  10068. test -z "$ac_cxx_werror_flag" ||
  10069. test ! -s conftest.err
  10070. } && test -s conftest.$ac_objext; then
  10071. ac_cv_sys_large_files=1; break
  10072. else
  10073. $as_echo "$as_me: failed program was:" >&5
  10074. sed 's/^/| /' conftest.$ac_ext >&5
  10075. fi
  10076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10077. ac_cv_sys_large_files=unknown
  10078. break
  10079. done
  10080. fi
  10081. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  10082. $as_echo "$ac_cv_sys_large_files" >&6; }
  10083. case $ac_cv_sys_large_files in #(
  10084. no | unknown) ;;
  10085. *)
  10086. cat >>confdefs.h <<_ACEOF
  10087. #define _LARGE_FILES $ac_cv_sys_large_files
  10088. _ACEOF
  10089. ;;
  10090. esac
  10091. rm -rf conftest*
  10092. fi
  10093. fi
  10094. # Checks for library functions.
  10095. { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  10096. $as_echo_n "checking whether NLS is requested... " >&6; }
  10097. # Check whether --enable-nls was given.
  10098. if test "${enable_nls+set}" = set; then
  10099. enableval=$enable_nls; USE_NLS=$enableval
  10100. else
  10101. USE_NLS=yes
  10102. fi
  10103. { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
  10104. $as_echo "$USE_NLS" >&6; }
  10105. GETTEXT_MACRO_VERSION=0.17
  10106. # Prepare PATH_SEPARATOR.
  10107. # The user is always right.
  10108. if test "${PATH_SEPARATOR+set}" != set; then
  10109. echo "#! /bin/sh" >conf$$.sh
  10110. echo "exit 0" >>conf$$.sh
  10111. chmod +x conf$$.sh
  10112. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10113. PATH_SEPARATOR=';'
  10114. else
  10115. PATH_SEPARATOR=:
  10116. fi
  10117. rm -f conf$$.sh
  10118. fi
  10119. # Find out how to test for executable files. Don't use a zero-byte file,
  10120. # as systems may use methods other than mode bits to determine executability.
  10121. cat >conf$$.file <<_ASEOF
  10122. #! /bin/sh
  10123. exit 0
  10124. _ASEOF
  10125. chmod +x conf$$.file
  10126. if test -x conf$$.file >/dev/null 2>&1; then
  10127. ac_executable_p="test -x"
  10128. else
  10129. ac_executable_p="test -f"
  10130. fi
  10131. rm -f conf$$.file
  10132. # Extract the first word of "msgfmt", so it can be a program name with args.
  10133. set dummy msgfmt; ac_word=$2
  10134. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10135. $as_echo_n "checking for $ac_word... " >&6; }
  10136. if test "${ac_cv_path_MSGFMT+set}" = set; then
  10137. $as_echo_n "(cached) " >&6
  10138. else
  10139. case "$MSGFMT" in
  10140. [\\/]* | ?:[\\/]*)
  10141. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  10142. ;;
  10143. *)
  10144. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10145. for ac_dir in $PATH; do
  10146. IFS="$ac_save_IFS"
  10147. test -z "$ac_dir" && ac_dir=.
  10148. for ac_exec_ext in '' $ac_executable_extensions; do
  10149. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10150. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  10151. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  10152. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  10153. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  10154. break 2
  10155. fi
  10156. fi
  10157. done
  10158. done
  10159. IFS="$ac_save_IFS"
  10160. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  10161. ;;
  10162. esac
  10163. fi
  10164. MSGFMT="$ac_cv_path_MSGFMT"
  10165. if test "$MSGFMT" != ":"; then
  10166. { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
  10167. $as_echo "$MSGFMT" >&6; }
  10168. else
  10169. { $as_echo "$as_me:$LINENO: result: no" >&5
  10170. $as_echo "no" >&6; }
  10171. fi
  10172. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  10173. set dummy gmsgfmt; ac_word=$2
  10174. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10175. $as_echo_n "checking for $ac_word... " >&6; }
  10176. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  10177. $as_echo_n "(cached) " >&6
  10178. else
  10179. case $GMSGFMT in
  10180. [\\/]* | ?:[\\/]*)
  10181. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  10182. ;;
  10183. *)
  10184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10185. for as_dir in $PATH
  10186. do
  10187. IFS=$as_save_IFS
  10188. test -z "$as_dir" && as_dir=.
  10189. for ac_exec_ext in '' $ac_executable_extensions; do
  10190. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10191. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  10192. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10193. break 2
  10194. fi
  10195. done
  10196. done
  10197. IFS=$as_save_IFS
  10198. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  10199. ;;
  10200. esac
  10201. fi
  10202. GMSGFMT=$ac_cv_path_GMSGFMT
  10203. if test -n "$GMSGFMT"; then
  10204. { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  10205. $as_echo "$GMSGFMT" >&6; }
  10206. else
  10207. { $as_echo "$as_me:$LINENO: result: no" >&5
  10208. $as_echo "no" >&6; }
  10209. fi
  10210. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  10211. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  10212. *) MSGFMT_015=$MSGFMT ;;
  10213. esac
  10214. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  10215. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  10216. *) GMSGFMT_015=$GMSGFMT ;;
  10217. esac
  10218. # Prepare PATH_SEPARATOR.
  10219. # The user is always right.
  10220. if test "${PATH_SEPARATOR+set}" != set; then
  10221. echo "#! /bin/sh" >conf$$.sh
  10222. echo "exit 0" >>conf$$.sh
  10223. chmod +x conf$$.sh
  10224. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10225. PATH_SEPARATOR=';'
  10226. else
  10227. PATH_SEPARATOR=:
  10228. fi
  10229. rm -f conf$$.sh
  10230. fi
  10231. # Find out how to test for executable files. Don't use a zero-byte file,
  10232. # as systems may use methods other than mode bits to determine executability.
  10233. cat >conf$$.file <<_ASEOF
  10234. #! /bin/sh
  10235. exit 0
  10236. _ASEOF
  10237. chmod +x conf$$.file
  10238. if test -x conf$$.file >/dev/null 2>&1; then
  10239. ac_executable_p="test -x"
  10240. else
  10241. ac_executable_p="test -f"
  10242. fi
  10243. rm -f conf$$.file
  10244. # Extract the first word of "xgettext", so it can be a program name with args.
  10245. set dummy xgettext; ac_word=$2
  10246. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10247. $as_echo_n "checking for $ac_word... " >&6; }
  10248. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  10249. $as_echo_n "(cached) " >&6
  10250. else
  10251. case "$XGETTEXT" in
  10252. [\\/]* | ?:[\\/]*)
  10253. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  10254. ;;
  10255. *)
  10256. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10257. for ac_dir in $PATH; do
  10258. IFS="$ac_save_IFS"
  10259. test -z "$ac_dir" && ac_dir=.
  10260. for ac_exec_ext in '' $ac_executable_extensions; do
  10261. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10262. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  10263. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  10264. (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
  10265. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  10266. break 2
  10267. fi
  10268. fi
  10269. done
  10270. done
  10271. IFS="$ac_save_IFS"
  10272. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  10273. ;;
  10274. esac
  10275. fi
  10276. XGETTEXT="$ac_cv_path_XGETTEXT"
  10277. if test "$XGETTEXT" != ":"; then
  10278. { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  10279. $as_echo "$XGETTEXT" >&6; }
  10280. else
  10281. { $as_echo "$as_me:$LINENO: result: no" >&5
  10282. $as_echo "no" >&6; }
  10283. fi
  10284. rm -f messages.po
  10285. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  10286. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  10287. *) XGETTEXT_015=$XGETTEXT ;;
  10288. esac
  10289. # Prepare PATH_SEPARATOR.
  10290. # The user is always right.
  10291. if test "${PATH_SEPARATOR+set}" != set; then
  10292. echo "#! /bin/sh" >conf$$.sh
  10293. echo "exit 0" >>conf$$.sh
  10294. chmod +x conf$$.sh
  10295. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10296. PATH_SEPARATOR=';'
  10297. else
  10298. PATH_SEPARATOR=:
  10299. fi
  10300. rm -f conf$$.sh
  10301. fi
  10302. # Find out how to test for executable files. Don't use a zero-byte file,
  10303. # as systems may use methods other than mode bits to determine executability.
  10304. cat >conf$$.file <<_ASEOF
  10305. #! /bin/sh
  10306. exit 0
  10307. _ASEOF
  10308. chmod +x conf$$.file
  10309. if test -x conf$$.file >/dev/null 2>&1; then
  10310. ac_executable_p="test -x"
  10311. else
  10312. ac_executable_p="test -f"
  10313. fi
  10314. rm -f conf$$.file
  10315. # Extract the first word of "msgmerge", so it can be a program name with args.
  10316. set dummy msgmerge; ac_word=$2
  10317. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10318. $as_echo_n "checking for $ac_word... " >&6; }
  10319. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  10320. $as_echo_n "(cached) " >&6
  10321. else
  10322. case "$MSGMERGE" in
  10323. [\\/]* | ?:[\\/]*)
  10324. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  10325. ;;
  10326. *)
  10327. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10328. for ac_dir in $PATH; do
  10329. IFS="$ac_save_IFS"
  10330. test -z "$ac_dir" && ac_dir=.
  10331. for ac_exec_ext in '' $ac_executable_extensions; do
  10332. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10333. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  10334. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  10335. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  10336. break 2
  10337. fi
  10338. fi
  10339. done
  10340. done
  10341. IFS="$ac_save_IFS"
  10342. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  10343. ;;
  10344. esac
  10345. fi
  10346. MSGMERGE="$ac_cv_path_MSGMERGE"
  10347. if test "$MSGMERGE" != ":"; then
  10348. { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  10349. $as_echo "$MSGMERGE" >&6; }
  10350. else
  10351. { $as_echo "$as_me:$LINENO: result: no" >&5
  10352. $as_echo "no" >&6; }
  10353. fi
  10354. test -n "$localedir" || localedir='${datadir}/locale'
  10355. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  10356. ac_config_commands="$ac_config_commands po-directories"
  10357. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  10358. $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
  10359. if test "${ac_cv_gnu_library_2+set}" = set; then
  10360. $as_echo_n "(cached) " >&6
  10361. else
  10362. cat >conftest.$ac_ext <<_ACEOF
  10363. /* confdefs.h. */
  10364. _ACEOF
  10365. cat confdefs.h >>conftest.$ac_ext
  10366. cat >>conftest.$ac_ext <<_ACEOF
  10367. /* end confdefs.h. */
  10368. #include <features.h>
  10369. #ifdef __GNU_LIBRARY__
  10370. #if (__GLIBC__ >= 2)
  10371. Lucky GNU user
  10372. #endif
  10373. #endif
  10374. _ACEOF
  10375. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10376. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  10377. ac_cv_gnu_library_2=yes
  10378. else
  10379. ac_cv_gnu_library_2=no
  10380. fi
  10381. rm -f conftest*
  10382. fi
  10383. { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  10384. $as_echo "$ac_cv_gnu_library_2" >&6; }
  10385. GLIBC2="$ac_cv_gnu_library_2"
  10386. CFLAG_VISIBILITY=
  10387. HAVE_VISIBILITY=0
  10388. if test -n "$GCC"; then
  10389. { $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  10390. $as_echo_n "checking for simple visibility declarations... " >&6; }
  10391. if test "${gl_cv_cc_visibility+set}" = set; then
  10392. $as_echo_n "(cached) " >&6
  10393. else
  10394. gl_save_CFLAGS="$CFLAGS"
  10395. CFLAGS="$CFLAGS -fvisibility=hidden"
  10396. cat >conftest.$ac_ext <<_ACEOF
  10397. /* confdefs.h. */
  10398. _ACEOF
  10399. cat confdefs.h >>conftest.$ac_ext
  10400. cat >>conftest.$ac_ext <<_ACEOF
  10401. /* end confdefs.h. */
  10402. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  10403. extern __attribute__((__visibility__("default"))) int exportedvar;
  10404. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  10405. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  10406. int
  10407. main ()
  10408. {
  10409. ;
  10410. return 0;
  10411. }
  10412. _ACEOF
  10413. rm -f conftest.$ac_objext
  10414. if { (ac_try="$ac_compile"
  10415. case "(($ac_try" in
  10416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10417. *) ac_try_echo=$ac_try;;
  10418. esac
  10419. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10420. $as_echo "$ac_try_echo") >&5
  10421. (eval "$ac_compile") 2>conftest.er1
  10422. ac_status=$?
  10423. grep -v '^ *+' conftest.er1 >conftest.err
  10424. rm -f conftest.er1
  10425. cat conftest.err >&5
  10426. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10427. (exit $ac_status); } && {
  10428. test -z "$ac_cxx_werror_flag" ||
  10429. test ! -s conftest.err
  10430. } && test -s conftest.$ac_objext; then
  10431. gl_cv_cc_visibility=yes
  10432. else
  10433. $as_echo "$as_me: failed program was:" >&5
  10434. sed 's/^/| /' conftest.$ac_ext >&5
  10435. gl_cv_cc_visibility=no
  10436. fi
  10437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10438. CFLAGS="$gl_save_CFLAGS"
  10439. fi
  10440. { $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  10441. $as_echo "$gl_cv_cc_visibility" >&6; }
  10442. if test $gl_cv_cc_visibility = yes; then
  10443. CFLAG_VISIBILITY="-fvisibility=hidden"
  10444. HAVE_VISIBILITY=1
  10445. fi
  10446. fi
  10447. cat >>confdefs.h <<_ACEOF
  10448. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  10449. _ACEOF
  10450. { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
  10451. $as_echo_n "checking for stdint.h... " >&6; }
  10452. if test "${gl_cv_header_stdint_h+set}" = set; then
  10453. $as_echo_n "(cached) " >&6
  10454. else
  10455. cat >conftest.$ac_ext <<_ACEOF
  10456. /* confdefs.h. */
  10457. _ACEOF
  10458. cat confdefs.h >>conftest.$ac_ext
  10459. cat >>conftest.$ac_ext <<_ACEOF
  10460. /* end confdefs.h. */
  10461. #include <sys/types.h>
  10462. #include <stdint.h>
  10463. int
  10464. main ()
  10465. {
  10466. uintmax_t i = (uintmax_t) -1; return !i;
  10467. ;
  10468. return 0;
  10469. }
  10470. _ACEOF
  10471. rm -f conftest.$ac_objext
  10472. if { (ac_try="$ac_compile"
  10473. case "(($ac_try" in
  10474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10475. *) ac_try_echo=$ac_try;;
  10476. esac
  10477. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10478. $as_echo "$ac_try_echo") >&5
  10479. (eval "$ac_compile") 2>conftest.er1
  10480. ac_status=$?
  10481. grep -v '^ *+' conftest.er1 >conftest.err
  10482. rm -f conftest.er1
  10483. cat conftest.err >&5
  10484. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10485. (exit $ac_status); } && {
  10486. test -z "$ac_cxx_werror_flag" ||
  10487. test ! -s conftest.err
  10488. } && test -s conftest.$ac_objext; then
  10489. gl_cv_header_stdint_h=yes
  10490. else
  10491. $as_echo "$as_me: failed program was:" >&5
  10492. sed 's/^/| /' conftest.$ac_ext >&5
  10493. gl_cv_header_stdint_h=no
  10494. fi
  10495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10496. fi
  10497. { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  10498. $as_echo "$gl_cv_header_stdint_h" >&6; }
  10499. if test $gl_cv_header_stdint_h = yes; then
  10500. cat >>confdefs.h <<_ACEOF
  10501. #define HAVE_STDINT_H_WITH_UINTMAX 1
  10502. _ACEOF
  10503. fi
  10504. for ac_header in stdlib.h unistd.h
  10505. do
  10506. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10507. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10508. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10509. $as_echo_n "checking for $ac_header... " >&6; }
  10510. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10511. $as_echo_n "(cached) " >&6
  10512. fi
  10513. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10514. $as_echo "$as_val"'`
  10515. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10516. $as_echo "$ac_res" >&6; }
  10517. else
  10518. # Is the header compilable?
  10519. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10520. $as_echo_n "checking $ac_header usability... " >&6; }
  10521. cat >conftest.$ac_ext <<_ACEOF
  10522. /* confdefs.h. */
  10523. _ACEOF
  10524. cat confdefs.h >>conftest.$ac_ext
  10525. cat >>conftest.$ac_ext <<_ACEOF
  10526. /* end confdefs.h. */
  10527. $ac_includes_default
  10528. #include <$ac_header>
  10529. _ACEOF
  10530. rm -f conftest.$ac_objext
  10531. if { (ac_try="$ac_compile"
  10532. case "(($ac_try" in
  10533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10534. *) ac_try_echo=$ac_try;;
  10535. esac
  10536. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10537. $as_echo "$ac_try_echo") >&5
  10538. (eval "$ac_compile") 2>conftest.er1
  10539. ac_status=$?
  10540. grep -v '^ *+' conftest.er1 >conftest.err
  10541. rm -f conftest.er1
  10542. cat conftest.err >&5
  10543. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10544. (exit $ac_status); } && {
  10545. test -z "$ac_cxx_werror_flag" ||
  10546. test ! -s conftest.err
  10547. } && test -s conftest.$ac_objext; then
  10548. ac_header_compiler=yes
  10549. else
  10550. $as_echo "$as_me: failed program was:" >&5
  10551. sed 's/^/| /' conftest.$ac_ext >&5
  10552. ac_header_compiler=no
  10553. fi
  10554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10555. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10556. $as_echo "$ac_header_compiler" >&6; }
  10557. # Is the header present?
  10558. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10559. $as_echo_n "checking $ac_header presence... " >&6; }
  10560. cat >conftest.$ac_ext <<_ACEOF
  10561. /* confdefs.h. */
  10562. _ACEOF
  10563. cat confdefs.h >>conftest.$ac_ext
  10564. cat >>conftest.$ac_ext <<_ACEOF
  10565. /* end confdefs.h. */
  10566. #include <$ac_header>
  10567. _ACEOF
  10568. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10569. case "(($ac_try" in
  10570. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10571. *) ac_try_echo=$ac_try;;
  10572. esac
  10573. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10574. $as_echo "$ac_try_echo") >&5
  10575. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10576. ac_status=$?
  10577. grep -v '^ *+' conftest.er1 >conftest.err
  10578. rm -f conftest.er1
  10579. cat conftest.err >&5
  10580. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10581. (exit $ac_status); } >/dev/null && {
  10582. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10583. test ! -s conftest.err
  10584. }; then
  10585. ac_header_preproc=yes
  10586. else
  10587. $as_echo "$as_me: failed program was:" >&5
  10588. sed 's/^/| /' conftest.$ac_ext >&5
  10589. ac_header_preproc=no
  10590. fi
  10591. rm -f conftest.err conftest.$ac_ext
  10592. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10593. $as_echo "$ac_header_preproc" >&6; }
  10594. # So? What about this header?
  10595. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10596. yes:no: )
  10597. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10598. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10599. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10600. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10601. ac_header_preproc=yes
  10602. ;;
  10603. no:yes:* )
  10604. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10605. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10606. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10607. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10608. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10609. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10610. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10611. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10612. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10613. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10614. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10615. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10616. ( cat <<\_ASBOX
  10617. ## ----------------------------------------------- ##
  10618. ## Report this to t-tujikawa@users.sourceforge.net ##
  10619. ## ----------------------------------------------- ##
  10620. _ASBOX
  10621. ) | sed "s/^/$as_me: WARNING: /" >&2
  10622. ;;
  10623. esac
  10624. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10625. $as_echo_n "checking for $ac_header... " >&6; }
  10626. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10627. $as_echo_n "(cached) " >&6
  10628. else
  10629. eval "$as_ac_Header=\$ac_header_preproc"
  10630. fi
  10631. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10632. $as_echo "$as_val"'`
  10633. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10634. $as_echo "$ac_res" >&6; }
  10635. fi
  10636. as_val=`eval 'as_val=${'$as_ac_Header'}
  10637. $as_echo "$as_val"'`
  10638. if test "x$as_val" = x""yes; then
  10639. cat >>confdefs.h <<_ACEOF
  10640. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10641. _ACEOF
  10642. fi
  10643. done
  10644. for ac_func in getpagesize
  10645. do
  10646. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10647. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  10648. $as_echo_n "checking for $ac_func... " >&6; }
  10649. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10650. $as_echo_n "(cached) " >&6
  10651. else
  10652. cat >conftest.$ac_ext <<_ACEOF
  10653. /* confdefs.h. */
  10654. _ACEOF
  10655. cat confdefs.h >>conftest.$ac_ext
  10656. cat >>conftest.$ac_ext <<_ACEOF
  10657. /* end confdefs.h. */
  10658. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10659. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10660. #define $ac_func innocuous_$ac_func
  10661. /* System header to define __stub macros and hopefully few prototypes,
  10662. which can conflict with char $ac_func (); below.
  10663. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10664. <limits.h> exists even on freestanding compilers. */
  10665. #ifdef __STDC__
  10666. # include <limits.h>
  10667. #else
  10668. # include <assert.h>
  10669. #endif
  10670. #undef $ac_func
  10671. /* Override any GCC internal prototype to avoid an error.
  10672. Use char because int might match the return type of a GCC
  10673. builtin and then its argument prototype would still apply. */
  10674. #ifdef __cplusplus
  10675. extern "C"
  10676. #endif
  10677. char $ac_func ();
  10678. /* The GNU C library defines this for functions which it implements
  10679. to always fail with ENOSYS. Some functions are actually named
  10680. something starting with __ and the normal name is an alias. */
  10681. #if defined __stub_$ac_func || defined __stub___$ac_func
  10682. choke me
  10683. #endif
  10684. int
  10685. main ()
  10686. {
  10687. return $ac_func ();
  10688. ;
  10689. return 0;
  10690. }
  10691. _ACEOF
  10692. rm -f conftest.$ac_objext conftest$ac_exeext
  10693. if { (ac_try="$ac_link"
  10694. case "(($ac_try" in
  10695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10696. *) ac_try_echo=$ac_try;;
  10697. esac
  10698. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10699. $as_echo "$ac_try_echo") >&5
  10700. (eval "$ac_link") 2>conftest.er1
  10701. ac_status=$?
  10702. grep -v '^ *+' conftest.er1 >conftest.err
  10703. rm -f conftest.er1
  10704. cat conftest.err >&5
  10705. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10706. (exit $ac_status); } && {
  10707. test -z "$ac_cxx_werror_flag" ||
  10708. test ! -s conftest.err
  10709. } && test -s conftest$ac_exeext && {
  10710. test "$cross_compiling" = yes ||
  10711. $as_test_x conftest$ac_exeext
  10712. }; then
  10713. eval "$as_ac_var=yes"
  10714. else
  10715. $as_echo "$as_me: failed program was:" >&5
  10716. sed 's/^/| /' conftest.$ac_ext >&5
  10717. eval "$as_ac_var=no"
  10718. fi
  10719. rm -rf conftest.dSYM
  10720. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10721. conftest$ac_exeext conftest.$ac_ext
  10722. fi
  10723. ac_res=`eval 'as_val=${'$as_ac_var'}
  10724. $as_echo "$as_val"'`
  10725. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10726. $as_echo "$ac_res" >&6; }
  10727. as_val=`eval 'as_val=${'$as_ac_var'}
  10728. $as_echo "$as_val"'`
  10729. if test "x$as_val" = x""yes; then
  10730. cat >>confdefs.h <<_ACEOF
  10731. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10732. _ACEOF
  10733. fi
  10734. done
  10735. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  10736. $as_echo_n "checking for working mmap... " >&6; }
  10737. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10738. $as_echo_n "(cached) " >&6
  10739. else
  10740. if test "$cross_compiling" = yes; then
  10741. ac_cv_func_mmap_fixed_mapped=no
  10742. else
  10743. cat >conftest.$ac_ext <<_ACEOF
  10744. /* confdefs.h. */
  10745. _ACEOF
  10746. cat confdefs.h >>conftest.$ac_ext
  10747. cat >>conftest.$ac_ext <<_ACEOF
  10748. /* end confdefs.h. */
  10749. $ac_includes_default
  10750. /* malloc might have been renamed as rpl_malloc. */
  10751. #undef malloc
  10752. /* Thanks to Mike Haertel and Jim Avera for this test.
  10753. Here is a matrix of mmap possibilities:
  10754. mmap private not fixed
  10755. mmap private fixed at somewhere currently unmapped
  10756. mmap private fixed at somewhere already mapped
  10757. mmap shared not fixed
  10758. mmap shared fixed at somewhere currently unmapped
  10759. mmap shared fixed at somewhere already mapped
  10760. For private mappings, we should verify that changes cannot be read()
  10761. back from the file, nor mmap's back from the file at a different
  10762. address. (There have been systems where private was not correctly
  10763. implemented like the infamous i386 svr4.0, and systems where the
  10764. VM page cache was not coherent with the file system buffer cache
  10765. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10766. For shared mappings, we should conversely verify that changes get
  10767. propagated back to all the places they're supposed to be.
  10768. Grep wants private fixed already mapped.
  10769. The main things grep needs to know about mmap are:
  10770. * does it exist and is it safe to write into the mmap'd area
  10771. * how to use it (BSD variants) */
  10772. #include <fcntl.h>
  10773. #include <sys/mman.h>
  10774. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10775. char *malloc ();
  10776. #endif
  10777. /* This mess was copied from the GNU getpagesize.h. */
  10778. #ifndef HAVE_GETPAGESIZE
  10779. /* Assume that all systems that can run configure have sys/param.h. */
  10780. # ifndef HAVE_SYS_PARAM_H
  10781. # define HAVE_SYS_PARAM_H 1
  10782. # endif
  10783. # ifdef _SC_PAGESIZE
  10784. # define getpagesize() sysconf(_SC_PAGESIZE)
  10785. # else /* no _SC_PAGESIZE */
  10786. # ifdef HAVE_SYS_PARAM_H
  10787. # include <sys/param.h>
  10788. # ifdef EXEC_PAGESIZE
  10789. # define getpagesize() EXEC_PAGESIZE
  10790. # else /* no EXEC_PAGESIZE */
  10791. # ifdef NBPG
  10792. # define getpagesize() NBPG * CLSIZE
  10793. # ifndef CLSIZE
  10794. # define CLSIZE 1
  10795. # endif /* no CLSIZE */
  10796. # else /* no NBPG */
  10797. # ifdef NBPC
  10798. # define getpagesize() NBPC
  10799. # else /* no NBPC */
  10800. # ifdef PAGESIZE
  10801. # define getpagesize() PAGESIZE
  10802. # endif /* PAGESIZE */
  10803. # endif /* no NBPC */
  10804. # endif /* no NBPG */
  10805. # endif /* no EXEC_PAGESIZE */
  10806. # else /* no HAVE_SYS_PARAM_H */
  10807. # define getpagesize() 8192 /* punt totally */
  10808. # endif /* no HAVE_SYS_PARAM_H */
  10809. # endif /* no _SC_PAGESIZE */
  10810. #endif /* no HAVE_GETPAGESIZE */
  10811. int
  10812. main ()
  10813. {
  10814. char *data, *data2, *data3;
  10815. int i, pagesize;
  10816. int fd;
  10817. pagesize = getpagesize ();
  10818. /* First, make a file with some known garbage in it. */
  10819. data = (char *) malloc (pagesize);
  10820. if (!data)
  10821. return 1;
  10822. for (i = 0; i < pagesize; ++i)
  10823. *(data + i) = rand ();
  10824. umask (0);
  10825. fd = creat ("conftest.mmap", 0600);
  10826. if (fd < 0)
  10827. return 1;
  10828. if (write (fd, data, pagesize) != pagesize)
  10829. return 1;
  10830. close (fd);
  10831. /* Next, try to mmap the file at a fixed address which already has
  10832. something else allocated at it. If we can, also make sure that
  10833. we see the same garbage. */
  10834. fd = open ("conftest.mmap", O_RDWR);
  10835. if (fd < 0)
  10836. return 1;
  10837. data2 = (char *) malloc (2 * pagesize);
  10838. if (!data2)
  10839. return 1;
  10840. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10841. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10842. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10843. return 1;
  10844. for (i = 0; i < pagesize; ++i)
  10845. if (*(data + i) != *(data2 + i))
  10846. return 1;
  10847. /* Finally, make sure that changes to the mapped area do not
  10848. percolate back to the file as seen by read(). (This is a bug on
  10849. some variants of i386 svr4.0.) */
  10850. for (i = 0; i < pagesize; ++i)
  10851. *(data2 + i) = *(data2 + i) + 1;
  10852. data3 = (char *) malloc (pagesize);
  10853. if (!data3)
  10854. return 1;
  10855. if (read (fd, data3, pagesize) != pagesize)
  10856. return 1;
  10857. for (i = 0; i < pagesize; ++i)
  10858. if (*(data + i) != *(data3 + i))
  10859. return 1;
  10860. close (fd);
  10861. return 0;
  10862. }
  10863. _ACEOF
  10864. rm -f conftest$ac_exeext
  10865. if { (ac_try="$ac_link"
  10866. case "(($ac_try" in
  10867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10868. *) ac_try_echo=$ac_try;;
  10869. esac
  10870. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10871. $as_echo "$ac_try_echo") >&5
  10872. (eval "$ac_link") 2>&5
  10873. ac_status=$?
  10874. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10875. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10876. { (case "(($ac_try" in
  10877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10878. *) ac_try_echo=$ac_try;;
  10879. esac
  10880. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10881. $as_echo "$ac_try_echo") >&5
  10882. (eval "$ac_try") 2>&5
  10883. ac_status=$?
  10884. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10885. (exit $ac_status); }; }; then
  10886. ac_cv_func_mmap_fixed_mapped=yes
  10887. else
  10888. $as_echo "$as_me: program exited with status $ac_status" >&5
  10889. $as_echo "$as_me: failed program was:" >&5
  10890. sed 's/^/| /' conftest.$ac_ext >&5
  10891. ( exit $ac_status )
  10892. ac_cv_func_mmap_fixed_mapped=no
  10893. fi
  10894. rm -rf conftest.dSYM
  10895. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10896. fi
  10897. fi
  10898. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10899. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  10900. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10901. cat >>confdefs.h <<\_ACEOF
  10902. #define HAVE_MMAP 1
  10903. _ACEOF
  10904. fi
  10905. rm -f conftest.mmap
  10906. { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  10907. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  10908. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  10909. $as_echo_n "(cached) " >&6
  10910. else
  10911. gt_cv_int_divbyzero_sigfpe=
  10912. case "$host_os" in
  10913. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  10914. # On MacOS X 10.2 or newer, just assume the same as when cross-
  10915. # compiling. If we were to perform the real test, 1 Crash Report
  10916. # dialog window would pop up.
  10917. case "$host_cpu" in
  10918. i[34567]86 | x86_64)
  10919. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  10920. esac
  10921. ;;
  10922. esac
  10923. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  10924. if test "$cross_compiling" = yes; then
  10925. # Guess based on the CPU.
  10926. case "$host_cpu" in
  10927. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  10928. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  10929. *)
  10930. gt_cv_int_divbyzero_sigfpe="guessing no";;
  10931. esac
  10932. else
  10933. cat >conftest.$ac_ext <<_ACEOF
  10934. /* confdefs.h. */
  10935. _ACEOF
  10936. cat confdefs.h >>conftest.$ac_ext
  10937. cat >>conftest.$ac_ext <<_ACEOF
  10938. /* end confdefs.h. */
  10939. #include <stdlib.h>
  10940. #include <signal.h>
  10941. static void
  10942. sigfpe_handler (int sig)
  10943. {
  10944. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  10945. exit (sig != SIGFPE);
  10946. }
  10947. int x = 1;
  10948. int y = 0;
  10949. int z;
  10950. int nan;
  10951. int main ()
  10952. {
  10953. signal (SIGFPE, sigfpe_handler);
  10954. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  10955. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  10956. signal (SIGTRAP, sigfpe_handler);
  10957. #endif
  10958. /* Linux/SPARC yields signal SIGILL. */
  10959. #if defined (__sparc__) && defined (__linux__)
  10960. signal (SIGILL, sigfpe_handler);
  10961. #endif
  10962. z = x / y;
  10963. nan = y / y;
  10964. exit (1);
  10965. }
  10966. _ACEOF
  10967. rm -f conftest$ac_exeext
  10968. if { (ac_try="$ac_link"
  10969. case "(($ac_try" in
  10970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10971. *) ac_try_echo=$ac_try;;
  10972. esac
  10973. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10974. $as_echo "$ac_try_echo") >&5
  10975. (eval "$ac_link") 2>&5
  10976. ac_status=$?
  10977. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10978. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10979. { (case "(($ac_try" in
  10980. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10981. *) ac_try_echo=$ac_try;;
  10982. esac
  10983. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10984. $as_echo "$ac_try_echo") >&5
  10985. (eval "$ac_try") 2>&5
  10986. ac_status=$?
  10987. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10988. (exit $ac_status); }; }; then
  10989. gt_cv_int_divbyzero_sigfpe=yes
  10990. else
  10991. $as_echo "$as_me: program exited with status $ac_status" >&5
  10992. $as_echo "$as_me: failed program was:" >&5
  10993. sed 's/^/| /' conftest.$ac_ext >&5
  10994. ( exit $ac_status )
  10995. gt_cv_int_divbyzero_sigfpe=no
  10996. fi
  10997. rm -rf conftest.dSYM
  10998. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10999. fi
  11000. fi
  11001. fi
  11002. { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  11003. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  11004. case "$gt_cv_int_divbyzero_sigfpe" in
  11005. *yes) value=1;;
  11006. *) value=0;;
  11007. esac
  11008. cat >>confdefs.h <<_ACEOF
  11009. #define INTDIV0_RAISES_SIGFPE $value
  11010. _ACEOF
  11011. { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
  11012. $as_echo_n "checking for inttypes.h... " >&6; }
  11013. if test "${gl_cv_header_inttypes_h+set}" = set; then
  11014. $as_echo_n "(cached) " >&6
  11015. else
  11016. cat >conftest.$ac_ext <<_ACEOF
  11017. /* confdefs.h. */
  11018. _ACEOF
  11019. cat confdefs.h >>conftest.$ac_ext
  11020. cat >>conftest.$ac_ext <<_ACEOF
  11021. /* end confdefs.h. */
  11022. #include <sys/types.h>
  11023. #include <inttypes.h>
  11024. int
  11025. main ()
  11026. {
  11027. uintmax_t i = (uintmax_t) -1; return !i;
  11028. ;
  11029. return 0;
  11030. }
  11031. _ACEOF
  11032. rm -f conftest.$ac_objext
  11033. if { (ac_try="$ac_compile"
  11034. case "(($ac_try" in
  11035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11036. *) ac_try_echo=$ac_try;;
  11037. esac
  11038. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11039. $as_echo "$ac_try_echo") >&5
  11040. (eval "$ac_compile") 2>conftest.er1
  11041. ac_status=$?
  11042. grep -v '^ *+' conftest.er1 >conftest.err
  11043. rm -f conftest.er1
  11044. cat conftest.err >&5
  11045. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11046. (exit $ac_status); } && {
  11047. test -z "$ac_cxx_werror_flag" ||
  11048. test ! -s conftest.err
  11049. } && test -s conftest.$ac_objext; then
  11050. gl_cv_header_inttypes_h=yes
  11051. else
  11052. $as_echo "$as_me: failed program was:" >&5
  11053. sed 's/^/| /' conftest.$ac_ext >&5
  11054. gl_cv_header_inttypes_h=no
  11055. fi
  11056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11057. fi
  11058. { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  11059. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  11060. if test $gl_cv_header_inttypes_h = yes; then
  11061. cat >>confdefs.h <<_ACEOF
  11062. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  11063. _ACEOF
  11064. fi
  11065. { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  11066. $as_echo_n "checking for unsigned long long int... " >&6; }
  11067. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  11068. $as_echo_n "(cached) " >&6
  11069. else
  11070. cat >conftest.$ac_ext <<_ACEOF
  11071. /* confdefs.h. */
  11072. _ACEOF
  11073. cat confdefs.h >>conftest.$ac_ext
  11074. cat >>conftest.$ac_ext <<_ACEOF
  11075. /* end confdefs.h. */
  11076. /* Test preprocessor. */
  11077. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  11078. error in preprocessor;
  11079. #endif
  11080. #if ! (18446744073709551615ULL <= -1ull)
  11081. error in preprocessor;
  11082. #endif
  11083. /* Test literals. */
  11084. long long int ll = 9223372036854775807ll;
  11085. long long int nll = -9223372036854775807LL;
  11086. unsigned long long int ull = 18446744073709551615ULL;
  11087. /* Test constant expressions. */
  11088. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  11089. ? 1 : -1)];
  11090. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  11091. ? 1 : -1)];
  11092. int i = 63;
  11093. int
  11094. main ()
  11095. {
  11096. /* Test availability of runtime routines for shift and division. */
  11097. long long int llmax = 9223372036854775807ll;
  11098. unsigned long long int ullmax = 18446744073709551615ull;
  11099. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  11100. | (llmax / ll) | (llmax % ll)
  11101. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  11102. | (ullmax / ull) | (ullmax % ull));
  11103. ;
  11104. return 0;
  11105. }
  11106. _ACEOF
  11107. rm -f conftest.$ac_objext conftest$ac_exeext
  11108. if { (ac_try="$ac_link"
  11109. case "(($ac_try" in
  11110. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11111. *) ac_try_echo=$ac_try;;
  11112. esac
  11113. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11114. $as_echo "$ac_try_echo") >&5
  11115. (eval "$ac_link") 2>conftest.er1
  11116. ac_status=$?
  11117. grep -v '^ *+' conftest.er1 >conftest.err
  11118. rm -f conftest.er1
  11119. cat conftest.err >&5
  11120. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11121. (exit $ac_status); } && {
  11122. test -z "$ac_cxx_werror_flag" ||
  11123. test ! -s conftest.err
  11124. } && test -s conftest$ac_exeext && {
  11125. test "$cross_compiling" = yes ||
  11126. $as_test_x conftest$ac_exeext
  11127. }; then
  11128. ac_cv_type_unsigned_long_long_int=yes
  11129. else
  11130. $as_echo "$as_me: failed program was:" >&5
  11131. sed 's/^/| /' conftest.$ac_ext >&5
  11132. ac_cv_type_unsigned_long_long_int=no
  11133. fi
  11134. rm -rf conftest.dSYM
  11135. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11136. conftest$ac_exeext conftest.$ac_ext
  11137. fi
  11138. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  11139. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  11140. if test $ac_cv_type_unsigned_long_long_int = yes; then
  11141. cat >>confdefs.h <<\_ACEOF
  11142. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  11143. _ACEOF
  11144. fi
  11145. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  11146. test $ac_cv_type_unsigned_long_long_int = yes \
  11147. && ac_type='unsigned long long' \
  11148. || ac_type='unsigned long'
  11149. cat >>confdefs.h <<_ACEOF
  11150. #define uintmax_t $ac_type
  11151. _ACEOF
  11152. else
  11153. cat >>confdefs.h <<\_ACEOF
  11154. #define HAVE_UINTMAX_T 1
  11155. _ACEOF
  11156. fi
  11157. for ac_header in inttypes.h
  11158. do
  11159. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11160. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11161. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11162. $as_echo_n "checking for $ac_header... " >&6; }
  11163. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11164. $as_echo_n "(cached) " >&6
  11165. fi
  11166. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11167. $as_echo "$as_val"'`
  11168. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11169. $as_echo "$ac_res" >&6; }
  11170. else
  11171. # Is the header compilable?
  11172. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11173. $as_echo_n "checking $ac_header usability... " >&6; }
  11174. cat >conftest.$ac_ext <<_ACEOF
  11175. /* confdefs.h. */
  11176. _ACEOF
  11177. cat confdefs.h >>conftest.$ac_ext
  11178. cat >>conftest.$ac_ext <<_ACEOF
  11179. /* end confdefs.h. */
  11180. $ac_includes_default
  11181. #include <$ac_header>
  11182. _ACEOF
  11183. rm -f conftest.$ac_objext
  11184. if { (ac_try="$ac_compile"
  11185. case "(($ac_try" in
  11186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11187. *) ac_try_echo=$ac_try;;
  11188. esac
  11189. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11190. $as_echo "$ac_try_echo") >&5
  11191. (eval "$ac_compile") 2>conftest.er1
  11192. ac_status=$?
  11193. grep -v '^ *+' conftest.er1 >conftest.err
  11194. rm -f conftest.er1
  11195. cat conftest.err >&5
  11196. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11197. (exit $ac_status); } && {
  11198. test -z "$ac_cxx_werror_flag" ||
  11199. test ! -s conftest.err
  11200. } && test -s conftest.$ac_objext; then
  11201. ac_header_compiler=yes
  11202. else
  11203. $as_echo "$as_me: failed program was:" >&5
  11204. sed 's/^/| /' conftest.$ac_ext >&5
  11205. ac_header_compiler=no
  11206. fi
  11207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11208. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11209. $as_echo "$ac_header_compiler" >&6; }
  11210. # Is the header present?
  11211. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11212. $as_echo_n "checking $ac_header presence... " >&6; }
  11213. cat >conftest.$ac_ext <<_ACEOF
  11214. /* confdefs.h. */
  11215. _ACEOF
  11216. cat confdefs.h >>conftest.$ac_ext
  11217. cat >>conftest.$ac_ext <<_ACEOF
  11218. /* end confdefs.h. */
  11219. #include <$ac_header>
  11220. _ACEOF
  11221. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11222. case "(($ac_try" in
  11223. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11224. *) ac_try_echo=$ac_try;;
  11225. esac
  11226. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11227. $as_echo "$ac_try_echo") >&5
  11228. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11229. ac_status=$?
  11230. grep -v '^ *+' conftest.er1 >conftest.err
  11231. rm -f conftest.er1
  11232. cat conftest.err >&5
  11233. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11234. (exit $ac_status); } >/dev/null && {
  11235. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11236. test ! -s conftest.err
  11237. }; then
  11238. ac_header_preproc=yes
  11239. else
  11240. $as_echo "$as_me: failed program was:" >&5
  11241. sed 's/^/| /' conftest.$ac_ext >&5
  11242. ac_header_preproc=no
  11243. fi
  11244. rm -f conftest.err conftest.$ac_ext
  11245. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11246. $as_echo "$ac_header_preproc" >&6; }
  11247. # So? What about this header?
  11248. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11249. yes:no: )
  11250. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11251. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11252. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11253. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11254. ac_header_preproc=yes
  11255. ;;
  11256. no:yes:* )
  11257. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11258. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11259. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11260. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11261. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11262. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11263. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11264. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11265. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11266. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11267. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11268. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11269. ( cat <<\_ASBOX
  11270. ## ----------------------------------------------- ##
  11271. ## Report this to t-tujikawa@users.sourceforge.net ##
  11272. ## ----------------------------------------------- ##
  11273. _ASBOX
  11274. ) | sed "s/^/$as_me: WARNING: /" >&2
  11275. ;;
  11276. esac
  11277. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11278. $as_echo_n "checking for $ac_header... " >&6; }
  11279. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11280. $as_echo_n "(cached) " >&6
  11281. else
  11282. eval "$as_ac_Header=\$ac_header_preproc"
  11283. fi
  11284. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11285. $as_echo "$as_val"'`
  11286. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11287. $as_echo "$ac_res" >&6; }
  11288. fi
  11289. as_val=`eval 'as_val=${'$as_ac_Header'}
  11290. $as_echo "$as_val"'`
  11291. if test "x$as_val" = x""yes; then
  11292. cat >>confdefs.h <<_ACEOF
  11293. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11294. _ACEOF
  11295. fi
  11296. done
  11297. if test $ac_cv_header_inttypes_h = yes; then
  11298. { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  11299. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  11300. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  11301. $as_echo_n "(cached) " >&6
  11302. else
  11303. cat >conftest.$ac_ext <<_ACEOF
  11304. /* confdefs.h. */
  11305. _ACEOF
  11306. cat confdefs.h >>conftest.$ac_ext
  11307. cat >>conftest.$ac_ext <<_ACEOF
  11308. /* end confdefs.h. */
  11309. #include <inttypes.h>
  11310. #ifdef PRId32
  11311. char *p = PRId32;
  11312. #endif
  11313. int
  11314. main ()
  11315. {
  11316. ;
  11317. return 0;
  11318. }
  11319. _ACEOF
  11320. rm -f conftest.$ac_objext
  11321. if { (ac_try="$ac_compile"
  11322. case "(($ac_try" in
  11323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11324. *) ac_try_echo=$ac_try;;
  11325. esac
  11326. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11327. $as_echo "$ac_try_echo") >&5
  11328. (eval "$ac_compile") 2>conftest.er1
  11329. ac_status=$?
  11330. grep -v '^ *+' conftest.er1 >conftest.err
  11331. rm -f conftest.er1
  11332. cat conftest.err >&5
  11333. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11334. (exit $ac_status); } && {
  11335. test -z "$ac_cxx_werror_flag" ||
  11336. test ! -s conftest.err
  11337. } && test -s conftest.$ac_objext; then
  11338. gt_cv_inttypes_pri_broken=no
  11339. else
  11340. $as_echo "$as_me: failed program was:" >&5
  11341. sed 's/^/| /' conftest.$ac_ext >&5
  11342. gt_cv_inttypes_pri_broken=yes
  11343. fi
  11344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11345. fi
  11346. { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  11347. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  11348. fi
  11349. if test "$gt_cv_inttypes_pri_broken" = yes; then
  11350. cat >>confdefs.h <<_ACEOF
  11351. #define PRI_MACROS_BROKEN 1
  11352. _ACEOF
  11353. PRI_MACROS_BROKEN=1
  11354. else
  11355. PRI_MACROS_BROKEN=0
  11356. fi
  11357. # Check whether --enable-threads was given.
  11358. if test "${enable_threads+set}" = set; then
  11359. enableval=$enable_threads; gl_use_threads=$enableval
  11360. else
  11361. case "$host_os" in
  11362. osf*) gl_use_threads=no ;;
  11363. *) gl_use_threads=yes ;;
  11364. esac
  11365. fi
  11366. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  11367. # For using <pthread.h>:
  11368. case "$host_os" in
  11369. osf*)
  11370. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  11371. # groks <pthread.h>. cc also understands the flag -pthread, but
  11372. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  11373. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  11374. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  11375. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  11376. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  11377. ;;
  11378. esac
  11379. # Some systems optimize for single-threaded programs by default, and
  11380. # need special flags to disable these optimizations. For example, the
  11381. # definition of 'errno' in <errno.h>.
  11382. case "$host_os" in
  11383. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  11384. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  11385. esac
  11386. fi
  11387. if test "X$prefix" = "XNONE"; then
  11388. acl_final_prefix="$ac_default_prefix"
  11389. else
  11390. acl_final_prefix="$prefix"
  11391. fi
  11392. if test "X$exec_prefix" = "XNONE"; then
  11393. acl_final_exec_prefix='${prefix}'
  11394. else
  11395. acl_final_exec_prefix="$exec_prefix"
  11396. fi
  11397. acl_save_prefix="$prefix"
  11398. prefix="$acl_final_prefix"
  11399. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  11400. prefix="$acl_save_prefix"
  11401. # Check whether --with-gnu-ld was given.
  11402. if test "${with_gnu_ld+set}" = set; then
  11403. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11404. else
  11405. with_gnu_ld=no
  11406. fi
  11407. # Prepare PATH_SEPARATOR.
  11408. # The user is always right.
  11409. if test "${PATH_SEPARATOR+set}" != set; then
  11410. echo "#! /bin/sh" >conf$$.sh
  11411. echo "exit 0" >>conf$$.sh
  11412. chmod +x conf$$.sh
  11413. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11414. PATH_SEPARATOR=';'
  11415. else
  11416. PATH_SEPARATOR=:
  11417. fi
  11418. rm -f conf$$.sh
  11419. fi
  11420. ac_prog=ld
  11421. if test "$GCC" = yes; then
  11422. # Check if gcc -print-prog-name=ld gives a path.
  11423. { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  11424. $as_echo_n "checking for ld used by GCC... " >&6; }
  11425. case $host in
  11426. *-*-mingw*)
  11427. # gcc leaves a trailing carriage return which upsets mingw
  11428. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11429. *)
  11430. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11431. esac
  11432. case $ac_prog in
  11433. # Accept absolute paths.
  11434. [\\/]* | [A-Za-z]:[\\/]*)
  11435. re_direlt='/[^/][^/]*/\.\./'
  11436. # Canonicalize the path of ld
  11437. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  11438. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  11439. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  11440. done
  11441. test -z "$LD" && LD="$ac_prog"
  11442. ;;
  11443. "")
  11444. # If it fails, then pretend we aren't using GCC.
  11445. ac_prog=ld
  11446. ;;
  11447. *)
  11448. # If it is relative, then search for the first ld in PATH.
  11449. with_gnu_ld=unknown
  11450. ;;
  11451. esac
  11452. elif test "$with_gnu_ld" = yes; then
  11453. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  11454. $as_echo_n "checking for GNU ld... " >&6; }
  11455. else
  11456. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  11457. $as_echo_n "checking for non-GNU ld... " >&6; }
  11458. fi
  11459. if test "${acl_cv_path_LD+set}" = set; then
  11460. $as_echo_n "(cached) " >&6
  11461. else
  11462. if test -z "$LD"; then
  11463. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  11464. for ac_dir in $PATH; do
  11465. test -z "$ac_dir" && ac_dir=.
  11466. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11467. acl_cv_path_LD="$ac_dir/$ac_prog"
  11468. # Check to see if the program is GNU ld. I'd rather use --version,
  11469. # but apparently some GNU ld's only accept -v.
  11470. # Break only if it was the GNU/non-GNU ld that we prefer.
  11471. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  11472. *GNU* | *'with BFD'*)
  11473. test "$with_gnu_ld" != no && break ;;
  11474. *)
  11475. test "$with_gnu_ld" != yes && break ;;
  11476. esac
  11477. fi
  11478. done
  11479. IFS="$ac_save_ifs"
  11480. else
  11481. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  11482. fi
  11483. fi
  11484. LD="$acl_cv_path_LD"
  11485. if test -n "$LD"; then
  11486. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  11487. $as_echo "$LD" >&6; }
  11488. else
  11489. { $as_echo "$as_me:$LINENO: result: no" >&5
  11490. $as_echo "no" >&6; }
  11491. fi
  11492. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  11493. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  11494. { (exit 1); exit 1; }; }
  11495. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  11496. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11497. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  11498. $as_echo_n "(cached) " >&6
  11499. else
  11500. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  11501. case `$LD -v 2>&1 </dev/null` in
  11502. *GNU* | *'with BFD'*)
  11503. acl_cv_prog_gnu_ld=yes ;;
  11504. *)
  11505. acl_cv_prog_gnu_ld=no ;;
  11506. esac
  11507. fi
  11508. { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  11509. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  11510. with_gnu_ld=$acl_cv_prog_gnu_ld
  11511. { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  11512. $as_echo_n "checking for shared library run path origin... " >&6; }
  11513. if test "${acl_cv_rpath+set}" = set; then
  11514. $as_echo_n "(cached) " >&6
  11515. else
  11516. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  11517. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  11518. . ./conftest.sh
  11519. rm -f ./conftest.sh
  11520. acl_cv_rpath=done
  11521. fi
  11522. { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  11523. $as_echo "$acl_cv_rpath" >&6; }
  11524. wl="$acl_cv_wl"
  11525. acl_libext="$acl_cv_libext"
  11526. acl_shlibext="$acl_cv_shlibext"
  11527. acl_libname_spec="$acl_cv_libname_spec"
  11528. acl_library_names_spec="$acl_cv_library_names_spec"
  11529. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  11530. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  11531. acl_hardcode_direct="$acl_cv_hardcode_direct"
  11532. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  11533. # Check whether --enable-rpath was given.
  11534. if test "${enable_rpath+set}" = set; then
  11535. enableval=$enable_rpath; :
  11536. else
  11537. enable_rpath=yes
  11538. fi
  11539. acl_libdirstem=lib
  11540. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  11541. if test -n "$searchpath"; then
  11542. acl_save_IFS="${IFS= }"; IFS=":"
  11543. for searchdir in $searchpath; do
  11544. if test -d "$searchdir"; then
  11545. case "$searchdir" in
  11546. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  11547. *) searchdir=`cd "$searchdir" && pwd`
  11548. case "$searchdir" in
  11549. */lib64 ) acl_libdirstem=lib64 ;;
  11550. esac ;;
  11551. esac
  11552. fi
  11553. done
  11554. IFS="$acl_save_IFS"
  11555. fi
  11556. gl_threads_api=none
  11557. LIBTHREAD=
  11558. LTLIBTHREAD=
  11559. LIBMULTITHREAD=
  11560. LTLIBMULTITHREAD=
  11561. if test "$gl_use_threads" != no; then
  11562. { $as_echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  11563. $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
  11564. gl_have_weak=no
  11565. cat >conftest.$ac_ext <<_ACEOF
  11566. /* confdefs.h. */
  11567. _ACEOF
  11568. cat confdefs.h >>conftest.$ac_ext
  11569. cat >>conftest.$ac_ext <<_ACEOF
  11570. /* end confdefs.h. */
  11571. extern void xyzzy ();
  11572. #pragma weak xyzzy
  11573. int
  11574. main ()
  11575. {
  11576. xyzzy();
  11577. ;
  11578. return 0;
  11579. }
  11580. _ACEOF
  11581. rm -f conftest.$ac_objext conftest$ac_exeext
  11582. if { (ac_try="$ac_link"
  11583. case "(($ac_try" in
  11584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11585. *) ac_try_echo=$ac_try;;
  11586. esac
  11587. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11588. $as_echo "$ac_try_echo") >&5
  11589. (eval "$ac_link") 2>conftest.er1
  11590. ac_status=$?
  11591. grep -v '^ *+' conftest.er1 >conftest.err
  11592. rm -f conftest.er1
  11593. cat conftest.err >&5
  11594. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11595. (exit $ac_status); } && {
  11596. test -z "$ac_cxx_werror_flag" ||
  11597. test ! -s conftest.err
  11598. } && test -s conftest$ac_exeext && {
  11599. test "$cross_compiling" = yes ||
  11600. $as_test_x conftest$ac_exeext
  11601. }; then
  11602. gl_have_weak=yes
  11603. else
  11604. $as_echo "$as_me: failed program was:" >&5
  11605. sed 's/^/| /' conftest.$ac_ext >&5
  11606. fi
  11607. rm -rf conftest.dSYM
  11608. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11609. conftest$ac_exeext conftest.$ac_ext
  11610. { $as_echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  11611. $as_echo "$gl_have_weak" >&6; }
  11612. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  11613. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  11614. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  11615. if test "${ac_cv_header_pthread_h+set}" = set; then
  11616. { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
  11617. $as_echo_n "checking for pthread.h... " >&6; }
  11618. if test "${ac_cv_header_pthread_h+set}" = set; then
  11619. $as_echo_n "(cached) " >&6
  11620. fi
  11621. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  11622. $as_echo "$ac_cv_header_pthread_h" >&6; }
  11623. else
  11624. # Is the header compilable?
  11625. { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
  11626. $as_echo_n "checking pthread.h usability... " >&6; }
  11627. cat >conftest.$ac_ext <<_ACEOF
  11628. /* confdefs.h. */
  11629. _ACEOF
  11630. cat confdefs.h >>conftest.$ac_ext
  11631. cat >>conftest.$ac_ext <<_ACEOF
  11632. /* end confdefs.h. */
  11633. $ac_includes_default
  11634. #include <pthread.h>
  11635. _ACEOF
  11636. rm -f conftest.$ac_objext
  11637. if { (ac_try="$ac_compile"
  11638. case "(($ac_try" in
  11639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11640. *) ac_try_echo=$ac_try;;
  11641. esac
  11642. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11643. $as_echo "$ac_try_echo") >&5
  11644. (eval "$ac_compile") 2>conftest.er1
  11645. ac_status=$?
  11646. grep -v '^ *+' conftest.er1 >conftest.err
  11647. rm -f conftest.er1
  11648. cat conftest.err >&5
  11649. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11650. (exit $ac_status); } && {
  11651. test -z "$ac_cxx_werror_flag" ||
  11652. test ! -s conftest.err
  11653. } && test -s conftest.$ac_objext; then
  11654. ac_header_compiler=yes
  11655. else
  11656. $as_echo "$as_me: failed program was:" >&5
  11657. sed 's/^/| /' conftest.$ac_ext >&5
  11658. ac_header_compiler=no
  11659. fi
  11660. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11661. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11662. $as_echo "$ac_header_compiler" >&6; }
  11663. # Is the header present?
  11664. { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
  11665. $as_echo_n "checking pthread.h presence... " >&6; }
  11666. cat >conftest.$ac_ext <<_ACEOF
  11667. /* confdefs.h. */
  11668. _ACEOF
  11669. cat confdefs.h >>conftest.$ac_ext
  11670. cat >>conftest.$ac_ext <<_ACEOF
  11671. /* end confdefs.h. */
  11672. #include <pthread.h>
  11673. _ACEOF
  11674. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11675. case "(($ac_try" in
  11676. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11677. *) ac_try_echo=$ac_try;;
  11678. esac
  11679. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11680. $as_echo "$ac_try_echo") >&5
  11681. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11682. ac_status=$?
  11683. grep -v '^ *+' conftest.er1 >conftest.err
  11684. rm -f conftest.er1
  11685. cat conftest.err >&5
  11686. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11687. (exit $ac_status); } >/dev/null && {
  11688. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11689. test ! -s conftest.err
  11690. }; then
  11691. ac_header_preproc=yes
  11692. else
  11693. $as_echo "$as_me: failed program was:" >&5
  11694. sed 's/^/| /' conftest.$ac_ext >&5
  11695. ac_header_preproc=no
  11696. fi
  11697. rm -f conftest.err conftest.$ac_ext
  11698. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11699. $as_echo "$ac_header_preproc" >&6; }
  11700. # So? What about this header?
  11701. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11702. yes:no: )
  11703. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  11704. $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11705. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  11706. $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  11707. ac_header_preproc=yes
  11708. ;;
  11709. no:yes:* )
  11710. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  11711. $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  11712. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  11713. $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  11714. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  11715. $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  11716. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  11717. $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  11718. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  11719. $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  11720. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  11721. $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  11722. ( cat <<\_ASBOX
  11723. ## ----------------------------------------------- ##
  11724. ## Report this to t-tujikawa@users.sourceforge.net ##
  11725. ## ----------------------------------------------- ##
  11726. _ASBOX
  11727. ) | sed "s/^/$as_me: WARNING: /" >&2
  11728. ;;
  11729. esac
  11730. { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
  11731. $as_echo_n "checking for pthread.h... " >&6; }
  11732. if test "${ac_cv_header_pthread_h+set}" = set; then
  11733. $as_echo_n "(cached) " >&6
  11734. else
  11735. ac_cv_header_pthread_h=$ac_header_preproc
  11736. fi
  11737. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  11738. $as_echo "$ac_cv_header_pthread_h" >&6; }
  11739. fi
  11740. if test "x$ac_cv_header_pthread_h" = x""yes; then
  11741. gl_have_pthread_h=yes
  11742. else
  11743. gl_have_pthread_h=no
  11744. fi
  11745. if test "$gl_have_pthread_h" = yes; then
  11746. # Other possible tests:
  11747. # -lpthreads (FSU threads, PCthreads)
  11748. # -lgthreads
  11749. gl_have_pthread=
  11750. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  11751. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  11752. # the second one only in libpthread, and lock.c needs it.
  11753. cat >conftest.$ac_ext <<_ACEOF
  11754. /* confdefs.h. */
  11755. _ACEOF
  11756. cat confdefs.h >>conftest.$ac_ext
  11757. cat >>conftest.$ac_ext <<_ACEOF
  11758. /* end confdefs.h. */
  11759. #include <pthread.h>
  11760. int
  11761. main ()
  11762. {
  11763. pthread_mutex_lock((pthread_mutex_t*)0);
  11764. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  11765. ;
  11766. return 0;
  11767. }
  11768. _ACEOF
  11769. rm -f conftest.$ac_objext conftest$ac_exeext
  11770. if { (ac_try="$ac_link"
  11771. case "(($ac_try" in
  11772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11773. *) ac_try_echo=$ac_try;;
  11774. esac
  11775. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11776. $as_echo "$ac_try_echo") >&5
  11777. (eval "$ac_link") 2>conftest.er1
  11778. ac_status=$?
  11779. grep -v '^ *+' conftest.er1 >conftest.err
  11780. rm -f conftest.er1
  11781. cat conftest.err >&5
  11782. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11783. (exit $ac_status); } && {
  11784. test -z "$ac_cxx_werror_flag" ||
  11785. test ! -s conftest.err
  11786. } && test -s conftest$ac_exeext && {
  11787. test "$cross_compiling" = yes ||
  11788. $as_test_x conftest$ac_exeext
  11789. }; then
  11790. gl_have_pthread=yes
  11791. else
  11792. $as_echo "$as_me: failed program was:" >&5
  11793. sed 's/^/| /' conftest.$ac_ext >&5
  11794. fi
  11795. rm -rf conftest.dSYM
  11796. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11797. conftest$ac_exeext conftest.$ac_ext
  11798. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  11799. # since it is defined as a macro on OSF/1.)
  11800. if test -n "$gl_have_pthread"; then
  11801. # The program links fine without libpthread. But it may actually
  11802. # need to link with libpthread in order to create multiple threads.
  11803. { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  11804. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  11805. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  11806. $as_echo_n "(cached) " >&6
  11807. else
  11808. ac_check_lib_save_LIBS=$LIBS
  11809. LIBS="-lpthread $LIBS"
  11810. cat >conftest.$ac_ext <<_ACEOF
  11811. /* confdefs.h. */
  11812. _ACEOF
  11813. cat confdefs.h >>conftest.$ac_ext
  11814. cat >>conftest.$ac_ext <<_ACEOF
  11815. /* end confdefs.h. */
  11816. /* Override any GCC internal prototype to avoid an error.
  11817. Use char because int might match the return type of a GCC
  11818. builtin and then its argument prototype would still apply. */
  11819. #ifdef __cplusplus
  11820. extern "C"
  11821. #endif
  11822. char pthread_kill ();
  11823. int
  11824. main ()
  11825. {
  11826. return pthread_kill ();
  11827. ;
  11828. return 0;
  11829. }
  11830. _ACEOF
  11831. rm -f conftest.$ac_objext conftest$ac_exeext
  11832. if { (ac_try="$ac_link"
  11833. case "(($ac_try" in
  11834. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11835. *) ac_try_echo=$ac_try;;
  11836. esac
  11837. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11838. $as_echo "$ac_try_echo") >&5
  11839. (eval "$ac_link") 2>conftest.er1
  11840. ac_status=$?
  11841. grep -v '^ *+' conftest.er1 >conftest.err
  11842. rm -f conftest.er1
  11843. cat conftest.err >&5
  11844. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11845. (exit $ac_status); } && {
  11846. test -z "$ac_cxx_werror_flag" ||
  11847. test ! -s conftest.err
  11848. } && test -s conftest$ac_exeext && {
  11849. test "$cross_compiling" = yes ||
  11850. $as_test_x conftest$ac_exeext
  11851. }; then
  11852. ac_cv_lib_pthread_pthread_kill=yes
  11853. else
  11854. $as_echo "$as_me: failed program was:" >&5
  11855. sed 's/^/| /' conftest.$ac_ext >&5
  11856. ac_cv_lib_pthread_pthread_kill=no
  11857. fi
  11858. rm -rf conftest.dSYM
  11859. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11860. conftest$ac_exeext conftest.$ac_ext
  11861. LIBS=$ac_check_lib_save_LIBS
  11862. fi
  11863. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  11864. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  11865. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
  11866. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  11867. # On Solaris and HP-UX, most pthread functions exist also in libc.
  11868. # Therefore pthread_in_use() needs to actually try to create a
  11869. # thread: pthread_create from libc will fail, whereas
  11870. # pthread_create will actually create a thread.
  11871. case "$host_os" in
  11872. solaris* | hpux*)
  11873. cat >>confdefs.h <<\_ACEOF
  11874. #define PTHREAD_IN_USE_DETECTION_HARD 1
  11875. _ACEOF
  11876. esac
  11877. fi
  11878. else
  11879. # Some library is needed. Try libpthread and libc_r.
  11880. { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  11881. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  11882. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  11883. $as_echo_n "(cached) " >&6
  11884. else
  11885. ac_check_lib_save_LIBS=$LIBS
  11886. LIBS="-lpthread $LIBS"
  11887. cat >conftest.$ac_ext <<_ACEOF
  11888. /* confdefs.h. */
  11889. _ACEOF
  11890. cat confdefs.h >>conftest.$ac_ext
  11891. cat >>conftest.$ac_ext <<_ACEOF
  11892. /* end confdefs.h. */
  11893. /* Override any GCC internal prototype to avoid an error.
  11894. Use char because int might match the return type of a GCC
  11895. builtin and then its argument prototype would still apply. */
  11896. #ifdef __cplusplus
  11897. extern "C"
  11898. #endif
  11899. char pthread_kill ();
  11900. int
  11901. main ()
  11902. {
  11903. return pthread_kill ();
  11904. ;
  11905. return 0;
  11906. }
  11907. _ACEOF
  11908. rm -f conftest.$ac_objext conftest$ac_exeext
  11909. if { (ac_try="$ac_link"
  11910. case "(($ac_try" in
  11911. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11912. *) ac_try_echo=$ac_try;;
  11913. esac
  11914. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11915. $as_echo "$ac_try_echo") >&5
  11916. (eval "$ac_link") 2>conftest.er1
  11917. ac_status=$?
  11918. grep -v '^ *+' conftest.er1 >conftest.err
  11919. rm -f conftest.er1
  11920. cat conftest.err >&5
  11921. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11922. (exit $ac_status); } && {
  11923. test -z "$ac_cxx_werror_flag" ||
  11924. test ! -s conftest.err
  11925. } && test -s conftest$ac_exeext && {
  11926. test "$cross_compiling" = yes ||
  11927. $as_test_x conftest$ac_exeext
  11928. }; then
  11929. ac_cv_lib_pthread_pthread_kill=yes
  11930. else
  11931. $as_echo "$as_me: failed program was:" >&5
  11932. sed 's/^/| /' conftest.$ac_ext >&5
  11933. ac_cv_lib_pthread_pthread_kill=no
  11934. fi
  11935. rm -rf conftest.dSYM
  11936. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11937. conftest$ac_exeext conftest.$ac_ext
  11938. LIBS=$ac_check_lib_save_LIBS
  11939. fi
  11940. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  11941. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  11942. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
  11943. gl_have_pthread=yes
  11944. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  11945. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  11946. fi
  11947. if test -z "$gl_have_pthread"; then
  11948. # For FreeBSD 4.
  11949. { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  11950. $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
  11951. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  11952. $as_echo_n "(cached) " >&6
  11953. else
  11954. ac_check_lib_save_LIBS=$LIBS
  11955. LIBS="-lc_r $LIBS"
  11956. cat >conftest.$ac_ext <<_ACEOF
  11957. /* confdefs.h. */
  11958. _ACEOF
  11959. cat confdefs.h >>conftest.$ac_ext
  11960. cat >>conftest.$ac_ext <<_ACEOF
  11961. /* end confdefs.h. */
  11962. /* Override any GCC internal prototype to avoid an error.
  11963. Use char because int might match the return type of a GCC
  11964. builtin and then its argument prototype would still apply. */
  11965. #ifdef __cplusplus
  11966. extern "C"
  11967. #endif
  11968. char pthread_kill ();
  11969. int
  11970. main ()
  11971. {
  11972. return pthread_kill ();
  11973. ;
  11974. return 0;
  11975. }
  11976. _ACEOF
  11977. rm -f conftest.$ac_objext conftest$ac_exeext
  11978. if { (ac_try="$ac_link"
  11979. case "(($ac_try" in
  11980. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11981. *) ac_try_echo=$ac_try;;
  11982. esac
  11983. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11984. $as_echo "$ac_try_echo") >&5
  11985. (eval "$ac_link") 2>conftest.er1
  11986. ac_status=$?
  11987. grep -v '^ *+' conftest.er1 >conftest.err
  11988. rm -f conftest.er1
  11989. cat conftest.err >&5
  11990. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11991. (exit $ac_status); } && {
  11992. test -z "$ac_cxx_werror_flag" ||
  11993. test ! -s conftest.err
  11994. } && test -s conftest$ac_exeext && {
  11995. test "$cross_compiling" = yes ||
  11996. $as_test_x conftest$ac_exeext
  11997. }; then
  11998. ac_cv_lib_c_r_pthread_kill=yes
  11999. else
  12000. $as_echo "$as_me: failed program was:" >&5
  12001. sed 's/^/| /' conftest.$ac_ext >&5
  12002. ac_cv_lib_c_r_pthread_kill=no
  12003. fi
  12004. rm -rf conftest.dSYM
  12005. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12006. conftest$ac_exeext conftest.$ac_ext
  12007. LIBS=$ac_check_lib_save_LIBS
  12008. fi
  12009. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  12010. $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
  12011. if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then
  12012. gl_have_pthread=yes
  12013. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  12014. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  12015. fi
  12016. fi
  12017. fi
  12018. if test -n "$gl_have_pthread"; then
  12019. gl_threads_api=posix
  12020. cat >>confdefs.h <<\_ACEOF
  12021. #define USE_POSIX_THREADS 1
  12022. _ACEOF
  12023. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  12024. if test $gl_have_weak = yes; then
  12025. cat >>confdefs.h <<\_ACEOF
  12026. #define USE_POSIX_THREADS_WEAK 1
  12027. _ACEOF
  12028. LIBTHREAD=
  12029. LTLIBTHREAD=
  12030. fi
  12031. fi
  12032. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  12033. # pthread_rwlock_* functions.
  12034. { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  12035. $as_echo_n "checking for pthread_rwlock_t... " >&6; }
  12036. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  12037. $as_echo_n "(cached) " >&6
  12038. else
  12039. ac_cv_type_pthread_rwlock_t=no
  12040. cat >conftest.$ac_ext <<_ACEOF
  12041. /* confdefs.h. */
  12042. _ACEOF
  12043. cat confdefs.h >>conftest.$ac_ext
  12044. cat >>conftest.$ac_ext <<_ACEOF
  12045. /* end confdefs.h. */
  12046. #include <pthread.h>
  12047. int
  12048. main ()
  12049. {
  12050. if (sizeof (pthread_rwlock_t))
  12051. return 0;
  12052. ;
  12053. return 0;
  12054. }
  12055. _ACEOF
  12056. rm -f conftest.$ac_objext
  12057. if { (ac_try="$ac_compile"
  12058. case "(($ac_try" in
  12059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12060. *) ac_try_echo=$ac_try;;
  12061. esac
  12062. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12063. $as_echo "$ac_try_echo") >&5
  12064. (eval "$ac_compile") 2>conftest.er1
  12065. ac_status=$?
  12066. grep -v '^ *+' conftest.er1 >conftest.err
  12067. rm -f conftest.er1
  12068. cat conftest.err >&5
  12069. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12070. (exit $ac_status); } && {
  12071. test -z "$ac_cxx_werror_flag" ||
  12072. test ! -s conftest.err
  12073. } && test -s conftest.$ac_objext; then
  12074. cat >conftest.$ac_ext <<_ACEOF
  12075. /* confdefs.h. */
  12076. _ACEOF
  12077. cat confdefs.h >>conftest.$ac_ext
  12078. cat >>conftest.$ac_ext <<_ACEOF
  12079. /* end confdefs.h. */
  12080. #include <pthread.h>
  12081. int
  12082. main ()
  12083. {
  12084. if (sizeof ((pthread_rwlock_t)))
  12085. return 0;
  12086. ;
  12087. return 0;
  12088. }
  12089. _ACEOF
  12090. rm -f conftest.$ac_objext
  12091. if { (ac_try="$ac_compile"
  12092. case "(($ac_try" in
  12093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12094. *) ac_try_echo=$ac_try;;
  12095. esac
  12096. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12097. $as_echo "$ac_try_echo") >&5
  12098. (eval "$ac_compile") 2>conftest.er1
  12099. ac_status=$?
  12100. grep -v '^ *+' conftest.er1 >conftest.err
  12101. rm -f conftest.er1
  12102. cat conftest.err >&5
  12103. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12104. (exit $ac_status); } && {
  12105. test -z "$ac_cxx_werror_flag" ||
  12106. test ! -s conftest.err
  12107. } && test -s conftest.$ac_objext; then
  12108. :
  12109. else
  12110. $as_echo "$as_me: failed program was:" >&5
  12111. sed 's/^/| /' conftest.$ac_ext >&5
  12112. ac_cv_type_pthread_rwlock_t=yes
  12113. fi
  12114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12115. else
  12116. $as_echo "$as_me: failed program was:" >&5
  12117. sed 's/^/| /' conftest.$ac_ext >&5
  12118. fi
  12119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12120. fi
  12121. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  12122. $as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
  12123. if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
  12124. cat >>confdefs.h <<\_ACEOF
  12125. #define HAVE_PTHREAD_RWLOCK 1
  12126. _ACEOF
  12127. fi
  12128. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  12129. cat >conftest.$ac_ext <<_ACEOF
  12130. /* confdefs.h. */
  12131. _ACEOF
  12132. cat confdefs.h >>conftest.$ac_ext
  12133. cat >>conftest.$ac_ext <<_ACEOF
  12134. /* end confdefs.h. */
  12135. #include <pthread.h>
  12136. int
  12137. main ()
  12138. {
  12139. #if __FreeBSD__ == 4
  12140. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  12141. #else
  12142. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  12143. return !x;
  12144. #endif
  12145. ;
  12146. return 0;
  12147. }
  12148. _ACEOF
  12149. rm -f conftest.$ac_objext
  12150. if { (ac_try="$ac_compile"
  12151. case "(($ac_try" in
  12152. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12153. *) ac_try_echo=$ac_try;;
  12154. esac
  12155. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12156. $as_echo "$ac_try_echo") >&5
  12157. (eval "$ac_compile") 2>conftest.er1
  12158. ac_status=$?
  12159. grep -v '^ *+' conftest.er1 >conftest.err
  12160. rm -f conftest.er1
  12161. cat conftest.err >&5
  12162. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12163. (exit $ac_status); } && {
  12164. test -z "$ac_cxx_werror_flag" ||
  12165. test ! -s conftest.err
  12166. } && test -s conftest.$ac_objext; then
  12167. cat >>confdefs.h <<\_ACEOF
  12168. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  12169. _ACEOF
  12170. else
  12171. $as_echo "$as_me: failed program was:" >&5
  12172. sed 's/^/| /' conftest.$ac_ext >&5
  12173. fi
  12174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12175. fi
  12176. fi
  12177. fi
  12178. if test -z "$gl_have_pthread"; then
  12179. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  12180. gl_have_solaristhread=
  12181. gl_save_LIBS="$LIBS"
  12182. LIBS="$LIBS -lthread"
  12183. cat >conftest.$ac_ext <<_ACEOF
  12184. /* confdefs.h. */
  12185. _ACEOF
  12186. cat confdefs.h >>conftest.$ac_ext
  12187. cat >>conftest.$ac_ext <<_ACEOF
  12188. /* end confdefs.h. */
  12189. #include <thread.h>
  12190. #include <synch.h>
  12191. int
  12192. main ()
  12193. {
  12194. thr_self();
  12195. ;
  12196. return 0;
  12197. }
  12198. _ACEOF
  12199. rm -f conftest.$ac_objext conftest$ac_exeext
  12200. if { (ac_try="$ac_link"
  12201. case "(($ac_try" in
  12202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12203. *) ac_try_echo=$ac_try;;
  12204. esac
  12205. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12206. $as_echo "$ac_try_echo") >&5
  12207. (eval "$ac_link") 2>conftest.er1
  12208. ac_status=$?
  12209. grep -v '^ *+' conftest.er1 >conftest.err
  12210. rm -f conftest.er1
  12211. cat conftest.err >&5
  12212. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12213. (exit $ac_status); } && {
  12214. test -z "$ac_cxx_werror_flag" ||
  12215. test ! -s conftest.err
  12216. } && test -s conftest$ac_exeext && {
  12217. test "$cross_compiling" = yes ||
  12218. $as_test_x conftest$ac_exeext
  12219. }; then
  12220. gl_have_solaristhread=yes
  12221. else
  12222. $as_echo "$as_me: failed program was:" >&5
  12223. sed 's/^/| /' conftest.$ac_ext >&5
  12224. fi
  12225. rm -rf conftest.dSYM
  12226. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12227. conftest$ac_exeext conftest.$ac_ext
  12228. LIBS="$gl_save_LIBS"
  12229. if test -n "$gl_have_solaristhread"; then
  12230. gl_threads_api=solaris
  12231. LIBTHREAD=-lthread
  12232. LTLIBTHREAD=-lthread
  12233. LIBMULTITHREAD="$LIBTHREAD"
  12234. LTLIBMULTITHREAD="$LTLIBTHREAD"
  12235. cat >>confdefs.h <<\_ACEOF
  12236. #define USE_SOLARIS_THREADS 1
  12237. _ACEOF
  12238. if test $gl_have_weak = yes; then
  12239. cat >>confdefs.h <<\_ACEOF
  12240. #define USE_SOLARIS_THREADS_WEAK 1
  12241. _ACEOF
  12242. LIBTHREAD=
  12243. LTLIBTHREAD=
  12244. fi
  12245. fi
  12246. fi
  12247. fi
  12248. if test "$gl_use_threads" = pth; then
  12249. gl_save_CPPFLAGS="$CPPFLAGS"
  12250. { $as_echo "$as_me:$LINENO: checking how to link with libpth" >&5
  12251. $as_echo_n "checking how to link with libpth... " >&6; }
  12252. if test "${ac_cv_libpth_libs+set}" = set; then
  12253. $as_echo_n "(cached) " >&6
  12254. else
  12255. use_additional=yes
  12256. acl_save_prefix="$prefix"
  12257. prefix="$acl_final_prefix"
  12258. acl_save_exec_prefix="$exec_prefix"
  12259. exec_prefix="$acl_final_exec_prefix"
  12260. eval additional_includedir=\"$includedir\"
  12261. eval additional_libdir=\"$libdir\"
  12262. exec_prefix="$acl_save_exec_prefix"
  12263. prefix="$acl_save_prefix"
  12264. # Check whether --with-libpth-prefix was given.
  12265. if test "${with_libpth_prefix+set}" = set; then
  12266. withval=$with_libpth_prefix;
  12267. if test "X$withval" = "Xno"; then
  12268. use_additional=no
  12269. else
  12270. if test "X$withval" = "X"; then
  12271. acl_save_prefix="$prefix"
  12272. prefix="$acl_final_prefix"
  12273. acl_save_exec_prefix="$exec_prefix"
  12274. exec_prefix="$acl_final_exec_prefix"
  12275. eval additional_includedir=\"$includedir\"
  12276. eval additional_libdir=\"$libdir\"
  12277. exec_prefix="$acl_save_exec_prefix"
  12278. prefix="$acl_save_prefix"
  12279. else
  12280. additional_includedir="$withval/include"
  12281. additional_libdir="$withval/$acl_libdirstem"
  12282. fi
  12283. fi
  12284. fi
  12285. LIBPTH=
  12286. LTLIBPTH=
  12287. INCPTH=
  12288. LIBPTH_PREFIX=
  12289. rpathdirs=
  12290. ltrpathdirs=
  12291. names_already_handled=
  12292. names_next_round='pth '
  12293. while test -n "$names_next_round"; do
  12294. names_this_round="$names_next_round"
  12295. names_next_round=
  12296. for name in $names_this_round; do
  12297. already_handled=
  12298. for n in $names_already_handled; do
  12299. if test "$n" = "$name"; then
  12300. already_handled=yes
  12301. break
  12302. fi
  12303. done
  12304. if test -z "$already_handled"; then
  12305. names_already_handled="$names_already_handled $name"
  12306. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  12307. eval value=\"\$HAVE_LIB$uppername\"
  12308. if test -n "$value"; then
  12309. if test "$value" = yes; then
  12310. eval value=\"\$LIB$uppername\"
  12311. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  12312. eval value=\"\$LTLIB$uppername\"
  12313. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  12314. else
  12315. :
  12316. fi
  12317. else
  12318. found_dir=
  12319. found_la=
  12320. found_so=
  12321. found_a=
  12322. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  12323. if test -n "$acl_shlibext"; then
  12324. shrext=".$acl_shlibext" # typically: shrext=.so
  12325. else
  12326. shrext=
  12327. fi
  12328. if test $use_additional = yes; then
  12329. dir="$additional_libdir"
  12330. if test -n "$acl_shlibext"; then
  12331. if test -f "$dir/$libname$shrext"; then
  12332. found_dir="$dir"
  12333. found_so="$dir/$libname$shrext"
  12334. else
  12335. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12336. ver=`(cd "$dir" && \
  12337. for f in "$libname$shrext".*; do echo "$f"; done \
  12338. | sed -e "s,^$libname$shrext\\\\.,," \
  12339. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12340. | sed 1q ) 2>/dev/null`
  12341. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12342. found_dir="$dir"
  12343. found_so="$dir/$libname$shrext.$ver"
  12344. fi
  12345. else
  12346. eval library_names=\"$acl_library_names_spec\"
  12347. for f in $library_names; do
  12348. if test -f "$dir/$f"; then
  12349. found_dir="$dir"
  12350. found_so="$dir/$f"
  12351. break
  12352. fi
  12353. done
  12354. fi
  12355. fi
  12356. fi
  12357. if test "X$found_dir" = "X"; then
  12358. if test -f "$dir/$libname.$acl_libext"; then
  12359. found_dir="$dir"
  12360. found_a="$dir/$libname.$acl_libext"
  12361. fi
  12362. fi
  12363. if test "X$found_dir" != "X"; then
  12364. if test -f "$dir/$libname.la"; then
  12365. found_la="$dir/$libname.la"
  12366. fi
  12367. fi
  12368. fi
  12369. if test "X$found_dir" = "X"; then
  12370. for x in $LDFLAGS $LTLIBPTH; do
  12371. acl_save_prefix="$prefix"
  12372. prefix="$acl_final_prefix"
  12373. acl_save_exec_prefix="$exec_prefix"
  12374. exec_prefix="$acl_final_exec_prefix"
  12375. eval x=\"$x\"
  12376. exec_prefix="$acl_save_exec_prefix"
  12377. prefix="$acl_save_prefix"
  12378. case "$x" in
  12379. -L*)
  12380. dir=`echo "X$x" | sed -e 's/^X-L//'`
  12381. if test -n "$acl_shlibext"; then
  12382. if test -f "$dir/$libname$shrext"; then
  12383. found_dir="$dir"
  12384. found_so="$dir/$libname$shrext"
  12385. else
  12386. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12387. ver=`(cd "$dir" && \
  12388. for f in "$libname$shrext".*; do echo "$f"; done \
  12389. | sed -e "s,^$libname$shrext\\\\.,," \
  12390. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12391. | sed 1q ) 2>/dev/null`
  12392. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12393. found_dir="$dir"
  12394. found_so="$dir/$libname$shrext.$ver"
  12395. fi
  12396. else
  12397. eval library_names=\"$acl_library_names_spec\"
  12398. for f in $library_names; do
  12399. if test -f "$dir/$f"; then
  12400. found_dir="$dir"
  12401. found_so="$dir/$f"
  12402. break
  12403. fi
  12404. done
  12405. fi
  12406. fi
  12407. fi
  12408. if test "X$found_dir" = "X"; then
  12409. if test -f "$dir/$libname.$acl_libext"; then
  12410. found_dir="$dir"
  12411. found_a="$dir/$libname.$acl_libext"
  12412. fi
  12413. fi
  12414. if test "X$found_dir" != "X"; then
  12415. if test -f "$dir/$libname.la"; then
  12416. found_la="$dir/$libname.la"
  12417. fi
  12418. fi
  12419. ;;
  12420. esac
  12421. if test "X$found_dir" != "X"; then
  12422. break
  12423. fi
  12424. done
  12425. fi
  12426. if test "X$found_dir" != "X"; then
  12427. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  12428. if test "X$found_so" != "X"; then
  12429. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  12430. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12431. else
  12432. haveit=
  12433. for x in $ltrpathdirs; do
  12434. if test "X$x" = "X$found_dir"; then
  12435. haveit=yes
  12436. break
  12437. fi
  12438. done
  12439. if test -z "$haveit"; then
  12440. ltrpathdirs="$ltrpathdirs $found_dir"
  12441. fi
  12442. if test "$acl_hardcode_direct" = yes; then
  12443. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12444. else
  12445. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  12446. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12447. haveit=
  12448. for x in $rpathdirs; do
  12449. if test "X$x" = "X$found_dir"; then
  12450. haveit=yes
  12451. break
  12452. fi
  12453. done
  12454. if test -z "$haveit"; then
  12455. rpathdirs="$rpathdirs $found_dir"
  12456. fi
  12457. else
  12458. haveit=
  12459. for x in $LDFLAGS $LIBPTH; do
  12460. acl_save_prefix="$prefix"
  12461. prefix="$acl_final_prefix"
  12462. acl_save_exec_prefix="$exec_prefix"
  12463. exec_prefix="$acl_final_exec_prefix"
  12464. eval x=\"$x\"
  12465. exec_prefix="$acl_save_exec_prefix"
  12466. prefix="$acl_save_prefix"
  12467. if test "X$x" = "X-L$found_dir"; then
  12468. haveit=yes
  12469. break
  12470. fi
  12471. done
  12472. if test -z "$haveit"; then
  12473. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  12474. fi
  12475. if test "$acl_hardcode_minus_L" != no; then
  12476. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12477. else
  12478. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  12479. fi
  12480. fi
  12481. fi
  12482. fi
  12483. else
  12484. if test "X$found_a" != "X"; then
  12485. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  12486. else
  12487. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  12488. fi
  12489. fi
  12490. additional_includedir=
  12491. case "$found_dir" in
  12492. */$acl_libdirstem | */$acl_libdirstem/)
  12493. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  12494. LIBPTH_PREFIX="$basedir"
  12495. additional_includedir="$basedir/include"
  12496. ;;
  12497. esac
  12498. if test "X$additional_includedir" != "X"; then
  12499. if test "X$additional_includedir" != "X/usr/include"; then
  12500. haveit=
  12501. if test "X$additional_includedir" = "X/usr/local/include"; then
  12502. if test -n "$GCC"; then
  12503. case $host_os in
  12504. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12505. esac
  12506. fi
  12507. fi
  12508. if test -z "$haveit"; then
  12509. for x in $CPPFLAGS $INCPTH; do
  12510. acl_save_prefix="$prefix"
  12511. prefix="$acl_final_prefix"
  12512. acl_save_exec_prefix="$exec_prefix"
  12513. exec_prefix="$acl_final_exec_prefix"
  12514. eval x=\"$x\"
  12515. exec_prefix="$acl_save_exec_prefix"
  12516. prefix="$acl_save_prefix"
  12517. if test "X$x" = "X-I$additional_includedir"; then
  12518. haveit=yes
  12519. break
  12520. fi
  12521. done
  12522. if test -z "$haveit"; then
  12523. if test -d "$additional_includedir"; then
  12524. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  12525. fi
  12526. fi
  12527. fi
  12528. fi
  12529. fi
  12530. if test -n "$found_la"; then
  12531. save_libdir="$libdir"
  12532. case "$found_la" in
  12533. */* | *\\*) . "$found_la" ;;
  12534. *) . "./$found_la" ;;
  12535. esac
  12536. libdir="$save_libdir"
  12537. for dep in $dependency_libs; do
  12538. case "$dep" in
  12539. -L*)
  12540. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  12541. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  12542. haveit=
  12543. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  12544. if test -n "$GCC"; then
  12545. case $host_os in
  12546. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12547. esac
  12548. fi
  12549. fi
  12550. if test -z "$haveit"; then
  12551. haveit=
  12552. for x in $LDFLAGS $LIBPTH; do
  12553. acl_save_prefix="$prefix"
  12554. prefix="$acl_final_prefix"
  12555. acl_save_exec_prefix="$exec_prefix"
  12556. exec_prefix="$acl_final_exec_prefix"
  12557. eval x=\"$x\"
  12558. exec_prefix="$acl_save_exec_prefix"
  12559. prefix="$acl_save_prefix"
  12560. if test "X$x" = "X-L$additional_libdir"; then
  12561. haveit=yes
  12562. break
  12563. fi
  12564. done
  12565. if test -z "$haveit"; then
  12566. if test -d "$additional_libdir"; then
  12567. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  12568. fi
  12569. fi
  12570. haveit=
  12571. for x in $LDFLAGS $LTLIBPTH; do
  12572. acl_save_prefix="$prefix"
  12573. prefix="$acl_final_prefix"
  12574. acl_save_exec_prefix="$exec_prefix"
  12575. exec_prefix="$acl_final_exec_prefix"
  12576. eval x=\"$x\"
  12577. exec_prefix="$acl_save_exec_prefix"
  12578. prefix="$acl_save_prefix"
  12579. if test "X$x" = "X-L$additional_libdir"; then
  12580. haveit=yes
  12581. break
  12582. fi
  12583. done
  12584. if test -z "$haveit"; then
  12585. if test -d "$additional_libdir"; then
  12586. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  12587. fi
  12588. fi
  12589. fi
  12590. fi
  12591. ;;
  12592. -R*)
  12593. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  12594. if test "$enable_rpath" != no; then
  12595. haveit=
  12596. for x in $rpathdirs; do
  12597. if test "X$x" = "X$dir"; then
  12598. haveit=yes
  12599. break
  12600. fi
  12601. done
  12602. if test -z "$haveit"; then
  12603. rpathdirs="$rpathdirs $dir"
  12604. fi
  12605. haveit=
  12606. for x in $ltrpathdirs; do
  12607. if test "X$x" = "X$dir"; then
  12608. haveit=yes
  12609. break
  12610. fi
  12611. done
  12612. if test -z "$haveit"; then
  12613. ltrpathdirs="$ltrpathdirs $dir"
  12614. fi
  12615. fi
  12616. ;;
  12617. -l*)
  12618. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  12619. ;;
  12620. *.la)
  12621. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  12622. ;;
  12623. *)
  12624. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  12625. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  12626. ;;
  12627. esac
  12628. done
  12629. fi
  12630. else
  12631. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  12632. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  12633. fi
  12634. fi
  12635. fi
  12636. done
  12637. done
  12638. if test "X$rpathdirs" != "X"; then
  12639. if test -n "$acl_hardcode_libdir_separator"; then
  12640. alldirs=
  12641. for found_dir in $rpathdirs; do
  12642. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  12643. done
  12644. acl_save_libdir="$libdir"
  12645. libdir="$alldirs"
  12646. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12647. libdir="$acl_save_libdir"
  12648. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  12649. else
  12650. for found_dir in $rpathdirs; do
  12651. acl_save_libdir="$libdir"
  12652. libdir="$found_dir"
  12653. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12654. libdir="$acl_save_libdir"
  12655. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  12656. done
  12657. fi
  12658. fi
  12659. if test "X$ltrpathdirs" != "X"; then
  12660. for found_dir in $ltrpathdirs; do
  12661. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  12662. done
  12663. fi
  12664. ac_cv_libpth_libs="$LIBPTH"
  12665. ac_cv_libpth_ltlibs="$LTLIBPTH"
  12666. ac_cv_libpth_cppflags="$INCPTH"
  12667. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  12668. fi
  12669. { $as_echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  12670. $as_echo "$ac_cv_libpth_libs" >&6; }
  12671. LIBPTH="$ac_cv_libpth_libs"
  12672. LTLIBPTH="$ac_cv_libpth_ltlibs"
  12673. INCPTH="$ac_cv_libpth_cppflags"
  12674. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  12675. for element in $INCPTH; do
  12676. haveit=
  12677. for x in $CPPFLAGS; do
  12678. acl_save_prefix="$prefix"
  12679. prefix="$acl_final_prefix"
  12680. acl_save_exec_prefix="$exec_prefix"
  12681. exec_prefix="$acl_final_exec_prefix"
  12682. eval x=\"$x\"
  12683. exec_prefix="$acl_save_exec_prefix"
  12684. prefix="$acl_save_prefix"
  12685. if test "X$x" = "X$element"; then
  12686. haveit=yes
  12687. break
  12688. fi
  12689. done
  12690. if test -z "$haveit"; then
  12691. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12692. fi
  12693. done
  12694. HAVE_LIBPTH=yes
  12695. gl_have_pth=
  12696. gl_save_LIBS="$LIBS"
  12697. LIBS="$LIBS -lpth"
  12698. cat >conftest.$ac_ext <<_ACEOF
  12699. /* confdefs.h. */
  12700. _ACEOF
  12701. cat confdefs.h >>conftest.$ac_ext
  12702. cat >>conftest.$ac_ext <<_ACEOF
  12703. /* end confdefs.h. */
  12704. #include <pth.h>
  12705. int
  12706. main ()
  12707. {
  12708. pth_self();
  12709. ;
  12710. return 0;
  12711. }
  12712. _ACEOF
  12713. rm -f conftest.$ac_objext conftest$ac_exeext
  12714. if { (ac_try="$ac_link"
  12715. case "(($ac_try" in
  12716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12717. *) ac_try_echo=$ac_try;;
  12718. esac
  12719. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12720. $as_echo "$ac_try_echo") >&5
  12721. (eval "$ac_link") 2>conftest.er1
  12722. ac_status=$?
  12723. grep -v '^ *+' conftest.er1 >conftest.err
  12724. rm -f conftest.er1
  12725. cat conftest.err >&5
  12726. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12727. (exit $ac_status); } && {
  12728. test -z "$ac_cxx_werror_flag" ||
  12729. test ! -s conftest.err
  12730. } && test -s conftest$ac_exeext && {
  12731. test "$cross_compiling" = yes ||
  12732. $as_test_x conftest$ac_exeext
  12733. }; then
  12734. gl_have_pth=yes
  12735. else
  12736. $as_echo "$as_me: failed program was:" >&5
  12737. sed 's/^/| /' conftest.$ac_ext >&5
  12738. fi
  12739. rm -rf conftest.dSYM
  12740. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12741. conftest$ac_exeext conftest.$ac_ext
  12742. LIBS="$gl_save_LIBS"
  12743. if test -n "$gl_have_pth"; then
  12744. gl_threads_api=pth
  12745. LIBTHREAD="$LIBPTH"
  12746. LTLIBTHREAD="$LTLIBPTH"
  12747. LIBMULTITHREAD="$LIBTHREAD"
  12748. LTLIBMULTITHREAD="$LTLIBTHREAD"
  12749. cat >>confdefs.h <<\_ACEOF
  12750. #define USE_PTH_THREADS 1
  12751. _ACEOF
  12752. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  12753. if test $gl_have_weak = yes; then
  12754. cat >>confdefs.h <<\_ACEOF
  12755. #define USE_PTH_THREADS_WEAK 1
  12756. _ACEOF
  12757. LIBTHREAD=
  12758. LTLIBTHREAD=
  12759. fi
  12760. fi
  12761. else
  12762. CPPFLAGS="$gl_save_CPPFLAGS"
  12763. fi
  12764. fi
  12765. if test -z "$gl_have_pthread"; then
  12766. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  12767. if { case "$host_os" in
  12768. mingw*) true;;
  12769. *) false;;
  12770. esac
  12771. }; then
  12772. gl_threads_api=win32
  12773. cat >>confdefs.h <<\_ACEOF
  12774. #define USE_WIN32_THREADS 1
  12775. _ACEOF
  12776. fi
  12777. fi
  12778. fi
  12779. fi
  12780. { $as_echo "$as_me:$LINENO: checking for multithread API to use" >&5
  12781. $as_echo_n "checking for multithread API to use... " >&6; }
  12782. { $as_echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  12783. $as_echo "$gl_threads_api" >&6; }
  12784. use_additional=yes
  12785. acl_save_prefix="$prefix"
  12786. prefix="$acl_final_prefix"
  12787. acl_save_exec_prefix="$exec_prefix"
  12788. exec_prefix="$acl_final_exec_prefix"
  12789. eval additional_includedir=\"$includedir\"
  12790. eval additional_libdir=\"$libdir\"
  12791. exec_prefix="$acl_save_exec_prefix"
  12792. prefix="$acl_save_prefix"
  12793. # Check whether --with-libiconv-prefix was given.
  12794. if test "${with_libiconv_prefix+set}" = set; then
  12795. withval=$with_libiconv_prefix;
  12796. if test "X$withval" = "Xno"; then
  12797. use_additional=no
  12798. else
  12799. if test "X$withval" = "X"; then
  12800. acl_save_prefix="$prefix"
  12801. prefix="$acl_final_prefix"
  12802. acl_save_exec_prefix="$exec_prefix"
  12803. exec_prefix="$acl_final_exec_prefix"
  12804. eval additional_includedir=\"$includedir\"
  12805. eval additional_libdir=\"$libdir\"
  12806. exec_prefix="$acl_save_exec_prefix"
  12807. prefix="$acl_save_prefix"
  12808. else
  12809. additional_includedir="$withval/include"
  12810. additional_libdir="$withval/$acl_libdirstem"
  12811. fi
  12812. fi
  12813. fi
  12814. LIBICONV=
  12815. LTLIBICONV=
  12816. INCICONV=
  12817. LIBICONV_PREFIX=
  12818. rpathdirs=
  12819. ltrpathdirs=
  12820. names_already_handled=
  12821. names_next_round='iconv '
  12822. while test -n "$names_next_round"; do
  12823. names_this_round="$names_next_round"
  12824. names_next_round=
  12825. for name in $names_this_round; do
  12826. already_handled=
  12827. for n in $names_already_handled; do
  12828. if test "$n" = "$name"; then
  12829. already_handled=yes
  12830. break
  12831. fi
  12832. done
  12833. if test -z "$already_handled"; then
  12834. names_already_handled="$names_already_handled $name"
  12835. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  12836. eval value=\"\$HAVE_LIB$uppername\"
  12837. if test -n "$value"; then
  12838. if test "$value" = yes; then
  12839. eval value=\"\$LIB$uppername\"
  12840. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  12841. eval value=\"\$LTLIB$uppername\"
  12842. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  12843. else
  12844. :
  12845. fi
  12846. else
  12847. found_dir=
  12848. found_la=
  12849. found_so=
  12850. found_a=
  12851. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  12852. if test -n "$acl_shlibext"; then
  12853. shrext=".$acl_shlibext" # typically: shrext=.so
  12854. else
  12855. shrext=
  12856. fi
  12857. if test $use_additional = yes; then
  12858. dir="$additional_libdir"
  12859. if test -n "$acl_shlibext"; then
  12860. if test -f "$dir/$libname$shrext"; then
  12861. found_dir="$dir"
  12862. found_so="$dir/$libname$shrext"
  12863. else
  12864. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12865. ver=`(cd "$dir" && \
  12866. for f in "$libname$shrext".*; do echo "$f"; done \
  12867. | sed -e "s,^$libname$shrext\\\\.,," \
  12868. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12869. | sed 1q ) 2>/dev/null`
  12870. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12871. found_dir="$dir"
  12872. found_so="$dir/$libname$shrext.$ver"
  12873. fi
  12874. else
  12875. eval library_names=\"$acl_library_names_spec\"
  12876. for f in $library_names; do
  12877. if test -f "$dir/$f"; then
  12878. found_dir="$dir"
  12879. found_so="$dir/$f"
  12880. break
  12881. fi
  12882. done
  12883. fi
  12884. fi
  12885. fi
  12886. if test "X$found_dir" = "X"; then
  12887. if test -f "$dir/$libname.$acl_libext"; then
  12888. found_dir="$dir"
  12889. found_a="$dir/$libname.$acl_libext"
  12890. fi
  12891. fi
  12892. if test "X$found_dir" != "X"; then
  12893. if test -f "$dir/$libname.la"; then
  12894. found_la="$dir/$libname.la"
  12895. fi
  12896. fi
  12897. fi
  12898. if test "X$found_dir" = "X"; then
  12899. for x in $LDFLAGS $LTLIBICONV; do
  12900. acl_save_prefix="$prefix"
  12901. prefix="$acl_final_prefix"
  12902. acl_save_exec_prefix="$exec_prefix"
  12903. exec_prefix="$acl_final_exec_prefix"
  12904. eval x=\"$x\"
  12905. exec_prefix="$acl_save_exec_prefix"
  12906. prefix="$acl_save_prefix"
  12907. case "$x" in
  12908. -L*)
  12909. dir=`echo "X$x" | sed -e 's/^X-L//'`
  12910. if test -n "$acl_shlibext"; then
  12911. if test -f "$dir/$libname$shrext"; then
  12912. found_dir="$dir"
  12913. found_so="$dir/$libname$shrext"
  12914. else
  12915. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12916. ver=`(cd "$dir" && \
  12917. for f in "$libname$shrext".*; do echo "$f"; done \
  12918. | sed -e "s,^$libname$shrext\\\\.,," \
  12919. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12920. | sed 1q ) 2>/dev/null`
  12921. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12922. found_dir="$dir"
  12923. found_so="$dir/$libname$shrext.$ver"
  12924. fi
  12925. else
  12926. eval library_names=\"$acl_library_names_spec\"
  12927. for f in $library_names; do
  12928. if test -f "$dir/$f"; then
  12929. found_dir="$dir"
  12930. found_so="$dir/$f"
  12931. break
  12932. fi
  12933. done
  12934. fi
  12935. fi
  12936. fi
  12937. if test "X$found_dir" = "X"; then
  12938. if test -f "$dir/$libname.$acl_libext"; then
  12939. found_dir="$dir"
  12940. found_a="$dir/$libname.$acl_libext"
  12941. fi
  12942. fi
  12943. if test "X$found_dir" != "X"; then
  12944. if test -f "$dir/$libname.la"; then
  12945. found_la="$dir/$libname.la"
  12946. fi
  12947. fi
  12948. ;;
  12949. esac
  12950. if test "X$found_dir" != "X"; then
  12951. break
  12952. fi
  12953. done
  12954. fi
  12955. if test "X$found_dir" != "X"; then
  12956. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  12957. if test "X$found_so" != "X"; then
  12958. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  12959. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12960. else
  12961. haveit=
  12962. for x in $ltrpathdirs; do
  12963. if test "X$x" = "X$found_dir"; then
  12964. haveit=yes
  12965. break
  12966. fi
  12967. done
  12968. if test -z "$haveit"; then
  12969. ltrpathdirs="$ltrpathdirs $found_dir"
  12970. fi
  12971. if test "$acl_hardcode_direct" = yes; then
  12972. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12973. else
  12974. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  12975. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12976. haveit=
  12977. for x in $rpathdirs; do
  12978. if test "X$x" = "X$found_dir"; then
  12979. haveit=yes
  12980. break
  12981. fi
  12982. done
  12983. if test -z "$haveit"; then
  12984. rpathdirs="$rpathdirs $found_dir"
  12985. fi
  12986. else
  12987. haveit=
  12988. for x in $LDFLAGS $LIBICONV; do
  12989. acl_save_prefix="$prefix"
  12990. prefix="$acl_final_prefix"
  12991. acl_save_exec_prefix="$exec_prefix"
  12992. exec_prefix="$acl_final_exec_prefix"
  12993. eval x=\"$x\"
  12994. exec_prefix="$acl_save_exec_prefix"
  12995. prefix="$acl_save_prefix"
  12996. if test "X$x" = "X-L$found_dir"; then
  12997. haveit=yes
  12998. break
  12999. fi
  13000. done
  13001. if test -z "$haveit"; then
  13002. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  13003. fi
  13004. if test "$acl_hardcode_minus_L" != no; then
  13005. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13006. else
  13007. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  13008. fi
  13009. fi
  13010. fi
  13011. fi
  13012. else
  13013. if test "X$found_a" != "X"; then
  13014. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  13015. else
  13016. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  13017. fi
  13018. fi
  13019. additional_includedir=
  13020. case "$found_dir" in
  13021. */$acl_libdirstem | */$acl_libdirstem/)
  13022. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  13023. LIBICONV_PREFIX="$basedir"
  13024. additional_includedir="$basedir/include"
  13025. ;;
  13026. esac
  13027. if test "X$additional_includedir" != "X"; then
  13028. if test "X$additional_includedir" != "X/usr/include"; then
  13029. haveit=
  13030. if test "X$additional_includedir" = "X/usr/local/include"; then
  13031. if test -n "$GCC"; then
  13032. case $host_os in
  13033. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13034. esac
  13035. fi
  13036. fi
  13037. if test -z "$haveit"; then
  13038. for x in $CPPFLAGS $INCICONV; do
  13039. acl_save_prefix="$prefix"
  13040. prefix="$acl_final_prefix"
  13041. acl_save_exec_prefix="$exec_prefix"
  13042. exec_prefix="$acl_final_exec_prefix"
  13043. eval x=\"$x\"
  13044. exec_prefix="$acl_save_exec_prefix"
  13045. prefix="$acl_save_prefix"
  13046. if test "X$x" = "X-I$additional_includedir"; then
  13047. haveit=yes
  13048. break
  13049. fi
  13050. done
  13051. if test -z "$haveit"; then
  13052. if test -d "$additional_includedir"; then
  13053. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  13054. fi
  13055. fi
  13056. fi
  13057. fi
  13058. fi
  13059. if test -n "$found_la"; then
  13060. save_libdir="$libdir"
  13061. case "$found_la" in
  13062. */* | *\\*) . "$found_la" ;;
  13063. *) . "./$found_la" ;;
  13064. esac
  13065. libdir="$save_libdir"
  13066. for dep in $dependency_libs; do
  13067. case "$dep" in
  13068. -L*)
  13069. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  13070. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  13071. haveit=
  13072. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  13073. if test -n "$GCC"; then
  13074. case $host_os in
  13075. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13076. esac
  13077. fi
  13078. fi
  13079. if test -z "$haveit"; then
  13080. haveit=
  13081. for x in $LDFLAGS $LIBICONV; do
  13082. acl_save_prefix="$prefix"
  13083. prefix="$acl_final_prefix"
  13084. acl_save_exec_prefix="$exec_prefix"
  13085. exec_prefix="$acl_final_exec_prefix"
  13086. eval x=\"$x\"
  13087. exec_prefix="$acl_save_exec_prefix"
  13088. prefix="$acl_save_prefix"
  13089. if test "X$x" = "X-L$additional_libdir"; then
  13090. haveit=yes
  13091. break
  13092. fi
  13093. done
  13094. if test -z "$haveit"; then
  13095. if test -d "$additional_libdir"; then
  13096. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  13097. fi
  13098. fi
  13099. haveit=
  13100. for x in $LDFLAGS $LTLIBICONV; do
  13101. acl_save_prefix="$prefix"
  13102. prefix="$acl_final_prefix"
  13103. acl_save_exec_prefix="$exec_prefix"
  13104. exec_prefix="$acl_final_exec_prefix"
  13105. eval x=\"$x\"
  13106. exec_prefix="$acl_save_exec_prefix"
  13107. prefix="$acl_save_prefix"
  13108. if test "X$x" = "X-L$additional_libdir"; then
  13109. haveit=yes
  13110. break
  13111. fi
  13112. done
  13113. if test -z "$haveit"; then
  13114. if test -d "$additional_libdir"; then
  13115. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  13116. fi
  13117. fi
  13118. fi
  13119. fi
  13120. ;;
  13121. -R*)
  13122. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  13123. if test "$enable_rpath" != no; then
  13124. haveit=
  13125. for x in $rpathdirs; do
  13126. if test "X$x" = "X$dir"; then
  13127. haveit=yes
  13128. break
  13129. fi
  13130. done
  13131. if test -z "$haveit"; then
  13132. rpathdirs="$rpathdirs $dir"
  13133. fi
  13134. haveit=
  13135. for x in $ltrpathdirs; do
  13136. if test "X$x" = "X$dir"; then
  13137. haveit=yes
  13138. break
  13139. fi
  13140. done
  13141. if test -z "$haveit"; then
  13142. ltrpathdirs="$ltrpathdirs $dir"
  13143. fi
  13144. fi
  13145. ;;
  13146. -l*)
  13147. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  13148. ;;
  13149. *.la)
  13150. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  13151. ;;
  13152. *)
  13153. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  13154. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  13155. ;;
  13156. esac
  13157. done
  13158. fi
  13159. else
  13160. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  13161. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  13162. fi
  13163. fi
  13164. fi
  13165. done
  13166. done
  13167. if test "X$rpathdirs" != "X"; then
  13168. if test -n "$acl_hardcode_libdir_separator"; then
  13169. alldirs=
  13170. for found_dir in $rpathdirs; do
  13171. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  13172. done
  13173. acl_save_libdir="$libdir"
  13174. libdir="$alldirs"
  13175. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13176. libdir="$acl_save_libdir"
  13177. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  13178. else
  13179. for found_dir in $rpathdirs; do
  13180. acl_save_libdir="$libdir"
  13181. libdir="$found_dir"
  13182. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13183. libdir="$acl_save_libdir"
  13184. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  13185. done
  13186. fi
  13187. fi
  13188. if test "X$ltrpathdirs" != "X"; then
  13189. for found_dir in $ltrpathdirs; do
  13190. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  13191. done
  13192. fi
  13193. cat >conftest.$ac_ext <<_ACEOF
  13194. /* confdefs.h. */
  13195. _ACEOF
  13196. cat confdefs.h >>conftest.$ac_ext
  13197. cat >>conftest.$ac_ext <<_ACEOF
  13198. /* end confdefs.h. */
  13199. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  13200. int
  13201. main ()
  13202. {
  13203. ;
  13204. return 0;
  13205. }
  13206. _ACEOF
  13207. rm -f conftest.$ac_objext conftest$ac_exeext
  13208. if { (ac_try="$ac_link"
  13209. case "(($ac_try" in
  13210. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13211. *) ac_try_echo=$ac_try;;
  13212. esac
  13213. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13214. $as_echo "$ac_try_echo") >&5
  13215. (eval "$ac_link") 2>conftest.er1
  13216. ac_status=$?
  13217. grep -v '^ *+' conftest.er1 >conftest.err
  13218. rm -f conftest.er1
  13219. cat conftest.err >&5
  13220. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13221. (exit $ac_status); } && {
  13222. test -z "$ac_cxx_werror_flag" ||
  13223. test ! -s conftest.err
  13224. } && test -s conftest$ac_exeext && {
  13225. test "$cross_compiling" = yes ||
  13226. $as_test_x conftest$ac_exeext
  13227. }; then
  13228. cat >>confdefs.h <<\_ACEOF
  13229. #define HAVE_BUILTIN_EXPECT 1
  13230. _ACEOF
  13231. else
  13232. $as_echo "$as_me: failed program was:" >&5
  13233. sed 's/^/| /' conftest.$ac_ext >&5
  13234. fi
  13235. rm -rf conftest.dSYM
  13236. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13237. conftest$ac_exeext conftest.$ac_ext
  13238. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  13239. do
  13240. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13241. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13242. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  13243. $as_echo_n "checking for $ac_header... " >&6; }
  13244. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13245. $as_echo_n "(cached) " >&6
  13246. fi
  13247. ac_res=`eval 'as_val=${'$as_ac_Header'}
  13248. $as_echo "$as_val"'`
  13249. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13250. $as_echo "$ac_res" >&6; }
  13251. else
  13252. # Is the header compilable?
  13253. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13254. $as_echo_n "checking $ac_header usability... " >&6; }
  13255. cat >conftest.$ac_ext <<_ACEOF
  13256. /* confdefs.h. */
  13257. _ACEOF
  13258. cat confdefs.h >>conftest.$ac_ext
  13259. cat >>conftest.$ac_ext <<_ACEOF
  13260. /* end confdefs.h. */
  13261. $ac_includes_default
  13262. #include <$ac_header>
  13263. _ACEOF
  13264. rm -f conftest.$ac_objext
  13265. if { (ac_try="$ac_compile"
  13266. case "(($ac_try" in
  13267. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13268. *) ac_try_echo=$ac_try;;
  13269. esac
  13270. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13271. $as_echo "$ac_try_echo") >&5
  13272. (eval "$ac_compile") 2>conftest.er1
  13273. ac_status=$?
  13274. grep -v '^ *+' conftest.er1 >conftest.err
  13275. rm -f conftest.er1
  13276. cat conftest.err >&5
  13277. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13278. (exit $ac_status); } && {
  13279. test -z "$ac_cxx_werror_flag" ||
  13280. test ! -s conftest.err
  13281. } && test -s conftest.$ac_objext; then
  13282. ac_header_compiler=yes
  13283. else
  13284. $as_echo "$as_me: failed program was:" >&5
  13285. sed 's/^/| /' conftest.$ac_ext >&5
  13286. ac_header_compiler=no
  13287. fi
  13288. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13289. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13290. $as_echo "$ac_header_compiler" >&6; }
  13291. # Is the header present?
  13292. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13293. $as_echo_n "checking $ac_header presence... " >&6; }
  13294. cat >conftest.$ac_ext <<_ACEOF
  13295. /* confdefs.h. */
  13296. _ACEOF
  13297. cat confdefs.h >>conftest.$ac_ext
  13298. cat >>conftest.$ac_ext <<_ACEOF
  13299. /* end confdefs.h. */
  13300. #include <$ac_header>
  13301. _ACEOF
  13302. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13303. case "(($ac_try" in
  13304. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13305. *) ac_try_echo=$ac_try;;
  13306. esac
  13307. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13308. $as_echo "$ac_try_echo") >&5
  13309. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13310. ac_status=$?
  13311. grep -v '^ *+' conftest.er1 >conftest.err
  13312. rm -f conftest.er1
  13313. cat conftest.err >&5
  13314. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13315. (exit $ac_status); } >/dev/null && {
  13316. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13317. test ! -s conftest.err
  13318. }; then
  13319. ac_header_preproc=yes
  13320. else
  13321. $as_echo "$as_me: failed program was:" >&5
  13322. sed 's/^/| /' conftest.$ac_ext >&5
  13323. ac_header_preproc=no
  13324. fi
  13325. rm -f conftest.err conftest.$ac_ext
  13326. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13327. $as_echo "$ac_header_preproc" >&6; }
  13328. # So? What about this header?
  13329. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13330. yes:no: )
  13331. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13332. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13333. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13334. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13335. ac_header_preproc=yes
  13336. ;;
  13337. no:yes:* )
  13338. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13339. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13340. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13341. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13342. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13343. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13344. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13345. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13346. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13347. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13348. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13349. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13350. ( cat <<\_ASBOX
  13351. ## ----------------------------------------------- ##
  13352. ## Report this to t-tujikawa@users.sourceforge.net ##
  13353. ## ----------------------------------------------- ##
  13354. _ASBOX
  13355. ) | sed "s/^/$as_me: WARNING: /" >&2
  13356. ;;
  13357. esac
  13358. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  13359. $as_echo_n "checking for $ac_header... " >&6; }
  13360. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13361. $as_echo_n "(cached) " >&6
  13362. else
  13363. eval "$as_ac_Header=\$ac_header_preproc"
  13364. fi
  13365. ac_res=`eval 'as_val=${'$as_ac_Header'}
  13366. $as_echo "$as_val"'`
  13367. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13368. $as_echo "$ac_res" >&6; }
  13369. fi
  13370. as_val=`eval 'as_val=${'$as_ac_Header'}
  13371. $as_echo "$as_val"'`
  13372. if test "x$as_val" = x""yes; then
  13373. cat >>confdefs.h <<_ACEOF
  13374. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13375. _ACEOF
  13376. fi
  13377. done
  13378. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  13379. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  13380. argz_next __fsetlocking
  13381. do
  13382. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13383. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  13384. $as_echo_n "checking for $ac_func... " >&6; }
  13385. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  13386. $as_echo_n "(cached) " >&6
  13387. else
  13388. cat >conftest.$ac_ext <<_ACEOF
  13389. /* confdefs.h. */
  13390. _ACEOF
  13391. cat confdefs.h >>conftest.$ac_ext
  13392. cat >>conftest.$ac_ext <<_ACEOF
  13393. /* end confdefs.h. */
  13394. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  13395. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  13396. #define $ac_func innocuous_$ac_func
  13397. /* System header to define __stub macros and hopefully few prototypes,
  13398. which can conflict with char $ac_func (); below.
  13399. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13400. <limits.h> exists even on freestanding compilers. */
  13401. #ifdef __STDC__
  13402. # include <limits.h>
  13403. #else
  13404. # include <assert.h>
  13405. #endif
  13406. #undef $ac_func
  13407. /* Override any GCC internal prototype to avoid an error.
  13408. Use char because int might match the return type of a GCC
  13409. builtin and then its argument prototype would still apply. */
  13410. #ifdef __cplusplus
  13411. extern "C"
  13412. #endif
  13413. char $ac_func ();
  13414. /* The GNU C library defines this for functions which it implements
  13415. to always fail with ENOSYS. Some functions are actually named
  13416. something starting with __ and the normal name is an alias. */
  13417. #if defined __stub_$ac_func || defined __stub___$ac_func
  13418. choke me
  13419. #endif
  13420. int
  13421. main ()
  13422. {
  13423. return $ac_func ();
  13424. ;
  13425. return 0;
  13426. }
  13427. _ACEOF
  13428. rm -f conftest.$ac_objext conftest$ac_exeext
  13429. if { (ac_try="$ac_link"
  13430. case "(($ac_try" in
  13431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13432. *) ac_try_echo=$ac_try;;
  13433. esac
  13434. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13435. $as_echo "$ac_try_echo") >&5
  13436. (eval "$ac_link") 2>conftest.er1
  13437. ac_status=$?
  13438. grep -v '^ *+' conftest.er1 >conftest.err
  13439. rm -f conftest.er1
  13440. cat conftest.err >&5
  13441. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13442. (exit $ac_status); } && {
  13443. test -z "$ac_cxx_werror_flag" ||
  13444. test ! -s conftest.err
  13445. } && test -s conftest$ac_exeext && {
  13446. test "$cross_compiling" = yes ||
  13447. $as_test_x conftest$ac_exeext
  13448. }; then
  13449. eval "$as_ac_var=yes"
  13450. else
  13451. $as_echo "$as_me: failed program was:" >&5
  13452. sed 's/^/| /' conftest.$ac_ext >&5
  13453. eval "$as_ac_var=no"
  13454. fi
  13455. rm -rf conftest.dSYM
  13456. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13457. conftest$ac_exeext conftest.$ac_ext
  13458. fi
  13459. ac_res=`eval 'as_val=${'$as_ac_var'}
  13460. $as_echo "$as_val"'`
  13461. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13462. $as_echo "$ac_res" >&6; }
  13463. as_val=`eval 'as_val=${'$as_ac_var'}
  13464. $as_echo "$as_val"'`
  13465. if test "x$as_val" = x""yes; then
  13466. cat >>confdefs.h <<_ACEOF
  13467. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13468. _ACEOF
  13469. fi
  13470. done
  13471. { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  13472. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  13473. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  13474. $as_echo_n "(cached) " >&6
  13475. else
  13476. cat >conftest.$ac_ext <<_ACEOF
  13477. /* confdefs.h. */
  13478. _ACEOF
  13479. cat confdefs.h >>conftest.$ac_ext
  13480. cat >>conftest.$ac_ext <<_ACEOF
  13481. /* end confdefs.h. */
  13482. #include <stdio.h>
  13483. int
  13484. main ()
  13485. {
  13486. #ifndef feof_unlocked
  13487. char *p = (char *) feof_unlocked;
  13488. #endif
  13489. ;
  13490. return 0;
  13491. }
  13492. _ACEOF
  13493. rm -f conftest.$ac_objext
  13494. if { (ac_try="$ac_compile"
  13495. case "(($ac_try" in
  13496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13497. *) ac_try_echo=$ac_try;;
  13498. esac
  13499. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13500. $as_echo "$ac_try_echo") >&5
  13501. (eval "$ac_compile") 2>conftest.er1
  13502. ac_status=$?
  13503. grep -v '^ *+' conftest.er1 >conftest.err
  13504. rm -f conftest.er1
  13505. cat conftest.err >&5
  13506. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13507. (exit $ac_status); } && {
  13508. test -z "$ac_cxx_werror_flag" ||
  13509. test ! -s conftest.err
  13510. } && test -s conftest.$ac_objext; then
  13511. ac_cv_have_decl_feof_unlocked=yes
  13512. else
  13513. $as_echo "$as_me: failed program was:" >&5
  13514. sed 's/^/| /' conftest.$ac_ext >&5
  13515. ac_cv_have_decl_feof_unlocked=no
  13516. fi
  13517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13518. fi
  13519. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  13520. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  13521. if test $ac_cv_have_decl_feof_unlocked = yes; then
  13522. gt_value=1
  13523. else
  13524. gt_value=0
  13525. fi
  13526. cat >>confdefs.h <<_ACEOF
  13527. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  13528. _ACEOF
  13529. { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  13530. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  13531. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  13532. $as_echo_n "(cached) " >&6
  13533. else
  13534. cat >conftest.$ac_ext <<_ACEOF
  13535. /* confdefs.h. */
  13536. _ACEOF
  13537. cat confdefs.h >>conftest.$ac_ext
  13538. cat >>conftest.$ac_ext <<_ACEOF
  13539. /* end confdefs.h. */
  13540. #include <stdio.h>
  13541. int
  13542. main ()
  13543. {
  13544. #ifndef fgets_unlocked
  13545. char *p = (char *) fgets_unlocked;
  13546. #endif
  13547. ;
  13548. return 0;
  13549. }
  13550. _ACEOF
  13551. rm -f conftest.$ac_objext
  13552. if { (ac_try="$ac_compile"
  13553. case "(($ac_try" in
  13554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13555. *) ac_try_echo=$ac_try;;
  13556. esac
  13557. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13558. $as_echo "$ac_try_echo") >&5
  13559. (eval "$ac_compile") 2>conftest.er1
  13560. ac_status=$?
  13561. grep -v '^ *+' conftest.er1 >conftest.err
  13562. rm -f conftest.er1
  13563. cat conftest.err >&5
  13564. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13565. (exit $ac_status); } && {
  13566. test -z "$ac_cxx_werror_flag" ||
  13567. test ! -s conftest.err
  13568. } && test -s conftest.$ac_objext; then
  13569. ac_cv_have_decl_fgets_unlocked=yes
  13570. else
  13571. $as_echo "$as_me: failed program was:" >&5
  13572. sed 's/^/| /' conftest.$ac_ext >&5
  13573. ac_cv_have_decl_fgets_unlocked=no
  13574. fi
  13575. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13576. fi
  13577. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  13578. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  13579. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  13580. gt_value=1
  13581. else
  13582. gt_value=0
  13583. fi
  13584. cat >>confdefs.h <<_ACEOF
  13585. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  13586. _ACEOF
  13587. am_save_CPPFLAGS="$CPPFLAGS"
  13588. for element in $INCICONV; do
  13589. haveit=
  13590. for x in $CPPFLAGS; do
  13591. acl_save_prefix="$prefix"
  13592. prefix="$acl_final_prefix"
  13593. acl_save_exec_prefix="$exec_prefix"
  13594. exec_prefix="$acl_final_exec_prefix"
  13595. eval x=\"$x\"
  13596. exec_prefix="$acl_save_exec_prefix"
  13597. prefix="$acl_save_prefix"
  13598. if test "X$x" = "X$element"; then
  13599. haveit=yes
  13600. break
  13601. fi
  13602. done
  13603. if test -z "$haveit"; then
  13604. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  13605. fi
  13606. done
  13607. { $as_echo "$as_me:$LINENO: checking for iconv" >&5
  13608. $as_echo_n "checking for iconv... " >&6; }
  13609. if test "${am_cv_func_iconv+set}" = set; then
  13610. $as_echo_n "(cached) " >&6
  13611. else
  13612. am_cv_func_iconv="no, consider installing GNU libiconv"
  13613. am_cv_lib_iconv=no
  13614. cat >conftest.$ac_ext <<_ACEOF
  13615. /* confdefs.h. */
  13616. _ACEOF
  13617. cat confdefs.h >>conftest.$ac_ext
  13618. cat >>conftest.$ac_ext <<_ACEOF
  13619. /* end confdefs.h. */
  13620. #include <stdlib.h>
  13621. #include <iconv.h>
  13622. int
  13623. main ()
  13624. {
  13625. iconv_t cd = iconv_open("","");
  13626. iconv(cd,NULL,NULL,NULL,NULL);
  13627. iconv_close(cd);
  13628. ;
  13629. return 0;
  13630. }
  13631. _ACEOF
  13632. rm -f conftest.$ac_objext conftest$ac_exeext
  13633. if { (ac_try="$ac_link"
  13634. case "(($ac_try" in
  13635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13636. *) ac_try_echo=$ac_try;;
  13637. esac
  13638. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13639. $as_echo "$ac_try_echo") >&5
  13640. (eval "$ac_link") 2>conftest.er1
  13641. ac_status=$?
  13642. grep -v '^ *+' conftest.er1 >conftest.err
  13643. rm -f conftest.er1
  13644. cat conftest.err >&5
  13645. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13646. (exit $ac_status); } && {
  13647. test -z "$ac_cxx_werror_flag" ||
  13648. test ! -s conftest.err
  13649. } && test -s conftest$ac_exeext && {
  13650. test "$cross_compiling" = yes ||
  13651. $as_test_x conftest$ac_exeext
  13652. }; then
  13653. am_cv_func_iconv=yes
  13654. else
  13655. $as_echo "$as_me: failed program was:" >&5
  13656. sed 's/^/| /' conftest.$ac_ext >&5
  13657. fi
  13658. rm -rf conftest.dSYM
  13659. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13660. conftest$ac_exeext conftest.$ac_ext
  13661. if test "$am_cv_func_iconv" != yes; then
  13662. am_save_LIBS="$LIBS"
  13663. LIBS="$LIBS $LIBICONV"
  13664. cat >conftest.$ac_ext <<_ACEOF
  13665. /* confdefs.h. */
  13666. _ACEOF
  13667. cat confdefs.h >>conftest.$ac_ext
  13668. cat >>conftest.$ac_ext <<_ACEOF
  13669. /* end confdefs.h. */
  13670. #include <stdlib.h>
  13671. #include <iconv.h>
  13672. int
  13673. main ()
  13674. {
  13675. iconv_t cd = iconv_open("","");
  13676. iconv(cd,NULL,NULL,NULL,NULL);
  13677. iconv_close(cd);
  13678. ;
  13679. return 0;
  13680. }
  13681. _ACEOF
  13682. rm -f conftest.$ac_objext conftest$ac_exeext
  13683. if { (ac_try="$ac_link"
  13684. case "(($ac_try" in
  13685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13686. *) ac_try_echo=$ac_try;;
  13687. esac
  13688. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13689. $as_echo "$ac_try_echo") >&5
  13690. (eval "$ac_link") 2>conftest.er1
  13691. ac_status=$?
  13692. grep -v '^ *+' conftest.er1 >conftest.err
  13693. rm -f conftest.er1
  13694. cat conftest.err >&5
  13695. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13696. (exit $ac_status); } && {
  13697. test -z "$ac_cxx_werror_flag" ||
  13698. test ! -s conftest.err
  13699. } && test -s conftest$ac_exeext && {
  13700. test "$cross_compiling" = yes ||
  13701. $as_test_x conftest$ac_exeext
  13702. }; then
  13703. am_cv_lib_iconv=yes
  13704. am_cv_func_iconv=yes
  13705. else
  13706. $as_echo "$as_me: failed program was:" >&5
  13707. sed 's/^/| /' conftest.$ac_ext >&5
  13708. fi
  13709. rm -rf conftest.dSYM
  13710. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13711. conftest$ac_exeext conftest.$ac_ext
  13712. LIBS="$am_save_LIBS"
  13713. fi
  13714. fi
  13715. { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  13716. $as_echo "$am_cv_func_iconv" >&6; }
  13717. if test "$am_cv_func_iconv" = yes; then
  13718. { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
  13719. $as_echo_n "checking for working iconv... " >&6; }
  13720. if test "${am_cv_func_iconv_works+set}" = set; then
  13721. $as_echo_n "(cached) " >&6
  13722. else
  13723. am_save_LIBS="$LIBS"
  13724. if test $am_cv_lib_iconv = yes; then
  13725. LIBS="$LIBS $LIBICONV"
  13726. fi
  13727. if test "$cross_compiling" = yes; then
  13728. case "$host_os" in
  13729. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  13730. *) am_cv_func_iconv_works="guessing yes" ;;
  13731. esac
  13732. else
  13733. cat >conftest.$ac_ext <<_ACEOF
  13734. /* confdefs.h. */
  13735. _ACEOF
  13736. cat confdefs.h >>conftest.$ac_ext
  13737. cat >>conftest.$ac_ext <<_ACEOF
  13738. /* end confdefs.h. */
  13739. #include <iconv.h>
  13740. #include <string.h>
  13741. int main ()
  13742. {
  13743. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  13744. returns. */
  13745. {
  13746. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  13747. if (cd_utf8_to_88591 != (iconv_t)(-1))
  13748. {
  13749. static const char input[] = "\342\202\254"; /* EURO SIGN */
  13750. char buf[10];
  13751. const char *inptr = input;
  13752. size_t inbytesleft = strlen (input);
  13753. char *outptr = buf;
  13754. size_t outbytesleft = sizeof (buf);
  13755. size_t res = iconv (cd_utf8_to_88591,
  13756. (char **) &inptr, &inbytesleft,
  13757. &outptr, &outbytesleft);
  13758. if (res == 0)
  13759. return 1;
  13760. }
  13761. }
  13762. #if 0 /* This bug could be worked around by the caller. */
  13763. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  13764. {
  13765. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  13766. if (cd_88591_to_utf8 != (iconv_t)(-1))
  13767. {
  13768. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  13769. char buf[50];
  13770. const char *inptr = input;
  13771. size_t inbytesleft = strlen (input);
  13772. char *outptr = buf;
  13773. size_t outbytesleft = sizeof (buf);
  13774. size_t res = iconv (cd_88591_to_utf8,
  13775. (char **) &inptr, &inbytesleft,
  13776. &outptr, &outbytesleft);
  13777. if ((int)res > 0)
  13778. return 1;
  13779. }
  13780. }
  13781. #endif
  13782. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  13783. provided. */
  13784. if (/* Try standardized names. */
  13785. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  13786. /* Try IRIX, OSF/1 names. */
  13787. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  13788. /* Try AIX names. */
  13789. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  13790. /* Try HP-UX names. */
  13791. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  13792. return 1;
  13793. return 0;
  13794. }
  13795. _ACEOF
  13796. rm -f conftest$ac_exeext
  13797. if { (ac_try="$ac_link"
  13798. case "(($ac_try" in
  13799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13800. *) ac_try_echo=$ac_try;;
  13801. esac
  13802. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13803. $as_echo "$ac_try_echo") >&5
  13804. (eval "$ac_link") 2>&5
  13805. ac_status=$?
  13806. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13807. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13808. { (case "(($ac_try" in
  13809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13810. *) ac_try_echo=$ac_try;;
  13811. esac
  13812. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13813. $as_echo "$ac_try_echo") >&5
  13814. (eval "$ac_try") 2>&5
  13815. ac_status=$?
  13816. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13817. (exit $ac_status); }; }; then
  13818. am_cv_func_iconv_works=yes
  13819. else
  13820. $as_echo "$as_me: program exited with status $ac_status" >&5
  13821. $as_echo "$as_me: failed program was:" >&5
  13822. sed 's/^/| /' conftest.$ac_ext >&5
  13823. ( exit $ac_status )
  13824. am_cv_func_iconv_works=no
  13825. fi
  13826. rm -rf conftest.dSYM
  13827. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13828. fi
  13829. LIBS="$am_save_LIBS"
  13830. fi
  13831. { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  13832. $as_echo "$am_cv_func_iconv_works" >&6; }
  13833. case "$am_cv_func_iconv_works" in
  13834. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  13835. *) am_func_iconv=yes ;;
  13836. esac
  13837. else
  13838. am_func_iconv=no am_cv_lib_iconv=no
  13839. fi
  13840. if test "$am_func_iconv" = yes; then
  13841. cat >>confdefs.h <<\_ACEOF
  13842. #define HAVE_ICONV 1
  13843. _ACEOF
  13844. fi
  13845. if test "$am_cv_lib_iconv" = yes; then
  13846. { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  13847. $as_echo_n "checking how to link with libiconv... " >&6; }
  13848. { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
  13849. $as_echo "$LIBICONV" >&6; }
  13850. else
  13851. CPPFLAGS="$am_save_CPPFLAGS"
  13852. LIBICONV=
  13853. LTLIBICONV=
  13854. fi
  13855. if test "$am_cv_func_iconv" = yes; then
  13856. { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
  13857. $as_echo_n "checking for iconv declaration... " >&6; }
  13858. if test "${am_cv_proto_iconv+set}" = set; then
  13859. $as_echo_n "(cached) " >&6
  13860. else
  13861. cat >conftest.$ac_ext <<_ACEOF
  13862. /* confdefs.h. */
  13863. _ACEOF
  13864. cat confdefs.h >>conftest.$ac_ext
  13865. cat >>conftest.$ac_ext <<_ACEOF
  13866. /* end confdefs.h. */
  13867. #include <stdlib.h>
  13868. #include <iconv.h>
  13869. extern
  13870. #ifdef __cplusplus
  13871. "C"
  13872. #endif
  13873. #if defined(__STDC__) || defined(__cplusplus)
  13874. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  13875. #else
  13876. size_t iconv();
  13877. #endif
  13878. int
  13879. main ()
  13880. {
  13881. ;
  13882. return 0;
  13883. }
  13884. _ACEOF
  13885. rm -f conftest.$ac_objext
  13886. if { (ac_try="$ac_compile"
  13887. case "(($ac_try" in
  13888. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13889. *) ac_try_echo=$ac_try;;
  13890. esac
  13891. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13892. $as_echo "$ac_try_echo") >&5
  13893. (eval "$ac_compile") 2>conftest.er1
  13894. ac_status=$?
  13895. grep -v '^ *+' conftest.er1 >conftest.err
  13896. rm -f conftest.er1
  13897. cat conftest.err >&5
  13898. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13899. (exit $ac_status); } && {
  13900. test -z "$ac_cxx_werror_flag" ||
  13901. test ! -s conftest.err
  13902. } && test -s conftest.$ac_objext; then
  13903. am_cv_proto_iconv_arg1=""
  13904. else
  13905. $as_echo "$as_me: failed program was:" >&5
  13906. sed 's/^/| /' conftest.$ac_ext >&5
  13907. am_cv_proto_iconv_arg1="const"
  13908. fi
  13909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13910. 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);"
  13911. fi
  13912. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  13913. { $as_echo "$as_me:$LINENO: result: ${ac_t:-
  13914. }$am_cv_proto_iconv" >&5
  13915. $as_echo "${ac_t:-
  13916. }$am_cv_proto_iconv" >&6; }
  13917. cat >>confdefs.h <<_ACEOF
  13918. #define ICONV_CONST $am_cv_proto_iconv_arg1
  13919. _ACEOF
  13920. fi
  13921. { $as_echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  13922. $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
  13923. if test "${gt_cv_nl_locale_name+set}" = set; then
  13924. $as_echo_n "(cached) " >&6
  13925. else
  13926. cat >conftest.$ac_ext <<_ACEOF
  13927. /* confdefs.h. */
  13928. _ACEOF
  13929. cat confdefs.h >>conftest.$ac_ext
  13930. cat >>conftest.$ac_ext <<_ACEOF
  13931. /* end confdefs.h. */
  13932. #include <langinfo.h>
  13933. #include <locale.h>
  13934. int
  13935. main ()
  13936. {
  13937. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  13938. return !cs;
  13939. ;
  13940. return 0;
  13941. }
  13942. _ACEOF
  13943. rm -f conftest.$ac_objext conftest$ac_exeext
  13944. if { (ac_try="$ac_link"
  13945. case "(($ac_try" in
  13946. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13947. *) ac_try_echo=$ac_try;;
  13948. esac
  13949. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13950. $as_echo "$ac_try_echo") >&5
  13951. (eval "$ac_link") 2>conftest.er1
  13952. ac_status=$?
  13953. grep -v '^ *+' conftest.er1 >conftest.err
  13954. rm -f conftest.er1
  13955. cat conftest.err >&5
  13956. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13957. (exit $ac_status); } && {
  13958. test -z "$ac_cxx_werror_flag" ||
  13959. test ! -s conftest.err
  13960. } && test -s conftest$ac_exeext && {
  13961. test "$cross_compiling" = yes ||
  13962. $as_test_x conftest$ac_exeext
  13963. }; then
  13964. gt_cv_nl_locale_name=yes
  13965. else
  13966. $as_echo "$as_me: failed program was:" >&5
  13967. sed 's/^/| /' conftest.$ac_ext >&5
  13968. gt_cv_nl_locale_name=no
  13969. fi
  13970. rm -rf conftest.dSYM
  13971. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13972. conftest$ac_exeext conftest.$ac_ext
  13973. fi
  13974. { $as_echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  13975. $as_echo "$gt_cv_nl_locale_name" >&6; }
  13976. if test $gt_cv_nl_locale_name = yes; then
  13977. cat >>confdefs.h <<\_ACEOF
  13978. #define HAVE_NL_LOCALE_NAME 1
  13979. _ACEOF
  13980. fi
  13981. for ac_prog in bison
  13982. do
  13983. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13984. set dummy $ac_prog; ac_word=$2
  13985. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  13986. $as_echo_n "checking for $ac_word... " >&6; }
  13987. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  13988. $as_echo_n "(cached) " >&6
  13989. else
  13990. if test -n "$INTLBISON"; then
  13991. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  13992. else
  13993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13994. for as_dir in $PATH
  13995. do
  13996. IFS=$as_save_IFS
  13997. test -z "$as_dir" && as_dir=.
  13998. for ac_exec_ext in '' $ac_executable_extensions; do
  13999. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14000. ac_cv_prog_INTLBISON="$ac_prog"
  14001. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14002. break 2
  14003. fi
  14004. done
  14005. done
  14006. IFS=$as_save_IFS
  14007. fi
  14008. fi
  14009. INTLBISON=$ac_cv_prog_INTLBISON
  14010. if test -n "$INTLBISON"; then
  14011. { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
  14012. $as_echo "$INTLBISON" >&6; }
  14013. else
  14014. { $as_echo "$as_me:$LINENO: result: no" >&5
  14015. $as_echo "no" >&6; }
  14016. fi
  14017. test -n "$INTLBISON" && break
  14018. done
  14019. if test -z "$INTLBISON"; then
  14020. ac_verc_fail=yes
  14021. else
  14022. { $as_echo "$as_me:$LINENO: checking version of bison" >&5
  14023. $as_echo_n "checking version of bison... " >&6; }
  14024. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  14025. case $ac_prog_version in
  14026. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  14027. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  14028. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  14029. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  14030. esac
  14031. { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  14032. $as_echo "$ac_prog_version" >&6; }
  14033. fi
  14034. if test $ac_verc_fail = yes; then
  14035. INTLBISON=:
  14036. fi
  14037. { $as_echo "$as_me:$LINENO: checking for long long int" >&5
  14038. $as_echo_n "checking for long long int... " >&6; }
  14039. if test "${ac_cv_type_long_long_int+set}" = set; then
  14040. $as_echo_n "(cached) " >&6
  14041. else
  14042. cat >conftest.$ac_ext <<_ACEOF
  14043. /* confdefs.h. */
  14044. _ACEOF
  14045. cat confdefs.h >>conftest.$ac_ext
  14046. cat >>conftest.$ac_ext <<_ACEOF
  14047. /* end confdefs.h. */
  14048. /* Test preprocessor. */
  14049. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  14050. error in preprocessor;
  14051. #endif
  14052. #if ! (18446744073709551615ULL <= -1ull)
  14053. error in preprocessor;
  14054. #endif
  14055. /* Test literals. */
  14056. long long int ll = 9223372036854775807ll;
  14057. long long int nll = -9223372036854775807LL;
  14058. unsigned long long int ull = 18446744073709551615ULL;
  14059. /* Test constant expressions. */
  14060. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  14061. ? 1 : -1)];
  14062. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  14063. ? 1 : -1)];
  14064. int i = 63;
  14065. int
  14066. main ()
  14067. {
  14068. /* Test availability of runtime routines for shift and division. */
  14069. long long int llmax = 9223372036854775807ll;
  14070. unsigned long long int ullmax = 18446744073709551615ull;
  14071. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  14072. | (llmax / ll) | (llmax % ll)
  14073. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  14074. | (ullmax / ull) | (ullmax % ull));
  14075. ;
  14076. return 0;
  14077. }
  14078. _ACEOF
  14079. rm -f conftest.$ac_objext conftest$ac_exeext
  14080. if { (ac_try="$ac_link"
  14081. case "(($ac_try" in
  14082. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14083. *) ac_try_echo=$ac_try;;
  14084. esac
  14085. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14086. $as_echo "$ac_try_echo") >&5
  14087. (eval "$ac_link") 2>conftest.er1
  14088. ac_status=$?
  14089. grep -v '^ *+' conftest.er1 >conftest.err
  14090. rm -f conftest.er1
  14091. cat conftest.err >&5
  14092. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14093. (exit $ac_status); } && {
  14094. test -z "$ac_cxx_werror_flag" ||
  14095. test ! -s conftest.err
  14096. } && test -s conftest$ac_exeext && {
  14097. test "$cross_compiling" = yes ||
  14098. $as_test_x conftest$ac_exeext
  14099. }; then
  14100. if test "$cross_compiling" = yes; then
  14101. ac_cv_type_long_long_int=yes
  14102. else
  14103. cat >conftest.$ac_ext <<_ACEOF
  14104. /* confdefs.h. */
  14105. _ACEOF
  14106. cat confdefs.h >>conftest.$ac_ext
  14107. cat >>conftest.$ac_ext <<_ACEOF
  14108. /* end confdefs.h. */
  14109. #include <limits.h>
  14110. #ifndef LLONG_MAX
  14111. # define HALF \
  14112. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  14113. # define LLONG_MAX (HALF - 1 + HALF)
  14114. #endif
  14115. int
  14116. main ()
  14117. {
  14118. long long int n = 1;
  14119. int i;
  14120. for (i = 0; ; i++)
  14121. {
  14122. long long int m = n << i;
  14123. if (m >> i != n)
  14124. return 1;
  14125. if (LLONG_MAX / 2 < m)
  14126. break;
  14127. }
  14128. return 0;
  14129. ;
  14130. return 0;
  14131. }
  14132. _ACEOF
  14133. rm -f conftest$ac_exeext
  14134. if { (ac_try="$ac_link"
  14135. case "(($ac_try" in
  14136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14137. *) ac_try_echo=$ac_try;;
  14138. esac
  14139. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14140. $as_echo "$ac_try_echo") >&5
  14141. (eval "$ac_link") 2>&5
  14142. ac_status=$?
  14143. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14144. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14145. { (case "(($ac_try" in
  14146. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14147. *) ac_try_echo=$ac_try;;
  14148. esac
  14149. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14150. $as_echo "$ac_try_echo") >&5
  14151. (eval "$ac_try") 2>&5
  14152. ac_status=$?
  14153. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14154. (exit $ac_status); }; }; then
  14155. ac_cv_type_long_long_int=yes
  14156. else
  14157. $as_echo "$as_me: program exited with status $ac_status" >&5
  14158. $as_echo "$as_me: failed program was:" >&5
  14159. sed 's/^/| /' conftest.$ac_ext >&5
  14160. ( exit $ac_status )
  14161. ac_cv_type_long_long_int=no
  14162. fi
  14163. rm -rf conftest.dSYM
  14164. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14165. fi
  14166. else
  14167. $as_echo "$as_me: failed program was:" >&5
  14168. sed 's/^/| /' conftest.$ac_ext >&5
  14169. ac_cv_type_long_long_int=no
  14170. fi
  14171. rm -rf conftest.dSYM
  14172. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14173. conftest$ac_exeext conftest.$ac_ext
  14174. fi
  14175. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  14176. $as_echo "$ac_cv_type_long_long_int" >&6; }
  14177. if test $ac_cv_type_long_long_int = yes; then
  14178. cat >>confdefs.h <<\_ACEOF
  14179. #define HAVE_LONG_LONG_INT 1
  14180. _ACEOF
  14181. fi
  14182. { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
  14183. $as_echo_n "checking for wchar_t... " >&6; }
  14184. if test "${gt_cv_c_wchar_t+set}" = set; then
  14185. $as_echo_n "(cached) " >&6
  14186. else
  14187. cat >conftest.$ac_ext <<_ACEOF
  14188. /* confdefs.h. */
  14189. _ACEOF
  14190. cat confdefs.h >>conftest.$ac_ext
  14191. cat >>conftest.$ac_ext <<_ACEOF
  14192. /* end confdefs.h. */
  14193. #include <stddef.h>
  14194. wchar_t foo = (wchar_t)'\0';
  14195. int
  14196. main ()
  14197. {
  14198. ;
  14199. return 0;
  14200. }
  14201. _ACEOF
  14202. rm -f conftest.$ac_objext
  14203. if { (ac_try="$ac_compile"
  14204. case "(($ac_try" in
  14205. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14206. *) ac_try_echo=$ac_try;;
  14207. esac
  14208. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14209. $as_echo "$ac_try_echo") >&5
  14210. (eval "$ac_compile") 2>conftest.er1
  14211. ac_status=$?
  14212. grep -v '^ *+' conftest.er1 >conftest.err
  14213. rm -f conftest.er1
  14214. cat conftest.err >&5
  14215. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14216. (exit $ac_status); } && {
  14217. test -z "$ac_cxx_werror_flag" ||
  14218. test ! -s conftest.err
  14219. } && test -s conftest.$ac_objext; then
  14220. gt_cv_c_wchar_t=yes
  14221. else
  14222. $as_echo "$as_me: failed program was:" >&5
  14223. sed 's/^/| /' conftest.$ac_ext >&5
  14224. gt_cv_c_wchar_t=no
  14225. fi
  14226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14227. fi
  14228. { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  14229. $as_echo "$gt_cv_c_wchar_t" >&6; }
  14230. if test $gt_cv_c_wchar_t = yes; then
  14231. cat >>confdefs.h <<\_ACEOF
  14232. #define HAVE_WCHAR_T 1
  14233. _ACEOF
  14234. fi
  14235. { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
  14236. $as_echo_n "checking for wint_t... " >&6; }
  14237. if test "${gt_cv_c_wint_t+set}" = set; then
  14238. $as_echo_n "(cached) " >&6
  14239. else
  14240. cat >conftest.$ac_ext <<_ACEOF
  14241. /* confdefs.h. */
  14242. _ACEOF
  14243. cat confdefs.h >>conftest.$ac_ext
  14244. cat >>conftest.$ac_ext <<_ACEOF
  14245. /* end confdefs.h. */
  14246. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  14247. <wchar.h>.
  14248. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  14249. before <wchar.h>. */
  14250. #include <stddef.h>
  14251. #include <stdio.h>
  14252. #include <time.h>
  14253. #include <wchar.h>
  14254. wint_t foo = (wchar_t)'\0';
  14255. int
  14256. main ()
  14257. {
  14258. ;
  14259. return 0;
  14260. }
  14261. _ACEOF
  14262. rm -f conftest.$ac_objext
  14263. if { (ac_try="$ac_compile"
  14264. case "(($ac_try" in
  14265. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14266. *) ac_try_echo=$ac_try;;
  14267. esac
  14268. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14269. $as_echo "$ac_try_echo") >&5
  14270. (eval "$ac_compile") 2>conftest.er1
  14271. ac_status=$?
  14272. grep -v '^ *+' conftest.er1 >conftest.err
  14273. rm -f conftest.er1
  14274. cat conftest.err >&5
  14275. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14276. (exit $ac_status); } && {
  14277. test -z "$ac_cxx_werror_flag" ||
  14278. test ! -s conftest.err
  14279. } && test -s conftest.$ac_objext; then
  14280. gt_cv_c_wint_t=yes
  14281. else
  14282. $as_echo "$as_me: failed program was:" >&5
  14283. sed 's/^/| /' conftest.$ac_ext >&5
  14284. gt_cv_c_wint_t=no
  14285. fi
  14286. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14287. fi
  14288. { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  14289. $as_echo "$gt_cv_c_wint_t" >&6; }
  14290. if test $gt_cv_c_wint_t = yes; then
  14291. cat >>confdefs.h <<\_ACEOF
  14292. #define HAVE_WINT_T 1
  14293. _ACEOF
  14294. fi
  14295. { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
  14296. $as_echo_n "checking for intmax_t... " >&6; }
  14297. if test "${gt_cv_c_intmax_t+set}" = set; then
  14298. $as_echo_n "(cached) " >&6
  14299. else
  14300. cat >conftest.$ac_ext <<_ACEOF
  14301. /* confdefs.h. */
  14302. _ACEOF
  14303. cat confdefs.h >>conftest.$ac_ext
  14304. cat >>conftest.$ac_ext <<_ACEOF
  14305. /* end confdefs.h. */
  14306. #include <stddef.h>
  14307. #include <stdlib.h>
  14308. #if HAVE_STDINT_H_WITH_UINTMAX
  14309. #include <stdint.h>
  14310. #endif
  14311. #if HAVE_INTTYPES_H_WITH_UINTMAX
  14312. #include <inttypes.h>
  14313. #endif
  14314. int
  14315. main ()
  14316. {
  14317. intmax_t x = -1;
  14318. return !x;
  14319. ;
  14320. return 0;
  14321. }
  14322. _ACEOF
  14323. rm -f conftest.$ac_objext
  14324. if { (ac_try="$ac_compile"
  14325. case "(($ac_try" in
  14326. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14327. *) ac_try_echo=$ac_try;;
  14328. esac
  14329. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14330. $as_echo "$ac_try_echo") >&5
  14331. (eval "$ac_compile") 2>conftest.er1
  14332. ac_status=$?
  14333. grep -v '^ *+' conftest.er1 >conftest.err
  14334. rm -f conftest.er1
  14335. cat conftest.err >&5
  14336. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14337. (exit $ac_status); } && {
  14338. test -z "$ac_cxx_werror_flag" ||
  14339. test ! -s conftest.err
  14340. } && test -s conftest.$ac_objext; then
  14341. gt_cv_c_intmax_t=yes
  14342. else
  14343. $as_echo "$as_me: failed program was:" >&5
  14344. sed 's/^/| /' conftest.$ac_ext >&5
  14345. gt_cv_c_intmax_t=no
  14346. fi
  14347. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14348. fi
  14349. { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  14350. $as_echo "$gt_cv_c_intmax_t" >&6; }
  14351. if test $gt_cv_c_intmax_t = yes; then
  14352. cat >>confdefs.h <<\_ACEOF
  14353. #define HAVE_INTMAX_T 1
  14354. _ACEOF
  14355. fi
  14356. { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  14357. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  14358. if test "${gt_cv_func_printf_posix+set}" = set; then
  14359. $as_echo_n "(cached) " >&6
  14360. else
  14361. if test "$cross_compiling" = yes; then
  14362. cat >conftest.$ac_ext <<_ACEOF
  14363. /* confdefs.h. */
  14364. _ACEOF
  14365. cat confdefs.h >>conftest.$ac_ext
  14366. cat >>conftest.$ac_ext <<_ACEOF
  14367. /* end confdefs.h. */
  14368. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  14369. notposix
  14370. #endif
  14371. _ACEOF
  14372. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14373. $EGREP "notposix" >/dev/null 2>&1; then
  14374. gt_cv_func_printf_posix="guessing no"
  14375. else
  14376. gt_cv_func_printf_posix="guessing yes"
  14377. fi
  14378. rm -f conftest*
  14379. else
  14380. cat >conftest.$ac_ext <<_ACEOF
  14381. /* confdefs.h. */
  14382. _ACEOF
  14383. cat confdefs.h >>conftest.$ac_ext
  14384. cat >>conftest.$ac_ext <<_ACEOF
  14385. /* end confdefs.h. */
  14386. #include <stdio.h>
  14387. #include <string.h>
  14388. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  14389. dollar expansion (possibly an autoconf bug). */
  14390. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  14391. static char buf[100];
  14392. int main ()
  14393. {
  14394. sprintf (buf, format, 33, 55);
  14395. return (strcmp (buf, "55 33") != 0);
  14396. }
  14397. _ACEOF
  14398. rm -f conftest$ac_exeext
  14399. if { (ac_try="$ac_link"
  14400. case "(($ac_try" in
  14401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14402. *) ac_try_echo=$ac_try;;
  14403. esac
  14404. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14405. $as_echo "$ac_try_echo") >&5
  14406. (eval "$ac_link") 2>&5
  14407. ac_status=$?
  14408. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14409. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14410. { (case "(($ac_try" in
  14411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14412. *) ac_try_echo=$ac_try;;
  14413. esac
  14414. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14415. $as_echo "$ac_try_echo") >&5
  14416. (eval "$ac_try") 2>&5
  14417. ac_status=$?
  14418. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14419. (exit $ac_status); }; }; then
  14420. gt_cv_func_printf_posix=yes
  14421. else
  14422. $as_echo "$as_me: program exited with status $ac_status" >&5
  14423. $as_echo "$as_me: failed program was:" >&5
  14424. sed 's/^/| /' conftest.$ac_ext >&5
  14425. ( exit $ac_status )
  14426. gt_cv_func_printf_posix=no
  14427. fi
  14428. rm -rf conftest.dSYM
  14429. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14430. fi
  14431. fi
  14432. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  14433. $as_echo "$gt_cv_func_printf_posix" >&6; }
  14434. case $gt_cv_func_printf_posix in
  14435. *yes)
  14436. cat >>confdefs.h <<\_ACEOF
  14437. #define HAVE_POSIX_PRINTF 1
  14438. _ACEOF
  14439. ;;
  14440. esac
  14441. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  14442. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  14443. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  14444. $as_echo_n "(cached) " >&6
  14445. else
  14446. cat >conftest.$ac_ext <<_ACEOF
  14447. /* confdefs.h. */
  14448. _ACEOF
  14449. cat confdefs.h >>conftest.$ac_ext
  14450. cat >>conftest.$ac_ext <<_ACEOF
  14451. /* end confdefs.h. */
  14452. #include <features.h>
  14453. #ifdef __GNU_LIBRARY__
  14454. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  14455. Lucky GNU user
  14456. #endif
  14457. #endif
  14458. _ACEOF
  14459. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14460. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  14461. ac_cv_gnu_library_2_1=yes
  14462. else
  14463. ac_cv_gnu_library_2_1=no
  14464. fi
  14465. rm -f conftest*
  14466. fi
  14467. { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  14468. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  14469. GLIBC21="$ac_cv_gnu_library_2_1"
  14470. for ac_header in stdint.h
  14471. do
  14472. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14473. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14474. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14475. $as_echo_n "checking for $ac_header... " >&6; }
  14476. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14477. $as_echo_n "(cached) " >&6
  14478. fi
  14479. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14480. $as_echo "$as_val"'`
  14481. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14482. $as_echo "$ac_res" >&6; }
  14483. else
  14484. # Is the header compilable?
  14485. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14486. $as_echo_n "checking $ac_header usability... " >&6; }
  14487. cat >conftest.$ac_ext <<_ACEOF
  14488. /* confdefs.h. */
  14489. _ACEOF
  14490. cat confdefs.h >>conftest.$ac_ext
  14491. cat >>conftest.$ac_ext <<_ACEOF
  14492. /* end confdefs.h. */
  14493. $ac_includes_default
  14494. #include <$ac_header>
  14495. _ACEOF
  14496. rm -f conftest.$ac_objext
  14497. if { (ac_try="$ac_compile"
  14498. case "(($ac_try" in
  14499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14500. *) ac_try_echo=$ac_try;;
  14501. esac
  14502. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14503. $as_echo "$ac_try_echo") >&5
  14504. (eval "$ac_compile") 2>conftest.er1
  14505. ac_status=$?
  14506. grep -v '^ *+' conftest.er1 >conftest.err
  14507. rm -f conftest.er1
  14508. cat conftest.err >&5
  14509. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14510. (exit $ac_status); } && {
  14511. test -z "$ac_cxx_werror_flag" ||
  14512. test ! -s conftest.err
  14513. } && test -s conftest.$ac_objext; then
  14514. ac_header_compiler=yes
  14515. else
  14516. $as_echo "$as_me: failed program was:" >&5
  14517. sed 's/^/| /' conftest.$ac_ext >&5
  14518. ac_header_compiler=no
  14519. fi
  14520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14521. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14522. $as_echo "$ac_header_compiler" >&6; }
  14523. # Is the header present?
  14524. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14525. $as_echo_n "checking $ac_header presence... " >&6; }
  14526. cat >conftest.$ac_ext <<_ACEOF
  14527. /* confdefs.h. */
  14528. _ACEOF
  14529. cat confdefs.h >>conftest.$ac_ext
  14530. cat >>conftest.$ac_ext <<_ACEOF
  14531. /* end confdefs.h. */
  14532. #include <$ac_header>
  14533. _ACEOF
  14534. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14535. case "(($ac_try" in
  14536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14537. *) ac_try_echo=$ac_try;;
  14538. esac
  14539. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14540. $as_echo "$ac_try_echo") >&5
  14541. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14542. ac_status=$?
  14543. grep -v '^ *+' conftest.er1 >conftest.err
  14544. rm -f conftest.er1
  14545. cat conftest.err >&5
  14546. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14547. (exit $ac_status); } >/dev/null && {
  14548. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14549. test ! -s conftest.err
  14550. }; then
  14551. ac_header_preproc=yes
  14552. else
  14553. $as_echo "$as_me: failed program was:" >&5
  14554. sed 's/^/| /' conftest.$ac_ext >&5
  14555. ac_header_preproc=no
  14556. fi
  14557. rm -f conftest.err conftest.$ac_ext
  14558. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14559. $as_echo "$ac_header_preproc" >&6; }
  14560. # So? What about this header?
  14561. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14562. yes:no: )
  14563. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14564. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14565. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14566. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14567. ac_header_preproc=yes
  14568. ;;
  14569. no:yes:* )
  14570. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14571. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14572. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14573. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14574. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14575. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14576. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14577. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14578. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14579. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14580. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14581. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14582. ( cat <<\_ASBOX
  14583. ## ----------------------------------------------- ##
  14584. ## Report this to t-tujikawa@users.sourceforge.net ##
  14585. ## ----------------------------------------------- ##
  14586. _ASBOX
  14587. ) | sed "s/^/$as_me: WARNING: /" >&2
  14588. ;;
  14589. esac
  14590. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14591. $as_echo_n "checking for $ac_header... " >&6; }
  14592. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14593. $as_echo_n "(cached) " >&6
  14594. else
  14595. eval "$as_ac_Header=\$ac_header_preproc"
  14596. fi
  14597. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14598. $as_echo "$as_val"'`
  14599. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14600. $as_echo "$ac_res" >&6; }
  14601. fi
  14602. as_val=`eval 'as_val=${'$as_ac_Header'}
  14603. $as_echo "$as_val"'`
  14604. if test "x$as_val" = x""yes; then
  14605. cat >>confdefs.h <<_ACEOF
  14606. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14607. _ACEOF
  14608. fi
  14609. done
  14610. { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  14611. $as_echo_n "checking for SIZE_MAX... " >&6; }
  14612. if test "${gl_cv_size_max+set}" = set; then
  14613. $as_echo_n "(cached) " >&6
  14614. else
  14615. gl_cv_size_max=
  14616. cat >conftest.$ac_ext <<_ACEOF
  14617. /* confdefs.h. */
  14618. _ACEOF
  14619. cat confdefs.h >>conftest.$ac_ext
  14620. cat >>conftest.$ac_ext <<_ACEOF
  14621. /* end confdefs.h. */
  14622. #include <limits.h>
  14623. #if HAVE_STDINT_H
  14624. #include <stdint.h>
  14625. #endif
  14626. #ifdef SIZE_MAX
  14627. Found it
  14628. #endif
  14629. _ACEOF
  14630. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14631. $EGREP "Found it" >/dev/null 2>&1; then
  14632. gl_cv_size_max=yes
  14633. fi
  14634. rm -f conftest*
  14635. if test -z "$gl_cv_size_max"; then
  14636. if test "$cross_compiling" = yes; then
  14637. # Depending upon the size, compute the lo and hi bounds.
  14638. cat >conftest.$ac_ext <<_ACEOF
  14639. /* confdefs.h. */
  14640. _ACEOF
  14641. cat confdefs.h >>conftest.$ac_ext
  14642. cat >>conftest.$ac_ext <<_ACEOF
  14643. /* end confdefs.h. */
  14644. #include <stddef.h>
  14645. #include <limits.h>
  14646. int
  14647. main ()
  14648. {
  14649. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  14650. test_array [0] = 0
  14651. ;
  14652. return 0;
  14653. }
  14654. _ACEOF
  14655. rm -f conftest.$ac_objext
  14656. if { (ac_try="$ac_compile"
  14657. case "(($ac_try" in
  14658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14659. *) ac_try_echo=$ac_try;;
  14660. esac
  14661. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14662. $as_echo "$ac_try_echo") >&5
  14663. (eval "$ac_compile") 2>conftest.er1
  14664. ac_status=$?
  14665. grep -v '^ *+' conftest.er1 >conftest.err
  14666. rm -f conftest.er1
  14667. cat conftest.err >&5
  14668. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14669. (exit $ac_status); } && {
  14670. test -z "$ac_cxx_werror_flag" ||
  14671. test ! -s conftest.err
  14672. } && test -s conftest.$ac_objext; then
  14673. ac_lo=0 ac_mid=0
  14674. while :; do
  14675. cat >conftest.$ac_ext <<_ACEOF
  14676. /* confdefs.h. */
  14677. _ACEOF
  14678. cat confdefs.h >>conftest.$ac_ext
  14679. cat >>conftest.$ac_ext <<_ACEOF
  14680. /* end confdefs.h. */
  14681. #include <stddef.h>
  14682. #include <limits.h>
  14683. int
  14684. main ()
  14685. {
  14686. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  14687. test_array [0] = 0
  14688. ;
  14689. return 0;
  14690. }
  14691. _ACEOF
  14692. rm -f conftest.$ac_objext
  14693. if { (ac_try="$ac_compile"
  14694. case "(($ac_try" in
  14695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14696. *) ac_try_echo=$ac_try;;
  14697. esac
  14698. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14699. $as_echo "$ac_try_echo") >&5
  14700. (eval "$ac_compile") 2>conftest.er1
  14701. ac_status=$?
  14702. grep -v '^ *+' conftest.er1 >conftest.err
  14703. rm -f conftest.er1
  14704. cat conftest.err >&5
  14705. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14706. (exit $ac_status); } && {
  14707. test -z "$ac_cxx_werror_flag" ||
  14708. test ! -s conftest.err
  14709. } && test -s conftest.$ac_objext; then
  14710. ac_hi=$ac_mid; break
  14711. else
  14712. $as_echo "$as_me: failed program was:" >&5
  14713. sed 's/^/| /' conftest.$ac_ext >&5
  14714. ac_lo=`expr $ac_mid + 1`
  14715. if test $ac_lo -le $ac_mid; then
  14716. ac_lo= ac_hi=
  14717. break
  14718. fi
  14719. ac_mid=`expr 2 '*' $ac_mid + 1`
  14720. fi
  14721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14722. done
  14723. else
  14724. $as_echo "$as_me: failed program was:" >&5
  14725. sed 's/^/| /' conftest.$ac_ext >&5
  14726. cat >conftest.$ac_ext <<_ACEOF
  14727. /* confdefs.h. */
  14728. _ACEOF
  14729. cat confdefs.h >>conftest.$ac_ext
  14730. cat >>conftest.$ac_ext <<_ACEOF
  14731. /* end confdefs.h. */
  14732. #include <stddef.h>
  14733. #include <limits.h>
  14734. int
  14735. main ()
  14736. {
  14737. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  14738. test_array [0] = 0
  14739. ;
  14740. return 0;
  14741. }
  14742. _ACEOF
  14743. rm -f conftest.$ac_objext
  14744. if { (ac_try="$ac_compile"
  14745. case "(($ac_try" in
  14746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14747. *) ac_try_echo=$ac_try;;
  14748. esac
  14749. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14750. $as_echo "$ac_try_echo") >&5
  14751. (eval "$ac_compile") 2>conftest.er1
  14752. ac_status=$?
  14753. grep -v '^ *+' conftest.er1 >conftest.err
  14754. rm -f conftest.er1
  14755. cat conftest.err >&5
  14756. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14757. (exit $ac_status); } && {
  14758. test -z "$ac_cxx_werror_flag" ||
  14759. test ! -s conftest.err
  14760. } && test -s conftest.$ac_objext; then
  14761. ac_hi=-1 ac_mid=-1
  14762. while :; do
  14763. cat >conftest.$ac_ext <<_ACEOF
  14764. /* confdefs.h. */
  14765. _ACEOF
  14766. cat confdefs.h >>conftest.$ac_ext
  14767. cat >>conftest.$ac_ext <<_ACEOF
  14768. /* end confdefs.h. */
  14769. #include <stddef.h>
  14770. #include <limits.h>
  14771. int
  14772. main ()
  14773. {
  14774. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  14775. test_array [0] = 0
  14776. ;
  14777. return 0;
  14778. }
  14779. _ACEOF
  14780. rm -f conftest.$ac_objext
  14781. if { (ac_try="$ac_compile"
  14782. case "(($ac_try" in
  14783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14784. *) ac_try_echo=$ac_try;;
  14785. esac
  14786. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14787. $as_echo "$ac_try_echo") >&5
  14788. (eval "$ac_compile") 2>conftest.er1
  14789. ac_status=$?
  14790. grep -v '^ *+' conftest.er1 >conftest.err
  14791. rm -f conftest.er1
  14792. cat conftest.err >&5
  14793. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14794. (exit $ac_status); } && {
  14795. test -z "$ac_cxx_werror_flag" ||
  14796. test ! -s conftest.err
  14797. } && test -s conftest.$ac_objext; then
  14798. ac_lo=$ac_mid; break
  14799. else
  14800. $as_echo "$as_me: failed program was:" >&5
  14801. sed 's/^/| /' conftest.$ac_ext >&5
  14802. ac_hi=`expr '(' $ac_mid ')' - 1`
  14803. if test $ac_mid -le $ac_hi; then
  14804. ac_lo= ac_hi=
  14805. break
  14806. fi
  14807. ac_mid=`expr 2 '*' $ac_mid`
  14808. fi
  14809. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14810. done
  14811. else
  14812. $as_echo "$as_me: failed program was:" >&5
  14813. sed 's/^/| /' conftest.$ac_ext >&5
  14814. ac_lo= ac_hi=
  14815. fi
  14816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14817. fi
  14818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14819. # Binary search between lo and hi bounds.
  14820. while test "x$ac_lo" != "x$ac_hi"; do
  14821. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  14822. cat >conftest.$ac_ext <<_ACEOF
  14823. /* confdefs.h. */
  14824. _ACEOF
  14825. cat confdefs.h >>conftest.$ac_ext
  14826. cat >>conftest.$ac_ext <<_ACEOF
  14827. /* end confdefs.h. */
  14828. #include <stddef.h>
  14829. #include <limits.h>
  14830. int
  14831. main ()
  14832. {
  14833. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  14834. test_array [0] = 0
  14835. ;
  14836. return 0;
  14837. }
  14838. _ACEOF
  14839. rm -f conftest.$ac_objext
  14840. if { (ac_try="$ac_compile"
  14841. case "(($ac_try" in
  14842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14843. *) ac_try_echo=$ac_try;;
  14844. esac
  14845. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14846. $as_echo "$ac_try_echo") >&5
  14847. (eval "$ac_compile") 2>conftest.er1
  14848. ac_status=$?
  14849. grep -v '^ *+' conftest.er1 >conftest.err
  14850. rm -f conftest.er1
  14851. cat conftest.err >&5
  14852. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14853. (exit $ac_status); } && {
  14854. test -z "$ac_cxx_werror_flag" ||
  14855. test ! -s conftest.err
  14856. } && test -s conftest.$ac_objext; then
  14857. ac_hi=$ac_mid
  14858. else
  14859. $as_echo "$as_me: failed program was:" >&5
  14860. sed 's/^/| /' conftest.$ac_ext >&5
  14861. ac_lo=`expr '(' $ac_mid ')' + 1`
  14862. fi
  14863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14864. done
  14865. case $ac_lo in
  14866. ?*) size_t_bits_minus_1=$ac_lo;;
  14867. '') size_t_bits_minus_1= ;;
  14868. esac
  14869. else
  14870. cat >conftest.$ac_ext <<_ACEOF
  14871. /* confdefs.h. */
  14872. _ACEOF
  14873. cat confdefs.h >>conftest.$ac_ext
  14874. cat >>conftest.$ac_ext <<_ACEOF
  14875. /* end confdefs.h. */
  14876. #include <stddef.h>
  14877. #include <limits.h>
  14878. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  14879. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  14880. #include <stdio.h>
  14881. #include <stdlib.h>
  14882. int
  14883. main ()
  14884. {
  14885. FILE *f = fopen ("conftest.val", "w");
  14886. if (! f)
  14887. return 1;
  14888. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  14889. {
  14890. long int i = longval ();
  14891. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  14892. return 1;
  14893. fprintf (f, "%ld", i);
  14894. }
  14895. else
  14896. {
  14897. unsigned long int i = ulongval ();
  14898. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  14899. return 1;
  14900. fprintf (f, "%lu", i);
  14901. }
  14902. /* Do not output a trailing newline, as this causes \r\n confusion
  14903. on some platforms. */
  14904. return ferror (f) || fclose (f) != 0;
  14905. ;
  14906. return 0;
  14907. }
  14908. _ACEOF
  14909. rm -f conftest$ac_exeext
  14910. if { (ac_try="$ac_link"
  14911. case "(($ac_try" in
  14912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14913. *) ac_try_echo=$ac_try;;
  14914. esac
  14915. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14916. $as_echo "$ac_try_echo") >&5
  14917. (eval "$ac_link") 2>&5
  14918. ac_status=$?
  14919. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14920. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14921. { (case "(($ac_try" in
  14922. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14923. *) ac_try_echo=$ac_try;;
  14924. esac
  14925. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14926. $as_echo "$ac_try_echo") >&5
  14927. (eval "$ac_try") 2>&5
  14928. ac_status=$?
  14929. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14930. (exit $ac_status); }; }; then
  14931. size_t_bits_minus_1=`cat conftest.val`
  14932. else
  14933. $as_echo "$as_me: program exited with status $ac_status" >&5
  14934. $as_echo "$as_me: failed program was:" >&5
  14935. sed 's/^/| /' conftest.$ac_ext >&5
  14936. ( exit $ac_status )
  14937. size_t_bits_minus_1=
  14938. fi
  14939. rm -rf conftest.dSYM
  14940. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14941. fi
  14942. rm -f conftest.val
  14943. if test "$cross_compiling" = yes; then
  14944. # Depending upon the size, compute the lo and hi bounds.
  14945. cat >conftest.$ac_ext <<_ACEOF
  14946. /* confdefs.h. */
  14947. _ACEOF
  14948. cat confdefs.h >>conftest.$ac_ext
  14949. cat >>conftest.$ac_ext <<_ACEOF
  14950. /* end confdefs.h. */
  14951. #include <stddef.h>
  14952. int
  14953. main ()
  14954. {
  14955. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  14956. test_array [0] = 0
  14957. ;
  14958. return 0;
  14959. }
  14960. _ACEOF
  14961. rm -f conftest.$ac_objext
  14962. if { (ac_try="$ac_compile"
  14963. case "(($ac_try" in
  14964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14965. *) ac_try_echo=$ac_try;;
  14966. esac
  14967. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14968. $as_echo "$ac_try_echo") >&5
  14969. (eval "$ac_compile") 2>conftest.er1
  14970. ac_status=$?
  14971. grep -v '^ *+' conftest.er1 >conftest.err
  14972. rm -f conftest.er1
  14973. cat conftest.err >&5
  14974. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14975. (exit $ac_status); } && {
  14976. test -z "$ac_cxx_werror_flag" ||
  14977. test ! -s conftest.err
  14978. } && test -s conftest.$ac_objext; then
  14979. ac_lo=0 ac_mid=0
  14980. while :; do
  14981. cat >conftest.$ac_ext <<_ACEOF
  14982. /* confdefs.h. */
  14983. _ACEOF
  14984. cat confdefs.h >>conftest.$ac_ext
  14985. cat >>conftest.$ac_ext <<_ACEOF
  14986. /* end confdefs.h. */
  14987. #include <stddef.h>
  14988. int
  14989. main ()
  14990. {
  14991. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  14992. test_array [0] = 0
  14993. ;
  14994. return 0;
  14995. }
  14996. _ACEOF
  14997. rm -f conftest.$ac_objext
  14998. if { (ac_try="$ac_compile"
  14999. case "(($ac_try" in
  15000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15001. *) ac_try_echo=$ac_try;;
  15002. esac
  15003. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15004. $as_echo "$ac_try_echo") >&5
  15005. (eval "$ac_compile") 2>conftest.er1
  15006. ac_status=$?
  15007. grep -v '^ *+' conftest.er1 >conftest.err
  15008. rm -f conftest.er1
  15009. cat conftest.err >&5
  15010. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15011. (exit $ac_status); } && {
  15012. test -z "$ac_cxx_werror_flag" ||
  15013. test ! -s conftest.err
  15014. } && test -s conftest.$ac_objext; then
  15015. ac_hi=$ac_mid; break
  15016. else
  15017. $as_echo "$as_me: failed program was:" >&5
  15018. sed 's/^/| /' conftest.$ac_ext >&5
  15019. ac_lo=`expr $ac_mid + 1`
  15020. if test $ac_lo -le $ac_mid; then
  15021. ac_lo= ac_hi=
  15022. break
  15023. fi
  15024. ac_mid=`expr 2 '*' $ac_mid + 1`
  15025. fi
  15026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15027. done
  15028. else
  15029. $as_echo "$as_me: failed program was:" >&5
  15030. sed 's/^/| /' conftest.$ac_ext >&5
  15031. cat >conftest.$ac_ext <<_ACEOF
  15032. /* confdefs.h. */
  15033. _ACEOF
  15034. cat confdefs.h >>conftest.$ac_ext
  15035. cat >>conftest.$ac_ext <<_ACEOF
  15036. /* end confdefs.h. */
  15037. #include <stddef.h>
  15038. int
  15039. main ()
  15040. {
  15041. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  15042. test_array [0] = 0
  15043. ;
  15044. return 0;
  15045. }
  15046. _ACEOF
  15047. rm -f conftest.$ac_objext
  15048. if { (ac_try="$ac_compile"
  15049. case "(($ac_try" in
  15050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15051. *) ac_try_echo=$ac_try;;
  15052. esac
  15053. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15054. $as_echo "$ac_try_echo") >&5
  15055. (eval "$ac_compile") 2>conftest.er1
  15056. ac_status=$?
  15057. grep -v '^ *+' conftest.er1 >conftest.err
  15058. rm -f conftest.er1
  15059. cat conftest.err >&5
  15060. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15061. (exit $ac_status); } && {
  15062. test -z "$ac_cxx_werror_flag" ||
  15063. test ! -s conftest.err
  15064. } && test -s conftest.$ac_objext; then
  15065. ac_hi=-1 ac_mid=-1
  15066. while :; do
  15067. cat >conftest.$ac_ext <<_ACEOF
  15068. /* confdefs.h. */
  15069. _ACEOF
  15070. cat confdefs.h >>conftest.$ac_ext
  15071. cat >>conftest.$ac_ext <<_ACEOF
  15072. /* end confdefs.h. */
  15073. #include <stddef.h>
  15074. int
  15075. main ()
  15076. {
  15077. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  15078. test_array [0] = 0
  15079. ;
  15080. return 0;
  15081. }
  15082. _ACEOF
  15083. rm -f conftest.$ac_objext
  15084. if { (ac_try="$ac_compile"
  15085. case "(($ac_try" in
  15086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15087. *) ac_try_echo=$ac_try;;
  15088. esac
  15089. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15090. $as_echo "$ac_try_echo") >&5
  15091. (eval "$ac_compile") 2>conftest.er1
  15092. ac_status=$?
  15093. grep -v '^ *+' conftest.er1 >conftest.err
  15094. rm -f conftest.er1
  15095. cat conftest.err >&5
  15096. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15097. (exit $ac_status); } && {
  15098. test -z "$ac_cxx_werror_flag" ||
  15099. test ! -s conftest.err
  15100. } && test -s conftest.$ac_objext; then
  15101. ac_lo=$ac_mid; break
  15102. else
  15103. $as_echo "$as_me: failed program was:" >&5
  15104. sed 's/^/| /' conftest.$ac_ext >&5
  15105. ac_hi=`expr '(' $ac_mid ')' - 1`
  15106. if test $ac_mid -le $ac_hi; then
  15107. ac_lo= ac_hi=
  15108. break
  15109. fi
  15110. ac_mid=`expr 2 '*' $ac_mid`
  15111. fi
  15112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15113. done
  15114. else
  15115. $as_echo "$as_me: failed program was:" >&5
  15116. sed 's/^/| /' conftest.$ac_ext >&5
  15117. ac_lo= ac_hi=
  15118. fi
  15119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15120. fi
  15121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15122. # Binary search between lo and hi bounds.
  15123. while test "x$ac_lo" != "x$ac_hi"; do
  15124. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  15125. cat >conftest.$ac_ext <<_ACEOF
  15126. /* confdefs.h. */
  15127. _ACEOF
  15128. cat confdefs.h >>conftest.$ac_ext
  15129. cat >>conftest.$ac_ext <<_ACEOF
  15130. /* end confdefs.h. */
  15131. #include <stddef.h>
  15132. int
  15133. main ()
  15134. {
  15135. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  15136. test_array [0] = 0
  15137. ;
  15138. return 0;
  15139. }
  15140. _ACEOF
  15141. rm -f conftest.$ac_objext
  15142. if { (ac_try="$ac_compile"
  15143. case "(($ac_try" in
  15144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15145. *) ac_try_echo=$ac_try;;
  15146. esac
  15147. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15148. $as_echo "$ac_try_echo") >&5
  15149. (eval "$ac_compile") 2>conftest.er1
  15150. ac_status=$?
  15151. grep -v '^ *+' conftest.er1 >conftest.err
  15152. rm -f conftest.er1
  15153. cat conftest.err >&5
  15154. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15155. (exit $ac_status); } && {
  15156. test -z "$ac_cxx_werror_flag" ||
  15157. test ! -s conftest.err
  15158. } && test -s conftest.$ac_objext; then
  15159. ac_hi=$ac_mid
  15160. else
  15161. $as_echo "$as_me: failed program was:" >&5
  15162. sed 's/^/| /' conftest.$ac_ext >&5
  15163. ac_lo=`expr '(' $ac_mid ')' + 1`
  15164. fi
  15165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15166. done
  15167. case $ac_lo in
  15168. ?*) fits_in_uint=$ac_lo;;
  15169. '') fits_in_uint= ;;
  15170. esac
  15171. else
  15172. cat >conftest.$ac_ext <<_ACEOF
  15173. /* confdefs.h. */
  15174. _ACEOF
  15175. cat confdefs.h >>conftest.$ac_ext
  15176. cat >>conftest.$ac_ext <<_ACEOF
  15177. /* end confdefs.h. */
  15178. #include <stddef.h>
  15179. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  15180. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  15181. #include <stdio.h>
  15182. #include <stdlib.h>
  15183. int
  15184. main ()
  15185. {
  15186. FILE *f = fopen ("conftest.val", "w");
  15187. if (! f)
  15188. return 1;
  15189. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  15190. {
  15191. long int i = longval ();
  15192. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  15193. return 1;
  15194. fprintf (f, "%ld", i);
  15195. }
  15196. else
  15197. {
  15198. unsigned long int i = ulongval ();
  15199. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  15200. return 1;
  15201. fprintf (f, "%lu", i);
  15202. }
  15203. /* Do not output a trailing newline, as this causes \r\n confusion
  15204. on some platforms. */
  15205. return ferror (f) || fclose (f) != 0;
  15206. ;
  15207. return 0;
  15208. }
  15209. _ACEOF
  15210. rm -f conftest$ac_exeext
  15211. if { (ac_try="$ac_link"
  15212. case "(($ac_try" in
  15213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15214. *) ac_try_echo=$ac_try;;
  15215. esac
  15216. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15217. $as_echo "$ac_try_echo") >&5
  15218. (eval "$ac_link") 2>&5
  15219. ac_status=$?
  15220. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15221. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15222. { (case "(($ac_try" in
  15223. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15224. *) ac_try_echo=$ac_try;;
  15225. esac
  15226. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15227. $as_echo "$ac_try_echo") >&5
  15228. (eval "$ac_try") 2>&5
  15229. ac_status=$?
  15230. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15231. (exit $ac_status); }; }; then
  15232. fits_in_uint=`cat conftest.val`
  15233. else
  15234. $as_echo "$as_me: program exited with status $ac_status" >&5
  15235. $as_echo "$as_me: failed program was:" >&5
  15236. sed 's/^/| /' conftest.$ac_ext >&5
  15237. ( exit $ac_status )
  15238. fits_in_uint=
  15239. fi
  15240. rm -rf conftest.dSYM
  15241. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15242. fi
  15243. rm -f conftest.val
  15244. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  15245. if test $fits_in_uint = 1; then
  15246. cat >conftest.$ac_ext <<_ACEOF
  15247. /* confdefs.h. */
  15248. _ACEOF
  15249. cat confdefs.h >>conftest.$ac_ext
  15250. cat >>conftest.$ac_ext <<_ACEOF
  15251. /* end confdefs.h. */
  15252. #include <stddef.h>
  15253. extern size_t foo;
  15254. extern unsigned long foo;
  15255. int
  15256. main ()
  15257. {
  15258. ;
  15259. return 0;
  15260. }
  15261. _ACEOF
  15262. rm -f conftest.$ac_objext
  15263. if { (ac_try="$ac_compile"
  15264. case "(($ac_try" in
  15265. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15266. *) ac_try_echo=$ac_try;;
  15267. esac
  15268. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15269. $as_echo "$ac_try_echo") >&5
  15270. (eval "$ac_compile") 2>conftest.er1
  15271. ac_status=$?
  15272. grep -v '^ *+' conftest.er1 >conftest.err
  15273. rm -f conftest.er1
  15274. cat conftest.err >&5
  15275. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15276. (exit $ac_status); } && {
  15277. test -z "$ac_cxx_werror_flag" ||
  15278. test ! -s conftest.err
  15279. } && test -s conftest.$ac_objext; then
  15280. fits_in_uint=0
  15281. else
  15282. $as_echo "$as_me: failed program was:" >&5
  15283. sed 's/^/| /' conftest.$ac_ext >&5
  15284. fi
  15285. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15286. fi
  15287. if test $fits_in_uint = 1; then
  15288. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  15289. else
  15290. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  15291. fi
  15292. else
  15293. gl_cv_size_max='((size_t)~(size_t)0)'
  15294. fi
  15295. fi
  15296. fi
  15297. { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  15298. $as_echo "$gl_cv_size_max" >&6; }
  15299. if test "$gl_cv_size_max" != yes; then
  15300. cat >>confdefs.h <<_ACEOF
  15301. #define SIZE_MAX $gl_cv_size_max
  15302. _ACEOF
  15303. fi
  15304. for ac_header in stdint.h
  15305. do
  15306. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15307. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15308. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15309. $as_echo_n "checking for $ac_header... " >&6; }
  15310. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15311. $as_echo_n "(cached) " >&6
  15312. fi
  15313. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15314. $as_echo "$as_val"'`
  15315. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15316. $as_echo "$ac_res" >&6; }
  15317. else
  15318. # Is the header compilable?
  15319. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15320. $as_echo_n "checking $ac_header usability... " >&6; }
  15321. cat >conftest.$ac_ext <<_ACEOF
  15322. /* confdefs.h. */
  15323. _ACEOF
  15324. cat confdefs.h >>conftest.$ac_ext
  15325. cat >>conftest.$ac_ext <<_ACEOF
  15326. /* end confdefs.h. */
  15327. $ac_includes_default
  15328. #include <$ac_header>
  15329. _ACEOF
  15330. rm -f conftest.$ac_objext
  15331. if { (ac_try="$ac_compile"
  15332. case "(($ac_try" in
  15333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15334. *) ac_try_echo=$ac_try;;
  15335. esac
  15336. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15337. $as_echo "$ac_try_echo") >&5
  15338. (eval "$ac_compile") 2>conftest.er1
  15339. ac_status=$?
  15340. grep -v '^ *+' conftest.er1 >conftest.err
  15341. rm -f conftest.er1
  15342. cat conftest.err >&5
  15343. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15344. (exit $ac_status); } && {
  15345. test -z "$ac_cxx_werror_flag" ||
  15346. test ! -s conftest.err
  15347. } && test -s conftest.$ac_objext; then
  15348. ac_header_compiler=yes
  15349. else
  15350. $as_echo "$as_me: failed program was:" >&5
  15351. sed 's/^/| /' conftest.$ac_ext >&5
  15352. ac_header_compiler=no
  15353. fi
  15354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15355. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15356. $as_echo "$ac_header_compiler" >&6; }
  15357. # Is the header present?
  15358. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15359. $as_echo_n "checking $ac_header presence... " >&6; }
  15360. cat >conftest.$ac_ext <<_ACEOF
  15361. /* confdefs.h. */
  15362. _ACEOF
  15363. cat confdefs.h >>conftest.$ac_ext
  15364. cat >>conftest.$ac_ext <<_ACEOF
  15365. /* end confdefs.h. */
  15366. #include <$ac_header>
  15367. _ACEOF
  15368. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15369. case "(($ac_try" in
  15370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15371. *) ac_try_echo=$ac_try;;
  15372. esac
  15373. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15374. $as_echo "$ac_try_echo") >&5
  15375. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15376. ac_status=$?
  15377. grep -v '^ *+' conftest.er1 >conftest.err
  15378. rm -f conftest.er1
  15379. cat conftest.err >&5
  15380. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15381. (exit $ac_status); } >/dev/null && {
  15382. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15383. test ! -s conftest.err
  15384. }; then
  15385. ac_header_preproc=yes
  15386. else
  15387. $as_echo "$as_me: failed program was:" >&5
  15388. sed 's/^/| /' conftest.$ac_ext >&5
  15389. ac_header_preproc=no
  15390. fi
  15391. rm -f conftest.err conftest.$ac_ext
  15392. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15393. $as_echo "$ac_header_preproc" >&6; }
  15394. # So? What about this header?
  15395. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15396. yes:no: )
  15397. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15398. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15399. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15400. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15401. ac_header_preproc=yes
  15402. ;;
  15403. no:yes:* )
  15404. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15405. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15406. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15407. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15408. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15409. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15410. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15411. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15412. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15413. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15414. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15415. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15416. ( cat <<\_ASBOX
  15417. ## ----------------------------------------------- ##
  15418. ## Report this to t-tujikawa@users.sourceforge.net ##
  15419. ## ----------------------------------------------- ##
  15420. _ASBOX
  15421. ) | sed "s/^/$as_me: WARNING: /" >&2
  15422. ;;
  15423. esac
  15424. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15425. $as_echo_n "checking for $ac_header... " >&6; }
  15426. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15427. $as_echo_n "(cached) " >&6
  15428. else
  15429. eval "$as_ac_Header=\$ac_header_preproc"
  15430. fi
  15431. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15432. $as_echo "$as_val"'`
  15433. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15434. $as_echo "$ac_res" >&6; }
  15435. fi
  15436. as_val=`eval 'as_val=${'$as_ac_Header'}
  15437. $as_echo "$as_val"'`
  15438. if test "x$as_val" = x""yes; then
  15439. cat >>confdefs.h <<_ACEOF
  15440. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15441. _ACEOF
  15442. fi
  15443. done
  15444. { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  15445. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  15446. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  15447. $as_echo_n "(cached) " >&6
  15448. else
  15449. gt_save_LIBS="$LIBS"
  15450. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15451. cat >conftest.$ac_ext <<_ACEOF
  15452. /* confdefs.h. */
  15453. _ACEOF
  15454. cat confdefs.h >>conftest.$ac_ext
  15455. cat >>conftest.$ac_ext <<_ACEOF
  15456. /* end confdefs.h. */
  15457. #include <CoreFoundation/CFPreferences.h>
  15458. int
  15459. main ()
  15460. {
  15461. CFPreferencesCopyAppValue(NULL, NULL)
  15462. ;
  15463. return 0;
  15464. }
  15465. _ACEOF
  15466. rm -f conftest.$ac_objext conftest$ac_exeext
  15467. if { (ac_try="$ac_link"
  15468. case "(($ac_try" in
  15469. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15470. *) ac_try_echo=$ac_try;;
  15471. esac
  15472. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15473. $as_echo "$ac_try_echo") >&5
  15474. (eval "$ac_link") 2>conftest.er1
  15475. ac_status=$?
  15476. grep -v '^ *+' conftest.er1 >conftest.err
  15477. rm -f conftest.er1
  15478. cat conftest.err >&5
  15479. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15480. (exit $ac_status); } && {
  15481. test -z "$ac_cxx_werror_flag" ||
  15482. test ! -s conftest.err
  15483. } && test -s conftest$ac_exeext && {
  15484. test "$cross_compiling" = yes ||
  15485. $as_test_x conftest$ac_exeext
  15486. }; then
  15487. gt_cv_func_CFPreferencesCopyAppValue=yes
  15488. else
  15489. $as_echo "$as_me: failed program was:" >&5
  15490. sed 's/^/| /' conftest.$ac_ext >&5
  15491. gt_cv_func_CFPreferencesCopyAppValue=no
  15492. fi
  15493. rm -rf conftest.dSYM
  15494. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15495. conftest$ac_exeext conftest.$ac_ext
  15496. LIBS="$gt_save_LIBS"
  15497. fi
  15498. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  15499. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  15500. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  15501. cat >>confdefs.h <<\_ACEOF
  15502. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  15503. _ACEOF
  15504. fi
  15505. { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  15506. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  15507. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  15508. $as_echo_n "(cached) " >&6
  15509. else
  15510. gt_save_LIBS="$LIBS"
  15511. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15512. cat >conftest.$ac_ext <<_ACEOF
  15513. /* confdefs.h. */
  15514. _ACEOF
  15515. cat confdefs.h >>conftest.$ac_ext
  15516. cat >>conftest.$ac_ext <<_ACEOF
  15517. /* end confdefs.h. */
  15518. #include <CoreFoundation/CFLocale.h>
  15519. int
  15520. main ()
  15521. {
  15522. CFLocaleCopyCurrent();
  15523. ;
  15524. return 0;
  15525. }
  15526. _ACEOF
  15527. rm -f conftest.$ac_objext conftest$ac_exeext
  15528. if { (ac_try="$ac_link"
  15529. case "(($ac_try" in
  15530. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15531. *) ac_try_echo=$ac_try;;
  15532. esac
  15533. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15534. $as_echo "$ac_try_echo") >&5
  15535. (eval "$ac_link") 2>conftest.er1
  15536. ac_status=$?
  15537. grep -v '^ *+' conftest.er1 >conftest.err
  15538. rm -f conftest.er1
  15539. cat conftest.err >&5
  15540. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15541. (exit $ac_status); } && {
  15542. test -z "$ac_cxx_werror_flag" ||
  15543. test ! -s conftest.err
  15544. } && test -s conftest$ac_exeext && {
  15545. test "$cross_compiling" = yes ||
  15546. $as_test_x conftest$ac_exeext
  15547. }; then
  15548. gt_cv_func_CFLocaleCopyCurrent=yes
  15549. else
  15550. $as_echo "$as_me: failed program was:" >&5
  15551. sed 's/^/| /' conftest.$ac_ext >&5
  15552. gt_cv_func_CFLocaleCopyCurrent=no
  15553. fi
  15554. rm -rf conftest.dSYM
  15555. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15556. conftest$ac_exeext conftest.$ac_ext
  15557. LIBS="$gt_save_LIBS"
  15558. fi
  15559. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  15560. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  15561. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15562. cat >>confdefs.h <<\_ACEOF
  15563. #define HAVE_CFLOCALECOPYCURRENT 1
  15564. _ACEOF
  15565. fi
  15566. INTL_MACOSX_LIBS=
  15567. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15568. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  15569. fi
  15570. { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  15571. $as_echo_n "checking for ptrdiff_t... " >&6; }
  15572. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  15573. $as_echo_n "(cached) " >&6
  15574. else
  15575. ac_cv_type_ptrdiff_t=no
  15576. cat >conftest.$ac_ext <<_ACEOF
  15577. /* confdefs.h. */
  15578. _ACEOF
  15579. cat confdefs.h >>conftest.$ac_ext
  15580. cat >>conftest.$ac_ext <<_ACEOF
  15581. /* end confdefs.h. */
  15582. $ac_includes_default
  15583. int
  15584. main ()
  15585. {
  15586. if (sizeof (ptrdiff_t))
  15587. return 0;
  15588. ;
  15589. return 0;
  15590. }
  15591. _ACEOF
  15592. rm -f conftest.$ac_objext
  15593. if { (ac_try="$ac_compile"
  15594. case "(($ac_try" in
  15595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15596. *) ac_try_echo=$ac_try;;
  15597. esac
  15598. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15599. $as_echo "$ac_try_echo") >&5
  15600. (eval "$ac_compile") 2>conftest.er1
  15601. ac_status=$?
  15602. grep -v '^ *+' conftest.er1 >conftest.err
  15603. rm -f conftest.er1
  15604. cat conftest.err >&5
  15605. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15606. (exit $ac_status); } && {
  15607. test -z "$ac_cxx_werror_flag" ||
  15608. test ! -s conftest.err
  15609. } && test -s conftest.$ac_objext; then
  15610. cat >conftest.$ac_ext <<_ACEOF
  15611. /* confdefs.h. */
  15612. _ACEOF
  15613. cat confdefs.h >>conftest.$ac_ext
  15614. cat >>conftest.$ac_ext <<_ACEOF
  15615. /* end confdefs.h. */
  15616. $ac_includes_default
  15617. int
  15618. main ()
  15619. {
  15620. if (sizeof ((ptrdiff_t)))
  15621. return 0;
  15622. ;
  15623. return 0;
  15624. }
  15625. _ACEOF
  15626. rm -f conftest.$ac_objext
  15627. if { (ac_try="$ac_compile"
  15628. case "(($ac_try" in
  15629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15630. *) ac_try_echo=$ac_try;;
  15631. esac
  15632. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15633. $as_echo "$ac_try_echo") >&5
  15634. (eval "$ac_compile") 2>conftest.er1
  15635. ac_status=$?
  15636. grep -v '^ *+' conftest.er1 >conftest.err
  15637. rm -f conftest.er1
  15638. cat conftest.err >&5
  15639. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15640. (exit $ac_status); } && {
  15641. test -z "$ac_cxx_werror_flag" ||
  15642. test ! -s conftest.err
  15643. } && test -s conftest.$ac_objext; then
  15644. :
  15645. else
  15646. $as_echo "$as_me: failed program was:" >&5
  15647. sed 's/^/| /' conftest.$ac_ext >&5
  15648. ac_cv_type_ptrdiff_t=yes
  15649. fi
  15650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15651. else
  15652. $as_echo "$as_me: failed program was:" >&5
  15653. sed 's/^/| /' conftest.$ac_ext >&5
  15654. fi
  15655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15656. fi
  15657. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  15658. $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
  15659. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
  15660. :
  15661. else
  15662. cat >>confdefs.h <<\_ACEOF
  15663. #define ptrdiff_t long
  15664. _ACEOF
  15665. fi
  15666. for ac_header in stddef.h stdlib.h string.h
  15667. do
  15668. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15669. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15670. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15671. $as_echo_n "checking for $ac_header... " >&6; }
  15672. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15673. $as_echo_n "(cached) " >&6
  15674. fi
  15675. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15676. $as_echo "$as_val"'`
  15677. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15678. $as_echo "$ac_res" >&6; }
  15679. else
  15680. # Is the header compilable?
  15681. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15682. $as_echo_n "checking $ac_header usability... " >&6; }
  15683. cat >conftest.$ac_ext <<_ACEOF
  15684. /* confdefs.h. */
  15685. _ACEOF
  15686. cat confdefs.h >>conftest.$ac_ext
  15687. cat >>conftest.$ac_ext <<_ACEOF
  15688. /* end confdefs.h. */
  15689. $ac_includes_default
  15690. #include <$ac_header>
  15691. _ACEOF
  15692. rm -f conftest.$ac_objext
  15693. if { (ac_try="$ac_compile"
  15694. case "(($ac_try" in
  15695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15696. *) ac_try_echo=$ac_try;;
  15697. esac
  15698. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15699. $as_echo "$ac_try_echo") >&5
  15700. (eval "$ac_compile") 2>conftest.er1
  15701. ac_status=$?
  15702. grep -v '^ *+' conftest.er1 >conftest.err
  15703. rm -f conftest.er1
  15704. cat conftest.err >&5
  15705. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15706. (exit $ac_status); } && {
  15707. test -z "$ac_cxx_werror_flag" ||
  15708. test ! -s conftest.err
  15709. } && test -s conftest.$ac_objext; then
  15710. ac_header_compiler=yes
  15711. else
  15712. $as_echo "$as_me: failed program was:" >&5
  15713. sed 's/^/| /' conftest.$ac_ext >&5
  15714. ac_header_compiler=no
  15715. fi
  15716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15717. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15718. $as_echo "$ac_header_compiler" >&6; }
  15719. # Is the header present?
  15720. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15721. $as_echo_n "checking $ac_header presence... " >&6; }
  15722. cat >conftest.$ac_ext <<_ACEOF
  15723. /* confdefs.h. */
  15724. _ACEOF
  15725. cat confdefs.h >>conftest.$ac_ext
  15726. cat >>conftest.$ac_ext <<_ACEOF
  15727. /* end confdefs.h. */
  15728. #include <$ac_header>
  15729. _ACEOF
  15730. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15731. case "(($ac_try" in
  15732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15733. *) ac_try_echo=$ac_try;;
  15734. esac
  15735. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15736. $as_echo "$ac_try_echo") >&5
  15737. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15738. ac_status=$?
  15739. grep -v '^ *+' conftest.er1 >conftest.err
  15740. rm -f conftest.er1
  15741. cat conftest.err >&5
  15742. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15743. (exit $ac_status); } >/dev/null && {
  15744. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15745. test ! -s conftest.err
  15746. }; then
  15747. ac_header_preproc=yes
  15748. else
  15749. $as_echo "$as_me: failed program was:" >&5
  15750. sed 's/^/| /' conftest.$ac_ext >&5
  15751. ac_header_preproc=no
  15752. fi
  15753. rm -f conftest.err conftest.$ac_ext
  15754. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15755. $as_echo "$ac_header_preproc" >&6; }
  15756. # So? What about this header?
  15757. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15758. yes:no: )
  15759. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15760. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15761. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15762. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15763. ac_header_preproc=yes
  15764. ;;
  15765. no:yes:* )
  15766. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15767. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15768. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15769. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15770. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15771. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15772. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15773. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15774. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15775. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15776. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15777. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15778. ( cat <<\_ASBOX
  15779. ## ----------------------------------------------- ##
  15780. ## Report this to t-tujikawa@users.sourceforge.net ##
  15781. ## ----------------------------------------------- ##
  15782. _ASBOX
  15783. ) | sed "s/^/$as_me: WARNING: /" >&2
  15784. ;;
  15785. esac
  15786. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15787. $as_echo_n "checking for $ac_header... " >&6; }
  15788. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15789. $as_echo_n "(cached) " >&6
  15790. else
  15791. eval "$as_ac_Header=\$ac_header_preproc"
  15792. fi
  15793. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15794. $as_echo "$as_val"'`
  15795. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15796. $as_echo "$ac_res" >&6; }
  15797. fi
  15798. as_val=`eval 'as_val=${'$as_ac_Header'}
  15799. $as_echo "$as_val"'`
  15800. if test "x$as_val" = x""yes; then
  15801. cat >>confdefs.h <<_ACEOF
  15802. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15803. _ACEOF
  15804. fi
  15805. done
  15806. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  15807. do
  15808. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15809. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  15810. $as_echo_n "checking for $ac_func... " >&6; }
  15811. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15812. $as_echo_n "(cached) " >&6
  15813. else
  15814. cat >conftest.$ac_ext <<_ACEOF
  15815. /* confdefs.h. */
  15816. _ACEOF
  15817. cat confdefs.h >>conftest.$ac_ext
  15818. cat >>conftest.$ac_ext <<_ACEOF
  15819. /* end confdefs.h. */
  15820. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15821. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15822. #define $ac_func innocuous_$ac_func
  15823. /* System header to define __stub macros and hopefully few prototypes,
  15824. which can conflict with char $ac_func (); below.
  15825. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15826. <limits.h> exists even on freestanding compilers. */
  15827. #ifdef __STDC__
  15828. # include <limits.h>
  15829. #else
  15830. # include <assert.h>
  15831. #endif
  15832. #undef $ac_func
  15833. /* Override any GCC internal prototype to avoid an error.
  15834. Use char because int might match the return type of a GCC
  15835. builtin and then its argument prototype would still apply. */
  15836. #ifdef __cplusplus
  15837. extern "C"
  15838. #endif
  15839. char $ac_func ();
  15840. /* The GNU C library defines this for functions which it implements
  15841. to always fail with ENOSYS. Some functions are actually named
  15842. something starting with __ and the normal name is an alias. */
  15843. #if defined __stub_$ac_func || defined __stub___$ac_func
  15844. choke me
  15845. #endif
  15846. int
  15847. main ()
  15848. {
  15849. return $ac_func ();
  15850. ;
  15851. return 0;
  15852. }
  15853. _ACEOF
  15854. rm -f conftest.$ac_objext conftest$ac_exeext
  15855. if { (ac_try="$ac_link"
  15856. case "(($ac_try" in
  15857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15858. *) ac_try_echo=$ac_try;;
  15859. esac
  15860. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15861. $as_echo "$ac_try_echo") >&5
  15862. (eval "$ac_link") 2>conftest.er1
  15863. ac_status=$?
  15864. grep -v '^ *+' conftest.er1 >conftest.err
  15865. rm -f conftest.er1
  15866. cat conftest.err >&5
  15867. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15868. (exit $ac_status); } && {
  15869. test -z "$ac_cxx_werror_flag" ||
  15870. test ! -s conftest.err
  15871. } && test -s conftest$ac_exeext && {
  15872. test "$cross_compiling" = yes ||
  15873. $as_test_x conftest$ac_exeext
  15874. }; then
  15875. eval "$as_ac_var=yes"
  15876. else
  15877. $as_echo "$as_me: failed program was:" >&5
  15878. sed 's/^/| /' conftest.$ac_ext >&5
  15879. eval "$as_ac_var=no"
  15880. fi
  15881. rm -rf conftest.dSYM
  15882. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15883. conftest$ac_exeext conftest.$ac_ext
  15884. fi
  15885. ac_res=`eval 'as_val=${'$as_ac_var'}
  15886. $as_echo "$as_val"'`
  15887. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15888. $as_echo "$ac_res" >&6; }
  15889. as_val=`eval 'as_val=${'$as_ac_var'}
  15890. $as_echo "$as_val"'`
  15891. if test "x$as_val" = x""yes; then
  15892. cat >>confdefs.h <<_ACEOF
  15893. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15894. _ACEOF
  15895. fi
  15896. done
  15897. { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  15898. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  15899. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  15900. $as_echo_n "(cached) " >&6
  15901. else
  15902. cat >conftest.$ac_ext <<_ACEOF
  15903. /* confdefs.h. */
  15904. _ACEOF
  15905. cat confdefs.h >>conftest.$ac_ext
  15906. cat >>conftest.$ac_ext <<_ACEOF
  15907. /* end confdefs.h. */
  15908. #include <stdio.h>
  15909. int
  15910. main ()
  15911. {
  15912. #ifndef _snprintf
  15913. char *p = (char *) _snprintf;
  15914. #endif
  15915. ;
  15916. return 0;
  15917. }
  15918. _ACEOF
  15919. rm -f conftest.$ac_objext
  15920. if { (ac_try="$ac_compile"
  15921. case "(($ac_try" in
  15922. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15923. *) ac_try_echo=$ac_try;;
  15924. esac
  15925. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15926. $as_echo "$ac_try_echo") >&5
  15927. (eval "$ac_compile") 2>conftest.er1
  15928. ac_status=$?
  15929. grep -v '^ *+' conftest.er1 >conftest.err
  15930. rm -f conftest.er1
  15931. cat conftest.err >&5
  15932. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15933. (exit $ac_status); } && {
  15934. test -z "$ac_cxx_werror_flag" ||
  15935. test ! -s conftest.err
  15936. } && test -s conftest.$ac_objext; then
  15937. ac_cv_have_decl__snprintf=yes
  15938. else
  15939. $as_echo "$as_me: failed program was:" >&5
  15940. sed 's/^/| /' conftest.$ac_ext >&5
  15941. ac_cv_have_decl__snprintf=no
  15942. fi
  15943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15944. fi
  15945. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  15946. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  15947. if test $ac_cv_have_decl__snprintf = yes; then
  15948. gt_value=1
  15949. else
  15950. gt_value=0
  15951. fi
  15952. cat >>confdefs.h <<_ACEOF
  15953. #define HAVE_DECL__SNPRINTF $gt_value
  15954. _ACEOF
  15955. { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  15956. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  15957. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  15958. $as_echo_n "(cached) " >&6
  15959. else
  15960. cat >conftest.$ac_ext <<_ACEOF
  15961. /* confdefs.h. */
  15962. _ACEOF
  15963. cat confdefs.h >>conftest.$ac_ext
  15964. cat >>conftest.$ac_ext <<_ACEOF
  15965. /* end confdefs.h. */
  15966. #include <stdio.h>
  15967. int
  15968. main ()
  15969. {
  15970. #ifndef _snwprintf
  15971. char *p = (char *) _snwprintf;
  15972. #endif
  15973. ;
  15974. return 0;
  15975. }
  15976. _ACEOF
  15977. rm -f conftest.$ac_objext
  15978. if { (ac_try="$ac_compile"
  15979. case "(($ac_try" in
  15980. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15981. *) ac_try_echo=$ac_try;;
  15982. esac
  15983. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15984. $as_echo "$ac_try_echo") >&5
  15985. (eval "$ac_compile") 2>conftest.er1
  15986. ac_status=$?
  15987. grep -v '^ *+' conftest.er1 >conftest.err
  15988. rm -f conftest.er1
  15989. cat conftest.err >&5
  15990. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15991. (exit $ac_status); } && {
  15992. test -z "$ac_cxx_werror_flag" ||
  15993. test ! -s conftest.err
  15994. } && test -s conftest.$ac_objext; then
  15995. ac_cv_have_decl__snwprintf=yes
  15996. else
  15997. $as_echo "$as_me: failed program was:" >&5
  15998. sed 's/^/| /' conftest.$ac_ext >&5
  15999. ac_cv_have_decl__snwprintf=no
  16000. fi
  16001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16002. fi
  16003. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  16004. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  16005. if test $ac_cv_have_decl__snwprintf = yes; then
  16006. gt_value=1
  16007. else
  16008. gt_value=0
  16009. fi
  16010. cat >>confdefs.h <<_ACEOF
  16011. #define HAVE_DECL__SNWPRINTF $gt_value
  16012. _ACEOF
  16013. { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  16014. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  16015. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  16016. $as_echo_n "(cached) " >&6
  16017. else
  16018. cat >conftest.$ac_ext <<_ACEOF
  16019. /* confdefs.h. */
  16020. _ACEOF
  16021. cat confdefs.h >>conftest.$ac_ext
  16022. cat >>conftest.$ac_ext <<_ACEOF
  16023. /* end confdefs.h. */
  16024. #include <stdio.h>
  16025. int
  16026. main ()
  16027. {
  16028. #ifndef getc_unlocked
  16029. char *p = (char *) getc_unlocked;
  16030. #endif
  16031. ;
  16032. return 0;
  16033. }
  16034. _ACEOF
  16035. rm -f conftest.$ac_objext
  16036. if { (ac_try="$ac_compile"
  16037. case "(($ac_try" in
  16038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16039. *) ac_try_echo=$ac_try;;
  16040. esac
  16041. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16042. $as_echo "$ac_try_echo") >&5
  16043. (eval "$ac_compile") 2>conftest.er1
  16044. ac_status=$?
  16045. grep -v '^ *+' conftest.er1 >conftest.err
  16046. rm -f conftest.er1
  16047. cat conftest.err >&5
  16048. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16049. (exit $ac_status); } && {
  16050. test -z "$ac_cxx_werror_flag" ||
  16051. test ! -s conftest.err
  16052. } && test -s conftest.$ac_objext; then
  16053. ac_cv_have_decl_getc_unlocked=yes
  16054. else
  16055. $as_echo "$as_me: failed program was:" >&5
  16056. sed 's/^/| /' conftest.$ac_ext >&5
  16057. ac_cv_have_decl_getc_unlocked=no
  16058. fi
  16059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16060. fi
  16061. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  16062. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  16063. if test $ac_cv_have_decl_getc_unlocked = yes; then
  16064. gt_value=1
  16065. else
  16066. gt_value=0
  16067. fi
  16068. cat >>confdefs.h <<_ACEOF
  16069. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  16070. _ACEOF
  16071. case $gt_cv_func_printf_posix in
  16072. *yes) HAVE_POSIX_PRINTF=1 ;;
  16073. *) HAVE_POSIX_PRINTF=0 ;;
  16074. esac
  16075. if test "$ac_cv_func_asprintf" = yes; then
  16076. HAVE_ASPRINTF=1
  16077. else
  16078. HAVE_ASPRINTF=0
  16079. fi
  16080. if test "$ac_cv_func_snprintf" = yes; then
  16081. HAVE_SNPRINTF=1
  16082. else
  16083. HAVE_SNPRINTF=0
  16084. fi
  16085. if test "$ac_cv_func_wprintf" = yes; then
  16086. HAVE_WPRINTF=1
  16087. else
  16088. HAVE_WPRINTF=0
  16089. fi
  16090. { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  16091. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  16092. if test "${am_cv_langinfo_codeset+set}" = set; then
  16093. $as_echo_n "(cached) " >&6
  16094. else
  16095. cat >conftest.$ac_ext <<_ACEOF
  16096. /* confdefs.h. */
  16097. _ACEOF
  16098. cat confdefs.h >>conftest.$ac_ext
  16099. cat >>conftest.$ac_ext <<_ACEOF
  16100. /* end confdefs.h. */
  16101. #include <langinfo.h>
  16102. int
  16103. main ()
  16104. {
  16105. char* cs = nl_langinfo(CODESET); return !cs;
  16106. ;
  16107. return 0;
  16108. }
  16109. _ACEOF
  16110. rm -f conftest.$ac_objext conftest$ac_exeext
  16111. if { (ac_try="$ac_link"
  16112. case "(($ac_try" in
  16113. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16114. *) ac_try_echo=$ac_try;;
  16115. esac
  16116. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16117. $as_echo "$ac_try_echo") >&5
  16118. (eval "$ac_link") 2>conftest.er1
  16119. ac_status=$?
  16120. grep -v '^ *+' conftest.er1 >conftest.err
  16121. rm -f conftest.er1
  16122. cat conftest.err >&5
  16123. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16124. (exit $ac_status); } && {
  16125. test -z "$ac_cxx_werror_flag" ||
  16126. test ! -s conftest.err
  16127. } && test -s conftest$ac_exeext && {
  16128. test "$cross_compiling" = yes ||
  16129. $as_test_x conftest$ac_exeext
  16130. }; then
  16131. am_cv_langinfo_codeset=yes
  16132. else
  16133. $as_echo "$as_me: failed program was:" >&5
  16134. sed 's/^/| /' conftest.$ac_ext >&5
  16135. am_cv_langinfo_codeset=no
  16136. fi
  16137. rm -rf conftest.dSYM
  16138. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16139. conftest$ac_exeext conftest.$ac_ext
  16140. fi
  16141. { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  16142. $as_echo "$am_cv_langinfo_codeset" >&6; }
  16143. if test $am_cv_langinfo_codeset = yes; then
  16144. cat >>confdefs.h <<\_ACEOF
  16145. #define HAVE_LANGINFO_CODESET 1
  16146. _ACEOF
  16147. fi
  16148. { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  16149. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  16150. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  16151. $as_echo_n "(cached) " >&6
  16152. else
  16153. cat >conftest.$ac_ext <<_ACEOF
  16154. /* confdefs.h. */
  16155. _ACEOF
  16156. cat confdefs.h >>conftest.$ac_ext
  16157. cat >>conftest.$ac_ext <<_ACEOF
  16158. /* end confdefs.h. */
  16159. #include <locale.h>
  16160. int
  16161. main ()
  16162. {
  16163. return LC_MESSAGES
  16164. ;
  16165. return 0;
  16166. }
  16167. _ACEOF
  16168. rm -f conftest.$ac_objext conftest$ac_exeext
  16169. if { (ac_try="$ac_link"
  16170. case "(($ac_try" in
  16171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16172. *) ac_try_echo=$ac_try;;
  16173. esac
  16174. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16175. $as_echo "$ac_try_echo") >&5
  16176. (eval "$ac_link") 2>conftest.er1
  16177. ac_status=$?
  16178. grep -v '^ *+' conftest.er1 >conftest.err
  16179. rm -f conftest.er1
  16180. cat conftest.err >&5
  16181. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16182. (exit $ac_status); } && {
  16183. test -z "$ac_cxx_werror_flag" ||
  16184. test ! -s conftest.err
  16185. } && test -s conftest$ac_exeext && {
  16186. test "$cross_compiling" = yes ||
  16187. $as_test_x conftest$ac_exeext
  16188. }; then
  16189. gt_cv_val_LC_MESSAGES=yes
  16190. else
  16191. $as_echo "$as_me: failed program was:" >&5
  16192. sed 's/^/| /' conftest.$ac_ext >&5
  16193. gt_cv_val_LC_MESSAGES=no
  16194. fi
  16195. rm -rf conftest.dSYM
  16196. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16197. conftest$ac_exeext conftest.$ac_ext
  16198. fi
  16199. { $as_echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  16200. $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
  16201. if test $gt_cv_val_LC_MESSAGES = yes; then
  16202. cat >>confdefs.h <<\_ACEOF
  16203. #define HAVE_LC_MESSAGES 1
  16204. _ACEOF
  16205. fi
  16206. if test "$enable_shared" = yes; then
  16207. case "$host_os" in
  16208. mingw* | cygwin*) is_woe32dll=yes ;;
  16209. *) is_woe32dll=no ;;
  16210. esac
  16211. else
  16212. is_woe32dll=no
  16213. fi
  16214. WOE32DLL=$is_woe32dll
  16215. case "$host_os" in
  16216. mingw* | cygwin*) is_woe32=yes ;;
  16217. *) is_woe32=no ;;
  16218. esac
  16219. WOE32=$is_woe32
  16220. if test $WOE32 = yes; then
  16221. if test -n "$ac_tool_prefix"; then
  16222. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  16223. set dummy ${ac_tool_prefix}windres; ac_word=$2
  16224. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  16225. $as_echo_n "checking for $ac_word... " >&6; }
  16226. if test "${ac_cv_prog_WINDRES+set}" = set; then
  16227. $as_echo_n "(cached) " >&6
  16228. else
  16229. if test -n "$WINDRES"; then
  16230. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  16231. else
  16232. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16233. for as_dir in $PATH
  16234. do
  16235. IFS=$as_save_IFS
  16236. test -z "$as_dir" && as_dir=.
  16237. for ac_exec_ext in '' $ac_executable_extensions; do
  16238. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16239. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  16240. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16241. break 2
  16242. fi
  16243. done
  16244. done
  16245. IFS=$as_save_IFS
  16246. fi
  16247. fi
  16248. WINDRES=$ac_cv_prog_WINDRES
  16249. if test -n "$WINDRES"; then
  16250. { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
  16251. $as_echo "$WINDRES" >&6; }
  16252. else
  16253. { $as_echo "$as_me:$LINENO: result: no" >&5
  16254. $as_echo "no" >&6; }
  16255. fi
  16256. fi
  16257. if test -z "$ac_cv_prog_WINDRES"; then
  16258. ac_ct_WINDRES=$WINDRES
  16259. # Extract the first word of "windres", so it can be a program name with args.
  16260. set dummy windres; ac_word=$2
  16261. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  16262. $as_echo_n "checking for $ac_word... " >&6; }
  16263. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  16264. $as_echo_n "(cached) " >&6
  16265. else
  16266. if test -n "$ac_ct_WINDRES"; then
  16267. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  16268. else
  16269. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16270. for as_dir in $PATH
  16271. do
  16272. IFS=$as_save_IFS
  16273. test -z "$as_dir" && as_dir=.
  16274. for ac_exec_ext in '' $ac_executable_extensions; do
  16275. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16276. ac_cv_prog_ac_ct_WINDRES="windres"
  16277. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16278. break 2
  16279. fi
  16280. done
  16281. done
  16282. IFS=$as_save_IFS
  16283. fi
  16284. fi
  16285. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  16286. if test -n "$ac_ct_WINDRES"; then
  16287. { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  16288. $as_echo "$ac_ct_WINDRES" >&6; }
  16289. else
  16290. { $as_echo "$as_me:$LINENO: result: no" >&5
  16291. $as_echo "no" >&6; }
  16292. fi
  16293. if test "x$ac_ct_WINDRES" = x; then
  16294. WINDRES=""
  16295. else
  16296. case $cross_compiling:$ac_tool_warned in
  16297. yes:)
  16298. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  16299. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16300. ac_tool_warned=yes ;;
  16301. esac
  16302. WINDRES=$ac_ct_WINDRES
  16303. fi
  16304. else
  16305. WINDRES="$ac_cv_prog_WINDRES"
  16306. fi
  16307. fi
  16308. case "$host_os" in
  16309. hpux*) LTLIBC="" ;;
  16310. *) LTLIBC="-lc" ;;
  16311. esac
  16312. { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  16313. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  16314. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  16315. $as_echo_n "(cached) " >&6
  16316. else
  16317. gt_save_LIBS="$LIBS"
  16318. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  16319. cat >conftest.$ac_ext <<_ACEOF
  16320. /* confdefs.h. */
  16321. _ACEOF
  16322. cat confdefs.h >>conftest.$ac_ext
  16323. cat >>conftest.$ac_ext <<_ACEOF
  16324. /* end confdefs.h. */
  16325. #include <CoreFoundation/CFPreferences.h>
  16326. int
  16327. main ()
  16328. {
  16329. CFPreferencesCopyAppValue(NULL, NULL)
  16330. ;
  16331. return 0;
  16332. }
  16333. _ACEOF
  16334. rm -f conftest.$ac_objext conftest$ac_exeext
  16335. if { (ac_try="$ac_link"
  16336. case "(($ac_try" in
  16337. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16338. *) ac_try_echo=$ac_try;;
  16339. esac
  16340. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16341. $as_echo "$ac_try_echo") >&5
  16342. (eval "$ac_link") 2>conftest.er1
  16343. ac_status=$?
  16344. grep -v '^ *+' conftest.er1 >conftest.err
  16345. rm -f conftest.er1
  16346. cat conftest.err >&5
  16347. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16348. (exit $ac_status); } && {
  16349. test -z "$ac_cxx_werror_flag" ||
  16350. test ! -s conftest.err
  16351. } && test -s conftest$ac_exeext && {
  16352. test "$cross_compiling" = yes ||
  16353. $as_test_x conftest$ac_exeext
  16354. }; then
  16355. gt_cv_func_CFPreferencesCopyAppValue=yes
  16356. else
  16357. $as_echo "$as_me: failed program was:" >&5
  16358. sed 's/^/| /' conftest.$ac_ext >&5
  16359. gt_cv_func_CFPreferencesCopyAppValue=no
  16360. fi
  16361. rm -rf conftest.dSYM
  16362. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16363. conftest$ac_exeext conftest.$ac_ext
  16364. LIBS="$gt_save_LIBS"
  16365. fi
  16366. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  16367. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  16368. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  16369. cat >>confdefs.h <<\_ACEOF
  16370. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  16371. _ACEOF
  16372. fi
  16373. { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  16374. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  16375. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  16376. $as_echo_n "(cached) " >&6
  16377. else
  16378. gt_save_LIBS="$LIBS"
  16379. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  16380. cat >conftest.$ac_ext <<_ACEOF
  16381. /* confdefs.h. */
  16382. _ACEOF
  16383. cat confdefs.h >>conftest.$ac_ext
  16384. cat >>conftest.$ac_ext <<_ACEOF
  16385. /* end confdefs.h. */
  16386. #include <CoreFoundation/CFLocale.h>
  16387. int
  16388. main ()
  16389. {
  16390. CFLocaleCopyCurrent();
  16391. ;
  16392. return 0;
  16393. }
  16394. _ACEOF
  16395. rm -f conftest.$ac_objext conftest$ac_exeext
  16396. if { (ac_try="$ac_link"
  16397. case "(($ac_try" in
  16398. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16399. *) ac_try_echo=$ac_try;;
  16400. esac
  16401. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16402. $as_echo "$ac_try_echo") >&5
  16403. (eval "$ac_link") 2>conftest.er1
  16404. ac_status=$?
  16405. grep -v '^ *+' conftest.er1 >conftest.err
  16406. rm -f conftest.er1
  16407. cat conftest.err >&5
  16408. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16409. (exit $ac_status); } && {
  16410. test -z "$ac_cxx_werror_flag" ||
  16411. test ! -s conftest.err
  16412. } && test -s conftest$ac_exeext && {
  16413. test "$cross_compiling" = yes ||
  16414. $as_test_x conftest$ac_exeext
  16415. }; then
  16416. gt_cv_func_CFLocaleCopyCurrent=yes
  16417. else
  16418. $as_echo "$as_me: failed program was:" >&5
  16419. sed 's/^/| /' conftest.$ac_ext >&5
  16420. gt_cv_func_CFLocaleCopyCurrent=no
  16421. fi
  16422. rm -rf conftest.dSYM
  16423. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16424. conftest$ac_exeext conftest.$ac_ext
  16425. LIBS="$gt_save_LIBS"
  16426. fi
  16427. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  16428. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  16429. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  16430. cat >>confdefs.h <<\_ACEOF
  16431. #define HAVE_CFLOCALECOPYCURRENT 1
  16432. _ACEOF
  16433. fi
  16434. INTL_MACOSX_LIBS=
  16435. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  16436. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  16437. fi
  16438. BUILD_INCLUDED_LIBINTL=no
  16439. USE_INCLUDED_LIBINTL=no
  16440. LIBINTL=
  16441. LTLIBINTL=
  16442. POSUB=
  16443. case " $gt_needs " in
  16444. *" need-formatstring-macros "*) gt_api_version=3 ;;
  16445. *" need-ngettext "*) gt_api_version=2 ;;
  16446. *) gt_api_version=1 ;;
  16447. esac
  16448. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  16449. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  16450. if test "$USE_NLS" = "yes"; then
  16451. gt_use_preinstalled_gnugettext=no
  16452. { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  16453. $as_echo_n "checking whether included gettext is requested... " >&6; }
  16454. # Check whether --with-included-gettext was given.
  16455. if test "${with_included_gettext+set}" = set; then
  16456. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  16457. else
  16458. nls_cv_force_use_gnu_gettext=no
  16459. fi
  16460. { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  16461. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  16462. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  16463. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  16464. if test $gt_api_version -ge 3; then
  16465. gt_revision_test_code='
  16466. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  16467. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  16468. #endif
  16469. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  16470. '
  16471. else
  16472. gt_revision_test_code=
  16473. fi
  16474. if test $gt_api_version -ge 2; then
  16475. gt_expression_test_code=' + * ngettext ("", "", 0)'
  16476. else
  16477. gt_expression_test_code=
  16478. fi
  16479. { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  16480. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  16481. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  16482. $as_echo_n "(cached) " >&6
  16483. else
  16484. cat >conftest.$ac_ext <<_ACEOF
  16485. /* confdefs.h. */
  16486. _ACEOF
  16487. cat confdefs.h >>conftest.$ac_ext
  16488. cat >>conftest.$ac_ext <<_ACEOF
  16489. /* end confdefs.h. */
  16490. #include <libintl.h>
  16491. $gt_revision_test_code
  16492. extern int _nl_msg_cat_cntr;
  16493. extern int *_nl_domain_bindings;
  16494. int
  16495. main ()
  16496. {
  16497. bindtextdomain ("", "");
  16498. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  16499. ;
  16500. return 0;
  16501. }
  16502. _ACEOF
  16503. rm -f conftest.$ac_objext conftest$ac_exeext
  16504. if { (ac_try="$ac_link"
  16505. case "(($ac_try" in
  16506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16507. *) ac_try_echo=$ac_try;;
  16508. esac
  16509. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16510. $as_echo "$ac_try_echo") >&5
  16511. (eval "$ac_link") 2>conftest.er1
  16512. ac_status=$?
  16513. grep -v '^ *+' conftest.er1 >conftest.err
  16514. rm -f conftest.er1
  16515. cat conftest.err >&5
  16516. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16517. (exit $ac_status); } && {
  16518. test -z "$ac_cxx_werror_flag" ||
  16519. test ! -s conftest.err
  16520. } && test -s conftest$ac_exeext && {
  16521. test "$cross_compiling" = yes ||
  16522. $as_test_x conftest$ac_exeext
  16523. }; then
  16524. eval "$gt_func_gnugettext_libc=yes"
  16525. else
  16526. $as_echo "$as_me: failed program was:" >&5
  16527. sed 's/^/| /' conftest.$ac_ext >&5
  16528. eval "$gt_func_gnugettext_libc=no"
  16529. fi
  16530. rm -rf conftest.dSYM
  16531. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16532. conftest$ac_exeext conftest.$ac_ext
  16533. fi
  16534. ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
  16535. $as_echo "$as_val"'`
  16536. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16537. $as_echo "$ac_res" >&6; }
  16538. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  16539. use_additional=yes
  16540. acl_save_prefix="$prefix"
  16541. prefix="$acl_final_prefix"
  16542. acl_save_exec_prefix="$exec_prefix"
  16543. exec_prefix="$acl_final_exec_prefix"
  16544. eval additional_includedir=\"$includedir\"
  16545. eval additional_libdir=\"$libdir\"
  16546. exec_prefix="$acl_save_exec_prefix"
  16547. prefix="$acl_save_prefix"
  16548. # Check whether --with-libintl-prefix was given.
  16549. if test "${with_libintl_prefix+set}" = set; then
  16550. withval=$with_libintl_prefix;
  16551. if test "X$withval" = "Xno"; then
  16552. use_additional=no
  16553. else
  16554. if test "X$withval" = "X"; then
  16555. acl_save_prefix="$prefix"
  16556. prefix="$acl_final_prefix"
  16557. acl_save_exec_prefix="$exec_prefix"
  16558. exec_prefix="$acl_final_exec_prefix"
  16559. eval additional_includedir=\"$includedir\"
  16560. eval additional_libdir=\"$libdir\"
  16561. exec_prefix="$acl_save_exec_prefix"
  16562. prefix="$acl_save_prefix"
  16563. else
  16564. additional_includedir="$withval/include"
  16565. additional_libdir="$withval/$acl_libdirstem"
  16566. fi
  16567. fi
  16568. fi
  16569. LIBINTL=
  16570. LTLIBINTL=
  16571. INCINTL=
  16572. LIBINTL_PREFIX=
  16573. rpathdirs=
  16574. ltrpathdirs=
  16575. names_already_handled=
  16576. names_next_round='intl '
  16577. while test -n "$names_next_round"; do
  16578. names_this_round="$names_next_round"
  16579. names_next_round=
  16580. for name in $names_this_round; do
  16581. already_handled=
  16582. for n in $names_already_handled; do
  16583. if test "$n" = "$name"; then
  16584. already_handled=yes
  16585. break
  16586. fi
  16587. done
  16588. if test -z "$already_handled"; then
  16589. names_already_handled="$names_already_handled $name"
  16590. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  16591. eval value=\"\$HAVE_LIB$uppername\"
  16592. if test -n "$value"; then
  16593. if test "$value" = yes; then
  16594. eval value=\"\$LIB$uppername\"
  16595. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  16596. eval value=\"\$LTLIB$uppername\"
  16597. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  16598. else
  16599. :
  16600. fi
  16601. else
  16602. found_dir=
  16603. found_la=
  16604. found_so=
  16605. found_a=
  16606. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  16607. if test -n "$acl_shlibext"; then
  16608. shrext=".$acl_shlibext" # typically: shrext=.so
  16609. else
  16610. shrext=
  16611. fi
  16612. if test $use_additional = yes; then
  16613. dir="$additional_libdir"
  16614. if test -n "$acl_shlibext"; then
  16615. if test -f "$dir/$libname$shrext"; then
  16616. found_dir="$dir"
  16617. found_so="$dir/$libname$shrext"
  16618. else
  16619. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  16620. ver=`(cd "$dir" && \
  16621. for f in "$libname$shrext".*; do echo "$f"; done \
  16622. | sed -e "s,^$libname$shrext\\\\.,," \
  16623. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  16624. | sed 1q ) 2>/dev/null`
  16625. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  16626. found_dir="$dir"
  16627. found_so="$dir/$libname$shrext.$ver"
  16628. fi
  16629. else
  16630. eval library_names=\"$acl_library_names_spec\"
  16631. for f in $library_names; do
  16632. if test -f "$dir/$f"; then
  16633. found_dir="$dir"
  16634. found_so="$dir/$f"
  16635. break
  16636. fi
  16637. done
  16638. fi
  16639. fi
  16640. fi
  16641. if test "X$found_dir" = "X"; then
  16642. if test -f "$dir/$libname.$acl_libext"; then
  16643. found_dir="$dir"
  16644. found_a="$dir/$libname.$acl_libext"
  16645. fi
  16646. fi
  16647. if test "X$found_dir" != "X"; then
  16648. if test -f "$dir/$libname.la"; then
  16649. found_la="$dir/$libname.la"
  16650. fi
  16651. fi
  16652. fi
  16653. if test "X$found_dir" = "X"; then
  16654. for x in $LDFLAGS $LTLIBINTL; do
  16655. acl_save_prefix="$prefix"
  16656. prefix="$acl_final_prefix"
  16657. acl_save_exec_prefix="$exec_prefix"
  16658. exec_prefix="$acl_final_exec_prefix"
  16659. eval x=\"$x\"
  16660. exec_prefix="$acl_save_exec_prefix"
  16661. prefix="$acl_save_prefix"
  16662. case "$x" in
  16663. -L*)
  16664. dir=`echo "X$x" | sed -e 's/^X-L//'`
  16665. if test -n "$acl_shlibext"; then
  16666. if test -f "$dir/$libname$shrext"; then
  16667. found_dir="$dir"
  16668. found_so="$dir/$libname$shrext"
  16669. else
  16670. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  16671. ver=`(cd "$dir" && \
  16672. for f in "$libname$shrext".*; do echo "$f"; done \
  16673. | sed -e "s,^$libname$shrext\\\\.,," \
  16674. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  16675. | sed 1q ) 2>/dev/null`
  16676. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  16677. found_dir="$dir"
  16678. found_so="$dir/$libname$shrext.$ver"
  16679. fi
  16680. else
  16681. eval library_names=\"$acl_library_names_spec\"
  16682. for f in $library_names; do
  16683. if test -f "$dir/$f"; then
  16684. found_dir="$dir"
  16685. found_so="$dir/$f"
  16686. break
  16687. fi
  16688. done
  16689. fi
  16690. fi
  16691. fi
  16692. if test "X$found_dir" = "X"; then
  16693. if test -f "$dir/$libname.$acl_libext"; then
  16694. found_dir="$dir"
  16695. found_a="$dir/$libname.$acl_libext"
  16696. fi
  16697. fi
  16698. if test "X$found_dir" != "X"; then
  16699. if test -f "$dir/$libname.la"; then
  16700. found_la="$dir/$libname.la"
  16701. fi
  16702. fi
  16703. ;;
  16704. esac
  16705. if test "X$found_dir" != "X"; then
  16706. break
  16707. fi
  16708. done
  16709. fi
  16710. if test "X$found_dir" != "X"; then
  16711. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  16712. if test "X$found_so" != "X"; then
  16713. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  16714. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16715. else
  16716. haveit=
  16717. for x in $ltrpathdirs; do
  16718. if test "X$x" = "X$found_dir"; then
  16719. haveit=yes
  16720. break
  16721. fi
  16722. done
  16723. if test -z "$haveit"; then
  16724. ltrpathdirs="$ltrpathdirs $found_dir"
  16725. fi
  16726. if test "$acl_hardcode_direct" = yes; then
  16727. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16728. else
  16729. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  16730. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16731. haveit=
  16732. for x in $rpathdirs; do
  16733. if test "X$x" = "X$found_dir"; then
  16734. haveit=yes
  16735. break
  16736. fi
  16737. done
  16738. if test -z "$haveit"; then
  16739. rpathdirs="$rpathdirs $found_dir"
  16740. fi
  16741. else
  16742. haveit=
  16743. for x in $LDFLAGS $LIBINTL; do
  16744. acl_save_prefix="$prefix"
  16745. prefix="$acl_final_prefix"
  16746. acl_save_exec_prefix="$exec_prefix"
  16747. exec_prefix="$acl_final_exec_prefix"
  16748. eval x=\"$x\"
  16749. exec_prefix="$acl_save_exec_prefix"
  16750. prefix="$acl_save_prefix"
  16751. if test "X$x" = "X-L$found_dir"; then
  16752. haveit=yes
  16753. break
  16754. fi
  16755. done
  16756. if test -z "$haveit"; then
  16757. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  16758. fi
  16759. if test "$acl_hardcode_minus_L" != no; then
  16760. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16761. else
  16762. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  16763. fi
  16764. fi
  16765. fi
  16766. fi
  16767. else
  16768. if test "X$found_a" != "X"; then
  16769. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  16770. else
  16771. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  16772. fi
  16773. fi
  16774. additional_includedir=
  16775. case "$found_dir" in
  16776. */$acl_libdirstem | */$acl_libdirstem/)
  16777. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  16778. LIBINTL_PREFIX="$basedir"
  16779. additional_includedir="$basedir/include"
  16780. ;;
  16781. esac
  16782. if test "X$additional_includedir" != "X"; then
  16783. if test "X$additional_includedir" != "X/usr/include"; then
  16784. haveit=
  16785. if test "X$additional_includedir" = "X/usr/local/include"; then
  16786. if test -n "$GCC"; then
  16787. case $host_os in
  16788. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  16789. esac
  16790. fi
  16791. fi
  16792. if test -z "$haveit"; then
  16793. for x in $CPPFLAGS $INCINTL; do
  16794. acl_save_prefix="$prefix"
  16795. prefix="$acl_final_prefix"
  16796. acl_save_exec_prefix="$exec_prefix"
  16797. exec_prefix="$acl_final_exec_prefix"
  16798. eval x=\"$x\"
  16799. exec_prefix="$acl_save_exec_prefix"
  16800. prefix="$acl_save_prefix"
  16801. if test "X$x" = "X-I$additional_includedir"; then
  16802. haveit=yes
  16803. break
  16804. fi
  16805. done
  16806. if test -z "$haveit"; then
  16807. if test -d "$additional_includedir"; then
  16808. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  16809. fi
  16810. fi
  16811. fi
  16812. fi
  16813. fi
  16814. if test -n "$found_la"; then
  16815. save_libdir="$libdir"
  16816. case "$found_la" in
  16817. */* | *\\*) . "$found_la" ;;
  16818. *) . "./$found_la" ;;
  16819. esac
  16820. libdir="$save_libdir"
  16821. for dep in $dependency_libs; do
  16822. case "$dep" in
  16823. -L*)
  16824. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  16825. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  16826. haveit=
  16827. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  16828. if test -n "$GCC"; then
  16829. case $host_os in
  16830. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  16831. esac
  16832. fi
  16833. fi
  16834. if test -z "$haveit"; then
  16835. haveit=
  16836. for x in $LDFLAGS $LIBINTL; do
  16837. acl_save_prefix="$prefix"
  16838. prefix="$acl_final_prefix"
  16839. acl_save_exec_prefix="$exec_prefix"
  16840. exec_prefix="$acl_final_exec_prefix"
  16841. eval x=\"$x\"
  16842. exec_prefix="$acl_save_exec_prefix"
  16843. prefix="$acl_save_prefix"
  16844. if test "X$x" = "X-L$additional_libdir"; then
  16845. haveit=yes
  16846. break
  16847. fi
  16848. done
  16849. if test -z "$haveit"; then
  16850. if test -d "$additional_libdir"; then
  16851. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  16852. fi
  16853. fi
  16854. haveit=
  16855. for x in $LDFLAGS $LTLIBINTL; do
  16856. acl_save_prefix="$prefix"
  16857. prefix="$acl_final_prefix"
  16858. acl_save_exec_prefix="$exec_prefix"
  16859. exec_prefix="$acl_final_exec_prefix"
  16860. eval x=\"$x\"
  16861. exec_prefix="$acl_save_exec_prefix"
  16862. prefix="$acl_save_prefix"
  16863. if test "X$x" = "X-L$additional_libdir"; then
  16864. haveit=yes
  16865. break
  16866. fi
  16867. done
  16868. if test -z "$haveit"; then
  16869. if test -d "$additional_libdir"; then
  16870. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  16871. fi
  16872. fi
  16873. fi
  16874. fi
  16875. ;;
  16876. -R*)
  16877. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  16878. if test "$enable_rpath" != no; then
  16879. haveit=
  16880. for x in $rpathdirs; do
  16881. if test "X$x" = "X$dir"; then
  16882. haveit=yes
  16883. break
  16884. fi
  16885. done
  16886. if test -z "$haveit"; then
  16887. rpathdirs="$rpathdirs $dir"
  16888. fi
  16889. haveit=
  16890. for x in $ltrpathdirs; do
  16891. if test "X$x" = "X$dir"; then
  16892. haveit=yes
  16893. break
  16894. fi
  16895. done
  16896. if test -z "$haveit"; then
  16897. ltrpathdirs="$ltrpathdirs $dir"
  16898. fi
  16899. fi
  16900. ;;
  16901. -l*)
  16902. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  16903. ;;
  16904. *.la)
  16905. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  16906. ;;
  16907. *)
  16908. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  16909. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  16910. ;;
  16911. esac
  16912. done
  16913. fi
  16914. else
  16915. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  16916. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  16917. fi
  16918. fi
  16919. fi
  16920. done
  16921. done
  16922. if test "X$rpathdirs" != "X"; then
  16923. if test -n "$acl_hardcode_libdir_separator"; then
  16924. alldirs=
  16925. for found_dir in $rpathdirs; do
  16926. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  16927. done
  16928. acl_save_libdir="$libdir"
  16929. libdir="$alldirs"
  16930. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  16931. libdir="$acl_save_libdir"
  16932. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  16933. else
  16934. for found_dir in $rpathdirs; do
  16935. acl_save_libdir="$libdir"
  16936. libdir="$found_dir"
  16937. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  16938. libdir="$acl_save_libdir"
  16939. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  16940. done
  16941. fi
  16942. fi
  16943. if test "X$ltrpathdirs" != "X"; then
  16944. for found_dir in $ltrpathdirs; do
  16945. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  16946. done
  16947. fi
  16948. { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  16949. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  16950. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  16951. $as_echo_n "(cached) " >&6
  16952. else
  16953. gt_save_CPPFLAGS="$CPPFLAGS"
  16954. CPPFLAGS="$CPPFLAGS $INCINTL"
  16955. gt_save_LIBS="$LIBS"
  16956. LIBS="$LIBS $LIBINTL"
  16957. cat >conftest.$ac_ext <<_ACEOF
  16958. /* confdefs.h. */
  16959. _ACEOF
  16960. cat confdefs.h >>conftest.$ac_ext
  16961. cat >>conftest.$ac_ext <<_ACEOF
  16962. /* end confdefs.h. */
  16963. #include <libintl.h>
  16964. $gt_revision_test_code
  16965. extern int _nl_msg_cat_cntr;
  16966. extern
  16967. #ifdef __cplusplus
  16968. "C"
  16969. #endif
  16970. const char *_nl_expand_alias (const char *);
  16971. int
  16972. main ()
  16973. {
  16974. bindtextdomain ("", "");
  16975. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  16976. ;
  16977. return 0;
  16978. }
  16979. _ACEOF
  16980. rm -f conftest.$ac_objext conftest$ac_exeext
  16981. if { (ac_try="$ac_link"
  16982. case "(($ac_try" in
  16983. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16984. *) ac_try_echo=$ac_try;;
  16985. esac
  16986. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16987. $as_echo "$ac_try_echo") >&5
  16988. (eval "$ac_link") 2>conftest.er1
  16989. ac_status=$?
  16990. grep -v '^ *+' conftest.er1 >conftest.err
  16991. rm -f conftest.er1
  16992. cat conftest.err >&5
  16993. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16994. (exit $ac_status); } && {
  16995. test -z "$ac_cxx_werror_flag" ||
  16996. test ! -s conftest.err
  16997. } && test -s conftest$ac_exeext && {
  16998. test "$cross_compiling" = yes ||
  16999. $as_test_x conftest$ac_exeext
  17000. }; then
  17001. eval "$gt_func_gnugettext_libintl=yes"
  17002. else
  17003. $as_echo "$as_me: failed program was:" >&5
  17004. sed 's/^/| /' conftest.$ac_ext >&5
  17005. eval "$gt_func_gnugettext_libintl=no"
  17006. fi
  17007. rm -rf conftest.dSYM
  17008. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17009. conftest$ac_exeext conftest.$ac_ext
  17010. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  17011. LIBS="$LIBS $LIBICONV"
  17012. cat >conftest.$ac_ext <<_ACEOF
  17013. /* confdefs.h. */
  17014. _ACEOF
  17015. cat confdefs.h >>conftest.$ac_ext
  17016. cat >>conftest.$ac_ext <<_ACEOF
  17017. /* end confdefs.h. */
  17018. #include <libintl.h>
  17019. $gt_revision_test_code
  17020. extern int _nl_msg_cat_cntr;
  17021. extern
  17022. #ifdef __cplusplus
  17023. "C"
  17024. #endif
  17025. const char *_nl_expand_alias (const char *);
  17026. int
  17027. main ()
  17028. {
  17029. bindtextdomain ("", "");
  17030. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  17031. ;
  17032. return 0;
  17033. }
  17034. _ACEOF
  17035. rm -f conftest.$ac_objext conftest$ac_exeext
  17036. if { (ac_try="$ac_link"
  17037. case "(($ac_try" in
  17038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17039. *) ac_try_echo=$ac_try;;
  17040. esac
  17041. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17042. $as_echo "$ac_try_echo") >&5
  17043. (eval "$ac_link") 2>conftest.er1
  17044. ac_status=$?
  17045. grep -v '^ *+' conftest.er1 >conftest.err
  17046. rm -f conftest.er1
  17047. cat conftest.err >&5
  17048. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17049. (exit $ac_status); } && {
  17050. test -z "$ac_cxx_werror_flag" ||
  17051. test ! -s conftest.err
  17052. } && test -s conftest$ac_exeext && {
  17053. test "$cross_compiling" = yes ||
  17054. $as_test_x conftest$ac_exeext
  17055. }; then
  17056. LIBINTL="$LIBINTL $LIBICONV"
  17057. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  17058. eval "$gt_func_gnugettext_libintl=yes"
  17059. else
  17060. $as_echo "$as_me: failed program was:" >&5
  17061. sed 's/^/| /' conftest.$ac_ext >&5
  17062. fi
  17063. rm -rf conftest.dSYM
  17064. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17065. conftest$ac_exeext conftest.$ac_ext
  17066. fi
  17067. CPPFLAGS="$gt_save_CPPFLAGS"
  17068. LIBS="$gt_save_LIBS"
  17069. fi
  17070. ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
  17071. $as_echo "$as_val"'`
  17072. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17073. $as_echo "$ac_res" >&6; }
  17074. fi
  17075. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  17076. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  17077. && test "$PACKAGE" != gettext-runtime \
  17078. && test "$PACKAGE" != gettext-tools; }; then
  17079. gt_use_preinstalled_gnugettext=yes
  17080. else
  17081. LIBINTL=
  17082. LTLIBINTL=
  17083. INCINTL=
  17084. fi
  17085. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  17086. nls_cv_use_gnu_gettext=yes
  17087. fi
  17088. fi
  17089. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  17090. BUILD_INCLUDED_LIBINTL=yes
  17091. USE_INCLUDED_LIBINTL=yes
  17092. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  17093. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  17094. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  17095. fi
  17096. CATOBJEXT=
  17097. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  17098. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  17099. CATOBJEXT=.gmo
  17100. fi
  17101. if test -n "$INTL_MACOSX_LIBS"; then
  17102. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  17103. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  17104. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  17105. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  17106. fi
  17107. fi
  17108. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  17109. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  17110. cat >>confdefs.h <<\_ACEOF
  17111. #define ENABLE_NLS 1
  17112. _ACEOF
  17113. else
  17114. USE_NLS=no
  17115. fi
  17116. fi
  17117. { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
  17118. $as_echo_n "checking whether to use NLS... " >&6; }
  17119. { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
  17120. $as_echo "$USE_NLS" >&6; }
  17121. if test "$USE_NLS" = "yes"; then
  17122. { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  17123. $as_echo_n "checking where the gettext function comes from... " >&6; }
  17124. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  17125. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  17126. gt_source="external libintl"
  17127. else
  17128. gt_source="libc"
  17129. fi
  17130. else
  17131. gt_source="included intl directory"
  17132. fi
  17133. { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
  17134. $as_echo "$gt_source" >&6; }
  17135. fi
  17136. if test "$USE_NLS" = "yes"; then
  17137. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  17138. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  17139. { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
  17140. $as_echo_n "checking how to link with libintl... " >&6; }
  17141. { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
  17142. $as_echo "$LIBINTL" >&6; }
  17143. for element in $INCINTL; do
  17144. haveit=
  17145. for x in $CPPFLAGS; do
  17146. acl_save_prefix="$prefix"
  17147. prefix="$acl_final_prefix"
  17148. acl_save_exec_prefix="$exec_prefix"
  17149. exec_prefix="$acl_final_exec_prefix"
  17150. eval x=\"$x\"
  17151. exec_prefix="$acl_save_exec_prefix"
  17152. prefix="$acl_save_prefix"
  17153. if test "X$x" = "X$element"; then
  17154. haveit=yes
  17155. break
  17156. fi
  17157. done
  17158. if test -z "$haveit"; then
  17159. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  17160. fi
  17161. done
  17162. fi
  17163. cat >>confdefs.h <<\_ACEOF
  17164. #define HAVE_GETTEXT 1
  17165. _ACEOF
  17166. cat >>confdefs.h <<\_ACEOF
  17167. #define HAVE_DCGETTEXT 1
  17168. _ACEOF
  17169. fi
  17170. POSUB=po
  17171. fi
  17172. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  17173. BUILD_INCLUDED_LIBINTL=yes
  17174. fi
  17175. nls_cv_header_intl=
  17176. nls_cv_header_libgt=
  17177. DATADIRNAME=share
  17178. INSTOBJEXT=.mo
  17179. GENCAT=gencat
  17180. INTLOBJS=
  17181. if test "$USE_INCLUDED_LIBINTL" = yes; then
  17182. INTLOBJS="\$(GETTOBJS)"
  17183. fi
  17184. INTL_LIBTOOL_SUFFIX_PREFIX=
  17185. INTLLIBS="$LIBINTL"
  17186. { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
  17187. $as_echo_n "checking for error_at_line... " >&6; }
  17188. if test "${ac_cv_lib_error_at_line+set}" = set; then
  17189. $as_echo_n "(cached) " >&6
  17190. else
  17191. cat >conftest.$ac_ext <<_ACEOF
  17192. /* confdefs.h. */
  17193. _ACEOF
  17194. cat confdefs.h >>conftest.$ac_ext
  17195. cat >>conftest.$ac_ext <<_ACEOF
  17196. /* end confdefs.h. */
  17197. #include <error.h>
  17198. int
  17199. main ()
  17200. {
  17201. error_at_line (0, 0, "", 0, "an error occurred");
  17202. ;
  17203. return 0;
  17204. }
  17205. _ACEOF
  17206. rm -f conftest.$ac_objext conftest$ac_exeext
  17207. if { (ac_try="$ac_link"
  17208. case "(($ac_try" in
  17209. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17210. *) ac_try_echo=$ac_try;;
  17211. esac
  17212. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17213. $as_echo "$ac_try_echo") >&5
  17214. (eval "$ac_link") 2>conftest.er1
  17215. ac_status=$?
  17216. grep -v '^ *+' conftest.er1 >conftest.err
  17217. rm -f conftest.er1
  17218. cat conftest.err >&5
  17219. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17220. (exit $ac_status); } && {
  17221. test -z "$ac_cxx_werror_flag" ||
  17222. test ! -s conftest.err
  17223. } && test -s conftest$ac_exeext && {
  17224. test "$cross_compiling" = yes ||
  17225. $as_test_x conftest$ac_exeext
  17226. }; then
  17227. ac_cv_lib_error_at_line=yes
  17228. else
  17229. $as_echo "$as_me: failed program was:" >&5
  17230. sed 's/^/| /' conftest.$ac_ext >&5
  17231. ac_cv_lib_error_at_line=no
  17232. fi
  17233. rm -rf conftest.dSYM
  17234. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17235. conftest$ac_exeext conftest.$ac_ext
  17236. fi
  17237. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  17238. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  17239. if test $ac_cv_lib_error_at_line = no; then
  17240. case " $LIBOBJS " in
  17241. *" error.$ac_objext "* ) ;;
  17242. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  17243. ;;
  17244. esac
  17245. fi
  17246. if test $ac_cv_c_compiler_gnu = yes; then
  17247. { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  17248. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  17249. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  17250. $as_echo_n "(cached) " >&6
  17251. else
  17252. ac_pattern="Autoconf.*'x'"
  17253. cat >conftest.$ac_ext <<_ACEOF
  17254. /* confdefs.h. */
  17255. _ACEOF
  17256. cat confdefs.h >>conftest.$ac_ext
  17257. cat >>conftest.$ac_ext <<_ACEOF
  17258. /* end confdefs.h. */
  17259. #include <sgtty.h>
  17260. Autoconf TIOCGETP
  17261. _ACEOF
  17262. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17263. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  17264. ac_cv_prog_gcc_traditional=yes
  17265. else
  17266. ac_cv_prog_gcc_traditional=no
  17267. fi
  17268. rm -f conftest*
  17269. if test $ac_cv_prog_gcc_traditional = no; then
  17270. cat >conftest.$ac_ext <<_ACEOF
  17271. /* confdefs.h. */
  17272. _ACEOF
  17273. cat confdefs.h >>conftest.$ac_ext
  17274. cat >>conftest.$ac_ext <<_ACEOF
  17275. /* end confdefs.h. */
  17276. #include <termio.h>
  17277. Autoconf TCGETA
  17278. _ACEOF
  17279. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17280. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  17281. ac_cv_prog_gcc_traditional=yes
  17282. fi
  17283. rm -f conftest*
  17284. fi
  17285. fi
  17286. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  17287. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  17288. if test $ac_cv_prog_gcc_traditional = yes; then
  17289. CC="$CC -traditional"
  17290. fi
  17291. fi
  17292. { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
  17293. $as_echo_n "checking for working memcmp... " >&6; }
  17294. if test "${ac_cv_func_memcmp_working+set}" = set; then
  17295. $as_echo_n "(cached) " >&6
  17296. else
  17297. if test "$cross_compiling" = yes; then
  17298. ac_cv_func_memcmp_working=no
  17299. else
  17300. cat >conftest.$ac_ext <<_ACEOF
  17301. /* confdefs.h. */
  17302. _ACEOF
  17303. cat confdefs.h >>conftest.$ac_ext
  17304. cat >>conftest.$ac_ext <<_ACEOF
  17305. /* end confdefs.h. */
  17306. $ac_includes_default
  17307. int
  17308. main ()
  17309. {
  17310. /* Some versions of memcmp are not 8-bit clean. */
  17311. char c0 = '\100', c1 = '\200', c2 = '\201';
  17312. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  17313. return 1;
  17314. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  17315. or more and with at least one buffer not starting on a 4-byte boundary.
  17316. William Lewis provided this test program. */
  17317. {
  17318. char foo[21];
  17319. char bar[21];
  17320. int i;
  17321. for (i = 0; i < 4; i++)
  17322. {
  17323. char *a = foo + i;
  17324. char *b = bar + i;
  17325. strcpy (a, "--------01111111");
  17326. strcpy (b, "--------10000000");
  17327. if (memcmp (a, b, 16) >= 0)
  17328. return 1;
  17329. }
  17330. return 0;
  17331. }
  17332. ;
  17333. return 0;
  17334. }
  17335. _ACEOF
  17336. rm -f conftest$ac_exeext
  17337. if { (ac_try="$ac_link"
  17338. case "(($ac_try" in
  17339. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17340. *) ac_try_echo=$ac_try;;
  17341. esac
  17342. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17343. $as_echo "$ac_try_echo") >&5
  17344. (eval "$ac_link") 2>&5
  17345. ac_status=$?
  17346. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17347. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17348. { (case "(($ac_try" in
  17349. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17350. *) ac_try_echo=$ac_try;;
  17351. esac
  17352. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17353. $as_echo "$ac_try_echo") >&5
  17354. (eval "$ac_try") 2>&5
  17355. ac_status=$?
  17356. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17357. (exit $ac_status); }; }; then
  17358. ac_cv_func_memcmp_working=yes
  17359. else
  17360. $as_echo "$as_me: program exited with status $ac_status" >&5
  17361. $as_echo "$as_me: failed program was:" >&5
  17362. sed 's/^/| /' conftest.$ac_ext >&5
  17363. ( exit $ac_status )
  17364. ac_cv_func_memcmp_working=no
  17365. fi
  17366. rm -rf conftest.dSYM
  17367. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17368. fi
  17369. fi
  17370. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  17371. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  17372. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  17373. *" memcmp.$ac_objext "* ) ;;
  17374. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  17375. ;;
  17376. esac
  17377. for ac_header in $ac_header_list
  17378. do
  17379. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17380. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17381. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17382. $as_echo_n "checking for $ac_header... " >&6; }
  17383. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17384. $as_echo_n "(cached) " >&6
  17385. fi
  17386. ac_res=`eval 'as_val=${'$as_ac_Header'}
  17387. $as_echo "$as_val"'`
  17388. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17389. $as_echo "$ac_res" >&6; }
  17390. else
  17391. # Is the header compilable?
  17392. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17393. $as_echo_n "checking $ac_header usability... " >&6; }
  17394. cat >conftest.$ac_ext <<_ACEOF
  17395. /* confdefs.h. */
  17396. _ACEOF
  17397. cat confdefs.h >>conftest.$ac_ext
  17398. cat >>conftest.$ac_ext <<_ACEOF
  17399. /* end confdefs.h. */
  17400. $ac_includes_default
  17401. #include <$ac_header>
  17402. _ACEOF
  17403. rm -f conftest.$ac_objext
  17404. if { (ac_try="$ac_compile"
  17405. case "(($ac_try" in
  17406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17407. *) ac_try_echo=$ac_try;;
  17408. esac
  17409. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17410. $as_echo "$ac_try_echo") >&5
  17411. (eval "$ac_compile") 2>conftest.er1
  17412. ac_status=$?
  17413. grep -v '^ *+' conftest.er1 >conftest.err
  17414. rm -f conftest.er1
  17415. cat conftest.err >&5
  17416. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17417. (exit $ac_status); } && {
  17418. test -z "$ac_cxx_werror_flag" ||
  17419. test ! -s conftest.err
  17420. } && test -s conftest.$ac_objext; then
  17421. ac_header_compiler=yes
  17422. else
  17423. $as_echo "$as_me: failed program was:" >&5
  17424. sed 's/^/| /' conftest.$ac_ext >&5
  17425. ac_header_compiler=no
  17426. fi
  17427. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17428. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17429. $as_echo "$ac_header_compiler" >&6; }
  17430. # Is the header present?
  17431. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17432. $as_echo_n "checking $ac_header presence... " >&6; }
  17433. cat >conftest.$ac_ext <<_ACEOF
  17434. /* confdefs.h. */
  17435. _ACEOF
  17436. cat confdefs.h >>conftest.$ac_ext
  17437. cat >>conftest.$ac_ext <<_ACEOF
  17438. /* end confdefs.h. */
  17439. #include <$ac_header>
  17440. _ACEOF
  17441. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17442. case "(($ac_try" in
  17443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17444. *) ac_try_echo=$ac_try;;
  17445. esac
  17446. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17447. $as_echo "$ac_try_echo") >&5
  17448. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17449. ac_status=$?
  17450. grep -v '^ *+' conftest.er1 >conftest.err
  17451. rm -f conftest.er1
  17452. cat conftest.err >&5
  17453. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17454. (exit $ac_status); } >/dev/null && {
  17455. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17456. test ! -s conftest.err
  17457. }; then
  17458. ac_header_preproc=yes
  17459. else
  17460. $as_echo "$as_me: failed program was:" >&5
  17461. sed 's/^/| /' conftest.$ac_ext >&5
  17462. ac_header_preproc=no
  17463. fi
  17464. rm -f conftest.err conftest.$ac_ext
  17465. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17466. $as_echo "$ac_header_preproc" >&6; }
  17467. # So? What about this header?
  17468. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17469. yes:no: )
  17470. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17471. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17472. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17473. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17474. ac_header_preproc=yes
  17475. ;;
  17476. no:yes:* )
  17477. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17478. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17479. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17480. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17481. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17482. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17483. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17484. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17485. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17486. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17487. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17488. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17489. ( cat <<\_ASBOX
  17490. ## ----------------------------------------------- ##
  17491. ## Report this to t-tujikawa@users.sourceforge.net ##
  17492. ## ----------------------------------------------- ##
  17493. _ASBOX
  17494. ) | sed "s/^/$as_me: WARNING: /" >&2
  17495. ;;
  17496. esac
  17497. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17498. $as_echo_n "checking for $ac_header... " >&6; }
  17499. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17500. $as_echo_n "(cached) " >&6
  17501. else
  17502. eval "$as_ac_Header=\$ac_header_preproc"
  17503. fi
  17504. ac_res=`eval 'as_val=${'$as_ac_Header'}
  17505. $as_echo "$as_val"'`
  17506. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17507. $as_echo "$ac_res" >&6; }
  17508. fi
  17509. as_val=`eval 'as_val=${'$as_ac_Header'}
  17510. $as_echo "$as_val"'`
  17511. if test "x$as_val" = x""yes; then
  17512. cat >>confdefs.h <<_ACEOF
  17513. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17514. _ACEOF
  17515. fi
  17516. done
  17517. for ac_func in $ac_func_list
  17518. do
  17519. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17520. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17521. $as_echo_n "checking for $ac_func... " >&6; }
  17522. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17523. $as_echo_n "(cached) " >&6
  17524. else
  17525. cat >conftest.$ac_ext <<_ACEOF
  17526. /* confdefs.h. */
  17527. _ACEOF
  17528. cat confdefs.h >>conftest.$ac_ext
  17529. cat >>conftest.$ac_ext <<_ACEOF
  17530. /* end confdefs.h. */
  17531. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17532. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17533. #define $ac_func innocuous_$ac_func
  17534. /* System header to define __stub macros and hopefully few prototypes,
  17535. which can conflict with char $ac_func (); below.
  17536. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17537. <limits.h> exists even on freestanding compilers. */
  17538. #ifdef __STDC__
  17539. # include <limits.h>
  17540. #else
  17541. # include <assert.h>
  17542. #endif
  17543. #undef $ac_func
  17544. /* Override any GCC internal prototype to avoid an error.
  17545. Use char because int might match the return type of a GCC
  17546. builtin and then its argument prototype would still apply. */
  17547. #ifdef __cplusplus
  17548. extern "C"
  17549. #endif
  17550. char $ac_func ();
  17551. /* The GNU C library defines this for functions which it implements
  17552. to always fail with ENOSYS. Some functions are actually named
  17553. something starting with __ and the normal name is an alias. */
  17554. #if defined __stub_$ac_func || defined __stub___$ac_func
  17555. choke me
  17556. #endif
  17557. int
  17558. main ()
  17559. {
  17560. return $ac_func ();
  17561. ;
  17562. return 0;
  17563. }
  17564. _ACEOF
  17565. rm -f conftest.$ac_objext conftest$ac_exeext
  17566. if { (ac_try="$ac_link"
  17567. case "(($ac_try" in
  17568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17569. *) ac_try_echo=$ac_try;;
  17570. esac
  17571. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17572. $as_echo "$ac_try_echo") >&5
  17573. (eval "$ac_link") 2>conftest.er1
  17574. ac_status=$?
  17575. grep -v '^ *+' conftest.er1 >conftest.err
  17576. rm -f conftest.er1
  17577. cat conftest.err >&5
  17578. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17579. (exit $ac_status); } && {
  17580. test -z "$ac_cxx_werror_flag" ||
  17581. test ! -s conftest.err
  17582. } && test -s conftest$ac_exeext && {
  17583. test "$cross_compiling" = yes ||
  17584. $as_test_x conftest$ac_exeext
  17585. }; then
  17586. eval "$as_ac_var=yes"
  17587. else
  17588. $as_echo "$as_me: failed program was:" >&5
  17589. sed 's/^/| /' conftest.$ac_ext >&5
  17590. eval "$as_ac_var=no"
  17591. fi
  17592. rm -rf conftest.dSYM
  17593. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17594. conftest$ac_exeext conftest.$ac_ext
  17595. fi
  17596. ac_res=`eval 'as_val=${'$as_ac_var'}
  17597. $as_echo "$as_val"'`
  17598. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17599. $as_echo "$ac_res" >&6; }
  17600. as_val=`eval 'as_val=${'$as_ac_var'}
  17601. $as_echo "$as_val"'`
  17602. if test "x$as_val" = x""yes; then
  17603. cat >>confdefs.h <<_ACEOF
  17604. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17605. _ACEOF
  17606. fi
  17607. done
  17608. { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
  17609. $as_echo_n "checking for working mktime... " >&6; }
  17610. if test "${ac_cv_func_working_mktime+set}" = set; then
  17611. $as_echo_n "(cached) " >&6
  17612. else
  17613. if test "$cross_compiling" = yes; then
  17614. ac_cv_func_working_mktime=no
  17615. else
  17616. cat >conftest.$ac_ext <<_ACEOF
  17617. /* confdefs.h. */
  17618. _ACEOF
  17619. cat confdefs.h >>conftest.$ac_ext
  17620. cat >>conftest.$ac_ext <<_ACEOF
  17621. /* end confdefs.h. */
  17622. /* Test program from Paul Eggert and Tony Leneis. */
  17623. #ifdef TIME_WITH_SYS_TIME
  17624. # include <sys/time.h>
  17625. # include <time.h>
  17626. #else
  17627. # ifdef HAVE_SYS_TIME_H
  17628. # include <sys/time.h>
  17629. # else
  17630. # include <time.h>
  17631. # endif
  17632. #endif
  17633. #include <limits.h>
  17634. #include <stdlib.h>
  17635. #ifdef HAVE_UNISTD_H
  17636. # include <unistd.h>
  17637. #endif
  17638. #ifndef HAVE_ALARM
  17639. # define alarm(X) /* empty */
  17640. #endif
  17641. /* Work around redefinition to rpl_putenv by other config tests. */
  17642. #undef putenv
  17643. static time_t time_t_max;
  17644. static time_t time_t_min;
  17645. /* Values we'll use to set the TZ environment variable. */
  17646. static char *tz_strings[] = {
  17647. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  17648. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  17649. };
  17650. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  17651. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  17652. Based on a problem report from Andreas Jaeger. */
  17653. static int
  17654. spring_forward_gap ()
  17655. {
  17656. /* glibc (up to about 1998-10-07) failed this test. */
  17657. struct tm tm;
  17658. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17659. instead of "TZ=America/Vancouver" in order to detect the bug even
  17660. on systems that don't support the Olson extension, or don't have the
  17661. full zoneinfo tables installed. */
  17662. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17663. tm.tm_year = 98;
  17664. tm.tm_mon = 3;
  17665. tm.tm_mday = 5;
  17666. tm.tm_hour = 2;
  17667. tm.tm_min = 0;
  17668. tm.tm_sec = 0;
  17669. tm.tm_isdst = -1;
  17670. return mktime (&tm) != (time_t) -1;
  17671. }
  17672. static int
  17673. mktime_test1 (now)
  17674. time_t now;
  17675. {
  17676. struct tm *lt;
  17677. return ! (lt = localtime (&now)) || mktime (lt) == now;
  17678. }
  17679. static int
  17680. mktime_test (now)
  17681. time_t now;
  17682. {
  17683. return (mktime_test1 (now)
  17684. && mktime_test1 ((time_t) (time_t_max - now))
  17685. && mktime_test1 ((time_t) (time_t_min + now)));
  17686. }
  17687. static int
  17688. irix_6_4_bug ()
  17689. {
  17690. /* Based on code from Ariel Faigon. */
  17691. struct tm tm;
  17692. tm.tm_year = 96;
  17693. tm.tm_mon = 3;
  17694. tm.tm_mday = 0;
  17695. tm.tm_hour = 0;
  17696. tm.tm_min = 0;
  17697. tm.tm_sec = 0;
  17698. tm.tm_isdst = -1;
  17699. mktime (&tm);
  17700. return tm.tm_mon == 2 && tm.tm_mday == 31;
  17701. }
  17702. static int
  17703. bigtime_test (j)
  17704. int j;
  17705. {
  17706. struct tm tm;
  17707. time_t now;
  17708. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  17709. now = mktime (&tm);
  17710. if (now != (time_t) -1)
  17711. {
  17712. struct tm *lt = localtime (&now);
  17713. if (! (lt
  17714. && lt->tm_year == tm.tm_year
  17715. && lt->tm_mon == tm.tm_mon
  17716. && lt->tm_mday == tm.tm_mday
  17717. && lt->tm_hour == tm.tm_hour
  17718. && lt->tm_min == tm.tm_min
  17719. && lt->tm_sec == tm.tm_sec
  17720. && lt->tm_yday == tm.tm_yday
  17721. && lt->tm_wday == tm.tm_wday
  17722. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  17723. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  17724. return 0;
  17725. }
  17726. return 1;
  17727. }
  17728. static int
  17729. year_2050_test ()
  17730. {
  17731. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  17732. ignoring leap seconds. */
  17733. unsigned long int answer = 2527315200UL;
  17734. struct tm tm;
  17735. time_t t;
  17736. tm.tm_year = 2050 - 1900;
  17737. tm.tm_mon = 2 - 1;
  17738. tm.tm_mday = 1;
  17739. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  17740. tm.tm_isdst = -1;
  17741. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17742. instead of "TZ=America/Vancouver" in order to detect the bug even
  17743. on systems that don't support the Olson extension, or don't have the
  17744. full zoneinfo tables installed. */
  17745. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17746. t = mktime (&tm);
  17747. /* Check that the result is either a failure, or close enough
  17748. to the correct answer that we can assume the discrepancy is
  17749. due to leap seconds. */
  17750. return (t == (time_t) -1
  17751. || (0 < t && answer - 120 <= t && t <= answer + 120));
  17752. }
  17753. int
  17754. main ()
  17755. {
  17756. time_t t, delta;
  17757. int i, j;
  17758. /* This test makes some buggy mktime implementations loop.
  17759. Give up after 60 seconds; a mktime slower than that
  17760. isn't worth using anyway. */
  17761. alarm (60);
  17762. for (;;)
  17763. {
  17764. t = (time_t_max << 1) + 1;
  17765. if (t <= time_t_max)
  17766. break;
  17767. time_t_max = t;
  17768. }
  17769. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  17770. delta = time_t_max / 997; /* a suitable prime number */
  17771. for (i = 0; i < N_STRINGS; i++)
  17772. {
  17773. if (tz_strings[i])
  17774. putenv (tz_strings[i]);
  17775. for (t = 0; t <= time_t_max - delta; t += delta)
  17776. if (! mktime_test (t))
  17777. return 1;
  17778. if (! (mktime_test ((time_t) 1)
  17779. && mktime_test ((time_t) (60 * 60))
  17780. && mktime_test ((time_t) (60 * 60 * 24))))
  17781. return 1;
  17782. for (j = 1; ; j <<= 1)
  17783. if (! bigtime_test (j))
  17784. return 1;
  17785. else if (INT_MAX / 2 < j)
  17786. break;
  17787. if (! bigtime_test (INT_MAX))
  17788. return 1;
  17789. }
  17790. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  17791. }
  17792. _ACEOF
  17793. rm -f conftest$ac_exeext
  17794. if { (ac_try="$ac_link"
  17795. case "(($ac_try" in
  17796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17797. *) ac_try_echo=$ac_try;;
  17798. esac
  17799. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17800. $as_echo "$ac_try_echo") >&5
  17801. (eval "$ac_link") 2>&5
  17802. ac_status=$?
  17803. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17804. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17805. { (case "(($ac_try" in
  17806. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17807. *) ac_try_echo=$ac_try;;
  17808. esac
  17809. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17810. $as_echo "$ac_try_echo") >&5
  17811. (eval "$ac_try") 2>&5
  17812. ac_status=$?
  17813. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17814. (exit $ac_status); }; }; then
  17815. ac_cv_func_working_mktime=yes
  17816. else
  17817. $as_echo "$as_me: program exited with status $ac_status" >&5
  17818. $as_echo "$as_me: failed program was:" >&5
  17819. sed 's/^/| /' conftest.$ac_ext >&5
  17820. ( exit $ac_status )
  17821. ac_cv_func_working_mktime=no
  17822. fi
  17823. rm -rf conftest.dSYM
  17824. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17825. fi
  17826. fi
  17827. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  17828. $as_echo "$ac_cv_func_working_mktime" >&6; }
  17829. if test $ac_cv_func_working_mktime = no; then
  17830. case " $LIBOBJS " in
  17831. *" mktime.$ac_objext "* ) ;;
  17832. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  17833. ;;
  17834. esac
  17835. fi
  17836. for ac_header in stdlib.h unistd.h
  17837. do
  17838. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17839. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17840. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17841. $as_echo_n "checking for $ac_header... " >&6; }
  17842. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17843. $as_echo_n "(cached) " >&6
  17844. fi
  17845. ac_res=`eval 'as_val=${'$as_ac_Header'}
  17846. $as_echo "$as_val"'`
  17847. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17848. $as_echo "$ac_res" >&6; }
  17849. else
  17850. # Is the header compilable?
  17851. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17852. $as_echo_n "checking $ac_header usability... " >&6; }
  17853. cat >conftest.$ac_ext <<_ACEOF
  17854. /* confdefs.h. */
  17855. _ACEOF
  17856. cat confdefs.h >>conftest.$ac_ext
  17857. cat >>conftest.$ac_ext <<_ACEOF
  17858. /* end confdefs.h. */
  17859. $ac_includes_default
  17860. #include <$ac_header>
  17861. _ACEOF
  17862. rm -f conftest.$ac_objext
  17863. if { (ac_try="$ac_compile"
  17864. case "(($ac_try" in
  17865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17866. *) ac_try_echo=$ac_try;;
  17867. esac
  17868. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17869. $as_echo "$ac_try_echo") >&5
  17870. (eval "$ac_compile") 2>conftest.er1
  17871. ac_status=$?
  17872. grep -v '^ *+' conftest.er1 >conftest.err
  17873. rm -f conftest.er1
  17874. cat conftest.err >&5
  17875. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17876. (exit $ac_status); } && {
  17877. test -z "$ac_cxx_werror_flag" ||
  17878. test ! -s conftest.err
  17879. } && test -s conftest.$ac_objext; then
  17880. ac_header_compiler=yes
  17881. else
  17882. $as_echo "$as_me: failed program was:" >&5
  17883. sed 's/^/| /' conftest.$ac_ext >&5
  17884. ac_header_compiler=no
  17885. fi
  17886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17887. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17888. $as_echo "$ac_header_compiler" >&6; }
  17889. # Is the header present?
  17890. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17891. $as_echo_n "checking $ac_header presence... " >&6; }
  17892. cat >conftest.$ac_ext <<_ACEOF
  17893. /* confdefs.h. */
  17894. _ACEOF
  17895. cat confdefs.h >>conftest.$ac_ext
  17896. cat >>conftest.$ac_ext <<_ACEOF
  17897. /* end confdefs.h. */
  17898. #include <$ac_header>
  17899. _ACEOF
  17900. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17901. case "(($ac_try" in
  17902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17903. *) ac_try_echo=$ac_try;;
  17904. esac
  17905. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17906. $as_echo "$ac_try_echo") >&5
  17907. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17908. ac_status=$?
  17909. grep -v '^ *+' conftest.er1 >conftest.err
  17910. rm -f conftest.er1
  17911. cat conftest.err >&5
  17912. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17913. (exit $ac_status); } >/dev/null && {
  17914. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17915. test ! -s conftest.err
  17916. }; then
  17917. ac_header_preproc=yes
  17918. else
  17919. $as_echo "$as_me: failed program was:" >&5
  17920. sed 's/^/| /' conftest.$ac_ext >&5
  17921. ac_header_preproc=no
  17922. fi
  17923. rm -f conftest.err conftest.$ac_ext
  17924. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17925. $as_echo "$ac_header_preproc" >&6; }
  17926. # So? What about this header?
  17927. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17928. yes:no: )
  17929. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17930. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17931. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17932. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17933. ac_header_preproc=yes
  17934. ;;
  17935. no:yes:* )
  17936. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17937. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17938. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17939. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17940. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17941. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17942. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17943. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17944. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17945. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17946. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17947. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17948. ( cat <<\_ASBOX
  17949. ## ----------------------------------------------- ##
  17950. ## Report this to t-tujikawa@users.sourceforge.net ##
  17951. ## ----------------------------------------------- ##
  17952. _ASBOX
  17953. ) | sed "s/^/$as_me: WARNING: /" >&2
  17954. ;;
  17955. esac
  17956. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17957. $as_echo_n "checking for $ac_header... " >&6; }
  17958. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17959. $as_echo_n "(cached) " >&6
  17960. else
  17961. eval "$as_ac_Header=\$ac_header_preproc"
  17962. fi
  17963. ac_res=`eval 'as_val=${'$as_ac_Header'}
  17964. $as_echo "$as_val"'`
  17965. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17966. $as_echo "$ac_res" >&6; }
  17967. fi
  17968. as_val=`eval 'as_val=${'$as_ac_Header'}
  17969. $as_echo "$as_val"'`
  17970. if test "x$as_val" = x""yes; then
  17971. cat >>confdefs.h <<_ACEOF
  17972. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17973. _ACEOF
  17974. fi
  17975. done
  17976. for ac_func in getpagesize
  17977. do
  17978. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17979. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17980. $as_echo_n "checking for $ac_func... " >&6; }
  17981. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17982. $as_echo_n "(cached) " >&6
  17983. else
  17984. cat >conftest.$ac_ext <<_ACEOF
  17985. /* confdefs.h. */
  17986. _ACEOF
  17987. cat confdefs.h >>conftest.$ac_ext
  17988. cat >>conftest.$ac_ext <<_ACEOF
  17989. /* end confdefs.h. */
  17990. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17991. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17992. #define $ac_func innocuous_$ac_func
  17993. /* System header to define __stub macros and hopefully few prototypes,
  17994. which can conflict with char $ac_func (); below.
  17995. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17996. <limits.h> exists even on freestanding compilers. */
  17997. #ifdef __STDC__
  17998. # include <limits.h>
  17999. #else
  18000. # include <assert.h>
  18001. #endif
  18002. #undef $ac_func
  18003. /* Override any GCC internal prototype to avoid an error.
  18004. Use char because int might match the return type of a GCC
  18005. builtin and then its argument prototype would still apply. */
  18006. #ifdef __cplusplus
  18007. extern "C"
  18008. #endif
  18009. char $ac_func ();
  18010. /* The GNU C library defines this for functions which it implements
  18011. to always fail with ENOSYS. Some functions are actually named
  18012. something starting with __ and the normal name is an alias. */
  18013. #if defined __stub_$ac_func || defined __stub___$ac_func
  18014. choke me
  18015. #endif
  18016. int
  18017. main ()
  18018. {
  18019. return $ac_func ();
  18020. ;
  18021. return 0;
  18022. }
  18023. _ACEOF
  18024. rm -f conftest.$ac_objext conftest$ac_exeext
  18025. if { (ac_try="$ac_link"
  18026. case "(($ac_try" in
  18027. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18028. *) ac_try_echo=$ac_try;;
  18029. esac
  18030. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18031. $as_echo "$ac_try_echo") >&5
  18032. (eval "$ac_link") 2>conftest.er1
  18033. ac_status=$?
  18034. grep -v '^ *+' conftest.er1 >conftest.err
  18035. rm -f conftest.er1
  18036. cat conftest.err >&5
  18037. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18038. (exit $ac_status); } && {
  18039. test -z "$ac_cxx_werror_flag" ||
  18040. test ! -s conftest.err
  18041. } && test -s conftest$ac_exeext && {
  18042. test "$cross_compiling" = yes ||
  18043. $as_test_x conftest$ac_exeext
  18044. }; then
  18045. eval "$as_ac_var=yes"
  18046. else
  18047. $as_echo "$as_me: failed program was:" >&5
  18048. sed 's/^/| /' conftest.$ac_ext >&5
  18049. eval "$as_ac_var=no"
  18050. fi
  18051. rm -rf conftest.dSYM
  18052. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18053. conftest$ac_exeext conftest.$ac_ext
  18054. fi
  18055. ac_res=`eval 'as_val=${'$as_ac_var'}
  18056. $as_echo "$as_val"'`
  18057. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18058. $as_echo "$ac_res" >&6; }
  18059. as_val=`eval 'as_val=${'$as_ac_var'}
  18060. $as_echo "$as_val"'`
  18061. if test "x$as_val" = x""yes; then
  18062. cat >>confdefs.h <<_ACEOF
  18063. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18064. _ACEOF
  18065. fi
  18066. done
  18067. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  18068. $as_echo_n "checking for working mmap... " >&6; }
  18069. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  18070. $as_echo_n "(cached) " >&6
  18071. else
  18072. if test "$cross_compiling" = yes; then
  18073. ac_cv_func_mmap_fixed_mapped=no
  18074. else
  18075. cat >conftest.$ac_ext <<_ACEOF
  18076. /* confdefs.h. */
  18077. _ACEOF
  18078. cat confdefs.h >>conftest.$ac_ext
  18079. cat >>conftest.$ac_ext <<_ACEOF
  18080. /* end confdefs.h. */
  18081. $ac_includes_default
  18082. /* malloc might have been renamed as rpl_malloc. */
  18083. #undef malloc
  18084. /* Thanks to Mike Haertel and Jim Avera for this test.
  18085. Here is a matrix of mmap possibilities:
  18086. mmap private not fixed
  18087. mmap private fixed at somewhere currently unmapped
  18088. mmap private fixed at somewhere already mapped
  18089. mmap shared not fixed
  18090. mmap shared fixed at somewhere currently unmapped
  18091. mmap shared fixed at somewhere already mapped
  18092. For private mappings, we should verify that changes cannot be read()
  18093. back from the file, nor mmap's back from the file at a different
  18094. address. (There have been systems where private was not correctly
  18095. implemented like the infamous i386 svr4.0, and systems where the
  18096. VM page cache was not coherent with the file system buffer cache
  18097. like early versions of FreeBSD and possibly contemporary NetBSD.)
  18098. For shared mappings, we should conversely verify that changes get
  18099. propagated back to all the places they're supposed to be.
  18100. Grep wants private fixed already mapped.
  18101. The main things grep needs to know about mmap are:
  18102. * does it exist and is it safe to write into the mmap'd area
  18103. * how to use it (BSD variants) */
  18104. #include <fcntl.h>
  18105. #include <sys/mman.h>
  18106. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  18107. char *malloc ();
  18108. #endif
  18109. /* This mess was copied from the GNU getpagesize.h. */
  18110. #ifndef HAVE_GETPAGESIZE
  18111. /* Assume that all systems that can run configure have sys/param.h. */
  18112. # ifndef HAVE_SYS_PARAM_H
  18113. # define HAVE_SYS_PARAM_H 1
  18114. # endif
  18115. # ifdef _SC_PAGESIZE
  18116. # define getpagesize() sysconf(_SC_PAGESIZE)
  18117. # else /* no _SC_PAGESIZE */
  18118. # ifdef HAVE_SYS_PARAM_H
  18119. # include <sys/param.h>
  18120. # ifdef EXEC_PAGESIZE
  18121. # define getpagesize() EXEC_PAGESIZE
  18122. # else /* no EXEC_PAGESIZE */
  18123. # ifdef NBPG
  18124. # define getpagesize() NBPG * CLSIZE
  18125. # ifndef CLSIZE
  18126. # define CLSIZE 1
  18127. # endif /* no CLSIZE */
  18128. # else /* no NBPG */
  18129. # ifdef NBPC
  18130. # define getpagesize() NBPC
  18131. # else /* no NBPC */
  18132. # ifdef PAGESIZE
  18133. # define getpagesize() PAGESIZE
  18134. # endif /* PAGESIZE */
  18135. # endif /* no NBPC */
  18136. # endif /* no NBPG */
  18137. # endif /* no EXEC_PAGESIZE */
  18138. # else /* no HAVE_SYS_PARAM_H */
  18139. # define getpagesize() 8192 /* punt totally */
  18140. # endif /* no HAVE_SYS_PARAM_H */
  18141. # endif /* no _SC_PAGESIZE */
  18142. #endif /* no HAVE_GETPAGESIZE */
  18143. int
  18144. main ()
  18145. {
  18146. char *data, *data2, *data3;
  18147. int i, pagesize;
  18148. int fd;
  18149. pagesize = getpagesize ();
  18150. /* First, make a file with some known garbage in it. */
  18151. data = (char *) malloc (pagesize);
  18152. if (!data)
  18153. return 1;
  18154. for (i = 0; i < pagesize; ++i)
  18155. *(data + i) = rand ();
  18156. umask (0);
  18157. fd = creat ("conftest.mmap", 0600);
  18158. if (fd < 0)
  18159. return 1;
  18160. if (write (fd, data, pagesize) != pagesize)
  18161. return 1;
  18162. close (fd);
  18163. /* Next, try to mmap the file at a fixed address which already has
  18164. something else allocated at it. If we can, also make sure that
  18165. we see the same garbage. */
  18166. fd = open ("conftest.mmap", O_RDWR);
  18167. if (fd < 0)
  18168. return 1;
  18169. data2 = (char *) malloc (2 * pagesize);
  18170. if (!data2)
  18171. return 1;
  18172. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  18173. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  18174. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  18175. return 1;
  18176. for (i = 0; i < pagesize; ++i)
  18177. if (*(data + i) != *(data2 + i))
  18178. return 1;
  18179. /* Finally, make sure that changes to the mapped area do not
  18180. percolate back to the file as seen by read(). (This is a bug on
  18181. some variants of i386 svr4.0.) */
  18182. for (i = 0; i < pagesize; ++i)
  18183. *(data2 + i) = *(data2 + i) + 1;
  18184. data3 = (char *) malloc (pagesize);
  18185. if (!data3)
  18186. return 1;
  18187. if (read (fd, data3, pagesize) != pagesize)
  18188. return 1;
  18189. for (i = 0; i < pagesize; ++i)
  18190. if (*(data + i) != *(data3 + i))
  18191. return 1;
  18192. close (fd);
  18193. return 0;
  18194. }
  18195. _ACEOF
  18196. rm -f conftest$ac_exeext
  18197. if { (ac_try="$ac_link"
  18198. case "(($ac_try" in
  18199. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18200. *) ac_try_echo=$ac_try;;
  18201. esac
  18202. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18203. $as_echo "$ac_try_echo") >&5
  18204. (eval "$ac_link") 2>&5
  18205. ac_status=$?
  18206. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18207. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18208. { (case "(($ac_try" in
  18209. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18210. *) ac_try_echo=$ac_try;;
  18211. esac
  18212. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18213. $as_echo "$ac_try_echo") >&5
  18214. (eval "$ac_try") 2>&5
  18215. ac_status=$?
  18216. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18217. (exit $ac_status); }; }; then
  18218. ac_cv_func_mmap_fixed_mapped=yes
  18219. else
  18220. $as_echo "$as_me: program exited with status $ac_status" >&5
  18221. $as_echo "$as_me: failed program was:" >&5
  18222. sed 's/^/| /' conftest.$ac_ext >&5
  18223. ( exit $ac_status )
  18224. ac_cv_func_mmap_fixed_mapped=no
  18225. fi
  18226. rm -rf conftest.dSYM
  18227. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18228. fi
  18229. fi
  18230. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  18231. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  18232. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  18233. cat >>confdefs.h <<\_ACEOF
  18234. #define HAVE_MMAP 1
  18235. _ACEOF
  18236. fi
  18237. rm -f conftest.mmap
  18238. for ac_header in sys/select.h sys/socket.h
  18239. do
  18240. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18241. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18242. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18243. $as_echo_n "checking for $ac_header... " >&6; }
  18244. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18245. $as_echo_n "(cached) " >&6
  18246. fi
  18247. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18248. $as_echo "$as_val"'`
  18249. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18250. $as_echo "$ac_res" >&6; }
  18251. else
  18252. # Is the header compilable?
  18253. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18254. $as_echo_n "checking $ac_header usability... " >&6; }
  18255. cat >conftest.$ac_ext <<_ACEOF
  18256. /* confdefs.h. */
  18257. _ACEOF
  18258. cat confdefs.h >>conftest.$ac_ext
  18259. cat >>conftest.$ac_ext <<_ACEOF
  18260. /* end confdefs.h. */
  18261. $ac_includes_default
  18262. #include <$ac_header>
  18263. _ACEOF
  18264. rm -f conftest.$ac_objext
  18265. if { (ac_try="$ac_compile"
  18266. case "(($ac_try" in
  18267. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18268. *) ac_try_echo=$ac_try;;
  18269. esac
  18270. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18271. $as_echo "$ac_try_echo") >&5
  18272. (eval "$ac_compile") 2>conftest.er1
  18273. ac_status=$?
  18274. grep -v '^ *+' conftest.er1 >conftest.err
  18275. rm -f conftest.er1
  18276. cat conftest.err >&5
  18277. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18278. (exit $ac_status); } && {
  18279. test -z "$ac_cxx_werror_flag" ||
  18280. test ! -s conftest.err
  18281. } && test -s conftest.$ac_objext; then
  18282. ac_header_compiler=yes
  18283. else
  18284. $as_echo "$as_me: failed program was:" >&5
  18285. sed 's/^/| /' conftest.$ac_ext >&5
  18286. ac_header_compiler=no
  18287. fi
  18288. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18289. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18290. $as_echo "$ac_header_compiler" >&6; }
  18291. # Is the header present?
  18292. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18293. $as_echo_n "checking $ac_header presence... " >&6; }
  18294. cat >conftest.$ac_ext <<_ACEOF
  18295. /* confdefs.h. */
  18296. _ACEOF
  18297. cat confdefs.h >>conftest.$ac_ext
  18298. cat >>conftest.$ac_ext <<_ACEOF
  18299. /* end confdefs.h. */
  18300. #include <$ac_header>
  18301. _ACEOF
  18302. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18303. case "(($ac_try" in
  18304. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18305. *) ac_try_echo=$ac_try;;
  18306. esac
  18307. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18308. $as_echo "$ac_try_echo") >&5
  18309. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18310. ac_status=$?
  18311. grep -v '^ *+' conftest.er1 >conftest.err
  18312. rm -f conftest.er1
  18313. cat conftest.err >&5
  18314. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18315. (exit $ac_status); } >/dev/null && {
  18316. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  18317. test ! -s conftest.err
  18318. }; then
  18319. ac_header_preproc=yes
  18320. else
  18321. $as_echo "$as_me: failed program was:" >&5
  18322. sed 's/^/| /' conftest.$ac_ext >&5
  18323. ac_header_preproc=no
  18324. fi
  18325. rm -f conftest.err conftest.$ac_ext
  18326. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18327. $as_echo "$ac_header_preproc" >&6; }
  18328. # So? What about this header?
  18329. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  18330. yes:no: )
  18331. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18332. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18333. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18334. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18335. ac_header_preproc=yes
  18336. ;;
  18337. no:yes:* )
  18338. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18339. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18340. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18341. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18342. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18343. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18344. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18345. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18346. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18347. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18348. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18349. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18350. ( cat <<\_ASBOX
  18351. ## ----------------------------------------------- ##
  18352. ## Report this to t-tujikawa@users.sourceforge.net ##
  18353. ## ----------------------------------------------- ##
  18354. _ASBOX
  18355. ) | sed "s/^/$as_me: WARNING: /" >&2
  18356. ;;
  18357. esac
  18358. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18359. $as_echo_n "checking for $ac_header... " >&6; }
  18360. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18361. $as_echo_n "(cached) " >&6
  18362. else
  18363. eval "$as_ac_Header=\$ac_header_preproc"
  18364. fi
  18365. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18366. $as_echo "$as_val"'`
  18367. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18368. $as_echo "$ac_res" >&6; }
  18369. fi
  18370. as_val=`eval 'as_val=${'$as_ac_Header'}
  18371. $as_echo "$as_val"'`
  18372. if test "x$as_val" = x""yes; then
  18373. cat >>confdefs.h <<_ACEOF
  18374. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18375. _ACEOF
  18376. fi
  18377. done
  18378. { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
  18379. $as_echo_n "checking types of arguments for select... " >&6; }
  18380. if test "${ac_cv_func_select_args+set}" = set; then
  18381. $as_echo_n "(cached) " >&6
  18382. else
  18383. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  18384. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  18385. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  18386. cat >conftest.$ac_ext <<_ACEOF
  18387. /* confdefs.h. */
  18388. _ACEOF
  18389. cat confdefs.h >>conftest.$ac_ext
  18390. cat >>conftest.$ac_ext <<_ACEOF
  18391. /* end confdefs.h. */
  18392. $ac_includes_default
  18393. #ifdef HAVE_SYS_SELECT_H
  18394. # include <sys/select.h>
  18395. #endif
  18396. #ifdef HAVE_SYS_SOCKET_H
  18397. # include <sys/socket.h>
  18398. #endif
  18399. int
  18400. main ()
  18401. {
  18402. extern int select ($ac_arg1,
  18403. $ac_arg234, $ac_arg234, $ac_arg234,
  18404. $ac_arg5);
  18405. ;
  18406. return 0;
  18407. }
  18408. _ACEOF
  18409. rm -f conftest.$ac_objext
  18410. if { (ac_try="$ac_compile"
  18411. case "(($ac_try" in
  18412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18413. *) ac_try_echo=$ac_try;;
  18414. esac
  18415. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18416. $as_echo "$ac_try_echo") >&5
  18417. (eval "$ac_compile") 2>conftest.er1
  18418. ac_status=$?
  18419. grep -v '^ *+' conftest.er1 >conftest.err
  18420. rm -f conftest.er1
  18421. cat conftest.err >&5
  18422. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18423. (exit $ac_status); } && {
  18424. test -z "$ac_cxx_werror_flag" ||
  18425. test ! -s conftest.err
  18426. } && test -s conftest.$ac_objext; then
  18427. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  18428. else
  18429. $as_echo "$as_me: failed program was:" >&5
  18430. sed 's/^/| /' conftest.$ac_ext >&5
  18431. fi
  18432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18433. done
  18434. done
  18435. done
  18436. # Provide a safe default value.
  18437. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  18438. fi
  18439. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  18440. $as_echo "$ac_cv_func_select_args" >&6; }
  18441. ac_save_IFS=$IFS; IFS=','
  18442. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  18443. IFS=$ac_save_IFS
  18444. shift
  18445. cat >>confdefs.h <<_ACEOF
  18446. #define SELECT_TYPE_ARG1 $1
  18447. _ACEOF
  18448. cat >>confdefs.h <<_ACEOF
  18449. #define SELECT_TYPE_ARG234 ($2)
  18450. _ACEOF
  18451. cat >>confdefs.h <<_ACEOF
  18452. #define SELECT_TYPE_ARG5 ($3)
  18453. _ACEOF
  18454. rm -f conftest*
  18455. { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  18456. $as_echo_n "checking return type of signal handlers... " >&6; }
  18457. if test "${ac_cv_type_signal+set}" = set; then
  18458. $as_echo_n "(cached) " >&6
  18459. else
  18460. cat >conftest.$ac_ext <<_ACEOF
  18461. /* confdefs.h. */
  18462. _ACEOF
  18463. cat confdefs.h >>conftest.$ac_ext
  18464. cat >>conftest.$ac_ext <<_ACEOF
  18465. /* end confdefs.h. */
  18466. #include <sys/types.h>
  18467. #include <signal.h>
  18468. int
  18469. main ()
  18470. {
  18471. return *(signal (0, 0)) (0) == 1;
  18472. ;
  18473. return 0;
  18474. }
  18475. _ACEOF
  18476. rm -f conftest.$ac_objext
  18477. if { (ac_try="$ac_compile"
  18478. case "(($ac_try" in
  18479. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18480. *) ac_try_echo=$ac_try;;
  18481. esac
  18482. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18483. $as_echo "$ac_try_echo") >&5
  18484. (eval "$ac_compile") 2>conftest.er1
  18485. ac_status=$?
  18486. grep -v '^ *+' conftest.er1 >conftest.err
  18487. rm -f conftest.er1
  18488. cat conftest.err >&5
  18489. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18490. (exit $ac_status); } && {
  18491. test -z "$ac_cxx_werror_flag" ||
  18492. test ! -s conftest.err
  18493. } && test -s conftest.$ac_objext; then
  18494. ac_cv_type_signal=int
  18495. else
  18496. $as_echo "$as_me: failed program was:" >&5
  18497. sed 's/^/| /' conftest.$ac_ext >&5
  18498. ac_cv_type_signal=void
  18499. fi
  18500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18501. fi
  18502. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  18503. $as_echo "$ac_cv_type_signal" >&6; }
  18504. cat >>confdefs.h <<_ACEOF
  18505. #define RETSIGTYPE $ac_cv_type_signal
  18506. _ACEOF
  18507. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18508. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  18509. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18510. $as_echo_n "(cached) " >&6
  18511. else
  18512. rm -f conftest.sym conftest.file
  18513. echo >conftest.file
  18514. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18515. if test "$cross_compiling" = yes; then
  18516. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18517. else
  18518. cat >conftest.$ac_ext <<_ACEOF
  18519. /* confdefs.h. */
  18520. _ACEOF
  18521. cat confdefs.h >>conftest.$ac_ext
  18522. cat >>conftest.$ac_ext <<_ACEOF
  18523. /* end confdefs.h. */
  18524. $ac_includes_default
  18525. int
  18526. main ()
  18527. {
  18528. struct stat sbuf;
  18529. /* Linux will dereference the symlink and fail.
  18530. That is better in the sense that it means we will not
  18531. have to compile and use the lstat wrapper. */
  18532. return lstat ("conftest.sym/", &sbuf) == 0;
  18533. ;
  18534. return 0;
  18535. }
  18536. _ACEOF
  18537. rm -f conftest$ac_exeext
  18538. if { (ac_try="$ac_link"
  18539. case "(($ac_try" in
  18540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18541. *) ac_try_echo=$ac_try;;
  18542. esac
  18543. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18544. $as_echo "$ac_try_echo") >&5
  18545. (eval "$ac_link") 2>&5
  18546. ac_status=$?
  18547. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18548. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18549. { (case "(($ac_try" in
  18550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18551. *) ac_try_echo=$ac_try;;
  18552. esac
  18553. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18554. $as_echo "$ac_try_echo") >&5
  18555. (eval "$ac_try") 2>&5
  18556. ac_status=$?
  18557. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18558. (exit $ac_status); }; }; then
  18559. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18560. else
  18561. $as_echo "$as_me: program exited with status $ac_status" >&5
  18562. $as_echo "$as_me: failed program was:" >&5
  18563. sed 's/^/| /' conftest.$ac_ext >&5
  18564. ( exit $ac_status )
  18565. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18566. fi
  18567. rm -rf conftest.dSYM
  18568. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18569. fi
  18570. else
  18571. # If the `ln -s' command failed, then we probably don't even
  18572. # have an lstat function.
  18573. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18574. fi
  18575. rm -f conftest.sym conftest.file
  18576. fi
  18577. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18578. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  18579. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18580. cat >>confdefs.h <<_ACEOF
  18581. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18582. _ACEOF
  18583. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18584. case " $LIBOBJS " in
  18585. *" lstat.$ac_objext "* ) ;;
  18586. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  18587. ;;
  18588. esac
  18589. fi
  18590. { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  18591. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  18592. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  18593. $as_echo_n "(cached) " >&6
  18594. else
  18595. if test "$cross_compiling" = yes; then
  18596. ac_cv_func_stat_empty_string_bug=yes
  18597. else
  18598. cat >conftest.$ac_ext <<_ACEOF
  18599. /* confdefs.h. */
  18600. _ACEOF
  18601. cat confdefs.h >>conftest.$ac_ext
  18602. cat >>conftest.$ac_ext <<_ACEOF
  18603. /* end confdefs.h. */
  18604. $ac_includes_default
  18605. int
  18606. main ()
  18607. {
  18608. struct stat sbuf;
  18609. return stat ("", &sbuf) == 0;
  18610. ;
  18611. return 0;
  18612. }
  18613. _ACEOF
  18614. rm -f conftest$ac_exeext
  18615. if { (ac_try="$ac_link"
  18616. case "(($ac_try" in
  18617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18618. *) ac_try_echo=$ac_try;;
  18619. esac
  18620. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18621. $as_echo "$ac_try_echo") >&5
  18622. (eval "$ac_link") 2>&5
  18623. ac_status=$?
  18624. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18625. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18626. { (case "(($ac_try" in
  18627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18628. *) ac_try_echo=$ac_try;;
  18629. esac
  18630. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18631. $as_echo "$ac_try_echo") >&5
  18632. (eval "$ac_try") 2>&5
  18633. ac_status=$?
  18634. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18635. (exit $ac_status); }; }; then
  18636. ac_cv_func_stat_empty_string_bug=no
  18637. else
  18638. $as_echo "$as_me: program exited with status $ac_status" >&5
  18639. $as_echo "$as_me: failed program was:" >&5
  18640. sed 's/^/| /' conftest.$ac_ext >&5
  18641. ( exit $ac_status )
  18642. ac_cv_func_stat_empty_string_bug=yes
  18643. fi
  18644. rm -rf conftest.dSYM
  18645. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18646. fi
  18647. fi
  18648. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  18649. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  18650. if test $ac_cv_func_stat_empty_string_bug = yes; then
  18651. case " $LIBOBJS " in
  18652. *" stat.$ac_objext "* ) ;;
  18653. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  18654. ;;
  18655. esac
  18656. cat >>confdefs.h <<_ACEOF
  18657. #define HAVE_STAT_EMPTY_STRING_BUG 1
  18658. _ACEOF
  18659. fi
  18660. for ac_func in strftime
  18661. do
  18662. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18663. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  18664. $as_echo_n "checking for $ac_func... " >&6; }
  18665. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18666. $as_echo_n "(cached) " >&6
  18667. else
  18668. cat >conftest.$ac_ext <<_ACEOF
  18669. /* confdefs.h. */
  18670. _ACEOF
  18671. cat confdefs.h >>conftest.$ac_ext
  18672. cat >>conftest.$ac_ext <<_ACEOF
  18673. /* end confdefs.h. */
  18674. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18675. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18676. #define $ac_func innocuous_$ac_func
  18677. /* System header to define __stub macros and hopefully few prototypes,
  18678. which can conflict with char $ac_func (); below.
  18679. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18680. <limits.h> exists even on freestanding compilers. */
  18681. #ifdef __STDC__
  18682. # include <limits.h>
  18683. #else
  18684. # include <assert.h>
  18685. #endif
  18686. #undef $ac_func
  18687. /* Override any GCC internal prototype to avoid an error.
  18688. Use char because int might match the return type of a GCC
  18689. builtin and then its argument prototype would still apply. */
  18690. #ifdef __cplusplus
  18691. extern "C"
  18692. #endif
  18693. char $ac_func ();
  18694. /* The GNU C library defines this for functions which it implements
  18695. to always fail with ENOSYS. Some functions are actually named
  18696. something starting with __ and the normal name is an alias. */
  18697. #if defined __stub_$ac_func || defined __stub___$ac_func
  18698. choke me
  18699. #endif
  18700. int
  18701. main ()
  18702. {
  18703. return $ac_func ();
  18704. ;
  18705. return 0;
  18706. }
  18707. _ACEOF
  18708. rm -f conftest.$ac_objext conftest$ac_exeext
  18709. if { (ac_try="$ac_link"
  18710. case "(($ac_try" in
  18711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18712. *) ac_try_echo=$ac_try;;
  18713. esac
  18714. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18715. $as_echo "$ac_try_echo") >&5
  18716. (eval "$ac_link") 2>conftest.er1
  18717. ac_status=$?
  18718. grep -v '^ *+' conftest.er1 >conftest.err
  18719. rm -f conftest.er1
  18720. cat conftest.err >&5
  18721. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18722. (exit $ac_status); } && {
  18723. test -z "$ac_cxx_werror_flag" ||
  18724. test ! -s conftest.err
  18725. } && test -s conftest$ac_exeext && {
  18726. test "$cross_compiling" = yes ||
  18727. $as_test_x conftest$ac_exeext
  18728. }; then
  18729. eval "$as_ac_var=yes"
  18730. else
  18731. $as_echo "$as_me: failed program was:" >&5
  18732. sed 's/^/| /' conftest.$ac_ext >&5
  18733. eval "$as_ac_var=no"
  18734. fi
  18735. rm -rf conftest.dSYM
  18736. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18737. conftest$ac_exeext conftest.$ac_ext
  18738. fi
  18739. ac_res=`eval 'as_val=${'$as_ac_var'}
  18740. $as_echo "$as_val"'`
  18741. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18742. $as_echo "$ac_res" >&6; }
  18743. as_val=`eval 'as_val=${'$as_ac_var'}
  18744. $as_echo "$as_val"'`
  18745. if test "x$as_val" = x""yes; then
  18746. cat >>confdefs.h <<_ACEOF
  18747. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18748. _ACEOF
  18749. else
  18750. # strftime is in -lintl on SCO UNIX.
  18751. { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  18752. $as_echo_n "checking for strftime in -lintl... " >&6; }
  18753. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  18754. $as_echo_n "(cached) " >&6
  18755. else
  18756. ac_check_lib_save_LIBS=$LIBS
  18757. LIBS="-lintl $LIBS"
  18758. cat >conftest.$ac_ext <<_ACEOF
  18759. /* confdefs.h. */
  18760. _ACEOF
  18761. cat confdefs.h >>conftest.$ac_ext
  18762. cat >>conftest.$ac_ext <<_ACEOF
  18763. /* end confdefs.h. */
  18764. /* Override any GCC internal prototype to avoid an error.
  18765. Use char because int might match the return type of a GCC
  18766. builtin and then its argument prototype would still apply. */
  18767. #ifdef __cplusplus
  18768. extern "C"
  18769. #endif
  18770. char strftime ();
  18771. int
  18772. main ()
  18773. {
  18774. return strftime ();
  18775. ;
  18776. return 0;
  18777. }
  18778. _ACEOF
  18779. rm -f conftest.$ac_objext conftest$ac_exeext
  18780. if { (ac_try="$ac_link"
  18781. case "(($ac_try" in
  18782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18783. *) ac_try_echo=$ac_try;;
  18784. esac
  18785. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18786. $as_echo "$ac_try_echo") >&5
  18787. (eval "$ac_link") 2>conftest.er1
  18788. ac_status=$?
  18789. grep -v '^ *+' conftest.er1 >conftest.err
  18790. rm -f conftest.er1
  18791. cat conftest.err >&5
  18792. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18793. (exit $ac_status); } && {
  18794. test -z "$ac_cxx_werror_flag" ||
  18795. test ! -s conftest.err
  18796. } && test -s conftest$ac_exeext && {
  18797. test "$cross_compiling" = yes ||
  18798. $as_test_x conftest$ac_exeext
  18799. }; then
  18800. ac_cv_lib_intl_strftime=yes
  18801. else
  18802. $as_echo "$as_me: failed program was:" >&5
  18803. sed 's/^/| /' conftest.$ac_ext >&5
  18804. ac_cv_lib_intl_strftime=no
  18805. fi
  18806. rm -rf conftest.dSYM
  18807. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18808. conftest$ac_exeext conftest.$ac_ext
  18809. LIBS=$ac_check_lib_save_LIBS
  18810. fi
  18811. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  18812. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  18813. if test "x$ac_cv_lib_intl_strftime" = x""yes; then
  18814. cat >>confdefs.h <<\_ACEOF
  18815. #define HAVE_STRFTIME 1
  18816. _ACEOF
  18817. LIBS="-lintl $LIBS"
  18818. fi
  18819. fi
  18820. done
  18821. for ac_func in vprintf
  18822. do
  18823. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18824. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  18825. $as_echo_n "checking for $ac_func... " >&6; }
  18826. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18827. $as_echo_n "(cached) " >&6
  18828. else
  18829. cat >conftest.$ac_ext <<_ACEOF
  18830. /* confdefs.h. */
  18831. _ACEOF
  18832. cat confdefs.h >>conftest.$ac_ext
  18833. cat >>conftest.$ac_ext <<_ACEOF
  18834. /* end confdefs.h. */
  18835. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18836. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18837. #define $ac_func innocuous_$ac_func
  18838. /* System header to define __stub macros and hopefully few prototypes,
  18839. which can conflict with char $ac_func (); below.
  18840. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18841. <limits.h> exists even on freestanding compilers. */
  18842. #ifdef __STDC__
  18843. # include <limits.h>
  18844. #else
  18845. # include <assert.h>
  18846. #endif
  18847. #undef $ac_func
  18848. /* Override any GCC internal prototype to avoid an error.
  18849. Use char because int might match the return type of a GCC
  18850. builtin and then its argument prototype would still apply. */
  18851. #ifdef __cplusplus
  18852. extern "C"
  18853. #endif
  18854. char $ac_func ();
  18855. /* The GNU C library defines this for functions which it implements
  18856. to always fail with ENOSYS. Some functions are actually named
  18857. something starting with __ and the normal name is an alias. */
  18858. #if defined __stub_$ac_func || defined __stub___$ac_func
  18859. choke me
  18860. #endif
  18861. int
  18862. main ()
  18863. {
  18864. return $ac_func ();
  18865. ;
  18866. return 0;
  18867. }
  18868. _ACEOF
  18869. rm -f conftest.$ac_objext conftest$ac_exeext
  18870. if { (ac_try="$ac_link"
  18871. case "(($ac_try" in
  18872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18873. *) ac_try_echo=$ac_try;;
  18874. esac
  18875. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18876. $as_echo "$ac_try_echo") >&5
  18877. (eval "$ac_link") 2>conftest.er1
  18878. ac_status=$?
  18879. grep -v '^ *+' conftest.er1 >conftest.err
  18880. rm -f conftest.er1
  18881. cat conftest.err >&5
  18882. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18883. (exit $ac_status); } && {
  18884. test -z "$ac_cxx_werror_flag" ||
  18885. test ! -s conftest.err
  18886. } && test -s conftest$ac_exeext && {
  18887. test "$cross_compiling" = yes ||
  18888. $as_test_x conftest$ac_exeext
  18889. }; then
  18890. eval "$as_ac_var=yes"
  18891. else
  18892. $as_echo "$as_me: failed program was:" >&5
  18893. sed 's/^/| /' conftest.$ac_ext >&5
  18894. eval "$as_ac_var=no"
  18895. fi
  18896. rm -rf conftest.dSYM
  18897. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18898. conftest$ac_exeext conftest.$ac_ext
  18899. fi
  18900. ac_res=`eval 'as_val=${'$as_ac_var'}
  18901. $as_echo "$as_val"'`
  18902. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18903. $as_echo "$ac_res" >&6; }
  18904. as_val=`eval 'as_val=${'$as_ac_var'}
  18905. $as_echo "$as_val"'`
  18906. if test "x$as_val" = x""yes; then
  18907. cat >>confdefs.h <<_ACEOF
  18908. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18909. _ACEOF
  18910. { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
  18911. $as_echo_n "checking for _doprnt... " >&6; }
  18912. if test "${ac_cv_func__doprnt+set}" = set; then
  18913. $as_echo_n "(cached) " >&6
  18914. else
  18915. cat >conftest.$ac_ext <<_ACEOF
  18916. /* confdefs.h. */
  18917. _ACEOF
  18918. cat confdefs.h >>conftest.$ac_ext
  18919. cat >>conftest.$ac_ext <<_ACEOF
  18920. /* end confdefs.h. */
  18921. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  18922. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18923. #define _doprnt innocuous__doprnt
  18924. /* System header to define __stub macros and hopefully few prototypes,
  18925. which can conflict with char _doprnt (); below.
  18926. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18927. <limits.h> exists even on freestanding compilers. */
  18928. #ifdef __STDC__
  18929. # include <limits.h>
  18930. #else
  18931. # include <assert.h>
  18932. #endif
  18933. #undef _doprnt
  18934. /* Override any GCC internal prototype to avoid an error.
  18935. Use char because int might match the return type of a GCC
  18936. builtin and then its argument prototype would still apply. */
  18937. #ifdef __cplusplus
  18938. extern "C"
  18939. #endif
  18940. char _doprnt ();
  18941. /* The GNU C library defines this for functions which it implements
  18942. to always fail with ENOSYS. Some functions are actually named
  18943. something starting with __ and the normal name is an alias. */
  18944. #if defined __stub__doprnt || defined __stub____doprnt
  18945. choke me
  18946. #endif
  18947. int
  18948. main ()
  18949. {
  18950. return _doprnt ();
  18951. ;
  18952. return 0;
  18953. }
  18954. _ACEOF
  18955. rm -f conftest.$ac_objext conftest$ac_exeext
  18956. if { (ac_try="$ac_link"
  18957. case "(($ac_try" in
  18958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18959. *) ac_try_echo=$ac_try;;
  18960. esac
  18961. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18962. $as_echo "$ac_try_echo") >&5
  18963. (eval "$ac_link") 2>conftest.er1
  18964. ac_status=$?
  18965. grep -v '^ *+' conftest.er1 >conftest.err
  18966. rm -f conftest.er1
  18967. cat conftest.err >&5
  18968. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18969. (exit $ac_status); } && {
  18970. test -z "$ac_cxx_werror_flag" ||
  18971. test ! -s conftest.err
  18972. } && test -s conftest$ac_exeext && {
  18973. test "$cross_compiling" = yes ||
  18974. $as_test_x conftest$ac_exeext
  18975. }; then
  18976. ac_cv_func__doprnt=yes
  18977. else
  18978. $as_echo "$as_me: failed program was:" >&5
  18979. sed 's/^/| /' conftest.$ac_ext >&5
  18980. ac_cv_func__doprnt=no
  18981. fi
  18982. rm -rf conftest.dSYM
  18983. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18984. conftest$ac_exeext conftest.$ac_ext
  18985. fi
  18986. { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  18987. $as_echo "$ac_cv_func__doprnt" >&6; }
  18988. if test "x$ac_cv_func__doprnt" = x""yes; then
  18989. cat >>confdefs.h <<\_ACEOF
  18990. #define HAVE_DOPRNT 1
  18991. _ACEOF
  18992. fi
  18993. fi
  18994. done
  18995. for ac_func in __argz_count \
  18996. __argz_next \
  18997. __argz_stringify \
  18998. atexit \
  18999. daemon \
  19000. ftruncate \
  19001. getcwd \
  19002. gethostbyaddr \
  19003. gethostbyname \
  19004. getpagesize \
  19005. inet_ntoa \
  19006. memchr \
  19007. memmove \
  19008. mempcpy \
  19009. memset \
  19010. mkdir \
  19011. munmap \
  19012. nl_langinfo \
  19013. posix_memalign \
  19014. putenv \
  19015. rmdir \
  19016. select \
  19017. setlocale \
  19018. sleep \
  19019. socket \
  19020. stpcpy \
  19021. strcasecmp \
  19022. strchr \
  19023. strcspn \
  19024. strdup \
  19025. strerror \
  19026. strncasecmp \
  19027. strstr \
  19028. strtol \
  19029. strtoul \
  19030. strtoull \
  19031. tzset \
  19032. unsetenv \
  19033. usleep
  19034. do
  19035. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19036. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19037. $as_echo_n "checking for $ac_func... " >&6; }
  19038. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19039. $as_echo_n "(cached) " >&6
  19040. else
  19041. cat >conftest.$ac_ext <<_ACEOF
  19042. /* confdefs.h. */
  19043. _ACEOF
  19044. cat confdefs.h >>conftest.$ac_ext
  19045. cat >>conftest.$ac_ext <<_ACEOF
  19046. /* end confdefs.h. */
  19047. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19048. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19049. #define $ac_func innocuous_$ac_func
  19050. /* System header to define __stub macros and hopefully few prototypes,
  19051. which can conflict with char $ac_func (); below.
  19052. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19053. <limits.h> exists even on freestanding compilers. */
  19054. #ifdef __STDC__
  19055. # include <limits.h>
  19056. #else
  19057. # include <assert.h>
  19058. #endif
  19059. #undef $ac_func
  19060. /* Override any GCC internal prototype to avoid an error.
  19061. Use char because int might match the return type of a GCC
  19062. builtin and then its argument prototype would still apply. */
  19063. #ifdef __cplusplus
  19064. extern "C"
  19065. #endif
  19066. char $ac_func ();
  19067. /* The GNU C library defines this for functions which it implements
  19068. to always fail with ENOSYS. Some functions are actually named
  19069. something starting with __ and the normal name is an alias. */
  19070. #if defined __stub_$ac_func || defined __stub___$ac_func
  19071. choke me
  19072. #endif
  19073. int
  19074. main ()
  19075. {
  19076. return $ac_func ();
  19077. ;
  19078. return 0;
  19079. }
  19080. _ACEOF
  19081. rm -f conftest.$ac_objext conftest$ac_exeext
  19082. if { (ac_try="$ac_link"
  19083. case "(($ac_try" in
  19084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19085. *) ac_try_echo=$ac_try;;
  19086. esac
  19087. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19088. $as_echo "$ac_try_echo") >&5
  19089. (eval "$ac_link") 2>conftest.er1
  19090. ac_status=$?
  19091. grep -v '^ *+' conftest.er1 >conftest.err
  19092. rm -f conftest.er1
  19093. cat conftest.err >&5
  19094. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19095. (exit $ac_status); } && {
  19096. test -z "$ac_cxx_werror_flag" ||
  19097. test ! -s conftest.err
  19098. } && test -s conftest$ac_exeext && {
  19099. test "$cross_compiling" = yes ||
  19100. $as_test_x conftest$ac_exeext
  19101. }; then
  19102. eval "$as_ac_var=yes"
  19103. else
  19104. $as_echo "$as_me: failed program was:" >&5
  19105. sed 's/^/| /' conftest.$ac_ext >&5
  19106. eval "$as_ac_var=no"
  19107. fi
  19108. rm -rf conftest.dSYM
  19109. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19110. conftest$ac_exeext conftest.$ac_ext
  19111. fi
  19112. ac_res=`eval 'as_val=${'$as_ac_var'}
  19113. $as_echo "$as_val"'`
  19114. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19115. $as_echo "$ac_res" >&6; }
  19116. as_val=`eval 'as_val=${'$as_ac_var'}
  19117. $as_echo "$as_val"'`
  19118. if test "x$as_val" = x""yes; then
  19119. cat >>confdefs.h <<_ACEOF
  19120. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19121. _ACEOF
  19122. fi
  19123. done
  19124. if test "x$enable_epoll" = "xyes"; then
  19125. for ac_func in epoll_create
  19126. do
  19127. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19128. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19129. $as_echo_n "checking for $ac_func... " >&6; }
  19130. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19131. $as_echo_n "(cached) " >&6
  19132. else
  19133. cat >conftest.$ac_ext <<_ACEOF
  19134. /* confdefs.h. */
  19135. _ACEOF
  19136. cat confdefs.h >>conftest.$ac_ext
  19137. cat >>conftest.$ac_ext <<_ACEOF
  19138. /* end confdefs.h. */
  19139. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19140. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19141. #define $ac_func innocuous_$ac_func
  19142. /* System header to define __stub macros and hopefully few prototypes,
  19143. which can conflict with char $ac_func (); below.
  19144. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19145. <limits.h> exists even on freestanding compilers. */
  19146. #ifdef __STDC__
  19147. # include <limits.h>
  19148. #else
  19149. # include <assert.h>
  19150. #endif
  19151. #undef $ac_func
  19152. /* Override any GCC internal prototype to avoid an error.
  19153. Use char because int might match the return type of a GCC
  19154. builtin and then its argument prototype would still apply. */
  19155. #ifdef __cplusplus
  19156. extern "C"
  19157. #endif
  19158. char $ac_func ();
  19159. /* The GNU C library defines this for functions which it implements
  19160. to always fail with ENOSYS. Some functions are actually named
  19161. something starting with __ and the normal name is an alias. */
  19162. #if defined __stub_$ac_func || defined __stub___$ac_func
  19163. choke me
  19164. #endif
  19165. int
  19166. main ()
  19167. {
  19168. return $ac_func ();
  19169. ;
  19170. return 0;
  19171. }
  19172. _ACEOF
  19173. rm -f conftest.$ac_objext conftest$ac_exeext
  19174. if { (ac_try="$ac_link"
  19175. case "(($ac_try" in
  19176. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19177. *) ac_try_echo=$ac_try;;
  19178. esac
  19179. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19180. $as_echo "$ac_try_echo") >&5
  19181. (eval "$ac_link") 2>conftest.er1
  19182. ac_status=$?
  19183. grep -v '^ *+' conftest.er1 >conftest.err
  19184. rm -f conftest.er1
  19185. cat conftest.err >&5
  19186. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19187. (exit $ac_status); } && {
  19188. test -z "$ac_cxx_werror_flag" ||
  19189. test ! -s conftest.err
  19190. } && test -s conftest$ac_exeext && {
  19191. test "$cross_compiling" = yes ||
  19192. $as_test_x conftest$ac_exeext
  19193. }; then
  19194. eval "$as_ac_var=yes"
  19195. else
  19196. $as_echo "$as_me: failed program was:" >&5
  19197. sed 's/^/| /' conftest.$ac_ext >&5
  19198. eval "$as_ac_var=no"
  19199. fi
  19200. rm -rf conftest.dSYM
  19201. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19202. conftest$ac_exeext conftest.$ac_ext
  19203. fi
  19204. ac_res=`eval 'as_val=${'$as_ac_var'}
  19205. $as_echo "$as_val"'`
  19206. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19207. $as_echo "$ac_res" >&6; }
  19208. as_val=`eval 'as_val=${'$as_ac_var'}
  19209. $as_echo "$as_val"'`
  19210. if test "x$as_val" = x""yes; then
  19211. cat >>confdefs.h <<_ACEOF
  19212. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19213. _ACEOF
  19214. have_epoll=yes
  19215. fi
  19216. done
  19217. if test "x$have_epoll" = "xyes"; then
  19218. cat >>confdefs.h <<\_ACEOF
  19219. #define HAVE_EPOLL 1
  19220. _ACEOF
  19221. fi
  19222. fi
  19223. if test "x$have_epoll" = "xyes"; then
  19224. HAVE_EPOLL_TRUE=
  19225. HAVE_EPOLL_FALSE='#'
  19226. else
  19227. HAVE_EPOLL_TRUE='#'
  19228. HAVE_EPOLL_FALSE=
  19229. fi
  19230. for ac_func in posix_fallocate
  19231. do
  19232. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19233. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19234. $as_echo_n "checking for $ac_func... " >&6; }
  19235. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19236. $as_echo_n "(cached) " >&6
  19237. else
  19238. cat >conftest.$ac_ext <<_ACEOF
  19239. /* confdefs.h. */
  19240. _ACEOF
  19241. cat confdefs.h >>conftest.$ac_ext
  19242. cat >>conftest.$ac_ext <<_ACEOF
  19243. /* end confdefs.h. */
  19244. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19245. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19246. #define $ac_func innocuous_$ac_func
  19247. /* System header to define __stub macros and hopefully few prototypes,
  19248. which can conflict with char $ac_func (); below.
  19249. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19250. <limits.h> exists even on freestanding compilers. */
  19251. #ifdef __STDC__
  19252. # include <limits.h>
  19253. #else
  19254. # include <assert.h>
  19255. #endif
  19256. #undef $ac_func
  19257. /* Override any GCC internal prototype to avoid an error.
  19258. Use char because int might match the return type of a GCC
  19259. builtin and then its argument prototype would still apply. */
  19260. #ifdef __cplusplus
  19261. extern "C"
  19262. #endif
  19263. char $ac_func ();
  19264. /* The GNU C library defines this for functions which it implements
  19265. to always fail with ENOSYS. Some functions are actually named
  19266. something starting with __ and the normal name is an alias. */
  19267. #if defined __stub_$ac_func || defined __stub___$ac_func
  19268. choke me
  19269. #endif
  19270. int
  19271. main ()
  19272. {
  19273. return $ac_func ();
  19274. ;
  19275. return 0;
  19276. }
  19277. _ACEOF
  19278. rm -f conftest.$ac_objext conftest$ac_exeext
  19279. if { (ac_try="$ac_link"
  19280. case "(($ac_try" in
  19281. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19282. *) ac_try_echo=$ac_try;;
  19283. esac
  19284. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19285. $as_echo "$ac_try_echo") >&5
  19286. (eval "$ac_link") 2>conftest.er1
  19287. ac_status=$?
  19288. grep -v '^ *+' conftest.er1 >conftest.err
  19289. rm -f conftest.er1
  19290. cat conftest.err >&5
  19291. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19292. (exit $ac_status); } && {
  19293. test -z "$ac_cxx_werror_flag" ||
  19294. test ! -s conftest.err
  19295. } && test -s conftest$ac_exeext && {
  19296. test "$cross_compiling" = yes ||
  19297. $as_test_x conftest$ac_exeext
  19298. }; then
  19299. eval "$as_ac_var=yes"
  19300. else
  19301. $as_echo "$as_me: failed program was:" >&5
  19302. sed 's/^/| /' conftest.$ac_ext >&5
  19303. eval "$as_ac_var=no"
  19304. fi
  19305. rm -rf conftest.dSYM
  19306. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19307. conftest$ac_exeext conftest.$ac_ext
  19308. fi
  19309. ac_res=`eval 'as_val=${'$as_ac_var'}
  19310. $as_echo "$as_val"'`
  19311. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19312. $as_echo "$ac_res" >&6; }
  19313. as_val=`eval 'as_val=${'$as_ac_var'}
  19314. $as_echo "$as_val"'`
  19315. if test "x$as_val" = x""yes; then
  19316. cat >>confdefs.h <<_ACEOF
  19317. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19318. _ACEOF
  19319. have_posix_fallocate=yes
  19320. fi
  19321. done
  19322. if test "x$have_posix_fallocate" = "xyes"; then
  19323. HAVE_POSIX_FALLOCATE_TRUE=
  19324. HAVE_POSIX_FALLOCATE_FALSE='#'
  19325. else
  19326. HAVE_POSIX_FALLOCATE_TRUE='#'
  19327. HAVE_POSIX_FALLOCATE_FALSE=
  19328. fi
  19329. for ac_func in asctime_r
  19330. do
  19331. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19332. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19333. $as_echo_n "checking for $ac_func... " >&6; }
  19334. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19335. $as_echo_n "(cached) " >&6
  19336. else
  19337. cat >conftest.$ac_ext <<_ACEOF
  19338. /* confdefs.h. */
  19339. _ACEOF
  19340. cat confdefs.h >>conftest.$ac_ext
  19341. cat >>conftest.$ac_ext <<_ACEOF
  19342. /* end confdefs.h. */
  19343. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19344. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19345. #define $ac_func innocuous_$ac_func
  19346. /* System header to define __stub macros and hopefully few prototypes,
  19347. which can conflict with char $ac_func (); below.
  19348. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19349. <limits.h> exists even on freestanding compilers. */
  19350. #ifdef __STDC__
  19351. # include <limits.h>
  19352. #else
  19353. # include <assert.h>
  19354. #endif
  19355. #undef $ac_func
  19356. /* Override any GCC internal prototype to avoid an error.
  19357. Use char because int might match the return type of a GCC
  19358. builtin and then its argument prototype would still apply. */
  19359. #ifdef __cplusplus
  19360. extern "C"
  19361. #endif
  19362. char $ac_func ();
  19363. /* The GNU C library defines this for functions which it implements
  19364. to always fail with ENOSYS. Some functions are actually named
  19365. something starting with __ and the normal name is an alias. */
  19366. #if defined __stub_$ac_func || defined __stub___$ac_func
  19367. choke me
  19368. #endif
  19369. int
  19370. main ()
  19371. {
  19372. return $ac_func ();
  19373. ;
  19374. return 0;
  19375. }
  19376. _ACEOF
  19377. rm -f conftest.$ac_objext conftest$ac_exeext
  19378. if { (ac_try="$ac_link"
  19379. case "(($ac_try" in
  19380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19381. *) ac_try_echo=$ac_try;;
  19382. esac
  19383. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19384. $as_echo "$ac_try_echo") >&5
  19385. (eval "$ac_link") 2>conftest.er1
  19386. ac_status=$?
  19387. grep -v '^ *+' conftest.er1 >conftest.err
  19388. rm -f conftest.er1
  19389. cat conftest.err >&5
  19390. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19391. (exit $ac_status); } && {
  19392. test -z "$ac_cxx_werror_flag" ||
  19393. test ! -s conftest.err
  19394. } && test -s conftest$ac_exeext && {
  19395. test "$cross_compiling" = yes ||
  19396. $as_test_x conftest$ac_exeext
  19397. }; then
  19398. eval "$as_ac_var=yes"
  19399. else
  19400. $as_echo "$as_me: failed program was:" >&5
  19401. sed 's/^/| /' conftest.$ac_ext >&5
  19402. eval "$as_ac_var=no"
  19403. fi
  19404. rm -rf conftest.dSYM
  19405. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19406. conftest$ac_exeext conftest.$ac_ext
  19407. fi
  19408. ac_res=`eval 'as_val=${'$as_ac_var'}
  19409. $as_echo "$as_val"'`
  19410. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19411. $as_echo "$ac_res" >&6; }
  19412. as_val=`eval 'as_val=${'$as_ac_var'}
  19413. $as_echo "$as_val"'`
  19414. if test "x$as_val" = x""yes; then
  19415. cat >>confdefs.h <<_ACEOF
  19416. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19417. _ACEOF
  19418. if true; then
  19419. HAVE_ASCTIME_R_TRUE=
  19420. HAVE_ASCTIME_R_FALSE='#'
  19421. else
  19422. HAVE_ASCTIME_R_TRUE='#'
  19423. HAVE_ASCTIME_R_FALSE=
  19424. fi
  19425. else
  19426. if false; then
  19427. HAVE_ASCTIME_R_TRUE=
  19428. HAVE_ASCTIME_R_FALSE='#'
  19429. else
  19430. HAVE_ASCTIME_R_TRUE='#'
  19431. HAVE_ASCTIME_R_FALSE=
  19432. fi
  19433. fi
  19434. done
  19435. for ac_func in basename
  19436. do
  19437. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19438. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19439. $as_echo_n "checking for $ac_func... " >&6; }
  19440. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19441. $as_echo_n "(cached) " >&6
  19442. else
  19443. cat >conftest.$ac_ext <<_ACEOF
  19444. /* confdefs.h. */
  19445. _ACEOF
  19446. cat confdefs.h >>conftest.$ac_ext
  19447. cat >>conftest.$ac_ext <<_ACEOF
  19448. /* end confdefs.h. */
  19449. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19450. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19451. #define $ac_func innocuous_$ac_func
  19452. /* System header to define __stub macros and hopefully few prototypes,
  19453. which can conflict with char $ac_func (); below.
  19454. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19455. <limits.h> exists even on freestanding compilers. */
  19456. #ifdef __STDC__
  19457. # include <limits.h>
  19458. #else
  19459. # include <assert.h>
  19460. #endif
  19461. #undef $ac_func
  19462. /* Override any GCC internal prototype to avoid an error.
  19463. Use char because int might match the return type of a GCC
  19464. builtin and then its argument prototype would still apply. */
  19465. #ifdef __cplusplus
  19466. extern "C"
  19467. #endif
  19468. char $ac_func ();
  19469. /* The GNU C library defines this for functions which it implements
  19470. to always fail with ENOSYS. Some functions are actually named
  19471. something starting with __ and the normal name is an alias. */
  19472. #if defined __stub_$ac_func || defined __stub___$ac_func
  19473. choke me
  19474. #endif
  19475. int
  19476. main ()
  19477. {
  19478. return $ac_func ();
  19479. ;
  19480. return 0;
  19481. }
  19482. _ACEOF
  19483. rm -f conftest.$ac_objext conftest$ac_exeext
  19484. if { (ac_try="$ac_link"
  19485. case "(($ac_try" in
  19486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19487. *) ac_try_echo=$ac_try;;
  19488. esac
  19489. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19490. $as_echo "$ac_try_echo") >&5
  19491. (eval "$ac_link") 2>conftest.er1
  19492. ac_status=$?
  19493. grep -v '^ *+' conftest.er1 >conftest.err
  19494. rm -f conftest.er1
  19495. cat conftest.err >&5
  19496. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19497. (exit $ac_status); } && {
  19498. test -z "$ac_cxx_werror_flag" ||
  19499. test ! -s conftest.err
  19500. } && test -s conftest$ac_exeext && {
  19501. test "$cross_compiling" = yes ||
  19502. $as_test_x conftest$ac_exeext
  19503. }; then
  19504. eval "$as_ac_var=yes"
  19505. else
  19506. $as_echo "$as_me: failed program was:" >&5
  19507. sed 's/^/| /' conftest.$ac_ext >&5
  19508. eval "$as_ac_var=no"
  19509. fi
  19510. rm -rf conftest.dSYM
  19511. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19512. conftest$ac_exeext conftest.$ac_ext
  19513. fi
  19514. ac_res=`eval 'as_val=${'$as_ac_var'}
  19515. $as_echo "$as_val"'`
  19516. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19517. $as_echo "$ac_res" >&6; }
  19518. as_val=`eval 'as_val=${'$as_ac_var'}
  19519. $as_echo "$as_val"'`
  19520. if test "x$as_val" = x""yes; then
  19521. cat >>confdefs.h <<_ACEOF
  19522. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19523. _ACEOF
  19524. if true; then
  19525. HAVE_BASENAME_TRUE=
  19526. HAVE_BASENAME_FALSE='#'
  19527. else
  19528. HAVE_BASENAME_TRUE='#'
  19529. HAVE_BASENAME_FALSE=
  19530. fi
  19531. else
  19532. if false; then
  19533. HAVE_BASENAME_TRUE=
  19534. HAVE_BASENAME_FALSE='#'
  19535. else
  19536. HAVE_BASENAME_TRUE='#'
  19537. HAVE_BASENAME_FALSE=
  19538. fi
  19539. fi
  19540. done
  19541. for ac_func in gai_strerror
  19542. do
  19543. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19544. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19545. $as_echo_n "checking for $ac_func... " >&6; }
  19546. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19547. $as_echo_n "(cached) " >&6
  19548. else
  19549. cat >conftest.$ac_ext <<_ACEOF
  19550. /* confdefs.h. */
  19551. _ACEOF
  19552. cat confdefs.h >>conftest.$ac_ext
  19553. cat >>conftest.$ac_ext <<_ACEOF
  19554. /* end confdefs.h. */
  19555. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19556. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19557. #define $ac_func innocuous_$ac_func
  19558. /* System header to define __stub macros and hopefully few prototypes,
  19559. which can conflict with char $ac_func (); below.
  19560. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19561. <limits.h> exists even on freestanding compilers. */
  19562. #ifdef __STDC__
  19563. # include <limits.h>
  19564. #else
  19565. # include <assert.h>
  19566. #endif
  19567. #undef $ac_func
  19568. /* Override any GCC internal prototype to avoid an error.
  19569. Use char because int might match the return type of a GCC
  19570. builtin and then its argument prototype would still apply. */
  19571. #ifdef __cplusplus
  19572. extern "C"
  19573. #endif
  19574. char $ac_func ();
  19575. /* The GNU C library defines this for functions which it implements
  19576. to always fail with ENOSYS. Some functions are actually named
  19577. something starting with __ and the normal name is an alias. */
  19578. #if defined __stub_$ac_func || defined __stub___$ac_func
  19579. choke me
  19580. #endif
  19581. int
  19582. main ()
  19583. {
  19584. return $ac_func ();
  19585. ;
  19586. return 0;
  19587. }
  19588. _ACEOF
  19589. rm -f conftest.$ac_objext conftest$ac_exeext
  19590. if { (ac_try="$ac_link"
  19591. case "(($ac_try" in
  19592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19593. *) ac_try_echo=$ac_try;;
  19594. esac
  19595. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19596. $as_echo "$ac_try_echo") >&5
  19597. (eval "$ac_link") 2>conftest.er1
  19598. ac_status=$?
  19599. grep -v '^ *+' conftest.er1 >conftest.err
  19600. rm -f conftest.er1
  19601. cat conftest.err >&5
  19602. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19603. (exit $ac_status); } && {
  19604. test -z "$ac_cxx_werror_flag" ||
  19605. test ! -s conftest.err
  19606. } && test -s conftest$ac_exeext && {
  19607. test "$cross_compiling" = yes ||
  19608. $as_test_x conftest$ac_exeext
  19609. }; then
  19610. eval "$as_ac_var=yes"
  19611. else
  19612. $as_echo "$as_me: failed program was:" >&5
  19613. sed 's/^/| /' conftest.$ac_ext >&5
  19614. eval "$as_ac_var=no"
  19615. fi
  19616. rm -rf conftest.dSYM
  19617. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19618. conftest$ac_exeext conftest.$ac_ext
  19619. fi
  19620. ac_res=`eval 'as_val=${'$as_ac_var'}
  19621. $as_echo "$as_val"'`
  19622. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19623. $as_echo "$ac_res" >&6; }
  19624. as_val=`eval 'as_val=${'$as_ac_var'}
  19625. $as_echo "$as_val"'`
  19626. if test "x$as_val" = x""yes; then
  19627. cat >>confdefs.h <<_ACEOF
  19628. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19629. _ACEOF
  19630. if true; then
  19631. HAVE_GAI_STRERROR_TRUE=
  19632. HAVE_GAI_STRERROR_FALSE='#'
  19633. else
  19634. HAVE_GAI_STRERROR_TRUE='#'
  19635. HAVE_GAI_STRERROR_FALSE=
  19636. fi
  19637. else
  19638. if false; then
  19639. HAVE_GAI_STRERROR_TRUE=
  19640. HAVE_GAI_STRERROR_FALSE='#'
  19641. else
  19642. HAVE_GAI_STRERROR_TRUE='#'
  19643. HAVE_GAI_STRERROR_FALSE=
  19644. fi
  19645. fi
  19646. done
  19647. for ac_func in getaddrinfo
  19648. do
  19649. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19650. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19651. $as_echo_n "checking for $ac_func... " >&6; }
  19652. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19653. $as_echo_n "(cached) " >&6
  19654. else
  19655. cat >conftest.$ac_ext <<_ACEOF
  19656. /* confdefs.h. */
  19657. _ACEOF
  19658. cat confdefs.h >>conftest.$ac_ext
  19659. cat >>conftest.$ac_ext <<_ACEOF
  19660. /* end confdefs.h. */
  19661. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19662. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19663. #define $ac_func innocuous_$ac_func
  19664. /* System header to define __stub macros and hopefully few prototypes,
  19665. which can conflict with char $ac_func (); below.
  19666. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19667. <limits.h> exists even on freestanding compilers. */
  19668. #ifdef __STDC__
  19669. # include <limits.h>
  19670. #else
  19671. # include <assert.h>
  19672. #endif
  19673. #undef $ac_func
  19674. /* Override any GCC internal prototype to avoid an error.
  19675. Use char because int might match the return type of a GCC
  19676. builtin and then its argument prototype would still apply. */
  19677. #ifdef __cplusplus
  19678. extern "C"
  19679. #endif
  19680. char $ac_func ();
  19681. /* The GNU C library defines this for functions which it implements
  19682. to always fail with ENOSYS. Some functions are actually named
  19683. something starting with __ and the normal name is an alias. */
  19684. #if defined __stub_$ac_func || defined __stub___$ac_func
  19685. choke me
  19686. #endif
  19687. int
  19688. main ()
  19689. {
  19690. return $ac_func ();
  19691. ;
  19692. return 0;
  19693. }
  19694. _ACEOF
  19695. rm -f conftest.$ac_objext conftest$ac_exeext
  19696. if { (ac_try="$ac_link"
  19697. case "(($ac_try" in
  19698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19699. *) ac_try_echo=$ac_try;;
  19700. esac
  19701. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19702. $as_echo "$ac_try_echo") >&5
  19703. (eval "$ac_link") 2>conftest.er1
  19704. ac_status=$?
  19705. grep -v '^ *+' conftest.er1 >conftest.err
  19706. rm -f conftest.er1
  19707. cat conftest.err >&5
  19708. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19709. (exit $ac_status); } && {
  19710. test -z "$ac_cxx_werror_flag" ||
  19711. test ! -s conftest.err
  19712. } && test -s conftest$ac_exeext && {
  19713. test "$cross_compiling" = yes ||
  19714. $as_test_x conftest$ac_exeext
  19715. }; then
  19716. eval "$as_ac_var=yes"
  19717. else
  19718. $as_echo "$as_me: failed program was:" >&5
  19719. sed 's/^/| /' conftest.$ac_ext >&5
  19720. eval "$as_ac_var=no"
  19721. fi
  19722. rm -rf conftest.dSYM
  19723. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19724. conftest$ac_exeext conftest.$ac_ext
  19725. fi
  19726. ac_res=`eval 'as_val=${'$as_ac_var'}
  19727. $as_echo "$as_val"'`
  19728. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19729. $as_echo "$ac_res" >&6; }
  19730. as_val=`eval 'as_val=${'$as_ac_var'}
  19731. $as_echo "$as_val"'`
  19732. if test "x$as_val" = x""yes; then
  19733. cat >>confdefs.h <<_ACEOF
  19734. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19735. _ACEOF
  19736. if true; then
  19737. HAVE_GETADDRINFO_TRUE=
  19738. HAVE_GETADDRINFO_FALSE='#'
  19739. else
  19740. HAVE_GETADDRINFO_TRUE='#'
  19741. HAVE_GETADDRINFO_FALSE=
  19742. fi
  19743. else
  19744. if false; then
  19745. HAVE_GETADDRINFO_TRUE=
  19746. HAVE_GETADDRINFO_FALSE='#'
  19747. else
  19748. HAVE_GETADDRINFO_TRUE='#'
  19749. HAVE_GETADDRINFO_FALSE=
  19750. fi
  19751. fi
  19752. done
  19753. for ac_func in gettimeofday
  19754. do
  19755. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19756. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19757. $as_echo_n "checking for $ac_func... " >&6; }
  19758. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19759. $as_echo_n "(cached) " >&6
  19760. else
  19761. cat >conftest.$ac_ext <<_ACEOF
  19762. /* confdefs.h. */
  19763. _ACEOF
  19764. cat confdefs.h >>conftest.$ac_ext
  19765. cat >>conftest.$ac_ext <<_ACEOF
  19766. /* end confdefs.h. */
  19767. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19768. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19769. #define $ac_func innocuous_$ac_func
  19770. /* System header to define __stub macros and hopefully few prototypes,
  19771. which can conflict with char $ac_func (); below.
  19772. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19773. <limits.h> exists even on freestanding compilers. */
  19774. #ifdef __STDC__
  19775. # include <limits.h>
  19776. #else
  19777. # include <assert.h>
  19778. #endif
  19779. #undef $ac_func
  19780. /* Override any GCC internal prototype to avoid an error.
  19781. Use char because int might match the return type of a GCC
  19782. builtin and then its argument prototype would still apply. */
  19783. #ifdef __cplusplus
  19784. extern "C"
  19785. #endif
  19786. char $ac_func ();
  19787. /* The GNU C library defines this for functions which it implements
  19788. to always fail with ENOSYS. Some functions are actually named
  19789. something starting with __ and the normal name is an alias. */
  19790. #if defined __stub_$ac_func || defined __stub___$ac_func
  19791. choke me
  19792. #endif
  19793. int
  19794. main ()
  19795. {
  19796. return $ac_func ();
  19797. ;
  19798. return 0;
  19799. }
  19800. _ACEOF
  19801. rm -f conftest.$ac_objext conftest$ac_exeext
  19802. if { (ac_try="$ac_link"
  19803. case "(($ac_try" in
  19804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19805. *) ac_try_echo=$ac_try;;
  19806. esac
  19807. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19808. $as_echo "$ac_try_echo") >&5
  19809. (eval "$ac_link") 2>conftest.er1
  19810. ac_status=$?
  19811. grep -v '^ *+' conftest.er1 >conftest.err
  19812. rm -f conftest.er1
  19813. cat conftest.err >&5
  19814. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19815. (exit $ac_status); } && {
  19816. test -z "$ac_cxx_werror_flag" ||
  19817. test ! -s conftest.err
  19818. } && test -s conftest$ac_exeext && {
  19819. test "$cross_compiling" = yes ||
  19820. $as_test_x conftest$ac_exeext
  19821. }; then
  19822. eval "$as_ac_var=yes"
  19823. else
  19824. $as_echo "$as_me: failed program was:" >&5
  19825. sed 's/^/| /' conftest.$ac_ext >&5
  19826. eval "$as_ac_var=no"
  19827. fi
  19828. rm -rf conftest.dSYM
  19829. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19830. conftest$ac_exeext conftest.$ac_ext
  19831. fi
  19832. ac_res=`eval 'as_val=${'$as_ac_var'}
  19833. $as_echo "$as_val"'`
  19834. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19835. $as_echo "$ac_res" >&6; }
  19836. as_val=`eval 'as_val=${'$as_ac_var'}
  19837. $as_echo "$as_val"'`
  19838. if test "x$as_val" = x""yes; then
  19839. cat >>confdefs.h <<_ACEOF
  19840. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19841. _ACEOF
  19842. if true; then
  19843. HAVE_GETTIMEOFDAY_TRUE=
  19844. HAVE_GETTIMEOFDAY_FALSE='#'
  19845. else
  19846. HAVE_GETTIMEOFDAY_TRUE='#'
  19847. HAVE_GETTIMEOFDAY_FALSE=
  19848. fi
  19849. else
  19850. if false; then
  19851. HAVE_GETTIMEOFDAY_TRUE=
  19852. HAVE_GETTIMEOFDAY_FALSE='#'
  19853. else
  19854. HAVE_GETTIMEOFDAY_TRUE='#'
  19855. HAVE_GETTIMEOFDAY_FALSE=
  19856. fi
  19857. fi
  19858. done
  19859. for ac_func in inet_aton
  19860. do
  19861. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19862. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19863. $as_echo_n "checking for $ac_func... " >&6; }
  19864. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19865. $as_echo_n "(cached) " >&6
  19866. else
  19867. cat >conftest.$ac_ext <<_ACEOF
  19868. /* confdefs.h. */
  19869. _ACEOF
  19870. cat confdefs.h >>conftest.$ac_ext
  19871. cat >>conftest.$ac_ext <<_ACEOF
  19872. /* end confdefs.h. */
  19873. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19874. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19875. #define $ac_func innocuous_$ac_func
  19876. /* System header to define __stub macros and hopefully few prototypes,
  19877. which can conflict with char $ac_func (); below.
  19878. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19879. <limits.h> exists even on freestanding compilers. */
  19880. #ifdef __STDC__
  19881. # include <limits.h>
  19882. #else
  19883. # include <assert.h>
  19884. #endif
  19885. #undef $ac_func
  19886. /* Override any GCC internal prototype to avoid an error.
  19887. Use char because int might match the return type of a GCC
  19888. builtin and then its argument prototype would still apply. */
  19889. #ifdef __cplusplus
  19890. extern "C"
  19891. #endif
  19892. char $ac_func ();
  19893. /* The GNU C library defines this for functions which it implements
  19894. to always fail with ENOSYS. Some functions are actually named
  19895. something starting with __ and the normal name is an alias. */
  19896. #if defined __stub_$ac_func || defined __stub___$ac_func
  19897. choke me
  19898. #endif
  19899. int
  19900. main ()
  19901. {
  19902. return $ac_func ();
  19903. ;
  19904. return 0;
  19905. }
  19906. _ACEOF
  19907. rm -f conftest.$ac_objext conftest$ac_exeext
  19908. if { (ac_try="$ac_link"
  19909. case "(($ac_try" in
  19910. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19911. *) ac_try_echo=$ac_try;;
  19912. esac
  19913. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19914. $as_echo "$ac_try_echo") >&5
  19915. (eval "$ac_link") 2>conftest.er1
  19916. ac_status=$?
  19917. grep -v '^ *+' conftest.er1 >conftest.err
  19918. rm -f conftest.er1
  19919. cat conftest.err >&5
  19920. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19921. (exit $ac_status); } && {
  19922. test -z "$ac_cxx_werror_flag" ||
  19923. test ! -s conftest.err
  19924. } && test -s conftest$ac_exeext && {
  19925. test "$cross_compiling" = yes ||
  19926. $as_test_x conftest$ac_exeext
  19927. }; then
  19928. eval "$as_ac_var=yes"
  19929. else
  19930. $as_echo "$as_me: failed program was:" >&5
  19931. sed 's/^/| /' conftest.$ac_ext >&5
  19932. eval "$as_ac_var=no"
  19933. fi
  19934. rm -rf conftest.dSYM
  19935. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19936. conftest$ac_exeext conftest.$ac_ext
  19937. fi
  19938. ac_res=`eval 'as_val=${'$as_ac_var'}
  19939. $as_echo "$as_val"'`
  19940. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19941. $as_echo "$ac_res" >&6; }
  19942. as_val=`eval 'as_val=${'$as_ac_var'}
  19943. $as_echo "$as_val"'`
  19944. if test "x$as_val" = x""yes; then
  19945. cat >>confdefs.h <<_ACEOF
  19946. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19947. _ACEOF
  19948. if true; then
  19949. HAVE_INET_ATON_TRUE=
  19950. HAVE_INET_ATON_FALSE='#'
  19951. else
  19952. HAVE_INET_ATON_TRUE='#'
  19953. HAVE_INET_ATON_FALSE=
  19954. fi
  19955. else
  19956. if false; then
  19957. HAVE_INET_ATON_TRUE=
  19958. HAVE_INET_ATON_FALSE='#'
  19959. else
  19960. HAVE_INET_ATON_TRUE='#'
  19961. HAVE_INET_ATON_FALSE=
  19962. fi
  19963. fi
  19964. done
  19965. for ac_func in localtime_r
  19966. do
  19967. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19968. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19969. $as_echo_n "checking for $ac_func... " >&6; }
  19970. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19971. $as_echo_n "(cached) " >&6
  19972. else
  19973. cat >conftest.$ac_ext <<_ACEOF
  19974. /* confdefs.h. */
  19975. _ACEOF
  19976. cat confdefs.h >>conftest.$ac_ext
  19977. cat >>conftest.$ac_ext <<_ACEOF
  19978. /* end confdefs.h. */
  19979. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19980. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19981. #define $ac_func innocuous_$ac_func
  19982. /* System header to define __stub macros and hopefully few prototypes,
  19983. which can conflict with char $ac_func (); below.
  19984. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19985. <limits.h> exists even on freestanding compilers. */
  19986. #ifdef __STDC__
  19987. # include <limits.h>
  19988. #else
  19989. # include <assert.h>
  19990. #endif
  19991. #undef $ac_func
  19992. /* Override any GCC internal prototype to avoid an error.
  19993. Use char because int might match the return type of a GCC
  19994. builtin and then its argument prototype would still apply. */
  19995. #ifdef __cplusplus
  19996. extern "C"
  19997. #endif
  19998. char $ac_func ();
  19999. /* The GNU C library defines this for functions which it implements
  20000. to always fail with ENOSYS. Some functions are actually named
  20001. something starting with __ and the normal name is an alias. */
  20002. #if defined __stub_$ac_func || defined __stub___$ac_func
  20003. choke me
  20004. #endif
  20005. int
  20006. main ()
  20007. {
  20008. return $ac_func ();
  20009. ;
  20010. return 0;
  20011. }
  20012. _ACEOF
  20013. rm -f conftest.$ac_objext conftest$ac_exeext
  20014. if { (ac_try="$ac_link"
  20015. case "(($ac_try" in
  20016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20017. *) ac_try_echo=$ac_try;;
  20018. esac
  20019. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20020. $as_echo "$ac_try_echo") >&5
  20021. (eval "$ac_link") 2>conftest.er1
  20022. ac_status=$?
  20023. grep -v '^ *+' conftest.er1 >conftest.err
  20024. rm -f conftest.er1
  20025. cat conftest.err >&5
  20026. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20027. (exit $ac_status); } && {
  20028. test -z "$ac_cxx_werror_flag" ||
  20029. test ! -s conftest.err
  20030. } && test -s conftest$ac_exeext && {
  20031. test "$cross_compiling" = yes ||
  20032. $as_test_x conftest$ac_exeext
  20033. }; then
  20034. eval "$as_ac_var=yes"
  20035. else
  20036. $as_echo "$as_me: failed program was:" >&5
  20037. sed 's/^/| /' conftest.$ac_ext >&5
  20038. eval "$as_ac_var=no"
  20039. fi
  20040. rm -rf conftest.dSYM
  20041. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20042. conftest$ac_exeext conftest.$ac_ext
  20043. fi
  20044. ac_res=`eval 'as_val=${'$as_ac_var'}
  20045. $as_echo "$as_val"'`
  20046. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20047. $as_echo "$ac_res" >&6; }
  20048. as_val=`eval 'as_val=${'$as_ac_var'}
  20049. $as_echo "$as_val"'`
  20050. if test "x$as_val" = x""yes; then
  20051. cat >>confdefs.h <<_ACEOF
  20052. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20053. _ACEOF
  20054. if true; then
  20055. HAVE_LOCALTIME_R_TRUE=
  20056. HAVE_LOCALTIME_R_FALSE='#'
  20057. else
  20058. HAVE_LOCALTIME_R_TRUE='#'
  20059. HAVE_LOCALTIME_R_FALSE=
  20060. fi
  20061. else
  20062. if false; then
  20063. HAVE_LOCALTIME_R_TRUE=
  20064. HAVE_LOCALTIME_R_FALSE='#'
  20065. else
  20066. HAVE_LOCALTIME_R_TRUE='#'
  20067. HAVE_LOCALTIME_R_FALSE=
  20068. fi
  20069. fi
  20070. done
  20071. for ac_func in strptime
  20072. do
  20073. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20074. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  20075. $as_echo_n "checking for $ac_func... " >&6; }
  20076. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20077. $as_echo_n "(cached) " >&6
  20078. else
  20079. cat >conftest.$ac_ext <<_ACEOF
  20080. /* confdefs.h. */
  20081. _ACEOF
  20082. cat confdefs.h >>conftest.$ac_ext
  20083. cat >>conftest.$ac_ext <<_ACEOF
  20084. /* end confdefs.h. */
  20085. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20086. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20087. #define $ac_func innocuous_$ac_func
  20088. /* System header to define __stub macros and hopefully few prototypes,
  20089. which can conflict with char $ac_func (); below.
  20090. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20091. <limits.h> exists even on freestanding compilers. */
  20092. #ifdef __STDC__
  20093. # include <limits.h>
  20094. #else
  20095. # include <assert.h>
  20096. #endif
  20097. #undef $ac_func
  20098. /* Override any GCC internal prototype to avoid an error.
  20099. Use char because int might match the return type of a GCC
  20100. builtin and then its argument prototype would still apply. */
  20101. #ifdef __cplusplus
  20102. extern "C"
  20103. #endif
  20104. char $ac_func ();
  20105. /* The GNU C library defines this for functions which it implements
  20106. to always fail with ENOSYS. Some functions are actually named
  20107. something starting with __ and the normal name is an alias. */
  20108. #if defined __stub_$ac_func || defined __stub___$ac_func
  20109. choke me
  20110. #endif
  20111. int
  20112. main ()
  20113. {
  20114. return $ac_func ();
  20115. ;
  20116. return 0;
  20117. }
  20118. _ACEOF
  20119. rm -f conftest.$ac_objext conftest$ac_exeext
  20120. if { (ac_try="$ac_link"
  20121. case "(($ac_try" in
  20122. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20123. *) ac_try_echo=$ac_try;;
  20124. esac
  20125. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20126. $as_echo "$ac_try_echo") >&5
  20127. (eval "$ac_link") 2>conftest.er1
  20128. ac_status=$?
  20129. grep -v '^ *+' conftest.er1 >conftest.err
  20130. rm -f conftest.er1
  20131. cat conftest.err >&5
  20132. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20133. (exit $ac_status); } && {
  20134. test -z "$ac_cxx_werror_flag" ||
  20135. test ! -s conftest.err
  20136. } && test -s conftest$ac_exeext && {
  20137. test "$cross_compiling" = yes ||
  20138. $as_test_x conftest$ac_exeext
  20139. }; then
  20140. eval "$as_ac_var=yes"
  20141. else
  20142. $as_echo "$as_me: failed program was:" >&5
  20143. sed 's/^/| /' conftest.$ac_ext >&5
  20144. eval "$as_ac_var=no"
  20145. fi
  20146. rm -rf conftest.dSYM
  20147. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20148. conftest$ac_exeext conftest.$ac_ext
  20149. fi
  20150. ac_res=`eval 'as_val=${'$as_ac_var'}
  20151. $as_echo "$as_val"'`
  20152. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20153. $as_echo "$ac_res" >&6; }
  20154. as_val=`eval 'as_val=${'$as_ac_var'}
  20155. $as_echo "$as_val"'`
  20156. if test "x$as_val" = x""yes; then
  20157. cat >>confdefs.h <<_ACEOF
  20158. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20159. _ACEOF
  20160. if true; then
  20161. HAVE_STRPTIME_TRUE=
  20162. HAVE_STRPTIME_FALSE='#'
  20163. else
  20164. HAVE_STRPTIME_TRUE='#'
  20165. HAVE_STRPTIME_FALSE=
  20166. fi
  20167. else
  20168. if false; then
  20169. HAVE_STRPTIME_TRUE=
  20170. HAVE_STRPTIME_FALSE='#'
  20171. else
  20172. HAVE_STRPTIME_TRUE='#'
  20173. HAVE_STRPTIME_FALSE=
  20174. fi
  20175. fi
  20176. done
  20177. for ac_func in timegm
  20178. do
  20179. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20180. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  20181. $as_echo_n "checking for $ac_func... " >&6; }
  20182. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20183. $as_echo_n "(cached) " >&6
  20184. else
  20185. cat >conftest.$ac_ext <<_ACEOF
  20186. /* confdefs.h. */
  20187. _ACEOF
  20188. cat confdefs.h >>conftest.$ac_ext
  20189. cat >>conftest.$ac_ext <<_ACEOF
  20190. /* end confdefs.h. */
  20191. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20192. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20193. #define $ac_func innocuous_$ac_func
  20194. /* System header to define __stub macros and hopefully few prototypes,
  20195. which can conflict with char $ac_func (); below.
  20196. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20197. <limits.h> exists even on freestanding compilers. */
  20198. #ifdef __STDC__
  20199. # include <limits.h>
  20200. #else
  20201. # include <assert.h>
  20202. #endif
  20203. #undef $ac_func
  20204. /* Override any GCC internal prototype to avoid an error.
  20205. Use char because int might match the return type of a GCC
  20206. builtin and then its argument prototype would still apply. */
  20207. #ifdef __cplusplus
  20208. extern "C"
  20209. #endif
  20210. char $ac_func ();
  20211. /* The GNU C library defines this for functions which it implements
  20212. to always fail with ENOSYS. Some functions are actually named
  20213. something starting with __ and the normal name is an alias. */
  20214. #if defined __stub_$ac_func || defined __stub___$ac_func
  20215. choke me
  20216. #endif
  20217. int
  20218. main ()
  20219. {
  20220. return $ac_func ();
  20221. ;
  20222. return 0;
  20223. }
  20224. _ACEOF
  20225. rm -f conftest.$ac_objext conftest$ac_exeext
  20226. if { (ac_try="$ac_link"
  20227. case "(($ac_try" in
  20228. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20229. *) ac_try_echo=$ac_try;;
  20230. esac
  20231. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20232. $as_echo "$ac_try_echo") >&5
  20233. (eval "$ac_link") 2>conftest.er1
  20234. ac_status=$?
  20235. grep -v '^ *+' conftest.er1 >conftest.err
  20236. rm -f conftest.er1
  20237. cat conftest.err >&5
  20238. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20239. (exit $ac_status); } && {
  20240. test -z "$ac_cxx_werror_flag" ||
  20241. test ! -s conftest.err
  20242. } && test -s conftest$ac_exeext && {
  20243. test "$cross_compiling" = yes ||
  20244. $as_test_x conftest$ac_exeext
  20245. }; then
  20246. eval "$as_ac_var=yes"
  20247. else
  20248. $as_echo "$as_me: failed program was:" >&5
  20249. sed 's/^/| /' conftest.$ac_ext >&5
  20250. eval "$as_ac_var=no"
  20251. fi
  20252. rm -rf conftest.dSYM
  20253. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20254. conftest$ac_exeext conftest.$ac_ext
  20255. fi
  20256. ac_res=`eval 'as_val=${'$as_ac_var'}
  20257. $as_echo "$as_val"'`
  20258. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20259. $as_echo "$ac_res" >&6; }
  20260. as_val=`eval 'as_val=${'$as_ac_var'}
  20261. $as_echo "$as_val"'`
  20262. if test "x$as_val" = x""yes; then
  20263. cat >>confdefs.h <<_ACEOF
  20264. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20265. _ACEOF
  20266. if true; then
  20267. HAVE_TIMEGM_TRUE=
  20268. HAVE_TIMEGM_FALSE='#'
  20269. else
  20270. HAVE_TIMEGM_TRUE='#'
  20271. HAVE_TIMEGM_FALSE=
  20272. fi
  20273. else
  20274. if false; then
  20275. HAVE_TIMEGM_TRUE=
  20276. HAVE_TIMEGM_FALSE='#'
  20277. else
  20278. HAVE_TIMEGM_TRUE='#'
  20279. HAVE_TIMEGM_FALSE=
  20280. fi
  20281. fi
  20282. done
  20283. case "$target" in
  20284. *mingw*)
  20285. if true; then
  20286. HAVE_GETADDRINFO_TRUE=
  20287. HAVE_GETADDRINFO_FALSE='#'
  20288. else
  20289. HAVE_GETADDRINFO_TRUE='#'
  20290. HAVE_GETADDRINFO_FALSE=
  20291. fi
  20292. if false; then
  20293. HAVE_GAI_STRERROR_TRUE=
  20294. HAVE_GAI_STRERROR_FALSE='#'
  20295. else
  20296. HAVE_GAI_STRERROR_TRUE='#'
  20297. HAVE_GAI_STRERROR_FALSE=
  20298. fi
  20299. ;;
  20300. esac
  20301. { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
  20302. $as_echo_n "checking for struct sockaddr_in.sin_len... " >&6; }
  20303. if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
  20304. $as_echo_n "(cached) " >&6
  20305. else
  20306. cat >conftest.$ac_ext <<_ACEOF
  20307. /* confdefs.h. */
  20308. _ACEOF
  20309. cat confdefs.h >>conftest.$ac_ext
  20310. cat >>conftest.$ac_ext <<_ACEOF
  20311. /* end confdefs.h. */
  20312. #include <netinet/in.h>
  20313. int
  20314. main ()
  20315. {
  20316. static struct sockaddr_in ac_aggr;
  20317. if (ac_aggr.sin_len)
  20318. return 0;
  20319. ;
  20320. return 0;
  20321. }
  20322. _ACEOF
  20323. rm -f conftest.$ac_objext
  20324. if { (ac_try="$ac_compile"
  20325. case "(($ac_try" in
  20326. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20327. *) ac_try_echo=$ac_try;;
  20328. esac
  20329. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20330. $as_echo "$ac_try_echo") >&5
  20331. (eval "$ac_compile") 2>conftest.er1
  20332. ac_status=$?
  20333. grep -v '^ *+' conftest.er1 >conftest.err
  20334. rm -f conftest.er1
  20335. cat conftest.err >&5
  20336. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20337. (exit $ac_status); } && {
  20338. test -z "$ac_cxx_werror_flag" ||
  20339. test ! -s conftest.err
  20340. } && test -s conftest.$ac_objext; then
  20341. ac_cv_member_struct_sockaddr_in_sin_len=yes
  20342. else
  20343. $as_echo "$as_me: failed program was:" >&5
  20344. sed 's/^/| /' conftest.$ac_ext >&5
  20345. cat >conftest.$ac_ext <<_ACEOF
  20346. /* confdefs.h. */
  20347. _ACEOF
  20348. cat confdefs.h >>conftest.$ac_ext
  20349. cat >>conftest.$ac_ext <<_ACEOF
  20350. /* end confdefs.h. */
  20351. #include <netinet/in.h>
  20352. int
  20353. main ()
  20354. {
  20355. static struct sockaddr_in ac_aggr;
  20356. if (sizeof ac_aggr.sin_len)
  20357. return 0;
  20358. ;
  20359. return 0;
  20360. }
  20361. _ACEOF
  20362. rm -f conftest.$ac_objext
  20363. if { (ac_try="$ac_compile"
  20364. case "(($ac_try" in
  20365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20366. *) ac_try_echo=$ac_try;;
  20367. esac
  20368. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20369. $as_echo "$ac_try_echo") >&5
  20370. (eval "$ac_compile") 2>conftest.er1
  20371. ac_status=$?
  20372. grep -v '^ *+' conftest.er1 >conftest.err
  20373. rm -f conftest.er1
  20374. cat conftest.err >&5
  20375. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20376. (exit $ac_status); } && {
  20377. test -z "$ac_cxx_werror_flag" ||
  20378. test ! -s conftest.err
  20379. } && test -s conftest.$ac_objext; then
  20380. ac_cv_member_struct_sockaddr_in_sin_len=yes
  20381. else
  20382. $as_echo "$as_me: failed program was:" >&5
  20383. sed 's/^/| /' conftest.$ac_ext >&5
  20384. ac_cv_member_struct_sockaddr_in_sin_len=no
  20385. fi
  20386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20387. fi
  20388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20389. fi
  20390. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
  20391. $as_echo "$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
  20392. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then
  20393. cat >>confdefs.h <<\_ACEOF
  20394. #define HAVE_SOCKADDR_IN_SIN_LEN 1
  20395. _ACEOF
  20396. fi
  20397. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  20398. cat >confcache <<\_ACEOF
  20399. # This file is a shell script that caches the results of configure
  20400. # tests run on this system so they can be shared between configure
  20401. # scripts and configure runs, see configure's option --config-cache.
  20402. # It is not useful on other systems. If it contains results you don't
  20403. # want to keep, you may remove or edit it.
  20404. #
  20405. # config.status only pays attention to the cache file if you give it
  20406. # the --recheck option to rerun configure.
  20407. #
  20408. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20409. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20410. # following values.
  20411. _ACEOF
  20412. # The following way of writing the cache mishandles newlines in values,
  20413. # but we know of no workaround that is simple, portable, and efficient.
  20414. # So, we kill variables containing newlines.
  20415. # Ultrix sh set writes to stderr and can't be redirected directly,
  20416. # and sets the high bit in the cache file unless we assign to the vars.
  20417. (
  20418. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20419. eval ac_val=\$$ac_var
  20420. case $ac_val in #(
  20421. *${as_nl}*)
  20422. case $ac_var in #(
  20423. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  20424. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  20425. esac
  20426. case $ac_var in #(
  20427. _ | IFS | as_nl) ;; #(
  20428. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  20429. *) $as_unset $ac_var ;;
  20430. esac ;;
  20431. esac
  20432. done
  20433. (set) 2>&1 |
  20434. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20435. *${as_nl}ac_space=\ *)
  20436. # `set' does not quote correctly, so add quotes (double-quote
  20437. # substitution turns \\\\ into \\, and sed turns \\ into \).
  20438. sed -n \
  20439. "s/'/'\\\\''/g;
  20440. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20441. ;; #(
  20442. *)
  20443. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20444. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20445. ;;
  20446. esac |
  20447. sort
  20448. ) |
  20449. sed '
  20450. /^ac_cv_env_/b end
  20451. t clear
  20452. :clear
  20453. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20454. t end
  20455. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20456. :end' >>confcache
  20457. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20458. if test -w "$cache_file"; then
  20459. test "x$cache_file" != "x/dev/null" &&
  20460. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  20461. $as_echo "$as_me: updating cache $cache_file" >&6;}
  20462. cat confcache >$cache_file
  20463. else
  20464. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  20465. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20466. fi
  20467. fi
  20468. rm -f confcache
  20469. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20470. # Let make expand exec_prefix.
  20471. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20472. DEFS=-DHAVE_CONFIG_H
  20473. ac_libobjs=
  20474. ac_ltlibobjs=
  20475. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20476. # 1. Remove the extension, and $U if already installed.
  20477. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20478. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  20479. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20480. # will be set to the directory where LIBOBJS objects are built.
  20481. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20482. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  20483. done
  20484. LIBOBJS=$ac_libobjs
  20485. LTLIBOBJS=$ac_ltlibobjs
  20486. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  20487. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  20488. Usually this means the macro was only invoked conditionally." >&5
  20489. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  20490. Usually this means the macro was only invoked conditionally." >&2;}
  20491. { (exit 1); exit 1; }; }
  20492. fi
  20493. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  20494. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  20495. Usually this means the macro was only invoked conditionally." >&5
  20496. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  20497. Usually this means the macro was only invoked conditionally." >&2;}
  20498. { (exit 1); exit 1; }; }
  20499. fi
  20500. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  20501. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  20502. Usually this means the macro was only invoked conditionally." >&5
  20503. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  20504. Usually this means the macro was only invoked conditionally." >&2;}
  20505. { (exit 1); exit 1; }; }
  20506. fi
  20507. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  20508. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
  20509. Usually this means the macro was only invoked conditionally." >&5
  20510. $as_echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
  20511. Usually this means the macro was only invoked conditionally." >&2;}
  20512. { (exit 1); exit 1; }; }
  20513. fi
  20514. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  20515. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
  20516. Usually this means the macro was only invoked conditionally." >&5
  20517. $as_echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
  20518. Usually this means the macro was only invoked conditionally." >&2;}
  20519. { (exit 1); exit 1; }; }
  20520. fi
  20521. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  20522. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  20523. Usually this means the macro was only invoked conditionally." >&5
  20524. $as_echo "$as_me: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  20525. Usually this means the macro was only invoked conditionally." >&2;}
  20526. { (exit 1); exit 1; }; }
  20527. fi
  20528. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  20529. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBSSL\" was never defined.
  20530. Usually this means the macro was only invoked conditionally." >&5
  20531. $as_echo "$as_me: error: conditional \"HAVE_LIBSSL\" was never defined.
  20532. Usually this means the macro was only invoked conditionally." >&2;}
  20533. { (exit 1); exit 1; }; }
  20534. fi
  20535. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  20536. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20537. Usually this means the macro was only invoked conditionally." >&5
  20538. $as_echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20539. Usually this means the macro was only invoked conditionally." >&2;}
  20540. { (exit 1); exit 1; }; }
  20541. fi
  20542. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  20543. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20544. Usually this means the macro was only invoked conditionally." >&5
  20545. $as_echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20546. Usually this means the macro was only invoked conditionally." >&2;}
  20547. { (exit 1); exit 1; }; }
  20548. fi
  20549. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  20550. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20551. Usually this means the macro was only invoked conditionally." >&5
  20552. $as_echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20553. Usually this means the macro was only invoked conditionally." >&2;}
  20554. { (exit 1); exit 1; }; }
  20555. fi
  20556. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  20557. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20558. Usually this means the macro was only invoked conditionally." >&5
  20559. $as_echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20560. Usually this means the macro was only invoked conditionally." >&2;}
  20561. { (exit 1); exit 1; }; }
  20562. fi
  20563. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  20564. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  20565. Usually this means the macro was only invoked conditionally." >&5
  20566. $as_echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  20567. Usually this means the macro was only invoked conditionally." >&2;}
  20568. { (exit 1); exit 1; }; }
  20569. fi
  20570. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  20571. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  20572. Usually this means the macro was only invoked conditionally." >&5
  20573. $as_echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  20574. Usually this means the macro was only invoked conditionally." >&2;}
  20575. { (exit 1); exit 1; }; }
  20576. fi
  20577. if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
  20578. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  20579. Usually this means the macro was only invoked conditionally." >&5
  20580. $as_echo "$as_me: error: conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  20581. Usually this means the macro was only invoked conditionally." >&2;}
  20582. { (exit 1); exit 1; }; }
  20583. fi
  20584. if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
  20585. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  20586. Usually this means the macro was only invoked conditionally." >&5
  20587. $as_echo "$as_me: error: conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  20588. Usually this means the macro was only invoked conditionally." >&2;}
  20589. { (exit 1); exit 1; }; }
  20590. fi
  20591. if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
  20592. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_XML_RPC\" was never defined.
  20593. Usually this means the macro was only invoked conditionally." >&5
  20594. $as_echo "$as_me: error: conditional \"ENABLE_XML_RPC\" was never defined.
  20595. Usually this means the macro was only invoked conditionally." >&2;}
  20596. { (exit 1); exit 1; }; }
  20597. fi
  20598. if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
  20599. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBXML2\" was never defined.
  20600. Usually this means the macro was only invoked conditionally." >&5
  20601. $as_echo "$as_me: error: conditional \"HAVE_LIBXML2\" was never defined.
  20602. Usually this means the macro was only invoked conditionally." >&2;}
  20603. { (exit 1); exit 1; }; }
  20604. fi
  20605. if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
  20606. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBEXPAT\" was never defined.
  20607. Usually this means the macro was only invoked conditionally." >&5
  20608. $as_echo "$as_me: error: conditional \"HAVE_LIBEXPAT\" was never defined.
  20609. Usually this means the macro was only invoked conditionally." >&2;}
  20610. { (exit 1); exit 1; }; }
  20611. fi
  20612. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  20613. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  20614. Usually this means the macro was only invoked conditionally." >&5
  20615. $as_echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  20616. Usually this means the macro was only invoked conditionally." >&2;}
  20617. { (exit 1); exit 1; }; }
  20618. fi
  20619. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  20620. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  20621. Usually this means the macro was only invoked conditionally." >&5
  20622. $as_echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  20623. Usually this means the macro was only invoked conditionally." >&2;}
  20624. { (exit 1); exit 1; }; }
  20625. fi
  20626. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  20627. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
  20628. Usually this means the macro was only invoked conditionally." >&5
  20629. $as_echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
  20630. Usually this means the macro was only invoked conditionally." >&2;}
  20631. { (exit 1); exit 1; }; }
  20632. fi
  20633. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  20634. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SQLITE3\" was never defined.
  20635. Usually this means the macro was only invoked conditionally." >&5
  20636. $as_echo "$as_me: error: conditional \"HAVE_SQLITE3\" was never defined.
  20637. Usually this means the macro was only invoked conditionally." >&2;}
  20638. { (exit 1); exit 1; }; }
  20639. fi
  20640. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  20641. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_EPOLL\" was never defined.
  20642. Usually this means the macro was only invoked conditionally." >&5
  20643. $as_echo "$as_me: error: conditional \"HAVE_EPOLL\" was never defined.
  20644. Usually this means the macro was only invoked conditionally." >&2;}
  20645. { (exit 1); exit 1; }; }
  20646. fi
  20647. if test -z "${HAVE_POSIX_FALLOCATE_TRUE}" && test -z "${HAVE_POSIX_FALLOCATE_FALSE}"; then
  20648. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  20649. Usually this means the macro was only invoked conditionally." >&5
  20650. $as_echo "$as_me: error: conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  20651. Usually this means the macro was only invoked conditionally." >&2;}
  20652. { (exit 1); exit 1; }; }
  20653. fi
  20654. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  20655. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  20656. Usually this means the macro was only invoked conditionally." >&5
  20657. $as_echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  20658. Usually this means the macro was only invoked conditionally." >&2;}
  20659. { (exit 1); exit 1; }; }
  20660. fi
  20661. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  20662. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  20663. Usually this means the macro was only invoked conditionally." >&5
  20664. $as_echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  20665. Usually this means the macro was only invoked conditionally." >&2;}
  20666. { (exit 1); exit 1; }; }
  20667. fi
  20668. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  20669. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  20670. Usually this means the macro was only invoked conditionally." >&5
  20671. $as_echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  20672. Usually this means the macro was only invoked conditionally." >&2;}
  20673. { (exit 1); exit 1; }; }
  20674. fi
  20675. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  20676. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  20677. Usually this means the macro was only invoked conditionally." >&5
  20678. $as_echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  20679. Usually this means the macro was only invoked conditionally." >&2;}
  20680. { (exit 1); exit 1; }; }
  20681. fi
  20682. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  20683. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20684. Usually this means the macro was only invoked conditionally." >&5
  20685. $as_echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20686. Usually this means the macro was only invoked conditionally." >&2;}
  20687. { (exit 1); exit 1; }; }
  20688. fi
  20689. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  20690. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20691. Usually this means the macro was only invoked conditionally." >&5
  20692. $as_echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20693. Usually this means the macro was only invoked conditionally." >&2;}
  20694. { (exit 1); exit 1; }; }
  20695. fi
  20696. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  20697. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20698. Usually this means the macro was only invoked conditionally." >&5
  20699. $as_echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20700. Usually this means the macro was only invoked conditionally." >&2;}
  20701. { (exit 1); exit 1; }; }
  20702. fi
  20703. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  20704. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20705. Usually this means the macro was only invoked conditionally." >&5
  20706. $as_echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20707. Usually this means the macro was only invoked conditionally." >&2;}
  20708. { (exit 1); exit 1; }; }
  20709. fi
  20710. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  20711. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  20712. Usually this means the macro was only invoked conditionally." >&5
  20713. $as_echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  20714. Usually this means the macro was only invoked conditionally." >&2;}
  20715. { (exit 1); exit 1; }; }
  20716. fi
  20717. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  20718. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  20719. Usually this means the macro was only invoked conditionally." >&5
  20720. $as_echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  20721. Usually this means the macro was only invoked conditionally." >&2;}
  20722. { (exit 1); exit 1; }; }
  20723. fi
  20724. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  20725. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  20726. Usually this means the macro was only invoked conditionally." >&5
  20727. $as_echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  20728. Usually this means the macro was only invoked conditionally." >&2;}
  20729. { (exit 1); exit 1; }; }
  20730. fi
  20731. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  20732. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  20733. Usually this means the macro was only invoked conditionally." >&5
  20734. $as_echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  20735. Usually this means the macro was only invoked conditionally." >&2;}
  20736. { (exit 1); exit 1; }; }
  20737. fi
  20738. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  20739. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  20740. Usually this means the macro was only invoked conditionally." >&5
  20741. $as_echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  20742. Usually this means the macro was only invoked conditionally." >&2;}
  20743. { (exit 1); exit 1; }; }
  20744. fi
  20745. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  20746. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  20747. Usually this means the macro was only invoked conditionally." >&5
  20748. $as_echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  20749. Usually this means the macro was only invoked conditionally." >&2;}
  20750. { (exit 1); exit 1; }; }
  20751. fi
  20752. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  20753. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  20754. Usually this means the macro was only invoked conditionally." >&5
  20755. $as_echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  20756. Usually this means the macro was only invoked conditionally." >&2;}
  20757. { (exit 1); exit 1; }; }
  20758. fi
  20759. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  20760. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  20761. Usually this means the macro was only invoked conditionally." >&5
  20762. $as_echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  20763. Usually this means the macro was only invoked conditionally." >&2;}
  20764. { (exit 1); exit 1; }; }
  20765. fi
  20766. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  20767. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  20768. Usually this means the macro was only invoked conditionally." >&5
  20769. $as_echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  20770. Usually this means the macro was only invoked conditionally." >&2;}
  20771. { (exit 1); exit 1; }; }
  20772. fi
  20773. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  20774. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  20775. Usually this means the macro was only invoked conditionally." >&5
  20776. $as_echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  20777. Usually this means the macro was only invoked conditionally." >&2;}
  20778. { (exit 1); exit 1; }; }
  20779. fi
  20780. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  20781. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20782. Usually this means the macro was only invoked conditionally." >&5
  20783. $as_echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20784. Usually this means the macro was only invoked conditionally." >&2;}
  20785. { (exit 1); exit 1; }; }
  20786. fi
  20787. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  20788. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20789. Usually this means the macro was only invoked conditionally." >&5
  20790. $as_echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20791. Usually this means the macro was only invoked conditionally." >&2;}
  20792. { (exit 1); exit 1; }; }
  20793. fi
  20794. : ${CONFIG_STATUS=./config.status}
  20795. ac_write_fail=0
  20796. ac_clean_files_save=$ac_clean_files
  20797. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20798. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  20799. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20800. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20801. #! $SHELL
  20802. # Generated by $as_me.
  20803. # Run this file to recreate the current configuration.
  20804. # Compiler output produced by configure, useful for debugging
  20805. # configure, is in config.log if it exists.
  20806. debug=false
  20807. ac_cs_recheck=false
  20808. ac_cs_silent=false
  20809. SHELL=\${CONFIG_SHELL-$SHELL}
  20810. _ACEOF
  20811. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20812. ## --------------------- ##
  20813. ## M4sh Initialization. ##
  20814. ## --------------------- ##
  20815. # Be more Bourne compatible
  20816. DUALCASE=1; export DUALCASE # for MKS sh
  20817. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  20818. emulate sh
  20819. NULLCMD=:
  20820. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20821. # is contrary to our usage. Disable this feature.
  20822. alias -g '${1+"$@"}'='"$@"'
  20823. setopt NO_GLOB_SUBST
  20824. else
  20825. case `(set -o) 2>/dev/null` in
  20826. *posix*) set -o posix ;;
  20827. esac
  20828. fi
  20829. # PATH needs CR
  20830. # Avoid depending upon Character Ranges.
  20831. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20832. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20833. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20834. as_cr_digits='0123456789'
  20835. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20836. as_nl='
  20837. '
  20838. export as_nl
  20839. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  20840. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  20841. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  20842. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  20843. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  20844. as_echo='printf %s\n'
  20845. as_echo_n='printf %s'
  20846. else
  20847. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  20848. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  20849. as_echo_n='/usr/ucb/echo -n'
  20850. else
  20851. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  20852. as_echo_n_body='eval
  20853. arg=$1;
  20854. case $arg in
  20855. *"$as_nl"*)
  20856. expr "X$arg" : "X\\(.*\\)$as_nl";
  20857. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  20858. esac;
  20859. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  20860. '
  20861. export as_echo_n_body
  20862. as_echo_n='sh -c $as_echo_n_body as_echo'
  20863. fi
  20864. export as_echo_body
  20865. as_echo='sh -c $as_echo_body as_echo'
  20866. fi
  20867. # The user is always right.
  20868. if test "${PATH_SEPARATOR+set}" != set; then
  20869. PATH_SEPARATOR=:
  20870. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  20871. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  20872. PATH_SEPARATOR=';'
  20873. }
  20874. fi
  20875. # Support unset when possible.
  20876. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  20877. as_unset=unset
  20878. else
  20879. as_unset=false
  20880. fi
  20881. # IFS
  20882. # We need space, tab and new line, in precisely that order. Quoting is
  20883. # there to prevent editors from complaining about space-tab.
  20884. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20885. # splitting by setting IFS to empty value.)
  20886. IFS=" "" $as_nl"
  20887. # Find who we are. Look in the path if we contain no directory separator.
  20888. case $0 in
  20889. *[\\/]* ) as_myself=$0 ;;
  20890. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20891. for as_dir in $PATH
  20892. do
  20893. IFS=$as_save_IFS
  20894. test -z "$as_dir" && as_dir=.
  20895. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20896. done
  20897. IFS=$as_save_IFS
  20898. ;;
  20899. esac
  20900. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20901. # in which case we are not to be found in the path.
  20902. if test "x$as_myself" = x; then
  20903. as_myself=$0
  20904. fi
  20905. if test ! -f "$as_myself"; then
  20906. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20907. { (exit 1); exit 1; }
  20908. fi
  20909. # Work around bugs in pre-3.0 UWIN ksh.
  20910. for as_var in ENV MAIL MAILPATH
  20911. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  20912. done
  20913. PS1='$ '
  20914. PS2='> '
  20915. PS4='+ '
  20916. # NLS nuisances.
  20917. LC_ALL=C
  20918. export LC_ALL
  20919. LANGUAGE=C
  20920. export LANGUAGE
  20921. # Required to use basename.
  20922. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20923. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20924. as_expr=expr
  20925. else
  20926. as_expr=false
  20927. fi
  20928. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20929. as_basename=basename
  20930. else
  20931. as_basename=false
  20932. fi
  20933. # Name of the executable.
  20934. as_me=`$as_basename -- "$0" ||
  20935. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20936. X"$0" : 'X\(//\)$' \| \
  20937. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20938. $as_echo X/"$0" |
  20939. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20940. s//\1/
  20941. q
  20942. }
  20943. /^X\/\(\/\/\)$/{
  20944. s//\1/
  20945. q
  20946. }
  20947. /^X\/\(\/\).*/{
  20948. s//\1/
  20949. q
  20950. }
  20951. s/.*/./; q'`
  20952. # CDPATH.
  20953. $as_unset CDPATH
  20954. as_lineno_1=$LINENO
  20955. as_lineno_2=$LINENO
  20956. test "x$as_lineno_1" != "x$as_lineno_2" &&
  20957. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  20958. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  20959. # uniformly replaced by the line number. The first 'sed' inserts a
  20960. # line-number line after each line using $LINENO; the second 'sed'
  20961. # does the real work. The second script uses 'N' to pair each
  20962. # line-number line with the line containing $LINENO, and appends
  20963. # trailing '-' during substitution so that $LINENO is not a special
  20964. # case at line end.
  20965. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  20966. # scripts with optimization help from Paolo Bonzini. Blame Lee
  20967. # E. McMahon (1931-1989) for sed's syntax. :-)
  20968. sed -n '
  20969. p
  20970. /[$]LINENO/=
  20971. ' <$as_myself |
  20972. sed '
  20973. s/[$]LINENO.*/&-/
  20974. t lineno
  20975. b
  20976. :lineno
  20977. N
  20978. :loop
  20979. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  20980. t loop
  20981. s/-\n.*//
  20982. ' >$as_me.lineno &&
  20983. chmod +x "$as_me.lineno" ||
  20984. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  20985. { (exit 1); exit 1; }; }
  20986. # Don't try to exec as it changes $[0], causing all sort of problems
  20987. # (the dirname of $[0] is not the place where we might find the
  20988. # original and so on. Autoconf is especially sensitive to this).
  20989. . "./$as_me.lineno"
  20990. # Exit status is that of the last command.
  20991. exit
  20992. }
  20993. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20994. as_dirname=dirname
  20995. else
  20996. as_dirname=false
  20997. fi
  20998. ECHO_C= ECHO_N= ECHO_T=
  20999. case `echo -n x` in
  21000. -n*)
  21001. case `echo 'x\c'` in
  21002. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21003. *) ECHO_C='\c';;
  21004. esac;;
  21005. *)
  21006. ECHO_N='-n';;
  21007. esac
  21008. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21009. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21010. as_expr=expr
  21011. else
  21012. as_expr=false
  21013. fi
  21014. rm -f conf$$ conf$$.exe conf$$.file
  21015. if test -d conf$$.dir; then
  21016. rm -f conf$$.dir/conf$$.file
  21017. else
  21018. rm -f conf$$.dir
  21019. mkdir conf$$.dir 2>/dev/null
  21020. fi
  21021. if (echo >conf$$.file) 2>/dev/null; then
  21022. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21023. as_ln_s='ln -s'
  21024. # ... but there are two gotchas:
  21025. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21026. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21027. # In both cases, we have to default to `cp -p'.
  21028. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21029. as_ln_s='cp -p'
  21030. elif ln conf$$.file conf$$ 2>/dev/null; then
  21031. as_ln_s=ln
  21032. else
  21033. as_ln_s='cp -p'
  21034. fi
  21035. else
  21036. as_ln_s='cp -p'
  21037. fi
  21038. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21039. rmdir conf$$.dir 2>/dev/null
  21040. if mkdir -p . 2>/dev/null; then
  21041. as_mkdir_p=:
  21042. else
  21043. test -d ./-p && rmdir ./-p
  21044. as_mkdir_p=false
  21045. fi
  21046. if test -x / >/dev/null 2>&1; then
  21047. as_test_x='test -x'
  21048. else
  21049. if ls -dL / >/dev/null 2>&1; then
  21050. as_ls_L_option=L
  21051. else
  21052. as_ls_L_option=
  21053. fi
  21054. as_test_x='
  21055. eval sh -c '\''
  21056. if test -d "$1"; then
  21057. test -d "$1/.";
  21058. else
  21059. case $1 in
  21060. -*)set "./$1";;
  21061. esac;
  21062. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  21063. ???[sx]*):;;*)false;;esac;fi
  21064. '\'' sh
  21065. '
  21066. fi
  21067. as_executable_p=$as_test_x
  21068. # Sed expression to map a string onto a valid CPP name.
  21069. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21070. # Sed expression to map a string onto a valid variable name.
  21071. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21072. exec 6>&1
  21073. # Save the log message, to keep $[0] and so on meaningful, and to
  21074. # report actual input values of CONFIG_FILES etc. instead of their
  21075. # values after options handling.
  21076. ac_log="
  21077. This file was extended by aria2 $as_me 1.3.3, which was
  21078. generated by GNU Autoconf 2.63. Invocation command line was
  21079. CONFIG_FILES = $CONFIG_FILES
  21080. CONFIG_HEADERS = $CONFIG_HEADERS
  21081. CONFIG_LINKS = $CONFIG_LINKS
  21082. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21083. $ $0 $@
  21084. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21085. "
  21086. _ACEOF
  21087. case $ac_config_files in *"
  21088. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21089. esac
  21090. case $ac_config_headers in *"
  21091. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21092. esac
  21093. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21094. # Files that config.status was made for.
  21095. config_files="$ac_config_files"
  21096. config_headers="$ac_config_headers"
  21097. config_commands="$ac_config_commands"
  21098. _ACEOF
  21099. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21100. ac_cs_usage="\
  21101. \`$as_me' instantiates files from templates according to the
  21102. current configuration.
  21103. Usage: $0 [OPTION]... [FILE]...
  21104. -h, --help print this help, then exit
  21105. -V, --version print version number and configuration settings, then exit
  21106. -q, --quiet, --silent
  21107. do not print progress messages
  21108. -d, --debug don't remove temporary files
  21109. --recheck update $as_me by reconfiguring in the same conditions
  21110. --file=FILE[:TEMPLATE]
  21111. instantiate the configuration file FILE
  21112. --header=FILE[:TEMPLATE]
  21113. instantiate the configuration header FILE
  21114. Configuration files:
  21115. $config_files
  21116. Configuration headers:
  21117. $config_headers
  21118. Configuration commands:
  21119. $config_commands
  21120. Report bugs to <bug-autoconf@gnu.org>."
  21121. _ACEOF
  21122. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21123. ac_cs_version="\\
  21124. aria2 config.status 1.3.3
  21125. configured by $0, generated by GNU Autoconf 2.63,
  21126. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  21127. Copyright (C) 2008 Free Software Foundation, Inc.
  21128. This config.status script is free software; the Free Software Foundation
  21129. gives unlimited permission to copy, distribute and modify it."
  21130. ac_pwd='$ac_pwd'
  21131. srcdir='$srcdir'
  21132. INSTALL='$INSTALL'
  21133. MKDIR_P='$MKDIR_P'
  21134. AWK='$AWK'
  21135. test -n "\$AWK" || AWK=awk
  21136. _ACEOF
  21137. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21138. # The default lists apply if the user does not specify any file.
  21139. ac_need_defaults=:
  21140. while test $# != 0
  21141. do
  21142. case $1 in
  21143. --*=*)
  21144. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21145. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21146. ac_shift=:
  21147. ;;
  21148. *)
  21149. ac_option=$1
  21150. ac_optarg=$2
  21151. ac_shift=shift
  21152. ;;
  21153. esac
  21154. case $ac_option in
  21155. # Handling of the options.
  21156. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21157. ac_cs_recheck=: ;;
  21158. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21159. $as_echo "$ac_cs_version"; exit ;;
  21160. --debug | --debu | --deb | --de | --d | -d )
  21161. debug=: ;;
  21162. --file | --fil | --fi | --f )
  21163. $ac_shift
  21164. case $ac_optarg in
  21165. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21166. esac
  21167. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  21168. ac_need_defaults=false;;
  21169. --header | --heade | --head | --hea )
  21170. $ac_shift
  21171. case $ac_optarg in
  21172. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21173. esac
  21174. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  21175. ac_need_defaults=false;;
  21176. --he | --h)
  21177. # Conflict between --help and --header
  21178. { $as_echo "$as_me: error: ambiguous option: $1
  21179. Try \`$0 --help' for more information." >&2
  21180. { (exit 1); exit 1; }; };;
  21181. --help | --hel | -h )
  21182. $as_echo "$ac_cs_usage"; exit ;;
  21183. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21184. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21185. ac_cs_silent=: ;;
  21186. # This is an error.
  21187. -*) { $as_echo "$as_me: error: unrecognized option: $1
  21188. Try \`$0 --help' for more information." >&2
  21189. { (exit 1); exit 1; }; } ;;
  21190. *) ac_config_targets="$ac_config_targets $1"
  21191. ac_need_defaults=false ;;
  21192. esac
  21193. shift
  21194. done
  21195. ac_configure_extra_args=
  21196. if $ac_cs_silent; then
  21197. exec 6>/dev/null
  21198. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21199. fi
  21200. _ACEOF
  21201. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21202. if \$ac_cs_recheck; then
  21203. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21204. shift
  21205. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21206. CONFIG_SHELL='$SHELL'
  21207. export CONFIG_SHELL
  21208. exec "\$@"
  21209. fi
  21210. _ACEOF
  21211. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21212. exec 5>>config.log
  21213. {
  21214. echo
  21215. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21216. ## Running $as_me. ##
  21217. _ASBOX
  21218. $as_echo "$ac_log"
  21219. } >&5
  21220. _ACEOF
  21221. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21222. #
  21223. # INIT-COMMANDS
  21224. #
  21225. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  21226. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  21227. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  21228. # from automake < 1.5.
  21229. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  21230. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  21231. LINGUAS="${LINGUAS-%UNSET%}"
  21232. _ACEOF
  21233. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21234. # Handling of arguments.
  21235. for ac_config_target in $ac_config_targets
  21236. do
  21237. case $ac_config_target in
  21238. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  21239. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  21240. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  21241. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  21242. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  21243. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  21244. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  21245. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  21246. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  21247. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  21248. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  21249. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  21250. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  21251. { (exit 1); exit 1; }; };;
  21252. esac
  21253. done
  21254. # If the user did not use the arguments to specify the items to instantiate,
  21255. # then the envvar interface is used. Set only those that are not.
  21256. # We use the long form for the default assignment because of an extremely
  21257. # bizarre bug on SunOS 4.1.3.
  21258. if $ac_need_defaults; then
  21259. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21260. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21261. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21262. fi
  21263. # Have a temporary directory for convenience. Make it in the build tree
  21264. # simply because there is no reason against having it here, and in addition,
  21265. # creating and moving files from /tmp can sometimes cause problems.
  21266. # Hook for its removal unless debugging.
  21267. # Note that there is a small window in which the directory will not be cleaned:
  21268. # after its creation but before its name has been assigned to `$tmp'.
  21269. $debug ||
  21270. {
  21271. tmp=
  21272. trap 'exit_status=$?
  21273. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  21274. ' 0
  21275. trap '{ (exit 1); exit 1; }' 1 2 13 15
  21276. }
  21277. # Create a (secure) tmp directory for tmp files.
  21278. {
  21279. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21280. test -n "$tmp" && test -d "$tmp"
  21281. } ||
  21282. {
  21283. tmp=./conf$$-$RANDOM
  21284. (umask 077 && mkdir "$tmp")
  21285. } ||
  21286. {
  21287. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  21288. { (exit 1); exit 1; }
  21289. }
  21290. # Set up the scripts for CONFIG_FILES section.
  21291. # No need to generate them if there are no CONFIG_FILES.
  21292. # This happens for instance with `./config.status config.h'.
  21293. if test -n "$CONFIG_FILES"; then
  21294. ac_cr=' '
  21295. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  21296. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  21297. ac_cs_awk_cr='\\r'
  21298. else
  21299. ac_cs_awk_cr=$ac_cr
  21300. fi
  21301. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  21302. _ACEOF
  21303. {
  21304. echo "cat >conf$$subs.awk <<_ACEOF" &&
  21305. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  21306. echo "_ACEOF"
  21307. } >conf$$subs.sh ||
  21308. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21309. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21310. { (exit 1); exit 1; }; }
  21311. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  21312. ac_delim='%!_!# '
  21313. for ac_last_try in false false false false false :; do
  21314. . ./conf$$subs.sh ||
  21315. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21316. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21317. { (exit 1); exit 1; }; }
  21318. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  21319. if test $ac_delim_n = $ac_delim_num; then
  21320. break
  21321. elif $ac_last_try; then
  21322. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21323. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21324. { (exit 1); exit 1; }; }
  21325. else
  21326. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21327. fi
  21328. done
  21329. rm -f conf$$subs.sh
  21330. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21331. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  21332. _ACEOF
  21333. sed -n '
  21334. h
  21335. s/^/S["/; s/!.*/"]=/
  21336. p
  21337. g
  21338. s/^[^!]*!//
  21339. :repl
  21340. t repl
  21341. s/'"$ac_delim"'$//
  21342. t delim
  21343. :nl
  21344. h
  21345. s/\(.\{148\}\).*/\1/
  21346. t more1
  21347. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  21348. p
  21349. n
  21350. b repl
  21351. :more1
  21352. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21353. p
  21354. g
  21355. s/.\{148\}//
  21356. t nl
  21357. :delim
  21358. h
  21359. s/\(.\{148\}\).*/\1/
  21360. t more2
  21361. s/["\\]/\\&/g; s/^/"/; s/$/"/
  21362. p
  21363. b
  21364. :more2
  21365. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21366. p
  21367. g
  21368. s/.\{148\}//
  21369. t delim
  21370. ' <conf$$subs.awk | sed '
  21371. /^[^""]/{
  21372. N
  21373. s/\n//
  21374. }
  21375. ' >>$CONFIG_STATUS || ac_write_fail=1
  21376. rm -f conf$$subs.awk
  21377. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21378. _ACAWK
  21379. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  21380. for (key in S) S_is_set[key] = 1
  21381. FS = ""
  21382. }
  21383. {
  21384. line = $ 0
  21385. nfields = split(line, field, "@")
  21386. substed = 0
  21387. len = length(field[1])
  21388. for (i = 2; i < nfields; i++) {
  21389. key = field[i]
  21390. keylen = length(key)
  21391. if (S_is_set[key]) {
  21392. value = S[key]
  21393. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  21394. len += length(value) + length(field[++i])
  21395. substed = 1
  21396. } else
  21397. len += 1 + keylen
  21398. }
  21399. print line
  21400. }
  21401. _ACAWK
  21402. _ACEOF
  21403. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21404. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  21405. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  21406. else
  21407. cat
  21408. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  21409. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  21410. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  21411. { (exit 1); exit 1; }; }
  21412. _ACEOF
  21413. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  21414. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  21415. # trailing colons and then remove the whole line if VPATH becomes empty
  21416. # (actually we leave an empty line to preserve line numbers).
  21417. if test "x$srcdir" = x.; then
  21418. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  21419. s/:*\$(srcdir):*/:/
  21420. s/:*\${srcdir}:*/:/
  21421. s/:*@srcdir@:*/:/
  21422. s/^\([^=]*=[ ]*\):*/\1/
  21423. s/:*$//
  21424. s/^[^=]*=[ ]*$//
  21425. }'
  21426. fi
  21427. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21428. fi # test -n "$CONFIG_FILES"
  21429. # Set up the scripts for CONFIG_HEADERS section.
  21430. # No need to generate them if there are no CONFIG_HEADERS.
  21431. # This happens for instance with `./config.status Makefile'.
  21432. if test -n "$CONFIG_HEADERS"; then
  21433. cat >"$tmp/defines.awk" <<\_ACAWK ||
  21434. BEGIN {
  21435. _ACEOF
  21436. # Transform confdefs.h into an awk script `defines.awk', embedded as
  21437. # here-document in config.status, that substitutes the proper values into
  21438. # config.h.in to produce config.h.
  21439. # Create a delimiter string that does not exist in confdefs.h, to ease
  21440. # handling of long lines.
  21441. ac_delim='%!_!# '
  21442. for ac_last_try in false false :; do
  21443. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  21444. if test -z "$ac_t"; then
  21445. break
  21446. elif $ac_last_try; then
  21447. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  21448. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  21449. { (exit 1); exit 1; }; }
  21450. else
  21451. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21452. fi
  21453. done
  21454. # For the awk script, D is an array of macro values keyed by name,
  21455. # likewise P contains macro parameters if any. Preserve backslash
  21456. # newline sequences.
  21457. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21458. sed -n '
  21459. s/.\{148\}/&'"$ac_delim"'/g
  21460. t rset
  21461. :rset
  21462. s/^[ ]*#[ ]*define[ ][ ]*/ /
  21463. t def
  21464. d
  21465. :def
  21466. s/\\$//
  21467. t bsnl
  21468. s/["\\]/\\&/g
  21469. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21470. D["\1"]=" \3"/p
  21471. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21472. d
  21473. :bsnl
  21474. s/["\\]/\\&/g
  21475. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21476. D["\1"]=" \3\\\\\\n"\\/p
  21477. t cont
  21478. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21479. t cont
  21480. d
  21481. :cont
  21482. n
  21483. s/.\{148\}/&'"$ac_delim"'/g
  21484. t clear
  21485. :clear
  21486. s/\\$//
  21487. t bsnlc
  21488. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21489. d
  21490. :bsnlc
  21491. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21492. b cont
  21493. ' <confdefs.h | sed '
  21494. s/'"$ac_delim"'/"\\\
  21495. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  21496. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21497. for (key in D) D_is_set[key] = 1
  21498. FS = ""
  21499. }
  21500. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21501. line = \$ 0
  21502. split(line, arg, " ")
  21503. if (arg[1] == "#") {
  21504. defundef = arg[2]
  21505. mac1 = arg[3]
  21506. } else {
  21507. defundef = substr(arg[1], 2)
  21508. mac1 = arg[2]
  21509. }
  21510. split(mac1, mac2, "(") #)
  21511. macro = mac2[1]
  21512. prefix = substr(line, 1, index(line, defundef) - 1)
  21513. if (D_is_set[macro]) {
  21514. # Preserve the white space surrounding the "#".
  21515. print prefix "define", macro P[macro] D[macro]
  21516. next
  21517. } else {
  21518. # Replace #undef with comments. This is necessary, for example,
  21519. # in the case of _POSIX_SOURCE, which is predefined and required
  21520. # on some systems where configure will not decide to define it.
  21521. if (defundef == "undef") {
  21522. print "/*", prefix defundef, macro, "*/"
  21523. next
  21524. }
  21525. }
  21526. }
  21527. { print }
  21528. _ACAWK
  21529. _ACEOF
  21530. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21531. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  21532. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  21533. { (exit 1); exit 1; }; }
  21534. fi # test -n "$CONFIG_HEADERS"
  21535. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21536. shift
  21537. for ac_tag
  21538. do
  21539. case $ac_tag in
  21540. :[FHLC]) ac_mode=$ac_tag; continue;;
  21541. esac
  21542. case $ac_mode$ac_tag in
  21543. :[FHL]*:*);;
  21544. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  21545. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  21546. { (exit 1); exit 1; }; };;
  21547. :[FH]-) ac_tag=-:-;;
  21548. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21549. esac
  21550. ac_save_IFS=$IFS
  21551. IFS=:
  21552. set x $ac_tag
  21553. IFS=$ac_save_IFS
  21554. shift
  21555. ac_file=$1
  21556. shift
  21557. case $ac_mode in
  21558. :L) ac_source=$1;;
  21559. :[FH])
  21560. ac_file_inputs=
  21561. for ac_f
  21562. do
  21563. case $ac_f in
  21564. -) ac_f="$tmp/stdin";;
  21565. *) # Look for the file first in the build tree, then in the source tree
  21566. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21567. # because $ac_f cannot contain `:'.
  21568. test -f "$ac_f" ||
  21569. case $ac_f in
  21570. [\\/$]*) false;;
  21571. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21572. esac ||
  21573. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  21574. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  21575. { (exit 1); exit 1; }; };;
  21576. esac
  21577. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21578. ac_file_inputs="$ac_file_inputs '$ac_f'"
  21579. done
  21580. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21581. # use $as_me), people would be surprised to read:
  21582. # /* config.h. Generated by config.status. */
  21583. configure_input='Generated from '`
  21584. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21585. `' by configure.'
  21586. if test x"$ac_file" != x-; then
  21587. configure_input="$ac_file. $configure_input"
  21588. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  21589. $as_echo "$as_me: creating $ac_file" >&6;}
  21590. fi
  21591. # Neutralize special characters interpreted by sed in replacement strings.
  21592. case $configure_input in #(
  21593. *\&* | *\|* | *\\* )
  21594. ac_sed_conf_input=`$as_echo "$configure_input" |
  21595. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21596. *) ac_sed_conf_input=$configure_input;;
  21597. esac
  21598. case $ac_tag in
  21599. *:-:* | *:-) cat >"$tmp/stdin" \
  21600. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  21601. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  21602. { (exit 1); exit 1; }; } ;;
  21603. esac
  21604. ;;
  21605. esac
  21606. ac_dir=`$as_dirname -- "$ac_file" ||
  21607. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21608. X"$ac_file" : 'X\(//\)[^/]' \| \
  21609. X"$ac_file" : 'X\(//\)$' \| \
  21610. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21611. $as_echo X"$ac_file" |
  21612. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21613. s//\1/
  21614. q
  21615. }
  21616. /^X\(\/\/\)[^/].*/{
  21617. s//\1/
  21618. q
  21619. }
  21620. /^X\(\/\/\)$/{
  21621. s//\1/
  21622. q
  21623. }
  21624. /^X\(\/\).*/{
  21625. s//\1/
  21626. q
  21627. }
  21628. s/.*/./; q'`
  21629. { as_dir="$ac_dir"
  21630. case $as_dir in #(
  21631. -*) as_dir=./$as_dir;;
  21632. esac
  21633. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  21634. as_dirs=
  21635. while :; do
  21636. case $as_dir in #(
  21637. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21638. *) as_qdir=$as_dir;;
  21639. esac
  21640. as_dirs="'$as_qdir' $as_dirs"
  21641. as_dir=`$as_dirname -- "$as_dir" ||
  21642. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21643. X"$as_dir" : 'X\(//\)[^/]' \| \
  21644. X"$as_dir" : 'X\(//\)$' \| \
  21645. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21646. $as_echo X"$as_dir" |
  21647. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21648. s//\1/
  21649. q
  21650. }
  21651. /^X\(\/\/\)[^/].*/{
  21652. s//\1/
  21653. q
  21654. }
  21655. /^X\(\/\/\)$/{
  21656. s//\1/
  21657. q
  21658. }
  21659. /^X\(\/\).*/{
  21660. s//\1/
  21661. q
  21662. }
  21663. s/.*/./; q'`
  21664. test -d "$as_dir" && break
  21665. done
  21666. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21667. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  21668. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  21669. { (exit 1); exit 1; }; }; }
  21670. ac_builddir=.
  21671. case "$ac_dir" in
  21672. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21673. *)
  21674. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  21675. # A ".." for each directory in $ac_dir_suffix.
  21676. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  21677. case $ac_top_builddir_sub in
  21678. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21679. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21680. esac ;;
  21681. esac
  21682. ac_abs_top_builddir=$ac_pwd
  21683. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21684. # for backward compatibility:
  21685. ac_top_builddir=$ac_top_build_prefix
  21686. case $srcdir in
  21687. .) # We are building in place.
  21688. ac_srcdir=.
  21689. ac_top_srcdir=$ac_top_builddir_sub
  21690. ac_abs_top_srcdir=$ac_pwd ;;
  21691. [\\/]* | ?:[\\/]* ) # Absolute name.
  21692. ac_srcdir=$srcdir$ac_dir_suffix;
  21693. ac_top_srcdir=$srcdir
  21694. ac_abs_top_srcdir=$srcdir ;;
  21695. *) # Relative name.
  21696. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21697. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21698. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21699. esac
  21700. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21701. case $ac_mode in
  21702. :F)
  21703. #
  21704. # CONFIG_FILE
  21705. #
  21706. case $INSTALL in
  21707. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21708. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21709. esac
  21710. ac_MKDIR_P=$MKDIR_P
  21711. case $MKDIR_P in
  21712. [\\/$]* | ?:[\\/]* ) ;;
  21713. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  21714. esac
  21715. _ACEOF
  21716. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21717. # If the template does not know about datarootdir, expand it.
  21718. # FIXME: This hack should be removed a few years after 2.60.
  21719. ac_datarootdir_hack=; ac_datarootdir_seen=
  21720. ac_sed_dataroot='
  21721. /datarootdir/ {
  21722. p
  21723. q
  21724. }
  21725. /@datadir@/p
  21726. /@docdir@/p
  21727. /@infodir@/p
  21728. /@localedir@/p
  21729. /@mandir@/p
  21730. '
  21731. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  21732. *datarootdir*) ac_datarootdir_seen=yes;;
  21733. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21734. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21735. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21736. _ACEOF
  21737. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21738. ac_datarootdir_hack='
  21739. s&@datadir@&$datadir&g
  21740. s&@docdir@&$docdir&g
  21741. s&@infodir@&$infodir&g
  21742. s&@localedir@&$localedir&g
  21743. s&@mandir@&$mandir&g
  21744. s&\\\${datarootdir}&$datarootdir&g' ;;
  21745. esac
  21746. _ACEOF
  21747. # Neutralize VPATH when `$srcdir' = `.'.
  21748. # Shell code in configure.ac might set extrasub.
  21749. # FIXME: do we really want to maintain this feature?
  21750. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21751. ac_sed_extra="$ac_vpsub
  21752. $extrasub
  21753. _ACEOF
  21754. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21755. :t
  21756. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21757. s|@configure_input@|$ac_sed_conf_input|;t t
  21758. s&@top_builddir@&$ac_top_builddir_sub&;t t
  21759. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  21760. s&@srcdir@&$ac_srcdir&;t t
  21761. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21762. s&@top_srcdir@&$ac_top_srcdir&;t t
  21763. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21764. s&@builddir@&$ac_builddir&;t t
  21765. s&@abs_builddir@&$ac_abs_builddir&;t t
  21766. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21767. s&@INSTALL@&$ac_INSTALL&;t t
  21768. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  21769. $ac_datarootdir_hack
  21770. "
  21771. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  21772. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  21773. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  21774. { (exit 1); exit 1; }; }
  21775. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21776. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  21777. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  21778. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21779. which seems to be undefined. Please make sure it is defined." >&5
  21780. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21781. which seems to be undefined. Please make sure it is defined." >&2;}
  21782. rm -f "$tmp/stdin"
  21783. case $ac_file in
  21784. -) cat "$tmp/out" && rm -f "$tmp/out";;
  21785. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  21786. esac \
  21787. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  21788. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  21789. { (exit 1); exit 1; }; }
  21790. ;;
  21791. :H)
  21792. #
  21793. # CONFIG_HEADER
  21794. #
  21795. if test x"$ac_file" != x-; then
  21796. {
  21797. $as_echo "/* $configure_input */" \
  21798. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  21799. } >"$tmp/config.h" \
  21800. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  21801. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  21802. { (exit 1); exit 1; }; }
  21803. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  21804. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  21805. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  21806. else
  21807. rm -f "$ac_file"
  21808. mv "$tmp/config.h" "$ac_file" \
  21809. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  21810. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  21811. { (exit 1); exit 1; }; }
  21812. fi
  21813. else
  21814. $as_echo "/* $configure_input */" \
  21815. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  21816. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  21817. $as_echo "$as_me: error: could not create -" >&2;}
  21818. { (exit 1); exit 1; }; }
  21819. fi
  21820. # Compute "$ac_file"'s index in $config_headers.
  21821. _am_arg="$ac_file"
  21822. _am_stamp_count=1
  21823. for _am_header in $config_headers :; do
  21824. case $_am_header in
  21825. $_am_arg | $_am_arg:* )
  21826. break ;;
  21827. * )
  21828. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  21829. esac
  21830. done
  21831. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  21832. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21833. X"$_am_arg" : 'X\(//\)[^/]' \| \
  21834. X"$_am_arg" : 'X\(//\)$' \| \
  21835. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  21836. $as_echo X"$_am_arg" |
  21837. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21838. s//\1/
  21839. q
  21840. }
  21841. /^X\(\/\/\)[^/].*/{
  21842. s//\1/
  21843. q
  21844. }
  21845. /^X\(\/\/\)$/{
  21846. s//\1/
  21847. q
  21848. }
  21849. /^X\(\/\).*/{
  21850. s//\1/
  21851. q
  21852. }
  21853. s/.*/./; q'`/stamp-h$_am_stamp_count
  21854. ;;
  21855. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  21856. $as_echo "$as_me: executing $ac_file commands" >&6;}
  21857. ;;
  21858. esac
  21859. case $ac_file$ac_mode in
  21860. "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
  21861. # are listed without --file. Let's play safe and only enable the eval
  21862. # if we detect the quoting.
  21863. case $CONFIG_FILES in
  21864. *\'*) eval set x "$CONFIG_FILES" ;;
  21865. *) set x $CONFIG_FILES ;;
  21866. esac
  21867. shift
  21868. for mf
  21869. do
  21870. # Strip MF so we end up with the name of the file.
  21871. mf=`echo "$mf" | sed -e 's/:.*$//'`
  21872. # Check whether this is an Automake generated Makefile or not.
  21873. # We used to match only the files named `Makefile.in', but
  21874. # some people rename them; so instead we look at the file content.
  21875. # Grep'ing the first line is not enough: some people post-process
  21876. # each Makefile.in and add a new line on top of each file to say so.
  21877. # Grep'ing the whole file is not good either: AIX grep has a line
  21878. # limit of 2048, but all sed's we know have understand at least 4000.
  21879. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  21880. dirpart=`$as_dirname -- "$mf" ||
  21881. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21882. X"$mf" : 'X\(//\)[^/]' \| \
  21883. X"$mf" : 'X\(//\)$' \| \
  21884. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  21885. $as_echo X"$mf" |
  21886. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21887. s//\1/
  21888. q
  21889. }
  21890. /^X\(\/\/\)[^/].*/{
  21891. s//\1/
  21892. q
  21893. }
  21894. /^X\(\/\/\)$/{
  21895. s//\1/
  21896. q
  21897. }
  21898. /^X\(\/\).*/{
  21899. s//\1/
  21900. q
  21901. }
  21902. s/.*/./; q'`
  21903. else
  21904. continue
  21905. fi
  21906. # Extract the definition of DEPDIR, am__include, and am__quote
  21907. # from the Makefile without running `make'.
  21908. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  21909. test -z "$DEPDIR" && continue
  21910. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  21911. test -z "am__include" && continue
  21912. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  21913. # When using ansi2knr, U may be empty or an underscore; expand it
  21914. U=`sed -n 's/^U = //p' < "$mf"`
  21915. # Find all dependency output files, they are included files with
  21916. # $(DEPDIR) in their names. We invoke sed twice because it is the
  21917. # simplest approach to changing $(DEPDIR) to its actual value in the
  21918. # expansion.
  21919. for file in `sed -n "
  21920. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  21921. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  21922. # Make sure the directory exists.
  21923. test -f "$dirpart/$file" && continue
  21924. fdir=`$as_dirname -- "$file" ||
  21925. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21926. X"$file" : 'X\(//\)[^/]' \| \
  21927. X"$file" : 'X\(//\)$' \| \
  21928. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  21929. $as_echo X"$file" |
  21930. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21931. s//\1/
  21932. q
  21933. }
  21934. /^X\(\/\/\)[^/].*/{
  21935. s//\1/
  21936. q
  21937. }
  21938. /^X\(\/\/\)$/{
  21939. s//\1/
  21940. q
  21941. }
  21942. /^X\(\/\).*/{
  21943. s//\1/
  21944. q
  21945. }
  21946. s/.*/./; q'`
  21947. { as_dir=$dirpart/$fdir
  21948. case $as_dir in #(
  21949. -*) as_dir=./$as_dir;;
  21950. esac
  21951. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  21952. as_dirs=
  21953. while :; do
  21954. case $as_dir in #(
  21955. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21956. *) as_qdir=$as_dir;;
  21957. esac
  21958. as_dirs="'$as_qdir' $as_dirs"
  21959. as_dir=`$as_dirname -- "$as_dir" ||
  21960. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21961. X"$as_dir" : 'X\(//\)[^/]' \| \
  21962. X"$as_dir" : 'X\(//\)$' \| \
  21963. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21964. $as_echo X"$as_dir" |
  21965. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21966. s//\1/
  21967. q
  21968. }
  21969. /^X\(\/\/\)[^/].*/{
  21970. s//\1/
  21971. q
  21972. }
  21973. /^X\(\/\/\)$/{
  21974. s//\1/
  21975. q
  21976. }
  21977. /^X\(\/\).*/{
  21978. s//\1/
  21979. q
  21980. }
  21981. s/.*/./; q'`
  21982. test -d "$as_dir" && break
  21983. done
  21984. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21985. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  21986. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  21987. { (exit 1); exit 1; }; }; }
  21988. # echo "creating $dirpart/$file"
  21989. echo '# dummy' > "$dirpart/$file"
  21990. done
  21991. done
  21992. ;;
  21993. "po-directories":C)
  21994. for ac_file in $CONFIG_FILES; do
  21995. # Support "outfile[:infile[:infile...]]"
  21996. case "$ac_file" in
  21997. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  21998. esac
  21999. # PO directories have a Makefile.in generated from Makefile.in.in.
  22000. case "$ac_file" in */Makefile.in)
  22001. # Adjust a relative srcdir.
  22002. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  22003. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  22004. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  22005. # In autoconf-2.13 it is called $ac_given_srcdir.
  22006. # In autoconf-2.50 it is called $srcdir.
  22007. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  22008. case "$ac_given_srcdir" in
  22009. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  22010. /*) top_srcdir="$ac_given_srcdir" ;;
  22011. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  22012. esac
  22013. # Treat a directory as a PO directory if and only if it has a
  22014. # POTFILES.in file. This allows packages to have multiple PO
  22015. # directories under different names or in different locations.
  22016. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  22017. rm -f "$ac_dir/POTFILES"
  22018. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  22019. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  22020. POMAKEFILEDEPS="POTFILES.in"
  22021. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  22022. # on $ac_dir but don't depend on user-specified configuration
  22023. # parameters.
  22024. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  22025. # The LINGUAS file contains the set of available languages.
  22026. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  22027. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  22028. fi
  22029. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  22030. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  22031. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  22032. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  22033. else
  22034. # The set of available languages was given in configure.in.
  22035. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  22036. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  22037. fi
  22038. # Compute POFILES
  22039. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  22040. # Compute UPDATEPOFILES
  22041. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  22042. # Compute DUMMYPOFILES
  22043. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  22044. # Compute GMOFILES
  22045. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  22046. case "$ac_given_srcdir" in
  22047. .) srcdirpre= ;;
  22048. *) srcdirpre='$(srcdir)/' ;;
  22049. esac
  22050. POFILES=
  22051. UPDATEPOFILES=
  22052. DUMMYPOFILES=
  22053. GMOFILES=
  22054. for lang in $ALL_LINGUAS; do
  22055. POFILES="$POFILES $srcdirpre$lang.po"
  22056. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  22057. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  22058. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  22059. done
  22060. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  22061. # environment variable.
  22062. INST_LINGUAS=
  22063. if test -n "$ALL_LINGUAS"; then
  22064. for presentlang in $ALL_LINGUAS; do
  22065. useit=no
  22066. if test "%UNSET%" != "$LINGUAS"; then
  22067. desiredlanguages="$LINGUAS"
  22068. else
  22069. desiredlanguages="$ALL_LINGUAS"
  22070. fi
  22071. for desiredlang in $desiredlanguages; do
  22072. # Use the presentlang catalog if desiredlang is
  22073. # a. equal to presentlang, or
  22074. # b. a variant of presentlang (because in this case,
  22075. # presentlang can be used as a fallback for messages
  22076. # which are not translated in the desiredlang catalog).
  22077. case "$desiredlang" in
  22078. "$presentlang"*) useit=yes;;
  22079. esac
  22080. done
  22081. if test $useit = yes; then
  22082. INST_LINGUAS="$INST_LINGUAS $presentlang"
  22083. fi
  22084. done
  22085. fi
  22086. CATALOGS=
  22087. if test -n "$INST_LINGUAS"; then
  22088. for lang in $INST_LINGUAS; do
  22089. CATALOGS="$CATALOGS $lang.gmo"
  22090. done
  22091. fi
  22092. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  22093. 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"
  22094. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  22095. if test -f "$f"; then
  22096. case "$f" in
  22097. *.orig | *.bak | *~) ;;
  22098. *) cat "$f" >> "$ac_dir/Makefile" ;;
  22099. esac
  22100. fi
  22101. done
  22102. fi
  22103. ;;
  22104. esac
  22105. done ;;
  22106. esac
  22107. done # for ac_tag
  22108. { (exit 0); exit 0; }
  22109. _ACEOF
  22110. chmod +x $CONFIG_STATUS
  22111. ac_clean_files=$ac_clean_files_save
  22112. test $ac_write_fail = 0 ||
  22113. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  22114. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  22115. { (exit 1); exit 1; }; }
  22116. # configure is writing to config.log, and then calls config.status.
  22117. # config.status does its own redirection, appending to config.log.
  22118. # Unfortunately, on DOS this fails, as config.log is still kept open
  22119. # by configure, so config.status won't be able to write to it; its
  22120. # output is simply discarded. So we exec the FD to /dev/null,
  22121. # effectively closing config.log, so it can be properly (re)opened and
  22122. # appended to by config.status. When coming back to configure, we
  22123. # need to make the FD available again.
  22124. if test "$no_create" != yes; then
  22125. ac_cs_success=:
  22126. ac_config_status_args=
  22127. test "$silent" = yes &&
  22128. ac_config_status_args="$ac_config_status_args --quiet"
  22129. exec 5>/dev/null
  22130. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22131. exec 5>>config.log
  22132. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22133. # would make configure fail if this is the last instruction.
  22134. $ac_cs_success || { (exit 1); exit 1; }
  22135. fi
  22136. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  22137. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  22138. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  22139. fi
  22140. echo " "
  22141. echo "Build: $build"
  22142. echo "Target: $target"
  22143. echo "Install prefix: $prefix"
  22144. echo "CFLAGS: $CFLAGS"
  22145. echo "CPPFLAGS: $CPPFLAGS"
  22146. echo "LDFLAGS: $LDFLAGS"
  22147. echo "LIBS: $LIBS"
  22148. echo "SQLite3: $have_sqlite3"
  22149. echo "GnuTLS: $have_libgnutls"
  22150. echo "OpenSSL: $have_openssl"
  22151. echo "CA Bundle: $ca_bundle"
  22152. echo "LibXML2: $have_libxml2"
  22153. echo "LibExpat: $have_libexpat"
  22154. echo "LibCares: $have_libcares"
  22155. echo "Libz: $have_libz"
  22156. echo "Epoll: $have_epoll"
  22157. echo "Bittorrent: $enable_bittorrent"
  22158. echo "Metalink: $enable_metalink"
  22159. echo "XML-RPC: $enable_xml_rpc"