configure 657 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 0.15.1+2.
  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 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. # Zsh 3.x and 4.x performs 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. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$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. # Zsh 3.x and 4.x performs 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. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. exec 7<&0 </dev/null 6>&1
  476. # Name of the host.
  477. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  478. # so uname gets run too.
  479. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  480. #
  481. # Initializations.
  482. #
  483. ac_default_prefix=/usr/local
  484. ac_clean_files=
  485. ac_config_libobj_dir=.
  486. LIBOBJS=
  487. cross_compiling=no
  488. subdirs=
  489. MFLAGS=
  490. MAKEFLAGS=
  491. SHELL=${CONFIG_SHELL-/bin/sh}
  492. # Identity of this package.
  493. PACKAGE_NAME='aria2c'
  494. PACKAGE_TARNAME='aria2c'
  495. PACKAGE_VERSION='0.15.1+2'
  496. PACKAGE_STRING='aria2c 0.15.1+2'
  497. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  498. ac_unique_file="src/Socket.h"
  499. # Factoring default headers for most tests.
  500. ac_includes_default="\
  501. #include <stdio.h>
  502. #ifdef HAVE_SYS_TYPES_H
  503. # include <sys/types.h>
  504. #endif
  505. #ifdef HAVE_SYS_STAT_H
  506. # include <sys/stat.h>
  507. #endif
  508. #ifdef STDC_HEADERS
  509. # include <stdlib.h>
  510. # include <stddef.h>
  511. #else
  512. # ifdef HAVE_STDLIB_H
  513. # include <stdlib.h>
  514. # endif
  515. #endif
  516. #ifdef HAVE_STRING_H
  517. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  518. # include <memory.h>
  519. # endif
  520. # include <string.h>
  521. #endif
  522. #ifdef HAVE_STRINGS_H
  523. # include <strings.h>
  524. #endif
  525. #ifdef HAVE_INTTYPES_H
  526. # include <inttypes.h>
  527. #endif
  528. #ifdef HAVE_STDINT_H
  529. # include <stdint.h>
  530. #endif
  531. #ifdef HAVE_UNISTD_H
  532. # include <unistd.h>
  533. #endif"
  534. gt_needs=
  535. ac_header_list=
  536. ac_func_list=
  537. ac_subst_vars='SHELL
  538. PATH_SEPARATOR
  539. PACKAGE_NAME
  540. PACKAGE_TARNAME
  541. PACKAGE_VERSION
  542. PACKAGE_STRING
  543. PACKAGE_BUGREPORT
  544. exec_prefix
  545. prefix
  546. program_transform_name
  547. bindir
  548. sbindir
  549. libexecdir
  550. datarootdir
  551. datadir
  552. sysconfdir
  553. sharedstatedir
  554. localstatedir
  555. includedir
  556. oldincludedir
  557. docdir
  558. infodir
  559. htmldir
  560. dvidir
  561. pdfdir
  562. psdir
  563. libdir
  564. localedir
  565. mandir
  566. DEFS
  567. ECHO_C
  568. ECHO_N
  569. ECHO_T
  570. LIBS
  571. build_alias
  572. host_alias
  573. target_alias
  574. build
  575. build_cpu
  576. build_vendor
  577. build_os
  578. host
  579. host_cpu
  580. host_vendor
  581. host_os
  582. target
  583. target_cpu
  584. target_vendor
  585. target_os
  586. INSTALL_PROGRAM
  587. INSTALL_SCRIPT
  588. INSTALL_DATA
  589. am__isrc
  590. CYGPATH_W
  591. PACKAGE
  592. VERSION
  593. ACLOCAL
  594. AUTOCONF
  595. AUTOMAKE
  596. AUTOHEADER
  597. MAKEINFO
  598. install_sh
  599. STRIP
  600. INSTALL_STRIP_PROGRAM
  601. mkdir_p
  602. AWK
  603. SET_MAKE
  604. am__leading_dot
  605. AMTAR
  606. am__tar
  607. am__untar
  608. CPPUNIT_CONFIG
  609. CPPUNIT_CFLAGS
  610. CPPUNIT_LIBS
  611. WINSOCK_LIBS
  612. CXX
  613. CXXFLAGS
  614. LDFLAGS
  615. CPPFLAGS
  616. ac_ct_CXX
  617. EXEEXT
  618. OBJEXT
  619. DEPDIR
  620. am__include
  621. am__quote
  622. AMDEP_TRUE
  623. AMDEP_FALSE
  624. AMDEPBACKSLASH
  625. CXXDEPMODE
  626. am__fastdepCXX_TRUE
  627. am__fastdepCXX_FALSE
  628. CC
  629. CFLAGS
  630. ac_ct_CC
  631. CCDEPMODE
  632. am__fastdepCC_TRUE
  633. am__fastdepCC_FALSE
  634. RANLIB
  635. YACC
  636. YFLAGS
  637. CXXCPP
  638. GREP
  639. EGREP
  640. XML2_CONFIG
  641. XML_CPPFLAGS
  642. XML_LIBS
  643. LIBEXPAT_LIBS
  644. LIBEXPAT_CPPFLAGS
  645. LIBGNUTLS_CONFIG
  646. LIBGNUTLS_CFLAGS
  647. LIBGNUTLS_LIBS
  648. LIBGCRYPT_CONFIG
  649. LIBGCRYPT_CFLAGS
  650. LIBGCRYPT_LIBS
  651. OPENSSL_LIBS
  652. OPENSSL_CFLAGS
  653. LIBCARES_LIBS
  654. LIBCARES_CPPFLAGS
  655. LIBARES_LIBS
  656. LIBARES_CPPFLAGS
  657. LIBZ_LIBS
  658. LIBZ_CPPFLAGS
  659. ENABLE_MESSAGE_DIGEST_TRUE
  660. ENABLE_MESSAGE_DIGEST_FALSE
  661. ENABLE_BITTORRENT_TRUE
  662. ENABLE_BITTORRENT_FALSE
  663. ENABLE_METALINK_TRUE
  664. ENABLE_METALINK_FALSE
  665. ENABLE_LIBXML2_TRUE
  666. ENABLE_LIBXML2_FALSE
  667. ENABLE_LIBEXPAT_TRUE
  668. ENABLE_LIBEXPAT_FALSE
  669. ENABLE_ASYNC_DNS_TRUE
  670. ENABLE_ASYNC_DNS_FALSE
  671. HAVE_LIBZ_TRUE
  672. HAVE_LIBZ_FALSE
  673. ALLOCA
  674. USE_NLS
  675. GETTEXT_MACRO_VERSION
  676. MSGFMT
  677. GMSGFMT
  678. MSGFMT_015
  679. GMSGFMT_015
  680. XGETTEXT
  681. XGETTEXT_015
  682. MSGMERGE
  683. XGETTEXT_EXTRA_OPTIONS
  684. GLIBC2
  685. CFLAG_VISIBILITY
  686. HAVE_VISIBILITY
  687. PRI_MACROS_BROKEN
  688. LIBPTH
  689. LTLIBPTH
  690. LIBPTH_PREFIX
  691. LIBTHREAD
  692. LTLIBTHREAD
  693. LIBMULTITHREAD
  694. LTLIBMULTITHREAD
  695. LIBICONV
  696. LTLIBICONV
  697. INTLBISON
  698. GLIBC21
  699. INTL_MACOSX_LIBS
  700. HAVE_POSIX_PRINTF
  701. HAVE_ASPRINTF
  702. HAVE_SNPRINTF
  703. HAVE_WPRINTF
  704. WOE32DLL
  705. WOE32
  706. WINDRES
  707. LTLIBC
  708. BUILD_INCLUDED_LIBINTL
  709. USE_INCLUDED_LIBINTL
  710. CATOBJEXT
  711. DATADIRNAME
  712. INSTOBJEXT
  713. GENCAT
  714. INTLOBJS
  715. INTL_LIBTOOL_SUFFIX_PREFIX
  716. INTLLIBS
  717. LIBINTL
  718. LTLIBINTL
  719. POSUB
  720. LIBOBJS
  721. HAVE_ASCTIME_R_TRUE
  722. HAVE_ASCTIME_R_FALSE
  723. HAVE_BASENAME_TRUE
  724. HAVE_BASENAME_FALSE
  725. HAVE_GAI_STRERROR_TRUE
  726. HAVE_GAI_STRERROR_FALSE
  727. HAVE_GETADDRINFO_TRUE
  728. HAVE_GETADDRINFO_FALSE
  729. HAVE_GETTIMEOFDAY_TRUE
  730. HAVE_GETTIMEOFDAY_FALSE
  731. HAVE_INET_ATON_TRUE
  732. HAVE_INET_ATON_FALSE
  733. HAVE_LOCALTIME_R_TRUE
  734. HAVE_LOCALTIME_R_FALSE
  735. HAVE_STRPTIME_TRUE
  736. HAVE_STRPTIME_FALSE
  737. HAVE_TIMEGM_TRUE
  738. HAVE_TIMEGM_FALSE
  739. LTLIBOBJS'
  740. ac_subst_files=''
  741. ac_precious_vars='build_alias
  742. host_alias
  743. target_alias
  744. CXX
  745. CXXFLAGS
  746. LDFLAGS
  747. LIBS
  748. CPPFLAGS
  749. CCC
  750. CC
  751. CFLAGS
  752. YACC
  753. YFLAGS
  754. CXXCPP'
  755. # Initialize some variables set by options.
  756. ac_init_help=
  757. ac_init_version=false
  758. # The variables have the same names as the options, with
  759. # dashes changed to underlines.
  760. cache_file=/dev/null
  761. exec_prefix=NONE
  762. no_create=
  763. no_recursion=
  764. prefix=NONE
  765. program_prefix=NONE
  766. program_suffix=NONE
  767. program_transform_name=s,x,x,
  768. silent=
  769. site=
  770. srcdir=
  771. verbose=
  772. x_includes=NONE
  773. x_libraries=NONE
  774. # Installation directory options.
  775. # These are left unexpanded so users can "make install exec_prefix=/foo"
  776. # and all the variables that are supposed to be based on exec_prefix
  777. # by default will actually change.
  778. # Use braces instead of parens because sh, perl, etc. also accept them.
  779. # (The list follows the same order as the GNU Coding Standards.)
  780. bindir='${exec_prefix}/bin'
  781. sbindir='${exec_prefix}/sbin'
  782. libexecdir='${exec_prefix}/libexec'
  783. datarootdir='${prefix}/share'
  784. datadir='${datarootdir}'
  785. sysconfdir='${prefix}/etc'
  786. sharedstatedir='${prefix}/com'
  787. localstatedir='${prefix}/var'
  788. includedir='${prefix}/include'
  789. oldincludedir='/usr/include'
  790. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  791. infodir='${datarootdir}/info'
  792. htmldir='${docdir}'
  793. dvidir='${docdir}'
  794. pdfdir='${docdir}'
  795. psdir='${docdir}'
  796. libdir='${exec_prefix}/lib'
  797. localedir='${datarootdir}/locale'
  798. mandir='${datarootdir}/man'
  799. ac_prev=
  800. ac_dashdash=
  801. for ac_option
  802. do
  803. # If the previous option needs an argument, assign it.
  804. if test -n "$ac_prev"; then
  805. eval $ac_prev=\$ac_option
  806. ac_prev=
  807. continue
  808. fi
  809. case $ac_option in
  810. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  811. *) ac_optarg=yes ;;
  812. esac
  813. # Accept the important Cygnus configure options, so we can diagnose typos.
  814. case $ac_dashdash$ac_option in
  815. --)
  816. ac_dashdash=yes ;;
  817. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  818. ac_prev=bindir ;;
  819. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  820. bindir=$ac_optarg ;;
  821. -build | --build | --buil | --bui | --bu)
  822. ac_prev=build_alias ;;
  823. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  824. build_alias=$ac_optarg ;;
  825. -cache-file | --cache-file | --cache-fil | --cache-fi \
  826. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  827. ac_prev=cache_file ;;
  828. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  829. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  830. cache_file=$ac_optarg ;;
  831. --config-cache | -C)
  832. cache_file=config.cache ;;
  833. -datadir | --datadir | --datadi | --datad)
  834. ac_prev=datadir ;;
  835. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  836. datadir=$ac_optarg ;;
  837. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  838. | --dataroo | --dataro | --datar)
  839. ac_prev=datarootdir ;;
  840. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  841. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  842. datarootdir=$ac_optarg ;;
  843. -disable-* | --disable-*)
  844. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  845. # Reject names that are not valid shell variable names.
  846. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  847. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  848. { (exit 1); exit 1; }; }
  849. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  850. eval enable_$ac_feature=no ;;
  851. -docdir | --docdir | --docdi | --doc | --do)
  852. ac_prev=docdir ;;
  853. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  854. docdir=$ac_optarg ;;
  855. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  856. ac_prev=dvidir ;;
  857. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  858. dvidir=$ac_optarg ;;
  859. -enable-* | --enable-*)
  860. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  861. # Reject names that are not valid shell variable names.
  862. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  863. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  864. { (exit 1); exit 1; }; }
  865. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  866. eval enable_$ac_feature=\$ac_optarg ;;
  867. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  868. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  869. | --exec | --exe | --ex)
  870. ac_prev=exec_prefix ;;
  871. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  872. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  873. | --exec=* | --exe=* | --ex=*)
  874. exec_prefix=$ac_optarg ;;
  875. -gas | --gas | --ga | --g)
  876. # Obsolete; use --with-gas.
  877. with_gas=yes ;;
  878. -help | --help | --hel | --he | -h)
  879. ac_init_help=long ;;
  880. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  881. ac_init_help=recursive ;;
  882. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  883. ac_init_help=short ;;
  884. -host | --host | --hos | --ho)
  885. ac_prev=host_alias ;;
  886. -host=* | --host=* | --hos=* | --ho=*)
  887. host_alias=$ac_optarg ;;
  888. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  889. ac_prev=htmldir ;;
  890. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  891. | --ht=*)
  892. htmldir=$ac_optarg ;;
  893. -includedir | --includedir | --includedi | --included | --include \
  894. | --includ | --inclu | --incl | --inc)
  895. ac_prev=includedir ;;
  896. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  897. | --includ=* | --inclu=* | --incl=* | --inc=*)
  898. includedir=$ac_optarg ;;
  899. -infodir | --infodir | --infodi | --infod | --info | --inf)
  900. ac_prev=infodir ;;
  901. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  902. infodir=$ac_optarg ;;
  903. -libdir | --libdir | --libdi | --libd)
  904. ac_prev=libdir ;;
  905. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  906. libdir=$ac_optarg ;;
  907. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  908. | --libexe | --libex | --libe)
  909. ac_prev=libexecdir ;;
  910. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  911. | --libexe=* | --libex=* | --libe=*)
  912. libexecdir=$ac_optarg ;;
  913. -localedir | --localedir | --localedi | --localed | --locale)
  914. ac_prev=localedir ;;
  915. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  916. localedir=$ac_optarg ;;
  917. -localstatedir | --localstatedir | --localstatedi | --localstated \
  918. | --localstate | --localstat | --localsta | --localst | --locals)
  919. ac_prev=localstatedir ;;
  920. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  921. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  922. localstatedir=$ac_optarg ;;
  923. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  924. ac_prev=mandir ;;
  925. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  926. mandir=$ac_optarg ;;
  927. -nfp | --nfp | --nf)
  928. # Obsolete; use --without-fp.
  929. with_fp=no ;;
  930. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  931. | --no-cr | --no-c | -n)
  932. no_create=yes ;;
  933. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  934. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  935. no_recursion=yes ;;
  936. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  937. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  938. | --oldin | --oldi | --old | --ol | --o)
  939. ac_prev=oldincludedir ;;
  940. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  941. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  942. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  943. oldincludedir=$ac_optarg ;;
  944. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  945. ac_prev=prefix ;;
  946. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  947. prefix=$ac_optarg ;;
  948. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  949. | --program-pre | --program-pr | --program-p)
  950. ac_prev=program_prefix ;;
  951. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  952. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  953. program_prefix=$ac_optarg ;;
  954. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  955. | --program-suf | --program-su | --program-s)
  956. ac_prev=program_suffix ;;
  957. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  958. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  959. program_suffix=$ac_optarg ;;
  960. -program-transform-name | --program-transform-name \
  961. | --program-transform-nam | --program-transform-na \
  962. | --program-transform-n | --program-transform- \
  963. | --program-transform | --program-transfor \
  964. | --program-transfo | --program-transf \
  965. | --program-trans | --program-tran \
  966. | --progr-tra | --program-tr | --program-t)
  967. ac_prev=program_transform_name ;;
  968. -program-transform-name=* | --program-transform-name=* \
  969. | --program-transform-nam=* | --program-transform-na=* \
  970. | --program-transform-n=* | --program-transform-=* \
  971. | --program-transform=* | --program-transfor=* \
  972. | --program-transfo=* | --program-transf=* \
  973. | --program-trans=* | --program-tran=* \
  974. | --progr-tra=* | --program-tr=* | --program-t=*)
  975. program_transform_name=$ac_optarg ;;
  976. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  977. ac_prev=pdfdir ;;
  978. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  979. pdfdir=$ac_optarg ;;
  980. -psdir | --psdir | --psdi | --psd | --ps)
  981. ac_prev=psdir ;;
  982. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  983. psdir=$ac_optarg ;;
  984. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  985. | -silent | --silent | --silen | --sile | --sil)
  986. silent=yes ;;
  987. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  988. ac_prev=sbindir ;;
  989. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  990. | --sbi=* | --sb=*)
  991. sbindir=$ac_optarg ;;
  992. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  993. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  994. | --sharedst | --shareds | --shared | --share | --shar \
  995. | --sha | --sh)
  996. ac_prev=sharedstatedir ;;
  997. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  998. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  999. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1000. | --sha=* | --sh=*)
  1001. sharedstatedir=$ac_optarg ;;
  1002. -site | --site | --sit)
  1003. ac_prev=site ;;
  1004. -site=* | --site=* | --sit=*)
  1005. site=$ac_optarg ;;
  1006. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1007. ac_prev=srcdir ;;
  1008. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1009. srcdir=$ac_optarg ;;
  1010. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1011. | --syscon | --sysco | --sysc | --sys | --sy)
  1012. ac_prev=sysconfdir ;;
  1013. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1014. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1015. sysconfdir=$ac_optarg ;;
  1016. -target | --target | --targe | --targ | --tar | --ta | --t)
  1017. ac_prev=target_alias ;;
  1018. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1019. target_alias=$ac_optarg ;;
  1020. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1021. verbose=yes ;;
  1022. -version | --version | --versio | --versi | --vers | -V)
  1023. ac_init_version=: ;;
  1024. -with-* | --with-*)
  1025. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1026. # Reject names that are not valid shell variable names.
  1027. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1028. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1029. { (exit 1); exit 1; }; }
  1030. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1031. eval with_$ac_package=\$ac_optarg ;;
  1032. -without-* | --without-*)
  1033. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1034. # Reject names that are not valid shell variable names.
  1035. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1036. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1037. { (exit 1); exit 1; }; }
  1038. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1039. eval with_$ac_package=no ;;
  1040. --x)
  1041. # Obsolete; use --with-x.
  1042. with_x=yes ;;
  1043. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1044. | --x-incl | --x-inc | --x-in | --x-i)
  1045. ac_prev=x_includes ;;
  1046. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1047. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1048. x_includes=$ac_optarg ;;
  1049. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1050. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1051. ac_prev=x_libraries ;;
  1052. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1053. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1054. x_libraries=$ac_optarg ;;
  1055. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1056. Try \`$0 --help' for more information." >&2
  1057. { (exit 1); exit 1; }; }
  1058. ;;
  1059. *=*)
  1060. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1061. # Reject names that are not valid shell variable names.
  1062. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1063. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1064. { (exit 1); exit 1; }; }
  1065. eval $ac_envvar=\$ac_optarg
  1066. export $ac_envvar ;;
  1067. *)
  1068. # FIXME: should be removed in autoconf 3.0.
  1069. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1070. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1071. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1072. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1073. ;;
  1074. esac
  1075. done
  1076. if test -n "$ac_prev"; then
  1077. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1078. { echo "$as_me: error: missing argument to $ac_option" >&2
  1079. { (exit 1); exit 1; }; }
  1080. fi
  1081. # Be sure to have absolute directory names.
  1082. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1083. datadir sysconfdir sharedstatedir localstatedir includedir \
  1084. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1085. libdir localedir mandir
  1086. do
  1087. eval ac_val=\$$ac_var
  1088. case $ac_val in
  1089. [\\/$]* | ?:[\\/]* ) continue;;
  1090. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1091. esac
  1092. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1093. { (exit 1); exit 1; }; }
  1094. done
  1095. # There might be people who depend on the old broken behavior: `$host'
  1096. # used to hold the argument of --host etc.
  1097. # FIXME: To remove some day.
  1098. build=$build_alias
  1099. host=$host_alias
  1100. target=$target_alias
  1101. # FIXME: To remove some day.
  1102. if test "x$host_alias" != x; then
  1103. if test "x$build_alias" = x; then
  1104. cross_compiling=maybe
  1105. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1106. If a cross compiler is detected then cross compile mode will be used." >&2
  1107. elif test "x$build_alias" != "x$host_alias"; then
  1108. cross_compiling=yes
  1109. fi
  1110. fi
  1111. ac_tool_prefix=
  1112. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1113. test "$silent" = yes && exec 6>/dev/null
  1114. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1115. ac_ls_di=`ls -di .` &&
  1116. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1117. { echo "$as_me: error: Working directory cannot be determined" >&2
  1118. { (exit 1); exit 1; }; }
  1119. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1120. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1121. { (exit 1); exit 1; }; }
  1122. # Find the source files, if location was not specified.
  1123. if test -z "$srcdir"; then
  1124. ac_srcdir_defaulted=yes
  1125. # Try the directory containing this script, then the parent directory.
  1126. ac_confdir=`$as_dirname -- "$0" ||
  1127. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1128. X"$0" : 'X\(//\)[^/]' \| \
  1129. X"$0" : 'X\(//\)$' \| \
  1130. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1131. echo X"$0" |
  1132. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1133. s//\1/
  1134. q
  1135. }
  1136. /^X\(\/\/\)[^/].*/{
  1137. s//\1/
  1138. q
  1139. }
  1140. /^X\(\/\/\)$/{
  1141. s//\1/
  1142. q
  1143. }
  1144. /^X\(\/\).*/{
  1145. s//\1/
  1146. q
  1147. }
  1148. s/.*/./; q'`
  1149. srcdir=$ac_confdir
  1150. if test ! -r "$srcdir/$ac_unique_file"; then
  1151. srcdir=..
  1152. fi
  1153. else
  1154. ac_srcdir_defaulted=no
  1155. fi
  1156. if test ! -r "$srcdir/$ac_unique_file"; then
  1157. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1158. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1159. { (exit 1); exit 1; }; }
  1160. fi
  1161. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1162. ac_abs_confdir=`(
  1163. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1164. { (exit 1); exit 1; }; }
  1165. pwd)`
  1166. # When building in place, set srcdir=.
  1167. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1168. srcdir=.
  1169. fi
  1170. # Remove unnecessary trailing slashes from srcdir.
  1171. # Double slashes in file names in object file debugging info
  1172. # mess up M-x gdb in Emacs.
  1173. case $srcdir in
  1174. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1175. esac
  1176. for ac_var in $ac_precious_vars; do
  1177. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1178. eval ac_env_${ac_var}_value=\$${ac_var}
  1179. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1180. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1181. done
  1182. #
  1183. # Report the --help message.
  1184. #
  1185. if test "$ac_init_help" = "long"; then
  1186. # Omit some internal or obsolete options to make the list less imposing.
  1187. # This message is too long to be a string in the A/UX 3.1 sh.
  1188. cat <<_ACEOF
  1189. \`configure' configures aria2c 0.15.1+2 to adapt to many kinds of systems.
  1190. Usage: $0 [OPTION]... [VAR=VALUE]...
  1191. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1192. VAR=VALUE. See below for descriptions of some of the useful variables.
  1193. Defaults for the options are specified in brackets.
  1194. Configuration:
  1195. -h, --help display this help and exit
  1196. --help=short display options specific to this package
  1197. --help=recursive display the short help of all the included packages
  1198. -V, --version display version information and exit
  1199. -q, --quiet, --silent do not print \`checking...' messages
  1200. --cache-file=FILE cache test results in FILE [disabled]
  1201. -C, --config-cache alias for \`--cache-file=config.cache'
  1202. -n, --no-create do not create output files
  1203. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1204. Installation directories:
  1205. --prefix=PREFIX install architecture-independent files in PREFIX
  1206. [$ac_default_prefix]
  1207. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1208. [PREFIX]
  1209. By default, \`make install' will install all the files in
  1210. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1211. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1212. for instance \`--prefix=\$HOME'.
  1213. For better control, use the options below.
  1214. Fine tuning of the installation directories:
  1215. --bindir=DIR user executables [EPREFIX/bin]
  1216. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1217. --libexecdir=DIR program executables [EPREFIX/libexec]
  1218. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1219. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1220. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1221. --libdir=DIR object code libraries [EPREFIX/lib]
  1222. --includedir=DIR C header files [PREFIX/include]
  1223. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1224. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1225. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1226. --infodir=DIR info documentation [DATAROOTDIR/info]
  1227. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1228. --mandir=DIR man documentation [DATAROOTDIR/man]
  1229. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2c]
  1230. --htmldir=DIR html documentation [DOCDIR]
  1231. --dvidir=DIR dvi documentation [DOCDIR]
  1232. --pdfdir=DIR pdf documentation [DOCDIR]
  1233. --psdir=DIR ps documentation [DOCDIR]
  1234. _ACEOF
  1235. cat <<\_ACEOF
  1236. Program names:
  1237. --program-prefix=PREFIX prepend PREFIX to installed program names
  1238. --program-suffix=SUFFIX append SUFFIX to installed program names
  1239. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1240. System types:
  1241. --build=BUILD configure for building on BUILD [guessed]
  1242. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1243. --target=TARGET configure for building compilers for TARGET [HOST]
  1244. _ACEOF
  1245. fi
  1246. if test -n "$ac_init_help"; then
  1247. case $ac_init_help in
  1248. short | recursive ) echo "Configuration of aria2c 0.15.1+2:";;
  1249. esac
  1250. cat <<\_ACEOF
  1251. Optional Features:
  1252. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1253. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1254. --enable-bittorrent enable bittorrent support.
  1255. --enable-metalink enable metalink support.
  1256. --enable-epoll enable epoll support.
  1257. --disable-dependency-tracking speeds up one-time build
  1258. --enable-dependency-tracking do not reject slow dependency extractors
  1259. --disable-xmltest Do not try to compile and run a test LIBXML program
  1260. --disable-largefile omit support for large files
  1261. --disable-nls do not use Native Language Support
  1262. --enable-threads={posix|solaris|pth|win32}
  1263. specify multithreading API
  1264. --disable-threads build without multithread safety
  1265. --disable-rpath do not hardcode runtime library paths
  1266. Optional Packages:
  1267. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1268. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1269. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1270. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1271. --with-gnutls use gnutls if it is installed.
  1272. --with-openssl use openssl if it is installed.
  1273. --with-libxml2 use libxml2 if it is installed.
  1274. --with-libexpat use libexpat if it is installed.
  1275. --with-libares use libares if it is installed.
  1276. --with-libcares use libcares if it is installed.
  1277. --with-libz use libz if it is installed.
  1278. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1279. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1280. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1281. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1282. --with-libgcrypt-prefix=PFX
  1283. prefix where LIBGCRYPT is installed (optional)
  1284. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1285. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1286. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  1287. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1288. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1289. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1290. --without-libpth-prefix don't search for libpth in includedir and libdir
  1291. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1292. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1293. --with-included-gettext use the GNU gettext library included here
  1294. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1295. --without-libintl-prefix don't search for libintl in includedir and libdir
  1296. Some influential environment variables:
  1297. CXX C++ compiler command
  1298. CXXFLAGS C++ compiler flags
  1299. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1300. nonstandard directory <lib dir>
  1301. LIBS libraries to pass to the linker, e.g. -l<library>
  1302. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1303. you have headers in a nonstandard directory <include dir>
  1304. CC C compiler command
  1305. CFLAGS C compiler flags
  1306. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1307. the first program found out of: `bison -y', `byacc', `yacc'.
  1308. YFLAGS The list of arguments that will be passed by default to $YACC.
  1309. This script will default YFLAGS to the empty string to avoid a
  1310. default value of `-d' given by some make applications.
  1311. CXXCPP C++ preprocessor
  1312. Use these variables to override the choices made by `configure' or to help
  1313. it to find libraries and programs with nonstandard names/locations.
  1314. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1315. _ACEOF
  1316. ac_status=$?
  1317. fi
  1318. if test "$ac_init_help" = "recursive"; then
  1319. # If there are subdirs, report their specific --help.
  1320. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1321. test -d "$ac_dir" || continue
  1322. ac_builddir=.
  1323. case "$ac_dir" in
  1324. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1325. *)
  1326. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1327. # A ".." for each directory in $ac_dir_suffix.
  1328. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1329. case $ac_top_builddir_sub in
  1330. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1331. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1332. esac ;;
  1333. esac
  1334. ac_abs_top_builddir=$ac_pwd
  1335. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1336. # for backward compatibility:
  1337. ac_top_builddir=$ac_top_build_prefix
  1338. case $srcdir in
  1339. .) # We are building in place.
  1340. ac_srcdir=.
  1341. ac_top_srcdir=$ac_top_builddir_sub
  1342. ac_abs_top_srcdir=$ac_pwd ;;
  1343. [\\/]* | ?:[\\/]* ) # Absolute name.
  1344. ac_srcdir=$srcdir$ac_dir_suffix;
  1345. ac_top_srcdir=$srcdir
  1346. ac_abs_top_srcdir=$srcdir ;;
  1347. *) # Relative name.
  1348. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1349. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1350. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1351. esac
  1352. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1353. cd "$ac_dir" || { ac_status=$?; continue; }
  1354. # Check for guested configure.
  1355. if test -f "$ac_srcdir/configure.gnu"; then
  1356. echo &&
  1357. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1358. elif test -f "$ac_srcdir/configure"; then
  1359. echo &&
  1360. $SHELL "$ac_srcdir/configure" --help=recursive
  1361. else
  1362. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1363. fi || ac_status=$?
  1364. cd "$ac_pwd" || { ac_status=$?; break; }
  1365. done
  1366. fi
  1367. test -n "$ac_init_help" && exit $ac_status
  1368. if $ac_init_version; then
  1369. cat <<\_ACEOF
  1370. aria2c configure 0.15.1+2
  1371. generated by GNU Autoconf 2.61
  1372. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1373. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1374. This configure script is free software; the Free Software Foundation
  1375. gives unlimited permission to copy, distribute and modify it.
  1376. _ACEOF
  1377. exit
  1378. fi
  1379. cat >config.log <<_ACEOF
  1380. This file contains any messages produced by compilers while
  1381. running configure, to aid debugging if configure makes a mistake.
  1382. It was created by aria2c $as_me 0.15.1+2, which was
  1383. generated by GNU Autoconf 2.61. Invocation command line was
  1384. $ $0 $@
  1385. _ACEOF
  1386. exec 5>>config.log
  1387. {
  1388. cat <<_ASUNAME
  1389. ## --------- ##
  1390. ## Platform. ##
  1391. ## --------- ##
  1392. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1393. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1394. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1395. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1396. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1397. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1398. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1399. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1400. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1401. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1402. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1403. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1404. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1405. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1406. _ASUNAME
  1407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1408. for as_dir in $PATH
  1409. do
  1410. IFS=$as_save_IFS
  1411. test -z "$as_dir" && as_dir=.
  1412. echo "PATH: $as_dir"
  1413. done
  1414. IFS=$as_save_IFS
  1415. } >&5
  1416. cat >&5 <<_ACEOF
  1417. ## ----------- ##
  1418. ## Core tests. ##
  1419. ## ----------- ##
  1420. _ACEOF
  1421. # Keep a trace of the command line.
  1422. # Strip out --no-create and --no-recursion so they do not pile up.
  1423. # Strip out --silent because we don't want to record it for future runs.
  1424. # Also quote any args containing shell meta-characters.
  1425. # Make two passes to allow for proper duplicate-argument suppression.
  1426. ac_configure_args=
  1427. ac_configure_args0=
  1428. ac_configure_args1=
  1429. ac_must_keep_next=false
  1430. for ac_pass in 1 2
  1431. do
  1432. for ac_arg
  1433. do
  1434. case $ac_arg in
  1435. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1436. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1437. | -silent | --silent | --silen | --sile | --sil)
  1438. continue ;;
  1439. *\'*)
  1440. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1441. esac
  1442. case $ac_pass in
  1443. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1444. 2)
  1445. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1446. if test $ac_must_keep_next = true; then
  1447. ac_must_keep_next=false # Got value, back to normal.
  1448. else
  1449. case $ac_arg in
  1450. *=* | --config-cache | -C | -disable-* | --disable-* \
  1451. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1452. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1453. | -with-* | --with-* | -without-* | --without-* | --x)
  1454. case "$ac_configure_args0 " in
  1455. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1456. esac
  1457. ;;
  1458. -* ) ac_must_keep_next=true ;;
  1459. esac
  1460. fi
  1461. ac_configure_args="$ac_configure_args '$ac_arg'"
  1462. ;;
  1463. esac
  1464. done
  1465. done
  1466. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1467. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1468. # When interrupted or exit'd, cleanup temporary files, and complete
  1469. # config.log. We remove comments because anyway the quotes in there
  1470. # would cause problems or look ugly.
  1471. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1472. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1473. trap 'exit_status=$?
  1474. # Save into config.log some information that might help in debugging.
  1475. {
  1476. echo
  1477. cat <<\_ASBOX
  1478. ## ---------------- ##
  1479. ## Cache variables. ##
  1480. ## ---------------- ##
  1481. _ASBOX
  1482. echo
  1483. # The following way of writing the cache mishandles newlines in values,
  1484. (
  1485. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1486. eval ac_val=\$$ac_var
  1487. case $ac_val in #(
  1488. *${as_nl}*)
  1489. case $ac_var in #(
  1490. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1491. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1492. esac
  1493. case $ac_var in #(
  1494. _ | IFS | as_nl) ;; #(
  1495. *) $as_unset $ac_var ;;
  1496. esac ;;
  1497. esac
  1498. done
  1499. (set) 2>&1 |
  1500. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1501. *${as_nl}ac_space=\ *)
  1502. sed -n \
  1503. "s/'\''/'\''\\\\'\'''\''/g;
  1504. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1505. ;; #(
  1506. *)
  1507. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1508. ;;
  1509. esac |
  1510. sort
  1511. )
  1512. echo
  1513. cat <<\_ASBOX
  1514. ## ----------------- ##
  1515. ## Output variables. ##
  1516. ## ----------------- ##
  1517. _ASBOX
  1518. echo
  1519. for ac_var in $ac_subst_vars
  1520. do
  1521. eval ac_val=\$$ac_var
  1522. case $ac_val in
  1523. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1524. esac
  1525. echo "$ac_var='\''$ac_val'\''"
  1526. done | sort
  1527. echo
  1528. if test -n "$ac_subst_files"; then
  1529. cat <<\_ASBOX
  1530. ## ------------------- ##
  1531. ## File substitutions. ##
  1532. ## ------------------- ##
  1533. _ASBOX
  1534. echo
  1535. for ac_var in $ac_subst_files
  1536. do
  1537. eval ac_val=\$$ac_var
  1538. case $ac_val in
  1539. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1540. esac
  1541. echo "$ac_var='\''$ac_val'\''"
  1542. done | sort
  1543. echo
  1544. fi
  1545. if test -s confdefs.h; then
  1546. cat <<\_ASBOX
  1547. ## ----------- ##
  1548. ## confdefs.h. ##
  1549. ## ----------- ##
  1550. _ASBOX
  1551. echo
  1552. cat confdefs.h
  1553. echo
  1554. fi
  1555. test "$ac_signal" != 0 &&
  1556. echo "$as_me: caught signal $ac_signal"
  1557. echo "$as_me: exit $exit_status"
  1558. } >&5
  1559. rm -f core *.core core.conftest.* &&
  1560. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1561. exit $exit_status
  1562. ' 0
  1563. for ac_signal in 1 2 13 15; do
  1564. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1565. done
  1566. ac_signal=0
  1567. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1568. rm -f -r conftest* confdefs.h
  1569. # Predefined preprocessor variables.
  1570. cat >>confdefs.h <<_ACEOF
  1571. #define PACKAGE_NAME "$PACKAGE_NAME"
  1572. _ACEOF
  1573. cat >>confdefs.h <<_ACEOF
  1574. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1575. _ACEOF
  1576. cat >>confdefs.h <<_ACEOF
  1577. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1578. _ACEOF
  1579. cat >>confdefs.h <<_ACEOF
  1580. #define PACKAGE_STRING "$PACKAGE_STRING"
  1581. _ACEOF
  1582. cat >>confdefs.h <<_ACEOF
  1583. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1584. _ACEOF
  1585. # Let the site file select an alternate cache file if it wants to.
  1586. # Prefer explicitly selected file to automatically selected ones.
  1587. if test -n "$CONFIG_SITE"; then
  1588. set x "$CONFIG_SITE"
  1589. elif test "x$prefix" != xNONE; then
  1590. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1591. else
  1592. set x "$ac_default_prefix/share/config.site" \
  1593. "$ac_default_prefix/etc/config.site"
  1594. fi
  1595. shift
  1596. for ac_site_file
  1597. do
  1598. if test -r "$ac_site_file"; then
  1599. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1600. echo "$as_me: loading site script $ac_site_file" >&6;}
  1601. sed 's/^/| /' "$ac_site_file" >&5
  1602. . "$ac_site_file"
  1603. fi
  1604. done
  1605. if test -r "$cache_file"; then
  1606. # Some versions of bash will fail to source /dev/null (special
  1607. # files actually), so we avoid doing that.
  1608. if test -f "$cache_file"; then
  1609. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1610. echo "$as_me: loading cache $cache_file" >&6;}
  1611. case $cache_file in
  1612. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1613. *) . "./$cache_file";;
  1614. esac
  1615. fi
  1616. else
  1617. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1618. echo "$as_me: creating cache $cache_file" >&6;}
  1619. >$cache_file
  1620. fi
  1621. gt_needs="$gt_needs "
  1622. ac_header_list="$ac_header_list sys/time.h"
  1623. ac_header_list="$ac_header_list unistd.h"
  1624. ac_func_list="$ac_func_list alarm"
  1625. # Check that the precious variables saved in the cache have kept the same
  1626. # value.
  1627. ac_cache_corrupted=false
  1628. for ac_var in $ac_precious_vars; do
  1629. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1630. eval ac_new_set=\$ac_env_${ac_var}_set
  1631. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1632. eval ac_new_val=\$ac_env_${ac_var}_value
  1633. case $ac_old_set,$ac_new_set in
  1634. set,)
  1635. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1636. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1637. ac_cache_corrupted=: ;;
  1638. ,set)
  1639. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1640. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1641. ac_cache_corrupted=: ;;
  1642. ,);;
  1643. *)
  1644. if test "x$ac_old_val" != "x$ac_new_val"; then
  1645. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1646. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1647. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1648. echo "$as_me: former value: $ac_old_val" >&2;}
  1649. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1650. echo "$as_me: current value: $ac_new_val" >&2;}
  1651. ac_cache_corrupted=:
  1652. fi;;
  1653. esac
  1654. # Pass precious variables to config.status.
  1655. if test "$ac_new_set" = set; then
  1656. case $ac_new_val in
  1657. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1658. *) ac_arg=$ac_var=$ac_new_val ;;
  1659. esac
  1660. case " $ac_configure_args " in
  1661. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1662. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1663. esac
  1664. fi
  1665. done
  1666. if $ac_cache_corrupted; then
  1667. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1668. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1669. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1670. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1671. { (exit 1); exit 1; }; }
  1672. fi
  1673. ac_ext=c
  1674. ac_cpp='$CPP $CPPFLAGS'
  1675. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1676. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1677. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1678. ac_aux_dir=
  1679. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1680. if test -f "$ac_dir/install-sh"; then
  1681. ac_aux_dir=$ac_dir
  1682. ac_install_sh="$ac_aux_dir/install-sh -c"
  1683. break
  1684. elif test -f "$ac_dir/install.sh"; then
  1685. ac_aux_dir=$ac_dir
  1686. ac_install_sh="$ac_aux_dir/install.sh -c"
  1687. break
  1688. elif test -f "$ac_dir/shtool"; then
  1689. ac_aux_dir=$ac_dir
  1690. ac_install_sh="$ac_aux_dir/shtool install -c"
  1691. break
  1692. fi
  1693. done
  1694. if test -z "$ac_aux_dir"; then
  1695. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1696. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1697. { (exit 1); exit 1; }; }
  1698. fi
  1699. # These three variables are undocumented and unsupported,
  1700. # and are intended to be withdrawn in a future Autoconf release.
  1701. # They can cause serious problems if a builder's source tree is in a directory
  1702. # whose full name contains unusual characters.
  1703. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1704. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1705. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1706. # Make sure we can run config.sub.
  1707. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1708. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1709. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1710. { (exit 1); exit 1; }; }
  1711. { echo "$as_me:$LINENO: checking build system type" >&5
  1712. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1713. if test "${ac_cv_build+set}" = set; then
  1714. echo $ECHO_N "(cached) $ECHO_C" >&6
  1715. else
  1716. ac_build_alias=$build_alias
  1717. test "x$ac_build_alias" = x &&
  1718. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1719. test "x$ac_build_alias" = x &&
  1720. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1721. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1722. { (exit 1); exit 1; }; }
  1723. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1724. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1725. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1726. { (exit 1); exit 1; }; }
  1727. fi
  1728. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1729. echo "${ECHO_T}$ac_cv_build" >&6; }
  1730. case $ac_cv_build in
  1731. *-*-*) ;;
  1732. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1733. echo "$as_me: error: invalid value of canonical build" >&2;}
  1734. { (exit 1); exit 1; }; };;
  1735. esac
  1736. build=$ac_cv_build
  1737. ac_save_IFS=$IFS; IFS='-'
  1738. set x $ac_cv_build
  1739. shift
  1740. build_cpu=$1
  1741. build_vendor=$2
  1742. shift; shift
  1743. # Remember, the first character of IFS is used to create $*,
  1744. # except with old shells:
  1745. build_os=$*
  1746. IFS=$ac_save_IFS
  1747. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1748. { echo "$as_me:$LINENO: checking host system type" >&5
  1749. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1750. if test "${ac_cv_host+set}" = set; then
  1751. echo $ECHO_N "(cached) $ECHO_C" >&6
  1752. else
  1753. if test "x$host_alias" = x; then
  1754. ac_cv_host=$ac_cv_build
  1755. else
  1756. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1757. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1758. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1759. { (exit 1); exit 1; }; }
  1760. fi
  1761. fi
  1762. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1763. echo "${ECHO_T}$ac_cv_host" >&6; }
  1764. case $ac_cv_host in
  1765. *-*-*) ;;
  1766. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1767. echo "$as_me: error: invalid value of canonical host" >&2;}
  1768. { (exit 1); exit 1; }; };;
  1769. esac
  1770. host=$ac_cv_host
  1771. ac_save_IFS=$IFS; IFS='-'
  1772. set x $ac_cv_host
  1773. shift
  1774. host_cpu=$1
  1775. host_vendor=$2
  1776. shift; shift
  1777. # Remember, the first character of IFS is used to create $*,
  1778. # except with old shells:
  1779. host_os=$*
  1780. IFS=$ac_save_IFS
  1781. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1782. { echo "$as_me:$LINENO: checking target system type" >&5
  1783. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1784. if test "${ac_cv_target+set}" = set; then
  1785. echo $ECHO_N "(cached) $ECHO_C" >&6
  1786. else
  1787. if test "x$target_alias" = x; then
  1788. ac_cv_target=$ac_cv_host
  1789. else
  1790. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1791. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1792. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1793. { (exit 1); exit 1; }; }
  1794. fi
  1795. fi
  1796. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1797. echo "${ECHO_T}$ac_cv_target" >&6; }
  1798. case $ac_cv_target in
  1799. *-*-*) ;;
  1800. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1801. echo "$as_me: error: invalid value of canonical target" >&2;}
  1802. { (exit 1); exit 1; }; };;
  1803. esac
  1804. target=$ac_cv_target
  1805. ac_save_IFS=$IFS; IFS='-'
  1806. set x $ac_cv_target
  1807. shift
  1808. target_cpu=$1
  1809. target_vendor=$2
  1810. shift; shift
  1811. # Remember, the first character of IFS is used to create $*,
  1812. # except with old shells:
  1813. target_os=$*
  1814. IFS=$ac_save_IFS
  1815. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1816. # The aliases save the names the user supplied, while $host etc.
  1817. # will get canonicalized.
  1818. test -n "$target_alias" &&
  1819. test "$program_prefix$program_suffix$program_transform_name" = \
  1820. NONENONEs,x,x, &&
  1821. program_prefix=${target_alias}-
  1822. am__api_version='1.10'
  1823. # Find a good install program. We prefer a C program (faster),
  1824. # so one script is as good as another. But avoid the broken or
  1825. # incompatible versions:
  1826. # SysV /etc/install, /usr/sbin/install
  1827. # SunOS /usr/etc/install
  1828. # IRIX /sbin/install
  1829. # AIX /bin/install
  1830. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1831. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1832. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1833. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1834. # OS/2's system install, which has a completely different semantic
  1835. # ./install, which can be erroneously created by make from ./install.sh.
  1836. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1837. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1838. if test -z "$INSTALL"; then
  1839. if test "${ac_cv_path_install+set}" = set; then
  1840. echo $ECHO_N "(cached) $ECHO_C" >&6
  1841. else
  1842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1843. for as_dir in $PATH
  1844. do
  1845. IFS=$as_save_IFS
  1846. test -z "$as_dir" && as_dir=.
  1847. # Account for people who put trailing slashes in PATH elements.
  1848. case $as_dir/ in
  1849. ./ | .// | /cC/* | \
  1850. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1851. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1852. /usr/ucb/* ) ;;
  1853. *)
  1854. # OSF1 and SCO ODT 3.0 have their own names for install.
  1855. # Don't use installbsd from OSF since it installs stuff as root
  1856. # by default.
  1857. for ac_prog in ginstall scoinst install; do
  1858. for ac_exec_ext in '' $ac_executable_extensions; do
  1859. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1860. if test $ac_prog = install &&
  1861. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1862. # AIX install. It has an incompatible calling convention.
  1863. :
  1864. elif test $ac_prog = install &&
  1865. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1866. # program-specific install script used by HP pwplus--don't use.
  1867. :
  1868. else
  1869. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1870. break 3
  1871. fi
  1872. fi
  1873. done
  1874. done
  1875. ;;
  1876. esac
  1877. done
  1878. IFS=$as_save_IFS
  1879. fi
  1880. if test "${ac_cv_path_install+set}" = set; then
  1881. INSTALL=$ac_cv_path_install
  1882. else
  1883. # As a last resort, use the slow shell script. Don't cache a
  1884. # value for INSTALL within a source directory, because that will
  1885. # break other packages using the cache if that directory is
  1886. # removed, or if the value is a relative name.
  1887. INSTALL=$ac_install_sh
  1888. fi
  1889. fi
  1890. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1891. echo "${ECHO_T}$INSTALL" >&6; }
  1892. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1893. # It thinks the first close brace ends the variable substitution.
  1894. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1895. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1896. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1897. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1898. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1899. # Just in case
  1900. sleep 1
  1901. echo timestamp > conftest.file
  1902. # Do `set' in a subshell so we don't clobber the current shell's
  1903. # arguments. Must try -L first in case configure is actually a
  1904. # symlink; some systems play weird games with the mod time of symlinks
  1905. # (eg FreeBSD returns the mod time of the symlink's containing
  1906. # directory).
  1907. if (
  1908. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1909. if test "$*" = "X"; then
  1910. # -L didn't work.
  1911. set X `ls -t $srcdir/configure conftest.file`
  1912. fi
  1913. rm -f conftest.file
  1914. if test "$*" != "X $srcdir/configure conftest.file" \
  1915. && test "$*" != "X conftest.file $srcdir/configure"; then
  1916. # If neither matched, then we have a broken ls. This can happen
  1917. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1918. # broken ls alias from the environment. This has actually
  1919. # happened. Such a system could not be considered "sane".
  1920. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1921. alias in your environment" >&5
  1922. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1923. alias in your environment" >&2;}
  1924. { (exit 1); exit 1; }; }
  1925. fi
  1926. test "$2" = conftest.file
  1927. )
  1928. then
  1929. # Ok.
  1930. :
  1931. else
  1932. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1933. Check your system clock" >&5
  1934. echo "$as_me: error: newly created file is older than distributed files!
  1935. Check your system clock" >&2;}
  1936. { (exit 1); exit 1; }; }
  1937. fi
  1938. { echo "$as_me:$LINENO: result: yes" >&5
  1939. echo "${ECHO_T}yes" >&6; }
  1940. test "$program_prefix" != NONE &&
  1941. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1942. # Use a double $ so make ignores it.
  1943. test "$program_suffix" != NONE &&
  1944. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1945. # Double any \ or $. echo might interpret backslashes.
  1946. # By default was `s,x,x', remove it if useless.
  1947. cat <<\_ACEOF >conftest.sed
  1948. s/[\\$]/&&/g;s/;s,x,x,$//
  1949. _ACEOF
  1950. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1951. rm -f conftest.sed
  1952. # expand $ac_aux_dir to an absolute path
  1953. am_aux_dir=`cd $ac_aux_dir && pwd`
  1954. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1955. # Use eval to expand $SHELL
  1956. if eval "$MISSING --run true"; then
  1957. am_missing_run="$MISSING --run "
  1958. else
  1959. am_missing_run=
  1960. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1961. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1962. fi
  1963. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1964. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  1965. if test -z "$MKDIR_P"; then
  1966. if test "${ac_cv_path_mkdir+set}" = set; then
  1967. echo $ECHO_N "(cached) $ECHO_C" >&6
  1968. else
  1969. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1970. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1971. do
  1972. IFS=$as_save_IFS
  1973. test -z "$as_dir" && as_dir=.
  1974. for ac_prog in mkdir gmkdir; do
  1975. for ac_exec_ext in '' $ac_executable_extensions; do
  1976. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1977. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1978. 'mkdir (GNU coreutils) '* | \
  1979. 'mkdir (coreutils) '* | \
  1980. 'mkdir (fileutils) '4.1*)
  1981. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1982. break 3;;
  1983. esac
  1984. done
  1985. done
  1986. done
  1987. IFS=$as_save_IFS
  1988. fi
  1989. if test "${ac_cv_path_mkdir+set}" = set; then
  1990. MKDIR_P="$ac_cv_path_mkdir -p"
  1991. else
  1992. # As a last resort, use the slow shell script. Don't cache a
  1993. # value for MKDIR_P within a source directory, because that will
  1994. # break other packages using the cache if that directory is
  1995. # removed, or if the value is a relative name.
  1996. test -d ./--version && rmdir ./--version
  1997. MKDIR_P="$ac_install_sh -d"
  1998. fi
  1999. fi
  2000. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2001. echo "${ECHO_T}$MKDIR_P" >&6; }
  2002. mkdir_p="$MKDIR_P"
  2003. case $mkdir_p in
  2004. [\\/$]* | ?:[\\/]*) ;;
  2005. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2006. esac
  2007. for ac_prog in gawk mawk nawk awk
  2008. do
  2009. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2010. set dummy $ac_prog; ac_word=$2
  2011. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2012. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2013. if test "${ac_cv_prog_AWK+set}" = set; then
  2014. echo $ECHO_N "(cached) $ECHO_C" >&6
  2015. else
  2016. if test -n "$AWK"; then
  2017. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2018. else
  2019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2020. for as_dir in $PATH
  2021. do
  2022. IFS=$as_save_IFS
  2023. test -z "$as_dir" && as_dir=.
  2024. for ac_exec_ext in '' $ac_executable_extensions; do
  2025. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2026. ac_cv_prog_AWK="$ac_prog"
  2027. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2028. break 2
  2029. fi
  2030. done
  2031. done
  2032. IFS=$as_save_IFS
  2033. fi
  2034. fi
  2035. AWK=$ac_cv_prog_AWK
  2036. if test -n "$AWK"; then
  2037. { echo "$as_me:$LINENO: result: $AWK" >&5
  2038. echo "${ECHO_T}$AWK" >&6; }
  2039. else
  2040. { echo "$as_me:$LINENO: result: no" >&5
  2041. echo "${ECHO_T}no" >&6; }
  2042. fi
  2043. test -n "$AWK" && break
  2044. done
  2045. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2046. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2047. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2048. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2049. echo $ECHO_N "(cached) $ECHO_C" >&6
  2050. else
  2051. cat >conftest.make <<\_ACEOF
  2052. SHELL = /bin/sh
  2053. all:
  2054. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2055. _ACEOF
  2056. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2057. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2058. *@@@%%%=?*=@@@%%%*)
  2059. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2060. *)
  2061. eval ac_cv_prog_make_${ac_make}_set=no;;
  2062. esac
  2063. rm -f conftest.make
  2064. fi
  2065. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2066. { echo "$as_me:$LINENO: result: yes" >&5
  2067. echo "${ECHO_T}yes" >&6; }
  2068. SET_MAKE=
  2069. else
  2070. { echo "$as_me:$LINENO: result: no" >&5
  2071. echo "${ECHO_T}no" >&6; }
  2072. SET_MAKE="MAKE=${MAKE-make}"
  2073. fi
  2074. rm -rf .tst 2>/dev/null
  2075. mkdir .tst 2>/dev/null
  2076. if test -d .tst; then
  2077. am__leading_dot=.
  2078. else
  2079. am__leading_dot=_
  2080. fi
  2081. rmdir .tst 2>/dev/null
  2082. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2083. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2084. # is not polluted with repeated "-I."
  2085. am__isrc=' -I$(srcdir)'
  2086. # test to see if srcdir already configured
  2087. if test -f $srcdir/config.status; then
  2088. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2089. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2090. { (exit 1); exit 1; }; }
  2091. fi
  2092. fi
  2093. # test whether we have cygpath
  2094. if test -z "$CYGPATH_W"; then
  2095. if (cygpath --version) >/dev/null 2>/dev/null; then
  2096. CYGPATH_W='cygpath -w'
  2097. else
  2098. CYGPATH_W=echo
  2099. fi
  2100. fi
  2101. # Define the identity of the package.
  2102. PACKAGE='aria2c'
  2103. VERSION='0.15.1+2'
  2104. cat >>confdefs.h <<_ACEOF
  2105. #define PACKAGE "$PACKAGE"
  2106. _ACEOF
  2107. cat >>confdefs.h <<_ACEOF
  2108. #define VERSION "$VERSION"
  2109. _ACEOF
  2110. # Some tools Automake needs.
  2111. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2112. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2113. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2114. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2115. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2116. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2117. # Installed binaries are usually stripped using `strip' when the user
  2118. # run `make install-strip'. However `strip' might not be the right
  2119. # tool to use in cross-compilation environments, therefore Automake
  2120. # will honor the `STRIP' environment variable to overrule this program.
  2121. if test "$cross_compiling" != no; then
  2122. if test -n "$ac_tool_prefix"; then
  2123. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2124. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2125. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2126. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2127. if test "${ac_cv_prog_STRIP+set}" = set; then
  2128. echo $ECHO_N "(cached) $ECHO_C" >&6
  2129. else
  2130. if test -n "$STRIP"; then
  2131. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2132. else
  2133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2134. for as_dir in $PATH
  2135. do
  2136. IFS=$as_save_IFS
  2137. test -z "$as_dir" && as_dir=.
  2138. for ac_exec_ext in '' $ac_executable_extensions; do
  2139. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2140. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2141. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2142. break 2
  2143. fi
  2144. done
  2145. done
  2146. IFS=$as_save_IFS
  2147. fi
  2148. fi
  2149. STRIP=$ac_cv_prog_STRIP
  2150. if test -n "$STRIP"; then
  2151. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2152. echo "${ECHO_T}$STRIP" >&6; }
  2153. else
  2154. { echo "$as_me:$LINENO: result: no" >&5
  2155. echo "${ECHO_T}no" >&6; }
  2156. fi
  2157. fi
  2158. if test -z "$ac_cv_prog_STRIP"; then
  2159. ac_ct_STRIP=$STRIP
  2160. # Extract the first word of "strip", so it can be a program name with args.
  2161. set dummy strip; ac_word=$2
  2162. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2163. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2164. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2165. echo $ECHO_N "(cached) $ECHO_C" >&6
  2166. else
  2167. if test -n "$ac_ct_STRIP"; then
  2168. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2169. else
  2170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2171. for as_dir in $PATH
  2172. do
  2173. IFS=$as_save_IFS
  2174. test -z "$as_dir" && as_dir=.
  2175. for ac_exec_ext in '' $ac_executable_extensions; do
  2176. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2177. ac_cv_prog_ac_ct_STRIP="strip"
  2178. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2179. break 2
  2180. fi
  2181. done
  2182. done
  2183. IFS=$as_save_IFS
  2184. fi
  2185. fi
  2186. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2187. if test -n "$ac_ct_STRIP"; then
  2188. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2189. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2190. else
  2191. { echo "$as_me:$LINENO: result: no" >&5
  2192. echo "${ECHO_T}no" >&6; }
  2193. fi
  2194. if test "x$ac_ct_STRIP" = x; then
  2195. STRIP=":"
  2196. else
  2197. case $cross_compiling:$ac_tool_warned in
  2198. yes:)
  2199. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2200. whose name does not start with the host triplet. If you think this
  2201. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2202. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2203. whose name does not start with the host triplet. If you think this
  2204. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2205. ac_tool_warned=yes ;;
  2206. esac
  2207. STRIP=$ac_ct_STRIP
  2208. fi
  2209. else
  2210. STRIP="$ac_cv_prog_STRIP"
  2211. fi
  2212. fi
  2213. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2214. # We need awk for the "check" target. The system "awk" is bad on
  2215. # some platforms.
  2216. # Always define AMTAR for backward compatibility.
  2217. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2218. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2219. # Check whether --with-cppunit-prefix was given.
  2220. if test "${with_cppunit_prefix+set}" = set; then
  2221. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2222. else
  2223. cppunit_config_prefix=""
  2224. fi
  2225. # Check whether --with-cppunit-exec-prefix was given.
  2226. if test "${with_cppunit_exec_prefix+set}" = set; then
  2227. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2228. else
  2229. cppunit_config_exec_prefix=""
  2230. fi
  2231. if test x$cppunit_config_exec_prefix != x ; then
  2232. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2233. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2234. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2235. fi
  2236. fi
  2237. if test x$cppunit_config_prefix != x ; then
  2238. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2239. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2240. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2241. fi
  2242. fi
  2243. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2244. set dummy cppunit-config; ac_word=$2
  2245. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2246. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2247. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2248. echo $ECHO_N "(cached) $ECHO_C" >&6
  2249. else
  2250. case $CPPUNIT_CONFIG in
  2251. [\\/]* | ?:[\\/]*)
  2252. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2253. ;;
  2254. *)
  2255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2256. for as_dir in $PATH
  2257. do
  2258. IFS=$as_save_IFS
  2259. test -z "$as_dir" && as_dir=.
  2260. for ac_exec_ext in '' $ac_executable_extensions; do
  2261. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2262. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2263. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2264. break 2
  2265. fi
  2266. done
  2267. done
  2268. IFS=$as_save_IFS
  2269. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2270. ;;
  2271. esac
  2272. fi
  2273. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2274. if test -n "$CPPUNIT_CONFIG"; then
  2275. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2276. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2277. else
  2278. { echo "$as_me:$LINENO: result: no" >&5
  2279. echo "${ECHO_T}no" >&6; }
  2280. fi
  2281. cppunit_version_min=1.10.2
  2282. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2283. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2284. no_cppunit=""
  2285. if test "$CPPUNIT_CONFIG" = "no" ; then
  2286. { echo "$as_me:$LINENO: result: no" >&5
  2287. echo "${ECHO_T}no" >&6; }
  2288. no_cppunit=yes
  2289. else
  2290. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2291. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2292. cppunit_version=`$CPPUNIT_CONFIG --version`
  2293. cppunit_major_version=`echo $cppunit_version | \
  2294. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2295. cppunit_minor_version=`echo $cppunit_version | \
  2296. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2297. cppunit_micro_version=`echo $cppunit_version | \
  2298. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2299. cppunit_major_min=`echo $cppunit_version_min | \
  2300. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2301. if test "x${cppunit_major_min}" = "x" ; then
  2302. cppunit_major_min=0
  2303. fi
  2304. cppunit_minor_min=`echo $cppunit_version_min | \
  2305. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2306. if test "x${cppunit_minor_min}" = "x" ; then
  2307. cppunit_minor_min=0
  2308. fi
  2309. cppunit_micro_min=`echo $cppunit_version_min | \
  2310. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2311. if test "x${cppunit_micro_min}" = "x" ; then
  2312. cppunit_micro_min=0
  2313. fi
  2314. cppunit_version_proper=`expr \
  2315. $cppunit_major_version \> $cppunit_major_min \| \
  2316. $cppunit_major_version \= $cppunit_major_min \& \
  2317. $cppunit_minor_version \> $cppunit_minor_min \| \
  2318. $cppunit_major_version \= $cppunit_major_min \& \
  2319. $cppunit_minor_version \= $cppunit_minor_min \& \
  2320. $cppunit_micro_version \>= $cppunit_micro_min `
  2321. if test "$cppunit_version_proper" = "1" ; then
  2322. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2323. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2324. else
  2325. { echo "$as_me:$LINENO: result: no" >&5
  2326. echo "${ECHO_T}no" >&6; }
  2327. no_cppunit=yes
  2328. fi
  2329. fi
  2330. if test "x$no_cppunit" = x ; then
  2331. :
  2332. else
  2333. CPPUNIT_CFLAGS=""
  2334. CPPUNIT_LIBS=""
  2335. :
  2336. fi
  2337. ac_config_headers="$ac_config_headers config.h"
  2338. case "$target" in
  2339. *mingw*|*cygwin*)
  2340. WINSOCK_LIBS="-lws2_32 -lpthread"
  2341. ;;
  2342. esac
  2343. cat >>confdefs.h <<_ACEOF
  2344. #define TARGET "$target"
  2345. _ACEOF
  2346. # Set localedir
  2347. localedir=${datadir}/locale
  2348. # Checks for arguments.
  2349. # Check whether --with-gnutls was given.
  2350. if test "${with_gnutls+set}" = set; then
  2351. withval=$with_gnutls; with_gnutls=$withval
  2352. else
  2353. with_gnutls=yes
  2354. fi
  2355. # Check whether --with-openssl was given.
  2356. if test "${with_openssl+set}" = set; then
  2357. withval=$with_openssl; with_openssl=$withval
  2358. else
  2359. with_openssl=yes
  2360. fi
  2361. # Check whether --with-libxml2 was given.
  2362. if test "${with_libxml2+set}" = set; then
  2363. withval=$with_libxml2; with_libxml2=$withval
  2364. else
  2365. with_libxml2=yes
  2366. fi
  2367. # Check whether --with-libexpat was given.
  2368. if test "${with_libexpat+set}" = set; then
  2369. withval=$with_libexpat; with_libexpat=$withval
  2370. else
  2371. with_libexpat=yes
  2372. fi
  2373. # Check whether --with-libares was given.
  2374. if test "${with_libares+set}" = set; then
  2375. withval=$with_libares; with_libares=$withval
  2376. else
  2377. with_libares=yes
  2378. fi
  2379. # Check whether --with-libcares was given.
  2380. if test "${with_libcares+set}" = set; then
  2381. withval=$with_libcares; with_libcares=$withval
  2382. else
  2383. with_libcares=yes
  2384. fi
  2385. # Check whether --with-libz was given.
  2386. if test "${with_libz+set}" = set; then
  2387. withval=$with_libz; with_libz=$withval
  2388. else
  2389. with_libz=yes
  2390. fi
  2391. # Check whether --enable-bittorrent was given.
  2392. if test "${enable_bittorrent+set}" = set; then
  2393. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2394. else
  2395. enable_bittorrent=yes
  2396. fi
  2397. # Check whether --enable-metalink was given.
  2398. if test "${enable_metalink+set}" = set; then
  2399. enableval=$enable_metalink; enable_metalink=$enableval
  2400. else
  2401. enable_metalink=yes
  2402. fi
  2403. # Check whether --enable-epoll was given.
  2404. if test "${enable_epoll+set}" = set; then
  2405. enableval=$enable_epoll; enable_epoll=$enableval
  2406. else
  2407. enable_epoll=yes
  2408. fi
  2409. # Checks for programs.
  2410. ac_ext=cpp
  2411. ac_cpp='$CXXCPP $CPPFLAGS'
  2412. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2413. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2414. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2415. if test -z "$CXX"; then
  2416. if test -n "$CCC"; then
  2417. CXX=$CCC
  2418. else
  2419. if test -n "$ac_tool_prefix"; then
  2420. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2421. do
  2422. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2423. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2424. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2425. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2426. if test "${ac_cv_prog_CXX+set}" = set; then
  2427. echo $ECHO_N "(cached) $ECHO_C" >&6
  2428. else
  2429. if test -n "$CXX"; then
  2430. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2431. else
  2432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2433. for as_dir in $PATH
  2434. do
  2435. IFS=$as_save_IFS
  2436. test -z "$as_dir" && as_dir=.
  2437. for ac_exec_ext in '' $ac_executable_extensions; do
  2438. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2439. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2440. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2441. break 2
  2442. fi
  2443. done
  2444. done
  2445. IFS=$as_save_IFS
  2446. fi
  2447. fi
  2448. CXX=$ac_cv_prog_CXX
  2449. if test -n "$CXX"; then
  2450. { echo "$as_me:$LINENO: result: $CXX" >&5
  2451. echo "${ECHO_T}$CXX" >&6; }
  2452. else
  2453. { echo "$as_me:$LINENO: result: no" >&5
  2454. echo "${ECHO_T}no" >&6; }
  2455. fi
  2456. test -n "$CXX" && break
  2457. done
  2458. fi
  2459. if test -z "$CXX"; then
  2460. ac_ct_CXX=$CXX
  2461. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2462. do
  2463. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2464. set dummy $ac_prog; ac_word=$2
  2465. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2466. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2467. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2468. echo $ECHO_N "(cached) $ECHO_C" >&6
  2469. else
  2470. if test -n "$ac_ct_CXX"; then
  2471. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2472. else
  2473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2474. for as_dir in $PATH
  2475. do
  2476. IFS=$as_save_IFS
  2477. test -z "$as_dir" && as_dir=.
  2478. for ac_exec_ext in '' $ac_executable_extensions; do
  2479. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2480. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2481. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2482. break 2
  2483. fi
  2484. done
  2485. done
  2486. IFS=$as_save_IFS
  2487. fi
  2488. fi
  2489. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2490. if test -n "$ac_ct_CXX"; then
  2491. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2492. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2493. else
  2494. { echo "$as_me:$LINENO: result: no" >&5
  2495. echo "${ECHO_T}no" >&6; }
  2496. fi
  2497. test -n "$ac_ct_CXX" && break
  2498. done
  2499. if test "x$ac_ct_CXX" = x; then
  2500. CXX="g++"
  2501. else
  2502. case $cross_compiling:$ac_tool_warned in
  2503. yes:)
  2504. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2505. whose name does not start with the host triplet. If you think this
  2506. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2507. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2508. whose name does not start with the host triplet. If you think this
  2509. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2510. ac_tool_warned=yes ;;
  2511. esac
  2512. CXX=$ac_ct_CXX
  2513. fi
  2514. fi
  2515. fi
  2516. fi
  2517. # Provide some information about the compiler.
  2518. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2519. ac_compiler=`set X $ac_compile; echo $2`
  2520. { (ac_try="$ac_compiler --version >&5"
  2521. case "(($ac_try" in
  2522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2523. *) ac_try_echo=$ac_try;;
  2524. esac
  2525. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2526. (eval "$ac_compiler --version >&5") 2>&5
  2527. ac_status=$?
  2528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2529. (exit $ac_status); }
  2530. { (ac_try="$ac_compiler -v >&5"
  2531. case "(($ac_try" in
  2532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2533. *) ac_try_echo=$ac_try;;
  2534. esac
  2535. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2536. (eval "$ac_compiler -v >&5") 2>&5
  2537. ac_status=$?
  2538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2539. (exit $ac_status); }
  2540. { (ac_try="$ac_compiler -V >&5"
  2541. case "(($ac_try" in
  2542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2543. *) ac_try_echo=$ac_try;;
  2544. esac
  2545. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2546. (eval "$ac_compiler -V >&5") 2>&5
  2547. ac_status=$?
  2548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2549. (exit $ac_status); }
  2550. cat >conftest.$ac_ext <<_ACEOF
  2551. /* confdefs.h. */
  2552. _ACEOF
  2553. cat confdefs.h >>conftest.$ac_ext
  2554. cat >>conftest.$ac_ext <<_ACEOF
  2555. /* end confdefs.h. */
  2556. int
  2557. main ()
  2558. {
  2559. ;
  2560. return 0;
  2561. }
  2562. _ACEOF
  2563. ac_clean_files_save=$ac_clean_files
  2564. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2565. # Try to create an executable without -o first, disregard a.out.
  2566. # It will help us diagnose broken compilers, and finding out an intuition
  2567. # of exeext.
  2568. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2569. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2570. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2571. #
  2572. # List of possible output files, starting from the most likely.
  2573. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2574. # only as a last resort. b.out is created by i960 compilers.
  2575. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2576. #
  2577. # The IRIX 6 linker writes into existing files which may not be
  2578. # executable, retaining their permissions. Remove them first so a
  2579. # subsequent execution test works.
  2580. ac_rmfiles=
  2581. for ac_file in $ac_files
  2582. do
  2583. case $ac_file in
  2584. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2585. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2586. esac
  2587. done
  2588. rm -f $ac_rmfiles
  2589. if { (ac_try="$ac_link_default"
  2590. case "(($ac_try" in
  2591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2592. *) ac_try_echo=$ac_try;;
  2593. esac
  2594. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2595. (eval "$ac_link_default") 2>&5
  2596. ac_status=$?
  2597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2598. (exit $ac_status); }; then
  2599. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2600. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2601. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2602. # so that the user can short-circuit this test for compilers unknown to
  2603. # Autoconf.
  2604. for ac_file in $ac_files ''
  2605. do
  2606. test -f "$ac_file" || continue
  2607. case $ac_file in
  2608. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2609. ;;
  2610. [ab].out )
  2611. # We found the default executable, but exeext='' is most
  2612. # certainly right.
  2613. break;;
  2614. *.* )
  2615. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2616. then :; else
  2617. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2618. fi
  2619. # We set ac_cv_exeext here because the later test for it is not
  2620. # safe: cross compilers may not add the suffix if given an `-o'
  2621. # argument, so we may need to know it at that point already.
  2622. # Even if this section looks crufty: it has the advantage of
  2623. # actually working.
  2624. break;;
  2625. * )
  2626. break;;
  2627. esac
  2628. done
  2629. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2630. else
  2631. ac_file=''
  2632. fi
  2633. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2634. echo "${ECHO_T}$ac_file" >&6; }
  2635. if test -z "$ac_file"; then
  2636. echo "$as_me: failed program was:" >&5
  2637. sed 's/^/| /' conftest.$ac_ext >&5
  2638. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2639. See \`config.log' for more details." >&5
  2640. echo "$as_me: error: C++ compiler cannot create executables
  2641. See \`config.log' for more details." >&2;}
  2642. { (exit 77); exit 77; }; }
  2643. fi
  2644. ac_exeext=$ac_cv_exeext
  2645. # Check that the compiler produces executables we can run. If not, either
  2646. # the compiler is broken, or we cross compile.
  2647. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2648. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2649. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2650. # If not cross compiling, check that we can run a simple program.
  2651. if test "$cross_compiling" != yes; then
  2652. if { ac_try='./$ac_file'
  2653. { (case "(($ac_try" in
  2654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2655. *) ac_try_echo=$ac_try;;
  2656. esac
  2657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2658. (eval "$ac_try") 2>&5
  2659. ac_status=$?
  2660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2661. (exit $ac_status); }; }; then
  2662. cross_compiling=no
  2663. else
  2664. if test "$cross_compiling" = maybe; then
  2665. cross_compiling=yes
  2666. else
  2667. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2668. If you meant to cross compile, use \`--host'.
  2669. See \`config.log' for more details." >&5
  2670. echo "$as_me: error: cannot run C++ compiled programs.
  2671. If you meant to cross compile, use \`--host'.
  2672. See \`config.log' for more details." >&2;}
  2673. { (exit 1); exit 1; }; }
  2674. fi
  2675. fi
  2676. fi
  2677. { echo "$as_me:$LINENO: result: yes" >&5
  2678. echo "${ECHO_T}yes" >&6; }
  2679. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2680. ac_clean_files=$ac_clean_files_save
  2681. # Check that the compiler produces executables we can run. If not, either
  2682. # the compiler is broken, or we cross compile.
  2683. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2684. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2685. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2686. echo "${ECHO_T}$cross_compiling" >&6; }
  2687. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2688. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2689. if { (ac_try="$ac_link"
  2690. case "(($ac_try" in
  2691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2692. *) ac_try_echo=$ac_try;;
  2693. esac
  2694. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2695. (eval "$ac_link") 2>&5
  2696. ac_status=$?
  2697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2698. (exit $ac_status); }; then
  2699. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2700. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2701. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2702. # `rm'.
  2703. for ac_file in conftest.exe conftest conftest.*; do
  2704. test -f "$ac_file" || continue
  2705. case $ac_file in
  2706. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2707. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2708. break;;
  2709. * ) break;;
  2710. esac
  2711. done
  2712. else
  2713. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2714. See \`config.log' for more details." >&5
  2715. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2716. See \`config.log' for more details." >&2;}
  2717. { (exit 1); exit 1; }; }
  2718. fi
  2719. rm -f conftest$ac_cv_exeext
  2720. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2721. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2722. rm -f conftest.$ac_ext
  2723. EXEEXT=$ac_cv_exeext
  2724. ac_exeext=$EXEEXT
  2725. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2726. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2727. if test "${ac_cv_objext+set}" = set; then
  2728. echo $ECHO_N "(cached) $ECHO_C" >&6
  2729. else
  2730. cat >conftest.$ac_ext <<_ACEOF
  2731. /* confdefs.h. */
  2732. _ACEOF
  2733. cat confdefs.h >>conftest.$ac_ext
  2734. cat >>conftest.$ac_ext <<_ACEOF
  2735. /* end confdefs.h. */
  2736. int
  2737. main ()
  2738. {
  2739. ;
  2740. return 0;
  2741. }
  2742. _ACEOF
  2743. rm -f conftest.o conftest.obj
  2744. if { (ac_try="$ac_compile"
  2745. case "(($ac_try" in
  2746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2747. *) ac_try_echo=$ac_try;;
  2748. esac
  2749. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2750. (eval "$ac_compile") 2>&5
  2751. ac_status=$?
  2752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2753. (exit $ac_status); }; then
  2754. for ac_file in conftest.o conftest.obj conftest.*; do
  2755. test -f "$ac_file" || continue;
  2756. case $ac_file in
  2757. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2758. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2759. break;;
  2760. esac
  2761. done
  2762. else
  2763. echo "$as_me: failed program was:" >&5
  2764. sed 's/^/| /' conftest.$ac_ext >&5
  2765. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2766. See \`config.log' for more details." >&5
  2767. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2768. See \`config.log' for more details." >&2;}
  2769. { (exit 1); exit 1; }; }
  2770. fi
  2771. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2772. fi
  2773. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2774. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2775. OBJEXT=$ac_cv_objext
  2776. ac_objext=$OBJEXT
  2777. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2778. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2779. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2780. echo $ECHO_N "(cached) $ECHO_C" >&6
  2781. else
  2782. cat >conftest.$ac_ext <<_ACEOF
  2783. /* confdefs.h. */
  2784. _ACEOF
  2785. cat confdefs.h >>conftest.$ac_ext
  2786. cat >>conftest.$ac_ext <<_ACEOF
  2787. /* end confdefs.h. */
  2788. int
  2789. main ()
  2790. {
  2791. #ifndef __GNUC__
  2792. choke me
  2793. #endif
  2794. ;
  2795. return 0;
  2796. }
  2797. _ACEOF
  2798. rm -f conftest.$ac_objext
  2799. if { (ac_try="$ac_compile"
  2800. case "(($ac_try" in
  2801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2802. *) ac_try_echo=$ac_try;;
  2803. esac
  2804. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2805. (eval "$ac_compile") 2>conftest.er1
  2806. ac_status=$?
  2807. grep -v '^ *+' conftest.er1 >conftest.err
  2808. rm -f conftest.er1
  2809. cat conftest.err >&5
  2810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2811. (exit $ac_status); } && {
  2812. test -z "$ac_cxx_werror_flag" ||
  2813. test ! -s conftest.err
  2814. } && test -s conftest.$ac_objext; then
  2815. ac_compiler_gnu=yes
  2816. else
  2817. echo "$as_me: failed program was:" >&5
  2818. sed 's/^/| /' conftest.$ac_ext >&5
  2819. ac_compiler_gnu=no
  2820. fi
  2821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2822. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2823. fi
  2824. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2825. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2826. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2827. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2828. ac_save_CXXFLAGS=$CXXFLAGS
  2829. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2830. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2831. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2832. echo $ECHO_N "(cached) $ECHO_C" >&6
  2833. else
  2834. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2835. ac_cxx_werror_flag=yes
  2836. ac_cv_prog_cxx_g=no
  2837. CXXFLAGS="-g"
  2838. cat >conftest.$ac_ext <<_ACEOF
  2839. /* confdefs.h. */
  2840. _ACEOF
  2841. cat confdefs.h >>conftest.$ac_ext
  2842. cat >>conftest.$ac_ext <<_ACEOF
  2843. /* end confdefs.h. */
  2844. int
  2845. main ()
  2846. {
  2847. ;
  2848. return 0;
  2849. }
  2850. _ACEOF
  2851. rm -f conftest.$ac_objext
  2852. if { (ac_try="$ac_compile"
  2853. case "(($ac_try" in
  2854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2855. *) ac_try_echo=$ac_try;;
  2856. esac
  2857. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2858. (eval "$ac_compile") 2>conftest.er1
  2859. ac_status=$?
  2860. grep -v '^ *+' conftest.er1 >conftest.err
  2861. rm -f conftest.er1
  2862. cat conftest.err >&5
  2863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2864. (exit $ac_status); } && {
  2865. test -z "$ac_cxx_werror_flag" ||
  2866. test ! -s conftest.err
  2867. } && test -s conftest.$ac_objext; then
  2868. ac_cv_prog_cxx_g=yes
  2869. else
  2870. echo "$as_me: failed program was:" >&5
  2871. sed 's/^/| /' conftest.$ac_ext >&5
  2872. CXXFLAGS=""
  2873. cat >conftest.$ac_ext <<_ACEOF
  2874. /* confdefs.h. */
  2875. _ACEOF
  2876. cat confdefs.h >>conftest.$ac_ext
  2877. cat >>conftest.$ac_ext <<_ACEOF
  2878. /* end confdefs.h. */
  2879. int
  2880. main ()
  2881. {
  2882. ;
  2883. return 0;
  2884. }
  2885. _ACEOF
  2886. rm -f conftest.$ac_objext
  2887. if { (ac_try="$ac_compile"
  2888. case "(($ac_try" in
  2889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2890. *) ac_try_echo=$ac_try;;
  2891. esac
  2892. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2893. (eval "$ac_compile") 2>conftest.er1
  2894. ac_status=$?
  2895. grep -v '^ *+' conftest.er1 >conftest.err
  2896. rm -f conftest.er1
  2897. cat conftest.err >&5
  2898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2899. (exit $ac_status); } && {
  2900. test -z "$ac_cxx_werror_flag" ||
  2901. test ! -s conftest.err
  2902. } && test -s conftest.$ac_objext; then
  2903. :
  2904. else
  2905. echo "$as_me: failed program was:" >&5
  2906. sed 's/^/| /' conftest.$ac_ext >&5
  2907. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2908. CXXFLAGS="-g"
  2909. cat >conftest.$ac_ext <<_ACEOF
  2910. /* confdefs.h. */
  2911. _ACEOF
  2912. cat confdefs.h >>conftest.$ac_ext
  2913. cat >>conftest.$ac_ext <<_ACEOF
  2914. /* end confdefs.h. */
  2915. int
  2916. main ()
  2917. {
  2918. ;
  2919. return 0;
  2920. }
  2921. _ACEOF
  2922. rm -f conftest.$ac_objext
  2923. if { (ac_try="$ac_compile"
  2924. case "(($ac_try" in
  2925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2926. *) ac_try_echo=$ac_try;;
  2927. esac
  2928. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2929. (eval "$ac_compile") 2>conftest.er1
  2930. ac_status=$?
  2931. grep -v '^ *+' conftest.er1 >conftest.err
  2932. rm -f conftest.er1
  2933. cat conftest.err >&5
  2934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2935. (exit $ac_status); } && {
  2936. test -z "$ac_cxx_werror_flag" ||
  2937. test ! -s conftest.err
  2938. } && test -s conftest.$ac_objext; then
  2939. ac_cv_prog_cxx_g=yes
  2940. else
  2941. echo "$as_me: failed program was:" >&5
  2942. sed 's/^/| /' conftest.$ac_ext >&5
  2943. fi
  2944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2945. fi
  2946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2947. fi
  2948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2949. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2950. fi
  2951. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2952. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2953. if test "$ac_test_CXXFLAGS" = set; then
  2954. CXXFLAGS=$ac_save_CXXFLAGS
  2955. elif test $ac_cv_prog_cxx_g = yes; then
  2956. if test "$GXX" = yes; then
  2957. CXXFLAGS="-g -O2"
  2958. else
  2959. CXXFLAGS="-g"
  2960. fi
  2961. else
  2962. if test "$GXX" = yes; then
  2963. CXXFLAGS="-O2"
  2964. else
  2965. CXXFLAGS=
  2966. fi
  2967. fi
  2968. ac_ext=c
  2969. ac_cpp='$CPP $CPPFLAGS'
  2970. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2971. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2972. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2973. DEPDIR="${am__leading_dot}deps"
  2974. ac_config_commands="$ac_config_commands depfiles"
  2975. am_make=${MAKE-make}
  2976. cat > confinc << 'END'
  2977. am__doit:
  2978. @echo done
  2979. .PHONY: am__doit
  2980. END
  2981. # If we don't find an include directive, just comment out the code.
  2982. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2983. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2984. am__include="#"
  2985. am__quote=
  2986. _am_result=none
  2987. # First try GNU make style include.
  2988. echo "include confinc" > confmf
  2989. # We grep out `Entering directory' and `Leaving directory'
  2990. # messages which can occur if `w' ends up in MAKEFLAGS.
  2991. # In particular we don't look at `^make:' because GNU make might
  2992. # be invoked under some other name (usually "gmake"), in which
  2993. # case it prints its new name instead of `make'.
  2994. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2995. am__include=include
  2996. am__quote=
  2997. _am_result=GNU
  2998. fi
  2999. # Now try BSD make style include.
  3000. if test "$am__include" = "#"; then
  3001. echo '.include "confinc"' > confmf
  3002. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3003. am__include=.include
  3004. am__quote="\""
  3005. _am_result=BSD
  3006. fi
  3007. fi
  3008. { echo "$as_me:$LINENO: result: $_am_result" >&5
  3009. echo "${ECHO_T}$_am_result" >&6; }
  3010. rm -f confinc confmf
  3011. # Check whether --enable-dependency-tracking was given.
  3012. if test "${enable_dependency_tracking+set}" = set; then
  3013. enableval=$enable_dependency_tracking;
  3014. fi
  3015. if test "x$enable_dependency_tracking" != xno; then
  3016. am_depcomp="$ac_aux_dir/depcomp"
  3017. AMDEPBACKSLASH='\'
  3018. fi
  3019. if test "x$enable_dependency_tracking" != xno; then
  3020. AMDEP_TRUE=
  3021. AMDEP_FALSE='#'
  3022. else
  3023. AMDEP_TRUE='#'
  3024. AMDEP_FALSE=
  3025. fi
  3026. depcc="$CXX" am_compiler_list=
  3027. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3028. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3029. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3030. echo $ECHO_N "(cached) $ECHO_C" >&6
  3031. else
  3032. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3033. # We make a subdir and do the tests there. Otherwise we can end up
  3034. # making bogus files that we don't know about and never remove. For
  3035. # instance it was reported that on HP-UX the gcc test will end up
  3036. # making a dummy file named `D' -- because `-MD' means `put the output
  3037. # in D'.
  3038. mkdir conftest.dir
  3039. # Copy depcomp to subdir because otherwise we won't find it if we're
  3040. # using a relative directory.
  3041. cp "$am_depcomp" conftest.dir
  3042. cd conftest.dir
  3043. # We will build objects and dependencies in a subdirectory because
  3044. # it helps to detect inapplicable dependency modes. For instance
  3045. # both Tru64's cc and ICC support -MD to output dependencies as a
  3046. # side effect of compilation, but ICC will put the dependencies in
  3047. # the current directory while Tru64 will put them in the object
  3048. # directory.
  3049. mkdir sub
  3050. am_cv_CXX_dependencies_compiler_type=none
  3051. if test "$am_compiler_list" = ""; then
  3052. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3053. fi
  3054. for depmode in $am_compiler_list; do
  3055. # Setup a source with many dependencies, because some compilers
  3056. # like to wrap large dependency lists on column 80 (with \), and
  3057. # we should not choose a depcomp mode which is confused by this.
  3058. #
  3059. # We need to recreate these files for each test, as the compiler may
  3060. # overwrite some of them when testing with obscure command lines.
  3061. # This happens at least with the AIX C compiler.
  3062. : > sub/conftest.c
  3063. for i in 1 2 3 4 5 6; do
  3064. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3065. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3066. # Solaris 8's {/usr,}/bin/sh.
  3067. touch sub/conftst$i.h
  3068. done
  3069. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3070. case $depmode in
  3071. nosideeffect)
  3072. # after this tag, mechanisms are not by side-effect, so they'll
  3073. # only be used when explicitly requested
  3074. if test "x$enable_dependency_tracking" = xyes; then
  3075. continue
  3076. else
  3077. break
  3078. fi
  3079. ;;
  3080. none) break ;;
  3081. esac
  3082. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3083. # mode. It turns out that the SunPro C++ compiler does not properly
  3084. # handle `-M -o', and we need to detect this.
  3085. if depmode=$depmode \
  3086. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3087. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3088. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3089. >/dev/null 2>conftest.err &&
  3090. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3091. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3092. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3093. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3094. # icc doesn't choke on unknown options, it will just issue warnings
  3095. # or remarks (even with -Werror). So we grep stderr for any message
  3096. # that says an option was ignored or not supported.
  3097. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3098. # icc: Command line warning: ignoring option '-M'; no argument required
  3099. # The diagnosis changed in icc 8.0:
  3100. # icc: Command line remark: option '-MP' not supported
  3101. if (grep 'ignoring option' conftest.err ||
  3102. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3103. am_cv_CXX_dependencies_compiler_type=$depmode
  3104. break
  3105. fi
  3106. fi
  3107. done
  3108. cd ..
  3109. rm -rf conftest.dir
  3110. else
  3111. am_cv_CXX_dependencies_compiler_type=none
  3112. fi
  3113. fi
  3114. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3115. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3116. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3117. if
  3118. test "x$enable_dependency_tracking" != xno \
  3119. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3120. am__fastdepCXX_TRUE=
  3121. am__fastdepCXX_FALSE='#'
  3122. else
  3123. am__fastdepCXX_TRUE='#'
  3124. am__fastdepCXX_FALSE=
  3125. fi
  3126. ac_ext=c
  3127. ac_cpp='$CPP $CPPFLAGS'
  3128. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3129. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3130. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3131. if test -n "$ac_tool_prefix"; then
  3132. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3133. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3134. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3135. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3136. if test "${ac_cv_prog_CC+set}" = set; then
  3137. echo $ECHO_N "(cached) $ECHO_C" >&6
  3138. else
  3139. if test -n "$CC"; then
  3140. ac_cv_prog_CC="$CC" # Let the user override the test.
  3141. else
  3142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3143. for as_dir in $PATH
  3144. do
  3145. IFS=$as_save_IFS
  3146. test -z "$as_dir" && as_dir=.
  3147. for ac_exec_ext in '' $ac_executable_extensions; do
  3148. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3149. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3150. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3151. break 2
  3152. fi
  3153. done
  3154. done
  3155. IFS=$as_save_IFS
  3156. fi
  3157. fi
  3158. CC=$ac_cv_prog_CC
  3159. if test -n "$CC"; then
  3160. { echo "$as_me:$LINENO: result: $CC" >&5
  3161. echo "${ECHO_T}$CC" >&6; }
  3162. else
  3163. { echo "$as_me:$LINENO: result: no" >&5
  3164. echo "${ECHO_T}no" >&6; }
  3165. fi
  3166. fi
  3167. if test -z "$ac_cv_prog_CC"; then
  3168. ac_ct_CC=$CC
  3169. # Extract the first word of "gcc", so it can be a program name with args.
  3170. set dummy gcc; ac_word=$2
  3171. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3172. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3173. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3174. echo $ECHO_N "(cached) $ECHO_C" >&6
  3175. else
  3176. if test -n "$ac_ct_CC"; then
  3177. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3178. else
  3179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3180. for as_dir in $PATH
  3181. do
  3182. IFS=$as_save_IFS
  3183. test -z "$as_dir" && as_dir=.
  3184. for ac_exec_ext in '' $ac_executable_extensions; do
  3185. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3186. ac_cv_prog_ac_ct_CC="gcc"
  3187. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3188. break 2
  3189. fi
  3190. done
  3191. done
  3192. IFS=$as_save_IFS
  3193. fi
  3194. fi
  3195. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3196. if test -n "$ac_ct_CC"; then
  3197. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3198. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3199. else
  3200. { echo "$as_me:$LINENO: result: no" >&5
  3201. echo "${ECHO_T}no" >&6; }
  3202. fi
  3203. if test "x$ac_ct_CC" = x; then
  3204. CC=""
  3205. else
  3206. case $cross_compiling:$ac_tool_warned in
  3207. yes:)
  3208. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3209. whose name does not start with the host triplet. If you think this
  3210. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3211. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3212. whose name does not start with the host triplet. If you think this
  3213. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3214. ac_tool_warned=yes ;;
  3215. esac
  3216. CC=$ac_ct_CC
  3217. fi
  3218. else
  3219. CC="$ac_cv_prog_CC"
  3220. fi
  3221. if test -z "$CC"; then
  3222. if test -n "$ac_tool_prefix"; then
  3223. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3224. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3225. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3226. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3227. if test "${ac_cv_prog_CC+set}" = set; then
  3228. echo $ECHO_N "(cached) $ECHO_C" >&6
  3229. else
  3230. if test -n "$CC"; then
  3231. ac_cv_prog_CC="$CC" # Let the user override the test.
  3232. else
  3233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3234. for as_dir in $PATH
  3235. do
  3236. IFS=$as_save_IFS
  3237. test -z "$as_dir" && as_dir=.
  3238. for ac_exec_ext in '' $ac_executable_extensions; do
  3239. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3240. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3241. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3242. break 2
  3243. fi
  3244. done
  3245. done
  3246. IFS=$as_save_IFS
  3247. fi
  3248. fi
  3249. CC=$ac_cv_prog_CC
  3250. if test -n "$CC"; then
  3251. { echo "$as_me:$LINENO: result: $CC" >&5
  3252. echo "${ECHO_T}$CC" >&6; }
  3253. else
  3254. { echo "$as_me:$LINENO: result: no" >&5
  3255. echo "${ECHO_T}no" >&6; }
  3256. fi
  3257. fi
  3258. fi
  3259. if test -z "$CC"; then
  3260. # Extract the first word of "cc", so it can be a program name with args.
  3261. set dummy cc; ac_word=$2
  3262. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3263. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3264. if test "${ac_cv_prog_CC+set}" = set; then
  3265. echo $ECHO_N "(cached) $ECHO_C" >&6
  3266. else
  3267. if test -n "$CC"; then
  3268. ac_cv_prog_CC="$CC" # Let the user override the test.
  3269. else
  3270. ac_prog_rejected=no
  3271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3272. for as_dir in $PATH
  3273. do
  3274. IFS=$as_save_IFS
  3275. test -z "$as_dir" && as_dir=.
  3276. for ac_exec_ext in '' $ac_executable_extensions; do
  3277. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3278. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3279. ac_prog_rejected=yes
  3280. continue
  3281. fi
  3282. ac_cv_prog_CC="cc"
  3283. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3284. break 2
  3285. fi
  3286. done
  3287. done
  3288. IFS=$as_save_IFS
  3289. if test $ac_prog_rejected = yes; then
  3290. # We found a bogon in the path, so make sure we never use it.
  3291. set dummy $ac_cv_prog_CC
  3292. shift
  3293. if test $# != 0; then
  3294. # We chose a different compiler from the bogus one.
  3295. # However, it has the same basename, so the bogon will be chosen
  3296. # first if we set CC to just the basename; use the full file name.
  3297. shift
  3298. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3299. fi
  3300. fi
  3301. fi
  3302. fi
  3303. CC=$ac_cv_prog_CC
  3304. if test -n "$CC"; then
  3305. { echo "$as_me:$LINENO: result: $CC" >&5
  3306. echo "${ECHO_T}$CC" >&6; }
  3307. else
  3308. { echo "$as_me:$LINENO: result: no" >&5
  3309. echo "${ECHO_T}no" >&6; }
  3310. fi
  3311. fi
  3312. if test -z "$CC"; then
  3313. if test -n "$ac_tool_prefix"; then
  3314. for ac_prog in cl.exe
  3315. do
  3316. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3317. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3318. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3319. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3320. if test "${ac_cv_prog_CC+set}" = set; then
  3321. echo $ECHO_N "(cached) $ECHO_C" >&6
  3322. else
  3323. if test -n "$CC"; then
  3324. ac_cv_prog_CC="$CC" # Let the user override the test.
  3325. else
  3326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3327. for as_dir in $PATH
  3328. do
  3329. IFS=$as_save_IFS
  3330. test -z "$as_dir" && as_dir=.
  3331. for ac_exec_ext in '' $ac_executable_extensions; do
  3332. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3333. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3334. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3335. break 2
  3336. fi
  3337. done
  3338. done
  3339. IFS=$as_save_IFS
  3340. fi
  3341. fi
  3342. CC=$ac_cv_prog_CC
  3343. if test -n "$CC"; then
  3344. { echo "$as_me:$LINENO: result: $CC" >&5
  3345. echo "${ECHO_T}$CC" >&6; }
  3346. else
  3347. { echo "$as_me:$LINENO: result: no" >&5
  3348. echo "${ECHO_T}no" >&6; }
  3349. fi
  3350. test -n "$CC" && break
  3351. done
  3352. fi
  3353. if test -z "$CC"; then
  3354. ac_ct_CC=$CC
  3355. for ac_prog in cl.exe
  3356. do
  3357. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3358. set dummy $ac_prog; ac_word=$2
  3359. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3360. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3361. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3362. echo $ECHO_N "(cached) $ECHO_C" >&6
  3363. else
  3364. if test -n "$ac_ct_CC"; then
  3365. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3366. else
  3367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3368. for as_dir in $PATH
  3369. do
  3370. IFS=$as_save_IFS
  3371. test -z "$as_dir" && as_dir=.
  3372. for ac_exec_ext in '' $ac_executable_extensions; do
  3373. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3374. ac_cv_prog_ac_ct_CC="$ac_prog"
  3375. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3376. break 2
  3377. fi
  3378. done
  3379. done
  3380. IFS=$as_save_IFS
  3381. fi
  3382. fi
  3383. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3384. if test -n "$ac_ct_CC"; then
  3385. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3386. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3387. else
  3388. { echo "$as_me:$LINENO: result: no" >&5
  3389. echo "${ECHO_T}no" >&6; }
  3390. fi
  3391. test -n "$ac_ct_CC" && break
  3392. done
  3393. if test "x$ac_ct_CC" = x; then
  3394. CC=""
  3395. else
  3396. case $cross_compiling:$ac_tool_warned in
  3397. yes:)
  3398. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3399. whose name does not start with the host triplet. If you think this
  3400. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3401. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3402. whose name does not start with the host triplet. If you think this
  3403. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3404. ac_tool_warned=yes ;;
  3405. esac
  3406. CC=$ac_ct_CC
  3407. fi
  3408. fi
  3409. fi
  3410. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3411. See \`config.log' for more details." >&5
  3412. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3413. See \`config.log' for more details." >&2;}
  3414. { (exit 1); exit 1; }; }
  3415. # Provide some information about the compiler.
  3416. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3417. ac_compiler=`set X $ac_compile; echo $2`
  3418. { (ac_try="$ac_compiler --version >&5"
  3419. case "(($ac_try" in
  3420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3421. *) ac_try_echo=$ac_try;;
  3422. esac
  3423. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3424. (eval "$ac_compiler --version >&5") 2>&5
  3425. ac_status=$?
  3426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3427. (exit $ac_status); }
  3428. { (ac_try="$ac_compiler -v >&5"
  3429. case "(($ac_try" in
  3430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3431. *) ac_try_echo=$ac_try;;
  3432. esac
  3433. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3434. (eval "$ac_compiler -v >&5") 2>&5
  3435. ac_status=$?
  3436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3437. (exit $ac_status); }
  3438. { (ac_try="$ac_compiler -V >&5"
  3439. case "(($ac_try" in
  3440. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3441. *) ac_try_echo=$ac_try;;
  3442. esac
  3443. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3444. (eval "$ac_compiler -V >&5") 2>&5
  3445. ac_status=$?
  3446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3447. (exit $ac_status); }
  3448. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3449. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3450. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3451. echo $ECHO_N "(cached) $ECHO_C" >&6
  3452. else
  3453. cat >conftest.$ac_ext <<_ACEOF
  3454. /* confdefs.h. */
  3455. _ACEOF
  3456. cat confdefs.h >>conftest.$ac_ext
  3457. cat >>conftest.$ac_ext <<_ACEOF
  3458. /* end confdefs.h. */
  3459. int
  3460. main ()
  3461. {
  3462. #ifndef __GNUC__
  3463. choke me
  3464. #endif
  3465. ;
  3466. return 0;
  3467. }
  3468. _ACEOF
  3469. rm -f conftest.$ac_objext
  3470. if { (ac_try="$ac_compile"
  3471. case "(($ac_try" in
  3472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3473. *) ac_try_echo=$ac_try;;
  3474. esac
  3475. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3476. (eval "$ac_compile") 2>conftest.er1
  3477. ac_status=$?
  3478. grep -v '^ *+' conftest.er1 >conftest.err
  3479. rm -f conftest.er1
  3480. cat conftest.err >&5
  3481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3482. (exit $ac_status); } && {
  3483. test -z "$ac_c_werror_flag" ||
  3484. test ! -s conftest.err
  3485. } && test -s conftest.$ac_objext; then
  3486. ac_compiler_gnu=yes
  3487. else
  3488. echo "$as_me: failed program was:" >&5
  3489. sed 's/^/| /' conftest.$ac_ext >&5
  3490. ac_compiler_gnu=no
  3491. fi
  3492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3493. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3494. fi
  3495. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3496. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3497. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3498. ac_test_CFLAGS=${CFLAGS+set}
  3499. ac_save_CFLAGS=$CFLAGS
  3500. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3501. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3502. if test "${ac_cv_prog_cc_g+set}" = set; then
  3503. echo $ECHO_N "(cached) $ECHO_C" >&6
  3504. else
  3505. ac_save_c_werror_flag=$ac_c_werror_flag
  3506. ac_c_werror_flag=yes
  3507. ac_cv_prog_cc_g=no
  3508. CFLAGS="-g"
  3509. cat >conftest.$ac_ext <<_ACEOF
  3510. /* confdefs.h. */
  3511. _ACEOF
  3512. cat confdefs.h >>conftest.$ac_ext
  3513. cat >>conftest.$ac_ext <<_ACEOF
  3514. /* end confdefs.h. */
  3515. int
  3516. main ()
  3517. {
  3518. ;
  3519. return 0;
  3520. }
  3521. _ACEOF
  3522. rm -f conftest.$ac_objext
  3523. if { (ac_try="$ac_compile"
  3524. case "(($ac_try" in
  3525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3526. *) ac_try_echo=$ac_try;;
  3527. esac
  3528. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3529. (eval "$ac_compile") 2>conftest.er1
  3530. ac_status=$?
  3531. grep -v '^ *+' conftest.er1 >conftest.err
  3532. rm -f conftest.er1
  3533. cat conftest.err >&5
  3534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3535. (exit $ac_status); } && {
  3536. test -z "$ac_c_werror_flag" ||
  3537. test ! -s conftest.err
  3538. } && test -s conftest.$ac_objext; then
  3539. ac_cv_prog_cc_g=yes
  3540. else
  3541. echo "$as_me: failed program was:" >&5
  3542. sed 's/^/| /' conftest.$ac_ext >&5
  3543. CFLAGS=""
  3544. cat >conftest.$ac_ext <<_ACEOF
  3545. /* confdefs.h. */
  3546. _ACEOF
  3547. cat confdefs.h >>conftest.$ac_ext
  3548. cat >>conftest.$ac_ext <<_ACEOF
  3549. /* end confdefs.h. */
  3550. int
  3551. main ()
  3552. {
  3553. ;
  3554. return 0;
  3555. }
  3556. _ACEOF
  3557. rm -f conftest.$ac_objext
  3558. if { (ac_try="$ac_compile"
  3559. case "(($ac_try" in
  3560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3561. *) ac_try_echo=$ac_try;;
  3562. esac
  3563. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3564. (eval "$ac_compile") 2>conftest.er1
  3565. ac_status=$?
  3566. grep -v '^ *+' conftest.er1 >conftest.err
  3567. rm -f conftest.er1
  3568. cat conftest.err >&5
  3569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3570. (exit $ac_status); } && {
  3571. test -z "$ac_c_werror_flag" ||
  3572. test ! -s conftest.err
  3573. } && test -s conftest.$ac_objext; then
  3574. :
  3575. else
  3576. echo "$as_me: failed program was:" >&5
  3577. sed 's/^/| /' conftest.$ac_ext >&5
  3578. ac_c_werror_flag=$ac_save_c_werror_flag
  3579. CFLAGS="-g"
  3580. cat >conftest.$ac_ext <<_ACEOF
  3581. /* confdefs.h. */
  3582. _ACEOF
  3583. cat confdefs.h >>conftest.$ac_ext
  3584. cat >>conftest.$ac_ext <<_ACEOF
  3585. /* end confdefs.h. */
  3586. int
  3587. main ()
  3588. {
  3589. ;
  3590. return 0;
  3591. }
  3592. _ACEOF
  3593. rm -f conftest.$ac_objext
  3594. if { (ac_try="$ac_compile"
  3595. case "(($ac_try" in
  3596. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3597. *) ac_try_echo=$ac_try;;
  3598. esac
  3599. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3600. (eval "$ac_compile") 2>conftest.er1
  3601. ac_status=$?
  3602. grep -v '^ *+' conftest.er1 >conftest.err
  3603. rm -f conftest.er1
  3604. cat conftest.err >&5
  3605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3606. (exit $ac_status); } && {
  3607. test -z "$ac_c_werror_flag" ||
  3608. test ! -s conftest.err
  3609. } && test -s conftest.$ac_objext; then
  3610. ac_cv_prog_cc_g=yes
  3611. else
  3612. echo "$as_me: failed program was:" >&5
  3613. sed 's/^/| /' conftest.$ac_ext >&5
  3614. fi
  3615. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3616. fi
  3617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3618. fi
  3619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3620. ac_c_werror_flag=$ac_save_c_werror_flag
  3621. fi
  3622. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3623. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3624. if test "$ac_test_CFLAGS" = set; then
  3625. CFLAGS=$ac_save_CFLAGS
  3626. elif test $ac_cv_prog_cc_g = yes; then
  3627. if test "$GCC" = yes; then
  3628. CFLAGS="-g -O2"
  3629. else
  3630. CFLAGS="-g"
  3631. fi
  3632. else
  3633. if test "$GCC" = yes; then
  3634. CFLAGS="-O2"
  3635. else
  3636. CFLAGS=
  3637. fi
  3638. fi
  3639. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3640. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3641. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3642. echo $ECHO_N "(cached) $ECHO_C" >&6
  3643. else
  3644. ac_cv_prog_cc_c89=no
  3645. ac_save_CC=$CC
  3646. cat >conftest.$ac_ext <<_ACEOF
  3647. /* confdefs.h. */
  3648. _ACEOF
  3649. cat confdefs.h >>conftest.$ac_ext
  3650. cat >>conftest.$ac_ext <<_ACEOF
  3651. /* end confdefs.h. */
  3652. #include <stdarg.h>
  3653. #include <stdio.h>
  3654. #include <sys/types.h>
  3655. #include <sys/stat.h>
  3656. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3657. struct buf { int x; };
  3658. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3659. static char *e (p, i)
  3660. char **p;
  3661. int i;
  3662. {
  3663. return p[i];
  3664. }
  3665. static char *f (char * (*g) (char **, int), char **p, ...)
  3666. {
  3667. char *s;
  3668. va_list v;
  3669. va_start (v,p);
  3670. s = g (p, va_arg (v,int));
  3671. va_end (v);
  3672. return s;
  3673. }
  3674. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3675. function prototypes and stuff, but not '\xHH' hex character constants.
  3676. These don't provoke an error unfortunately, instead are silently treated
  3677. as 'x'. The following induces an error, until -std is added to get
  3678. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3679. array size at least. It's necessary to write '\x00'==0 to get something
  3680. that's true only with -std. */
  3681. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3682. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3683. inside strings and character constants. */
  3684. #define FOO(x) 'x'
  3685. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3686. int test (int i, double x);
  3687. struct s1 {int (*f) (int a);};
  3688. struct s2 {int (*f) (double a);};
  3689. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3690. int argc;
  3691. char **argv;
  3692. int
  3693. main ()
  3694. {
  3695. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3696. ;
  3697. return 0;
  3698. }
  3699. _ACEOF
  3700. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3701. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3702. do
  3703. CC="$ac_save_CC $ac_arg"
  3704. rm -f conftest.$ac_objext
  3705. if { (ac_try="$ac_compile"
  3706. case "(($ac_try" in
  3707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3708. *) ac_try_echo=$ac_try;;
  3709. esac
  3710. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3711. (eval "$ac_compile") 2>conftest.er1
  3712. ac_status=$?
  3713. grep -v '^ *+' conftest.er1 >conftest.err
  3714. rm -f conftest.er1
  3715. cat conftest.err >&5
  3716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3717. (exit $ac_status); } && {
  3718. test -z "$ac_c_werror_flag" ||
  3719. test ! -s conftest.err
  3720. } && test -s conftest.$ac_objext; then
  3721. ac_cv_prog_cc_c89=$ac_arg
  3722. else
  3723. echo "$as_me: failed program was:" >&5
  3724. sed 's/^/| /' conftest.$ac_ext >&5
  3725. fi
  3726. rm -f core conftest.err conftest.$ac_objext
  3727. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3728. done
  3729. rm -f conftest.$ac_ext
  3730. CC=$ac_save_CC
  3731. fi
  3732. # AC_CACHE_VAL
  3733. case "x$ac_cv_prog_cc_c89" in
  3734. x)
  3735. { echo "$as_me:$LINENO: result: none needed" >&5
  3736. echo "${ECHO_T}none needed" >&6; } ;;
  3737. xno)
  3738. { echo "$as_me:$LINENO: result: unsupported" >&5
  3739. echo "${ECHO_T}unsupported" >&6; } ;;
  3740. *)
  3741. CC="$CC $ac_cv_prog_cc_c89"
  3742. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3743. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3744. esac
  3745. ac_ext=c
  3746. ac_cpp='$CPP $CPPFLAGS'
  3747. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3748. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3749. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3750. depcc="$CC" am_compiler_list=
  3751. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3752. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3753. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3754. echo $ECHO_N "(cached) $ECHO_C" >&6
  3755. else
  3756. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3757. # We make a subdir and do the tests there. Otherwise we can end up
  3758. # making bogus files that we don't know about and never remove. For
  3759. # instance it was reported that on HP-UX the gcc test will end up
  3760. # making a dummy file named `D' -- because `-MD' means `put the output
  3761. # in D'.
  3762. mkdir conftest.dir
  3763. # Copy depcomp to subdir because otherwise we won't find it if we're
  3764. # using a relative directory.
  3765. cp "$am_depcomp" conftest.dir
  3766. cd conftest.dir
  3767. # We will build objects and dependencies in a subdirectory because
  3768. # it helps to detect inapplicable dependency modes. For instance
  3769. # both Tru64's cc and ICC support -MD to output dependencies as a
  3770. # side effect of compilation, but ICC will put the dependencies in
  3771. # the current directory while Tru64 will put them in the object
  3772. # directory.
  3773. mkdir sub
  3774. am_cv_CC_dependencies_compiler_type=none
  3775. if test "$am_compiler_list" = ""; then
  3776. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3777. fi
  3778. for depmode in $am_compiler_list; do
  3779. # Setup a source with many dependencies, because some compilers
  3780. # like to wrap large dependency lists on column 80 (with \), and
  3781. # we should not choose a depcomp mode which is confused by this.
  3782. #
  3783. # We need to recreate these files for each test, as the compiler may
  3784. # overwrite some of them when testing with obscure command lines.
  3785. # This happens at least with the AIX C compiler.
  3786. : > sub/conftest.c
  3787. for i in 1 2 3 4 5 6; do
  3788. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3789. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3790. # Solaris 8's {/usr,}/bin/sh.
  3791. touch sub/conftst$i.h
  3792. done
  3793. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3794. case $depmode in
  3795. nosideeffect)
  3796. # after this tag, mechanisms are not by side-effect, so they'll
  3797. # only be used when explicitly requested
  3798. if test "x$enable_dependency_tracking" = xyes; then
  3799. continue
  3800. else
  3801. break
  3802. fi
  3803. ;;
  3804. none) break ;;
  3805. esac
  3806. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3807. # mode. It turns out that the SunPro C++ compiler does not properly
  3808. # handle `-M -o', and we need to detect this.
  3809. if depmode=$depmode \
  3810. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3811. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3812. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3813. >/dev/null 2>conftest.err &&
  3814. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3815. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3816. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3817. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3818. # icc doesn't choke on unknown options, it will just issue warnings
  3819. # or remarks (even with -Werror). So we grep stderr for any message
  3820. # that says an option was ignored or not supported.
  3821. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3822. # icc: Command line warning: ignoring option '-M'; no argument required
  3823. # The diagnosis changed in icc 8.0:
  3824. # icc: Command line remark: option '-MP' not supported
  3825. if (grep 'ignoring option' conftest.err ||
  3826. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3827. am_cv_CC_dependencies_compiler_type=$depmode
  3828. break
  3829. fi
  3830. fi
  3831. done
  3832. cd ..
  3833. rm -rf conftest.dir
  3834. else
  3835. am_cv_CC_dependencies_compiler_type=none
  3836. fi
  3837. fi
  3838. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3839. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3840. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3841. if
  3842. test "x$enable_dependency_tracking" != xno \
  3843. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3844. am__fastdepCC_TRUE=
  3845. am__fastdepCC_FALSE='#'
  3846. else
  3847. am__fastdepCC_TRUE='#'
  3848. am__fastdepCC_FALSE=
  3849. fi
  3850. # Find a good install program. We prefer a C program (faster),
  3851. # so one script is as good as another. But avoid the broken or
  3852. # incompatible versions:
  3853. # SysV /etc/install, /usr/sbin/install
  3854. # SunOS /usr/etc/install
  3855. # IRIX /sbin/install
  3856. # AIX /bin/install
  3857. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3858. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3859. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3860. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3861. # OS/2's system install, which has a completely different semantic
  3862. # ./install, which can be erroneously created by make from ./install.sh.
  3863. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3864. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3865. if test -z "$INSTALL"; then
  3866. if test "${ac_cv_path_install+set}" = set; then
  3867. echo $ECHO_N "(cached) $ECHO_C" >&6
  3868. else
  3869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3870. for as_dir in $PATH
  3871. do
  3872. IFS=$as_save_IFS
  3873. test -z "$as_dir" && as_dir=.
  3874. # Account for people who put trailing slashes in PATH elements.
  3875. case $as_dir/ in
  3876. ./ | .// | /cC/* | \
  3877. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3878. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3879. /usr/ucb/* ) ;;
  3880. *)
  3881. # OSF1 and SCO ODT 3.0 have their own names for install.
  3882. # Don't use installbsd from OSF since it installs stuff as root
  3883. # by default.
  3884. for ac_prog in ginstall scoinst install; do
  3885. for ac_exec_ext in '' $ac_executable_extensions; do
  3886. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3887. if test $ac_prog = install &&
  3888. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3889. # AIX install. It has an incompatible calling convention.
  3890. :
  3891. elif test $ac_prog = install &&
  3892. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3893. # program-specific install script used by HP pwplus--don't use.
  3894. :
  3895. else
  3896. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3897. break 3
  3898. fi
  3899. fi
  3900. done
  3901. done
  3902. ;;
  3903. esac
  3904. done
  3905. IFS=$as_save_IFS
  3906. fi
  3907. if test "${ac_cv_path_install+set}" = set; then
  3908. INSTALL=$ac_cv_path_install
  3909. else
  3910. # As a last resort, use the slow shell script. Don't cache a
  3911. # value for INSTALL within a source directory, because that will
  3912. # break other packages using the cache if that directory is
  3913. # removed, or if the value is a relative name.
  3914. INSTALL=$ac_install_sh
  3915. fi
  3916. fi
  3917. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3918. echo "${ECHO_T}$INSTALL" >&6; }
  3919. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3920. # It thinks the first close brace ends the variable substitution.
  3921. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3922. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3923. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3924. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  3925. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  3926. if test -z "$MKDIR_P"; then
  3927. if test "${ac_cv_path_mkdir+set}" = set; then
  3928. echo $ECHO_N "(cached) $ECHO_C" >&6
  3929. else
  3930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3931. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3932. do
  3933. IFS=$as_save_IFS
  3934. test -z "$as_dir" && as_dir=.
  3935. for ac_prog in mkdir gmkdir; do
  3936. for ac_exec_ext in '' $ac_executable_extensions; do
  3937. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3938. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3939. 'mkdir (GNU coreutils) '* | \
  3940. 'mkdir (coreutils) '* | \
  3941. 'mkdir (fileutils) '4.1*)
  3942. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3943. break 3;;
  3944. esac
  3945. done
  3946. done
  3947. done
  3948. IFS=$as_save_IFS
  3949. fi
  3950. if test "${ac_cv_path_mkdir+set}" = set; then
  3951. MKDIR_P="$ac_cv_path_mkdir -p"
  3952. else
  3953. # As a last resort, use the slow shell script. Don't cache a
  3954. # value for MKDIR_P within a source directory, because that will
  3955. # break other packages using the cache if that directory is
  3956. # removed, or if the value is a relative name.
  3957. test -d ./--version && rmdir ./--version
  3958. MKDIR_P="$ac_install_sh -d"
  3959. fi
  3960. fi
  3961. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  3962. echo "${ECHO_T}$MKDIR_P" >&6; }
  3963. if test -n "$ac_tool_prefix"; then
  3964. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3965. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3966. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3967. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3968. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3969. echo $ECHO_N "(cached) $ECHO_C" >&6
  3970. else
  3971. if test -n "$RANLIB"; then
  3972. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3973. else
  3974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3975. for as_dir in $PATH
  3976. do
  3977. IFS=$as_save_IFS
  3978. test -z "$as_dir" && as_dir=.
  3979. for ac_exec_ext in '' $ac_executable_extensions; do
  3980. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3981. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3982. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3983. break 2
  3984. fi
  3985. done
  3986. done
  3987. IFS=$as_save_IFS
  3988. fi
  3989. fi
  3990. RANLIB=$ac_cv_prog_RANLIB
  3991. if test -n "$RANLIB"; then
  3992. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  3993. echo "${ECHO_T}$RANLIB" >&6; }
  3994. else
  3995. { echo "$as_me:$LINENO: result: no" >&5
  3996. echo "${ECHO_T}no" >&6; }
  3997. fi
  3998. fi
  3999. if test -z "$ac_cv_prog_RANLIB"; then
  4000. ac_ct_RANLIB=$RANLIB
  4001. # Extract the first word of "ranlib", so it can be a program name with args.
  4002. set dummy ranlib; ac_word=$2
  4003. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4004. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4005. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4006. echo $ECHO_N "(cached) $ECHO_C" >&6
  4007. else
  4008. if test -n "$ac_ct_RANLIB"; then
  4009. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4010. else
  4011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4012. for as_dir in $PATH
  4013. do
  4014. IFS=$as_save_IFS
  4015. test -z "$as_dir" && as_dir=.
  4016. for ac_exec_ext in '' $ac_executable_extensions; do
  4017. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4018. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4019. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4020. break 2
  4021. fi
  4022. done
  4023. done
  4024. IFS=$as_save_IFS
  4025. fi
  4026. fi
  4027. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4028. if test -n "$ac_ct_RANLIB"; then
  4029. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4030. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  4031. else
  4032. { echo "$as_me:$LINENO: result: no" >&5
  4033. echo "${ECHO_T}no" >&6; }
  4034. fi
  4035. if test "x$ac_ct_RANLIB" = x; then
  4036. RANLIB=":"
  4037. else
  4038. case $cross_compiling:$ac_tool_warned in
  4039. yes:)
  4040. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4041. whose name does not start with the host triplet. If you think this
  4042. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4043. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4044. whose name does not start with the host triplet. If you think this
  4045. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4046. ac_tool_warned=yes ;;
  4047. esac
  4048. RANLIB=$ac_ct_RANLIB
  4049. fi
  4050. else
  4051. RANLIB="$ac_cv_prog_RANLIB"
  4052. fi
  4053. for ac_prog in 'bison -y' byacc
  4054. do
  4055. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4056. set dummy $ac_prog; ac_word=$2
  4057. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4058. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4059. if test "${ac_cv_prog_YACC+set}" = set; then
  4060. echo $ECHO_N "(cached) $ECHO_C" >&6
  4061. else
  4062. if test -n "$YACC"; then
  4063. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4064. else
  4065. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4066. for as_dir in $PATH
  4067. do
  4068. IFS=$as_save_IFS
  4069. test -z "$as_dir" && as_dir=.
  4070. for ac_exec_ext in '' $ac_executable_extensions; do
  4071. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4072. ac_cv_prog_YACC="$ac_prog"
  4073. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4074. break 2
  4075. fi
  4076. done
  4077. done
  4078. IFS=$as_save_IFS
  4079. fi
  4080. fi
  4081. YACC=$ac_cv_prog_YACC
  4082. if test -n "$YACC"; then
  4083. { echo "$as_me:$LINENO: result: $YACC" >&5
  4084. echo "${ECHO_T}$YACC" >&6; }
  4085. else
  4086. { echo "$as_me:$LINENO: result: no" >&5
  4087. echo "${ECHO_T}no" >&6; }
  4088. fi
  4089. test -n "$YACC" && break
  4090. done
  4091. test -n "$YACC" || YACC="yacc"
  4092. # Setting language choice
  4093. ac_ext=cpp
  4094. ac_cpp='$CXXCPP $CPPFLAGS'
  4095. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4096. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4097. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4098. # Check for GNU library
  4099. cat >>confdefs.h <<\_ACEOF
  4100. #define _GNU_SOURCE 1
  4101. _ACEOF
  4102. # Enable system extensions
  4103. ac_ext=cpp
  4104. ac_cpp='$CXXCPP $CPPFLAGS'
  4105. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4106. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4107. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4108. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4109. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  4110. if test -z "$CXXCPP"; then
  4111. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4112. echo $ECHO_N "(cached) $ECHO_C" >&6
  4113. else
  4114. # Double quotes because CXXCPP needs to be expanded
  4115. for CXXCPP in "$CXX -E" "/lib/cpp"
  4116. do
  4117. ac_preproc_ok=false
  4118. for ac_cxx_preproc_warn_flag in '' yes
  4119. do
  4120. # Use a header file that comes with gcc, so configuring glibc
  4121. # with a fresh cross-compiler works.
  4122. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4123. # <limits.h> exists even on freestanding compilers.
  4124. # On the NeXT, cc -E runs the code through the compiler's parser,
  4125. # not just through cpp. "Syntax error" is here to catch this case.
  4126. cat >conftest.$ac_ext <<_ACEOF
  4127. /* confdefs.h. */
  4128. _ACEOF
  4129. cat confdefs.h >>conftest.$ac_ext
  4130. cat >>conftest.$ac_ext <<_ACEOF
  4131. /* end confdefs.h. */
  4132. #ifdef __STDC__
  4133. # include <limits.h>
  4134. #else
  4135. # include <assert.h>
  4136. #endif
  4137. Syntax error
  4138. _ACEOF
  4139. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4140. case "(($ac_try" in
  4141. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4142. *) ac_try_echo=$ac_try;;
  4143. esac
  4144. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4145. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4146. ac_status=$?
  4147. grep -v '^ *+' conftest.er1 >conftest.err
  4148. rm -f conftest.er1
  4149. cat conftest.err >&5
  4150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4151. (exit $ac_status); } >/dev/null && {
  4152. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4153. test ! -s conftest.err
  4154. }; then
  4155. :
  4156. else
  4157. echo "$as_me: failed program was:" >&5
  4158. sed 's/^/| /' conftest.$ac_ext >&5
  4159. # Broken: fails on valid input.
  4160. continue
  4161. fi
  4162. rm -f conftest.err conftest.$ac_ext
  4163. # OK, works on sane cases. Now check whether nonexistent headers
  4164. # can be detected and how.
  4165. cat >conftest.$ac_ext <<_ACEOF
  4166. /* confdefs.h. */
  4167. _ACEOF
  4168. cat confdefs.h >>conftest.$ac_ext
  4169. cat >>conftest.$ac_ext <<_ACEOF
  4170. /* end confdefs.h. */
  4171. #include <ac_nonexistent.h>
  4172. _ACEOF
  4173. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4174. case "(($ac_try" in
  4175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4176. *) ac_try_echo=$ac_try;;
  4177. esac
  4178. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4179. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4180. ac_status=$?
  4181. grep -v '^ *+' conftest.er1 >conftest.err
  4182. rm -f conftest.er1
  4183. cat conftest.err >&5
  4184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4185. (exit $ac_status); } >/dev/null && {
  4186. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4187. test ! -s conftest.err
  4188. }; then
  4189. # Broken: success on invalid input.
  4190. continue
  4191. else
  4192. echo "$as_me: failed program was:" >&5
  4193. sed 's/^/| /' conftest.$ac_ext >&5
  4194. # Passes both tests.
  4195. ac_preproc_ok=:
  4196. break
  4197. fi
  4198. rm -f conftest.err conftest.$ac_ext
  4199. done
  4200. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4201. rm -f conftest.err conftest.$ac_ext
  4202. if $ac_preproc_ok; then
  4203. break
  4204. fi
  4205. done
  4206. ac_cv_prog_CXXCPP=$CXXCPP
  4207. fi
  4208. CXXCPP=$ac_cv_prog_CXXCPP
  4209. else
  4210. ac_cv_prog_CXXCPP=$CXXCPP
  4211. fi
  4212. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4213. echo "${ECHO_T}$CXXCPP" >&6; }
  4214. ac_preproc_ok=false
  4215. for ac_cxx_preproc_warn_flag in '' yes
  4216. do
  4217. # Use a header file that comes with gcc, so configuring glibc
  4218. # with a fresh cross-compiler works.
  4219. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4220. # <limits.h> exists even on freestanding compilers.
  4221. # On the NeXT, cc -E runs the code through the compiler's parser,
  4222. # not just through cpp. "Syntax error" is here to catch this case.
  4223. cat >conftest.$ac_ext <<_ACEOF
  4224. /* confdefs.h. */
  4225. _ACEOF
  4226. cat confdefs.h >>conftest.$ac_ext
  4227. cat >>conftest.$ac_ext <<_ACEOF
  4228. /* end confdefs.h. */
  4229. #ifdef __STDC__
  4230. # include <limits.h>
  4231. #else
  4232. # include <assert.h>
  4233. #endif
  4234. Syntax error
  4235. _ACEOF
  4236. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4237. case "(($ac_try" in
  4238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4239. *) ac_try_echo=$ac_try;;
  4240. esac
  4241. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4242. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4243. ac_status=$?
  4244. grep -v '^ *+' conftest.er1 >conftest.err
  4245. rm -f conftest.er1
  4246. cat conftest.err >&5
  4247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4248. (exit $ac_status); } >/dev/null && {
  4249. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4250. test ! -s conftest.err
  4251. }; then
  4252. :
  4253. else
  4254. echo "$as_me: failed program was:" >&5
  4255. sed 's/^/| /' conftest.$ac_ext >&5
  4256. # Broken: fails on valid input.
  4257. continue
  4258. fi
  4259. rm -f conftest.err conftest.$ac_ext
  4260. # OK, works on sane cases. Now check whether nonexistent headers
  4261. # can be detected and how.
  4262. cat >conftest.$ac_ext <<_ACEOF
  4263. /* confdefs.h. */
  4264. _ACEOF
  4265. cat confdefs.h >>conftest.$ac_ext
  4266. cat >>conftest.$ac_ext <<_ACEOF
  4267. /* end confdefs.h. */
  4268. #include <ac_nonexistent.h>
  4269. _ACEOF
  4270. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4271. case "(($ac_try" in
  4272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4273. *) ac_try_echo=$ac_try;;
  4274. esac
  4275. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4276. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4277. ac_status=$?
  4278. grep -v '^ *+' conftest.er1 >conftest.err
  4279. rm -f conftest.er1
  4280. cat conftest.err >&5
  4281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4282. (exit $ac_status); } >/dev/null && {
  4283. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4284. test ! -s conftest.err
  4285. }; then
  4286. # Broken: success on invalid input.
  4287. continue
  4288. else
  4289. echo "$as_me: failed program was:" >&5
  4290. sed 's/^/| /' conftest.$ac_ext >&5
  4291. # Passes both tests.
  4292. ac_preproc_ok=:
  4293. break
  4294. fi
  4295. rm -f conftest.err conftest.$ac_ext
  4296. done
  4297. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4298. rm -f conftest.err conftest.$ac_ext
  4299. if $ac_preproc_ok; then
  4300. :
  4301. else
  4302. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4303. See \`config.log' for more details." >&5
  4304. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4305. See \`config.log' for more details." >&2;}
  4306. { (exit 1); exit 1; }; }
  4307. fi
  4308. ac_ext=cpp
  4309. ac_cpp='$CXXCPP $CPPFLAGS'
  4310. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4311. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4312. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4313. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4314. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4315. if test "${ac_cv_path_GREP+set}" = set; then
  4316. echo $ECHO_N "(cached) $ECHO_C" >&6
  4317. else
  4318. # Extract the first word of "grep ggrep" to use in msg output
  4319. if test -z "$GREP"; then
  4320. set dummy grep ggrep; ac_prog_name=$2
  4321. if test "${ac_cv_path_GREP+set}" = set; then
  4322. echo $ECHO_N "(cached) $ECHO_C" >&6
  4323. else
  4324. ac_path_GREP_found=false
  4325. # Loop through the user's path and test for each of PROGNAME-LIST
  4326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4327. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4328. do
  4329. IFS=$as_save_IFS
  4330. test -z "$as_dir" && as_dir=.
  4331. for ac_prog in grep ggrep; do
  4332. for ac_exec_ext in '' $ac_executable_extensions; do
  4333. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4334. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4335. # Check for GNU ac_path_GREP and select it if it is found.
  4336. # Check for GNU $ac_path_GREP
  4337. case `"$ac_path_GREP" --version 2>&1` in
  4338. *GNU*)
  4339. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4340. *)
  4341. ac_count=0
  4342. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4343. while :
  4344. do
  4345. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4346. mv "conftest.tmp" "conftest.in"
  4347. cp "conftest.in" "conftest.nl"
  4348. echo 'GREP' >> "conftest.nl"
  4349. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4350. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4351. ac_count=`expr $ac_count + 1`
  4352. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4353. # Best one so far, save it but keep looking for a better one
  4354. ac_cv_path_GREP="$ac_path_GREP"
  4355. ac_path_GREP_max=$ac_count
  4356. fi
  4357. # 10*(2^10) chars as input seems more than enough
  4358. test $ac_count -gt 10 && break
  4359. done
  4360. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4361. esac
  4362. $ac_path_GREP_found && break 3
  4363. done
  4364. done
  4365. done
  4366. IFS=$as_save_IFS
  4367. fi
  4368. GREP="$ac_cv_path_GREP"
  4369. if test -z "$GREP"; then
  4370. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4371. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4372. { (exit 1); exit 1; }; }
  4373. fi
  4374. else
  4375. ac_cv_path_GREP=$GREP
  4376. fi
  4377. fi
  4378. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4379. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4380. GREP="$ac_cv_path_GREP"
  4381. { echo "$as_me:$LINENO: checking for egrep" >&5
  4382. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4383. if test "${ac_cv_path_EGREP+set}" = set; then
  4384. echo $ECHO_N "(cached) $ECHO_C" >&6
  4385. else
  4386. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4387. then ac_cv_path_EGREP="$GREP -E"
  4388. else
  4389. # Extract the first word of "egrep" to use in msg output
  4390. if test -z "$EGREP"; then
  4391. set dummy egrep; ac_prog_name=$2
  4392. if test "${ac_cv_path_EGREP+set}" = set; then
  4393. echo $ECHO_N "(cached) $ECHO_C" >&6
  4394. else
  4395. ac_path_EGREP_found=false
  4396. # Loop through the user's path and test for each of PROGNAME-LIST
  4397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4398. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4399. do
  4400. IFS=$as_save_IFS
  4401. test -z "$as_dir" && as_dir=.
  4402. for ac_prog in egrep; do
  4403. for ac_exec_ext in '' $ac_executable_extensions; do
  4404. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4405. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4406. # Check for GNU ac_path_EGREP and select it if it is found.
  4407. # Check for GNU $ac_path_EGREP
  4408. case `"$ac_path_EGREP" --version 2>&1` in
  4409. *GNU*)
  4410. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4411. *)
  4412. ac_count=0
  4413. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4414. while :
  4415. do
  4416. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4417. mv "conftest.tmp" "conftest.in"
  4418. cp "conftest.in" "conftest.nl"
  4419. echo 'EGREP' >> "conftest.nl"
  4420. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4421. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4422. ac_count=`expr $ac_count + 1`
  4423. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4424. # Best one so far, save it but keep looking for a better one
  4425. ac_cv_path_EGREP="$ac_path_EGREP"
  4426. ac_path_EGREP_max=$ac_count
  4427. fi
  4428. # 10*(2^10) chars as input seems more than enough
  4429. test $ac_count -gt 10 && break
  4430. done
  4431. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4432. esac
  4433. $ac_path_EGREP_found && break 3
  4434. done
  4435. done
  4436. done
  4437. IFS=$as_save_IFS
  4438. fi
  4439. EGREP="$ac_cv_path_EGREP"
  4440. if test -z "$EGREP"; then
  4441. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4442. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4443. { (exit 1); exit 1; }; }
  4444. fi
  4445. else
  4446. ac_cv_path_EGREP=$EGREP
  4447. fi
  4448. fi
  4449. fi
  4450. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4451. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4452. EGREP="$ac_cv_path_EGREP"
  4453. { echo "$as_me:$LINENO: checking for AIX" >&5
  4454. echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
  4455. cat >conftest.$ac_ext <<_ACEOF
  4456. /* confdefs.h. */
  4457. _ACEOF
  4458. cat confdefs.h >>conftest.$ac_ext
  4459. cat >>conftest.$ac_ext <<_ACEOF
  4460. /* end confdefs.h. */
  4461. #ifdef _AIX
  4462. yes
  4463. #endif
  4464. _ACEOF
  4465. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4466. $EGREP "yes" >/dev/null 2>&1; then
  4467. { echo "$as_me:$LINENO: result: yes" >&5
  4468. echo "${ECHO_T}yes" >&6; }
  4469. cat >>confdefs.h <<\_ACEOF
  4470. #define _ALL_SOURCE 1
  4471. _ACEOF
  4472. else
  4473. { echo "$as_me:$LINENO: result: no" >&5
  4474. echo "${ECHO_T}no" >&6; }
  4475. fi
  4476. rm -f conftest*
  4477. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4478. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4479. if test "${ac_cv_header_stdc+set}" = set; then
  4480. echo $ECHO_N "(cached) $ECHO_C" >&6
  4481. else
  4482. cat >conftest.$ac_ext <<_ACEOF
  4483. /* confdefs.h. */
  4484. _ACEOF
  4485. cat confdefs.h >>conftest.$ac_ext
  4486. cat >>conftest.$ac_ext <<_ACEOF
  4487. /* end confdefs.h. */
  4488. #include <stdlib.h>
  4489. #include <stdarg.h>
  4490. #include <string.h>
  4491. #include <float.h>
  4492. int
  4493. main ()
  4494. {
  4495. ;
  4496. return 0;
  4497. }
  4498. _ACEOF
  4499. rm -f conftest.$ac_objext
  4500. if { (ac_try="$ac_compile"
  4501. case "(($ac_try" in
  4502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4503. *) ac_try_echo=$ac_try;;
  4504. esac
  4505. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4506. (eval "$ac_compile") 2>conftest.er1
  4507. ac_status=$?
  4508. grep -v '^ *+' conftest.er1 >conftest.err
  4509. rm -f conftest.er1
  4510. cat conftest.err >&5
  4511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4512. (exit $ac_status); } && {
  4513. test -z "$ac_cxx_werror_flag" ||
  4514. test ! -s conftest.err
  4515. } && test -s conftest.$ac_objext; then
  4516. ac_cv_header_stdc=yes
  4517. else
  4518. echo "$as_me: failed program was:" >&5
  4519. sed 's/^/| /' conftest.$ac_ext >&5
  4520. ac_cv_header_stdc=no
  4521. fi
  4522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4523. if test $ac_cv_header_stdc = yes; then
  4524. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4525. cat >conftest.$ac_ext <<_ACEOF
  4526. /* confdefs.h. */
  4527. _ACEOF
  4528. cat confdefs.h >>conftest.$ac_ext
  4529. cat >>conftest.$ac_ext <<_ACEOF
  4530. /* end confdefs.h. */
  4531. #include <string.h>
  4532. _ACEOF
  4533. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4534. $EGREP "memchr" >/dev/null 2>&1; then
  4535. :
  4536. else
  4537. ac_cv_header_stdc=no
  4538. fi
  4539. rm -f conftest*
  4540. fi
  4541. if test $ac_cv_header_stdc = yes; then
  4542. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4543. cat >conftest.$ac_ext <<_ACEOF
  4544. /* confdefs.h. */
  4545. _ACEOF
  4546. cat confdefs.h >>conftest.$ac_ext
  4547. cat >>conftest.$ac_ext <<_ACEOF
  4548. /* end confdefs.h. */
  4549. #include <stdlib.h>
  4550. _ACEOF
  4551. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4552. $EGREP "free" >/dev/null 2>&1; then
  4553. :
  4554. else
  4555. ac_cv_header_stdc=no
  4556. fi
  4557. rm -f conftest*
  4558. fi
  4559. if test $ac_cv_header_stdc = yes; then
  4560. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4561. if test "$cross_compiling" = yes; then
  4562. :
  4563. else
  4564. cat >conftest.$ac_ext <<_ACEOF
  4565. /* confdefs.h. */
  4566. _ACEOF
  4567. cat confdefs.h >>conftest.$ac_ext
  4568. cat >>conftest.$ac_ext <<_ACEOF
  4569. /* end confdefs.h. */
  4570. #include <ctype.h>
  4571. #include <stdlib.h>
  4572. #if ((' ' & 0x0FF) == 0x020)
  4573. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4574. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4575. #else
  4576. # define ISLOWER(c) \
  4577. (('a' <= (c) && (c) <= 'i') \
  4578. || ('j' <= (c) && (c) <= 'r') \
  4579. || ('s' <= (c) && (c) <= 'z'))
  4580. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4581. #endif
  4582. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4583. int
  4584. main ()
  4585. {
  4586. int i;
  4587. for (i = 0; i < 256; i++)
  4588. if (XOR (islower (i), ISLOWER (i))
  4589. || toupper (i) != TOUPPER (i))
  4590. return 2;
  4591. return 0;
  4592. }
  4593. _ACEOF
  4594. rm -f conftest$ac_exeext
  4595. if { (ac_try="$ac_link"
  4596. case "(($ac_try" in
  4597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4598. *) ac_try_echo=$ac_try;;
  4599. esac
  4600. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4601. (eval "$ac_link") 2>&5
  4602. ac_status=$?
  4603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4604. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4605. { (case "(($ac_try" in
  4606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4607. *) ac_try_echo=$ac_try;;
  4608. esac
  4609. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4610. (eval "$ac_try") 2>&5
  4611. ac_status=$?
  4612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4613. (exit $ac_status); }; }; then
  4614. :
  4615. else
  4616. echo "$as_me: program exited with status $ac_status" >&5
  4617. echo "$as_me: failed program was:" >&5
  4618. sed 's/^/| /' conftest.$ac_ext >&5
  4619. ( exit $ac_status )
  4620. ac_cv_header_stdc=no
  4621. fi
  4622. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4623. fi
  4624. fi
  4625. fi
  4626. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4627. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4628. if test $ac_cv_header_stdc = yes; then
  4629. cat >>confdefs.h <<\_ACEOF
  4630. #define STDC_HEADERS 1
  4631. _ACEOF
  4632. fi
  4633. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4634. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4635. inttypes.h stdint.h unistd.h
  4636. do
  4637. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4638. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4639. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4640. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4641. echo $ECHO_N "(cached) $ECHO_C" >&6
  4642. else
  4643. cat >conftest.$ac_ext <<_ACEOF
  4644. /* confdefs.h. */
  4645. _ACEOF
  4646. cat confdefs.h >>conftest.$ac_ext
  4647. cat >>conftest.$ac_ext <<_ACEOF
  4648. /* end confdefs.h. */
  4649. $ac_includes_default
  4650. #include <$ac_header>
  4651. _ACEOF
  4652. rm -f conftest.$ac_objext
  4653. if { (ac_try="$ac_compile"
  4654. case "(($ac_try" in
  4655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4656. *) ac_try_echo=$ac_try;;
  4657. esac
  4658. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4659. (eval "$ac_compile") 2>conftest.er1
  4660. ac_status=$?
  4661. grep -v '^ *+' conftest.er1 >conftest.err
  4662. rm -f conftest.er1
  4663. cat conftest.err >&5
  4664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4665. (exit $ac_status); } && {
  4666. test -z "$ac_cxx_werror_flag" ||
  4667. test ! -s conftest.err
  4668. } && test -s conftest.$ac_objext; then
  4669. eval "$as_ac_Header=yes"
  4670. else
  4671. echo "$as_me: failed program was:" >&5
  4672. sed 's/^/| /' conftest.$ac_ext >&5
  4673. eval "$as_ac_Header=no"
  4674. fi
  4675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4676. fi
  4677. ac_res=`eval echo '${'$as_ac_Header'}'`
  4678. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4679. echo "${ECHO_T}$ac_res" >&6; }
  4680. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4681. cat >>confdefs.h <<_ACEOF
  4682. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4683. _ACEOF
  4684. fi
  4685. done
  4686. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4687. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4688. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4689. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4690. echo $ECHO_N "(cached) $ECHO_C" >&6
  4691. fi
  4692. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4693. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4694. else
  4695. # Is the header compilable?
  4696. { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4697. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
  4698. cat >conftest.$ac_ext <<_ACEOF
  4699. /* confdefs.h. */
  4700. _ACEOF
  4701. cat confdefs.h >>conftest.$ac_ext
  4702. cat >>conftest.$ac_ext <<_ACEOF
  4703. /* end confdefs.h. */
  4704. $ac_includes_default
  4705. #include <minix/config.h>
  4706. _ACEOF
  4707. rm -f conftest.$ac_objext
  4708. if { (ac_try="$ac_compile"
  4709. case "(($ac_try" in
  4710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4711. *) ac_try_echo=$ac_try;;
  4712. esac
  4713. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4714. (eval "$ac_compile") 2>conftest.er1
  4715. ac_status=$?
  4716. grep -v '^ *+' conftest.er1 >conftest.err
  4717. rm -f conftest.er1
  4718. cat conftest.err >&5
  4719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4720. (exit $ac_status); } && {
  4721. test -z "$ac_cxx_werror_flag" ||
  4722. test ! -s conftest.err
  4723. } && test -s conftest.$ac_objext; then
  4724. ac_header_compiler=yes
  4725. else
  4726. echo "$as_me: failed program was:" >&5
  4727. sed 's/^/| /' conftest.$ac_ext >&5
  4728. ac_header_compiler=no
  4729. fi
  4730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4731. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4732. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4733. # Is the header present?
  4734. { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4735. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
  4736. cat >conftest.$ac_ext <<_ACEOF
  4737. /* confdefs.h. */
  4738. _ACEOF
  4739. cat confdefs.h >>conftest.$ac_ext
  4740. cat >>conftest.$ac_ext <<_ACEOF
  4741. /* end confdefs.h. */
  4742. #include <minix/config.h>
  4743. _ACEOF
  4744. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4745. case "(($ac_try" in
  4746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4747. *) ac_try_echo=$ac_try;;
  4748. esac
  4749. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4750. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4751. ac_status=$?
  4752. grep -v '^ *+' conftest.er1 >conftest.err
  4753. rm -f conftest.er1
  4754. cat conftest.err >&5
  4755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4756. (exit $ac_status); } >/dev/null && {
  4757. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4758. test ! -s conftest.err
  4759. }; then
  4760. ac_header_preproc=yes
  4761. else
  4762. echo "$as_me: failed program was:" >&5
  4763. sed 's/^/| /' conftest.$ac_ext >&5
  4764. ac_header_preproc=no
  4765. fi
  4766. rm -f conftest.err conftest.$ac_ext
  4767. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4768. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4769. # So? What about this header?
  4770. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4771. yes:no: )
  4772. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4773. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4774. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4775. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4776. ac_header_preproc=yes
  4777. ;;
  4778. no:yes:* )
  4779. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4780. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4781. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4782. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4783. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4784. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4785. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4786. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4787. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4788. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4789. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4790. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4791. ( cat <<\_ASBOX
  4792. ## ----------------------------------------------- ##
  4793. ## Report this to t-tujikawa@users.sourceforge.net ##
  4794. ## ----------------------------------------------- ##
  4795. _ASBOX
  4796. ) | sed "s/^/$as_me: WARNING: /" >&2
  4797. ;;
  4798. esac
  4799. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4800. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4801. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4802. echo $ECHO_N "(cached) $ECHO_C" >&6
  4803. else
  4804. ac_cv_header_minix_config_h=$ac_header_preproc
  4805. fi
  4806. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4807. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4808. fi
  4809. if test $ac_cv_header_minix_config_h = yes; then
  4810. MINIX=yes
  4811. else
  4812. MINIX=
  4813. fi
  4814. if test "$MINIX" = yes; then
  4815. cat >>confdefs.h <<\_ACEOF
  4816. #define _POSIX_SOURCE 1
  4817. _ACEOF
  4818. cat >>confdefs.h <<\_ACEOF
  4819. #define _POSIX_1_SOURCE 2
  4820. _ACEOF
  4821. cat >>confdefs.h <<\_ACEOF
  4822. #define _MINIX 1
  4823. _ACEOF
  4824. fi
  4825. { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  4826. echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
  4827. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  4828. echo $ECHO_N "(cached) $ECHO_C" >&6
  4829. else
  4830. cat >conftest.$ac_ext <<_ACEOF
  4831. /* confdefs.h. */
  4832. _ACEOF
  4833. cat confdefs.h >>conftest.$ac_ext
  4834. cat >>conftest.$ac_ext <<_ACEOF
  4835. /* end confdefs.h. */
  4836. # define __EXTENSIONS__ 1
  4837. $ac_includes_default
  4838. int
  4839. main ()
  4840. {
  4841. ;
  4842. return 0;
  4843. }
  4844. _ACEOF
  4845. rm -f conftest.$ac_objext
  4846. if { (ac_try="$ac_compile"
  4847. case "(($ac_try" in
  4848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4849. *) ac_try_echo=$ac_try;;
  4850. esac
  4851. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4852. (eval "$ac_compile") 2>conftest.er1
  4853. ac_status=$?
  4854. grep -v '^ *+' conftest.er1 >conftest.err
  4855. rm -f conftest.er1
  4856. cat conftest.err >&5
  4857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4858. (exit $ac_status); } && {
  4859. test -z "$ac_cxx_werror_flag" ||
  4860. test ! -s conftest.err
  4861. } && test -s conftest.$ac_objext; then
  4862. ac_cv_safe_to_define___extensions__=yes
  4863. else
  4864. echo "$as_me: failed program was:" >&5
  4865. sed 's/^/| /' conftest.$ac_ext >&5
  4866. ac_cv_safe_to_define___extensions__=no
  4867. fi
  4868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4869. fi
  4870. { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  4871. echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
  4872. test $ac_cv_safe_to_define___extensions__ = yes &&
  4873. cat >>confdefs.h <<\_ACEOF
  4874. #define __EXTENSIONS__ 1
  4875. _ACEOF
  4876. cat >>confdefs.h <<\_ACEOF
  4877. #define _POSIX_PTHREAD_SEMANTICS 1
  4878. _ACEOF
  4879. cat >>confdefs.h <<\_ACEOF
  4880. #define _TANDEM_SOURCE 1
  4881. _ACEOF
  4882. # Checks for libraries.
  4883. if test "x$with_libxml2" = "xyes"; then
  4884. # Check whether --with-xml-prefix was given.
  4885. if test "${with_xml_prefix+set}" = set; then
  4886. withval=$with_xml_prefix; xml_config_prefix="$withval"
  4887. else
  4888. xml_config_prefix=""
  4889. fi
  4890. # Check whether --with-xml-exec-prefix was given.
  4891. if test "${with_xml_exec_prefix+set}" = set; then
  4892. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  4893. else
  4894. xml_config_exec_prefix=""
  4895. fi
  4896. # Check whether --enable-xmltest was given.
  4897. if test "${enable_xmltest+set}" = set; then
  4898. enableval=$enable_xmltest;
  4899. else
  4900. enable_xmltest=yes
  4901. fi
  4902. if test x$xml_config_exec_prefix != x ; then
  4903. xml_config_args="$xml_config_args"
  4904. if test x${XML2_CONFIG+set} != xset ; then
  4905. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  4906. fi
  4907. fi
  4908. if test x$xml_config_prefix != x ; then
  4909. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  4910. if test x${XML2_CONFIG+set} != xset ; then
  4911. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  4912. fi
  4913. fi
  4914. # Extract the first word of "xml2-config", so it can be a program name with args.
  4915. set dummy xml2-config; ac_word=$2
  4916. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4917. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4918. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  4919. echo $ECHO_N "(cached) $ECHO_C" >&6
  4920. else
  4921. case $XML2_CONFIG in
  4922. [\\/]* | ?:[\\/]*)
  4923. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  4924. ;;
  4925. *)
  4926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4927. for as_dir in $PATH
  4928. do
  4929. IFS=$as_save_IFS
  4930. test -z "$as_dir" && as_dir=.
  4931. for ac_exec_ext in '' $ac_executable_extensions; do
  4932. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4933. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4934. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4935. break 2
  4936. fi
  4937. done
  4938. done
  4939. IFS=$as_save_IFS
  4940. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4941. ;;
  4942. esac
  4943. fi
  4944. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4945. if test -n "$XML2_CONFIG"; then
  4946. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  4947. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  4948. else
  4949. { echo "$as_me:$LINENO: result: no" >&5
  4950. echo "${ECHO_T}no" >&6; }
  4951. fi
  4952. min_xml_version=2.6.24
  4953. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  4954. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  4955. no_xml=""
  4956. if test "$XML2_CONFIG" = "no" ; then
  4957. no_xml=yes
  4958. else
  4959. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4960. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4961. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4962. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4963. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4964. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4965. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4966. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4967. if test "x$enable_xmltest" = "xyes" ; then
  4968. ac_save_CPPFLAGS="$CPPFLAGS"
  4969. ac_save_LIBS="$LIBS"
  4970. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4971. LIBS="$XML_LIBS $LIBS"
  4972. rm -f conf.xmltest
  4973. if test "$cross_compiling" = yes; then
  4974. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4975. else
  4976. cat >conftest.$ac_ext <<_ACEOF
  4977. /* confdefs.h. */
  4978. _ACEOF
  4979. cat confdefs.h >>conftest.$ac_ext
  4980. cat >>conftest.$ac_ext <<_ACEOF
  4981. /* end confdefs.h. */
  4982. #include <stdlib.h>
  4983. #include <stdio.h>
  4984. #include <string.h>
  4985. #include <libxml/xmlversion.h>
  4986. int
  4987. main()
  4988. {
  4989. int xml_major_version, xml_minor_version, xml_micro_version;
  4990. int major, minor, micro;
  4991. char *tmp_version;
  4992. system("touch conf.xmltest");
  4993. /* Capture xml2-config output via autoconf/configure variables */
  4994. /* HP/UX 9 (%@#!) writes to sscanf strings */
  4995. tmp_version = (char *)strdup("$min_xml_version");
  4996. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  4997. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  4998. exit(1);
  4999. }
  5000. free(tmp_version);
  5001. /* Capture the version information from the header files */
  5002. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5003. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5004. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5005. exit(1);
  5006. }
  5007. free(tmp_version);
  5008. /* Compare xml2-config output to the libxml headers */
  5009. if ((xml_major_version != $xml_config_major_version) ||
  5010. (xml_minor_version != $xml_config_minor_version) ||
  5011. (xml_micro_version != $xml_config_micro_version))
  5012. {
  5013. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5014. xml_major_version, xml_minor_version, xml_micro_version);
  5015. printf("*** xml2-config (version %d.%d.%d)\n",
  5016. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5017. return 1;
  5018. }
  5019. /* Compare the headers to the library to make sure we match */
  5020. /* Less than ideal -- doesn't provide us with return value feedback,
  5021. * only exits if there's a serious mismatch between header and library.
  5022. */
  5023. LIBXML_TEST_VERSION;
  5024. /* Test that the library is greater than our minimum version */
  5025. if ((xml_major_version > major) ||
  5026. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5027. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5028. (xml_micro_version >= micro)))
  5029. {
  5030. return 0;
  5031. }
  5032. else
  5033. {
  5034. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5035. xml_major_version, xml_minor_version, xml_micro_version);
  5036. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5037. major, minor, micro);
  5038. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5039. printf("***\n");
  5040. printf("*** If you have already installed a sufficiently new version, this error\n");
  5041. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5042. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5043. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5044. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5045. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5046. printf("*** so that the correct libraries are found at run-time))\n");
  5047. }
  5048. return 1;
  5049. }
  5050. _ACEOF
  5051. rm -f conftest$ac_exeext
  5052. if { (ac_try="$ac_link"
  5053. case "(($ac_try" in
  5054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5055. *) ac_try_echo=$ac_try;;
  5056. esac
  5057. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5058. (eval "$ac_link") 2>&5
  5059. ac_status=$?
  5060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5061. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5062. { (case "(($ac_try" in
  5063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5064. *) ac_try_echo=$ac_try;;
  5065. esac
  5066. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5067. (eval "$ac_try") 2>&5
  5068. ac_status=$?
  5069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5070. (exit $ac_status); }; }; then
  5071. :
  5072. else
  5073. echo "$as_me: program exited with status $ac_status" >&5
  5074. echo "$as_me: failed program was:" >&5
  5075. sed 's/^/| /' conftest.$ac_ext >&5
  5076. ( exit $ac_status )
  5077. no_xml=yes
  5078. fi
  5079. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5080. fi
  5081. CPPFLAGS="$ac_save_CPPFLAGS"
  5082. LIBS="$ac_save_LIBS"
  5083. fi
  5084. fi
  5085. if test "x$no_xml" = x ; then
  5086. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5087. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5088. have_libxml2=yes
  5089. else
  5090. { echo "$as_me:$LINENO: result: no" >&5
  5091. echo "${ECHO_T}no" >&6; }
  5092. if test "$XML2_CONFIG" = "no" ; then
  5093. echo "*** The xml2-config script installed by LIBXML could not be found"
  5094. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5095. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5096. echo "*** full path to xml2-config."
  5097. else
  5098. if test -f conf.xmltest ; then
  5099. :
  5100. else
  5101. echo "*** Could not run libxml test program, checking why..."
  5102. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5103. LIBS="$LIBS $XML_LIBS"
  5104. cat >conftest.$ac_ext <<_ACEOF
  5105. /* confdefs.h. */
  5106. _ACEOF
  5107. cat confdefs.h >>conftest.$ac_ext
  5108. cat >>conftest.$ac_ext <<_ACEOF
  5109. /* end confdefs.h. */
  5110. #include <libxml/xmlversion.h>
  5111. #include <stdio.h>
  5112. int
  5113. main ()
  5114. {
  5115. LIBXML_TEST_VERSION; return 0;
  5116. ;
  5117. return 0;
  5118. }
  5119. _ACEOF
  5120. rm -f conftest.$ac_objext conftest$ac_exeext
  5121. if { (ac_try="$ac_link"
  5122. case "(($ac_try" in
  5123. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5124. *) ac_try_echo=$ac_try;;
  5125. esac
  5126. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5127. (eval "$ac_link") 2>conftest.er1
  5128. ac_status=$?
  5129. grep -v '^ *+' conftest.er1 >conftest.err
  5130. rm -f conftest.er1
  5131. cat conftest.err >&5
  5132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5133. (exit $ac_status); } && {
  5134. test -z "$ac_cxx_werror_flag" ||
  5135. test ! -s conftest.err
  5136. } && test -s conftest$ac_exeext &&
  5137. $as_test_x conftest$ac_exeext; then
  5138. echo "*** The test program compiled, but did not run. This usually means"
  5139. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5140. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5141. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5142. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5143. echo "*** is required on your system"
  5144. echo "***"
  5145. echo "*** If you have an old version installed, it is best to remove it, although"
  5146. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5147. else
  5148. echo "$as_me: failed program was:" >&5
  5149. sed 's/^/| /' conftest.$ac_ext >&5
  5150. echo "*** The test program failed to compile or link. See the file config.log for the"
  5151. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5152. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5153. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5154. fi
  5155. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5156. conftest$ac_exeext conftest.$ac_ext
  5157. CPPFLAGS="$ac_save_CPPFLAGS"
  5158. LIBS="$ac_save_LIBS"
  5159. fi
  5160. fi
  5161. XML_CPPFLAGS=""
  5162. XML_LIBS=""
  5163. :
  5164. fi
  5165. rm -f conf.xmltest
  5166. if test "x$have_libxml2" = "xyes"; then
  5167. cat >>confdefs.h <<\_ACEOF
  5168. #define HAVE_LIBXML2 1
  5169. _ACEOF
  5170. fi
  5171. fi
  5172. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5173. # Check whether --with-libexpat-prefix was given.
  5174. if test "${with_libexpat_prefix+set}" = set; then
  5175. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5176. else
  5177. libexpat_prefix=""
  5178. fi
  5179. if test "x$libexpat_prefix" = "x"; then
  5180. libexpat_prefix="/usr"
  5181. fi
  5182. libexpat_prefix_lib=$libexpat_prefix/lib
  5183. libexpat_prefix_include=$libexpat_prefix/include
  5184. LIBS_save=$LIBS
  5185. CPPFLAGS_save=$CPPFLAGS
  5186. LIBS="-L$libexpat_prefix_lib $LIBS"
  5187. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5188. { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
  5189. echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
  5190. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
  5191. echo $ECHO_N "(cached) $ECHO_C" >&6
  5192. else
  5193. ac_check_lib_save_LIBS=$LIBS
  5194. LIBS="-lexpat $LIBS"
  5195. cat >conftest.$ac_ext <<_ACEOF
  5196. /* confdefs.h. */
  5197. _ACEOF
  5198. cat confdefs.h >>conftest.$ac_ext
  5199. cat >>conftest.$ac_ext <<_ACEOF
  5200. /* end confdefs.h. */
  5201. /* Override any GCC internal prototype to avoid an error.
  5202. Use char because int might match the return type of a GCC
  5203. builtin and then its argument prototype would still apply. */
  5204. #ifdef __cplusplus
  5205. extern "C"
  5206. #endif
  5207. char XML_ParserCreate ();
  5208. int
  5209. main ()
  5210. {
  5211. return XML_ParserCreate ();
  5212. ;
  5213. return 0;
  5214. }
  5215. _ACEOF
  5216. rm -f conftest.$ac_objext conftest$ac_exeext
  5217. if { (ac_try="$ac_link"
  5218. case "(($ac_try" in
  5219. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5220. *) ac_try_echo=$ac_try;;
  5221. esac
  5222. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5223. (eval "$ac_link") 2>conftest.er1
  5224. ac_status=$?
  5225. grep -v '^ *+' conftest.er1 >conftest.err
  5226. rm -f conftest.er1
  5227. cat conftest.err >&5
  5228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5229. (exit $ac_status); } && {
  5230. test -z "$ac_cxx_werror_flag" ||
  5231. test ! -s conftest.err
  5232. } && test -s conftest$ac_exeext &&
  5233. $as_test_x conftest$ac_exeext; then
  5234. ac_cv_lib_expat_XML_ParserCreate=yes
  5235. else
  5236. echo "$as_me: failed program was:" >&5
  5237. sed 's/^/| /' conftest.$ac_ext >&5
  5238. ac_cv_lib_expat_XML_ParserCreate=no
  5239. fi
  5240. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5241. conftest$ac_exeext conftest.$ac_ext
  5242. LIBS=$ac_check_lib_save_LIBS
  5243. fi
  5244. { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5245. echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5246. if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
  5247. have_libexpat=yes
  5248. fi
  5249. if test "x$have_libexpat" = "xyes"; then
  5250. cat >>confdefs.h <<\_ACEOF
  5251. #define HAVE_LIBEXPAT 1
  5252. _ACEOF
  5253. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5254. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5255. fi
  5256. LIBS=$LIBS_save
  5257. CPPFLAGS=$CPPFLAGS_save
  5258. fi
  5259. if test "x$with_gnutls" = "xyes"; then
  5260. # Check whether --with-libgnutls-prefix was given.
  5261. if test "${with_libgnutls_prefix+set}" = set; then
  5262. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5263. else
  5264. libgnutls_config_prefix=""
  5265. fi
  5266. if test x$libgnutls_config_prefix != x ; then
  5267. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5268. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5269. fi
  5270. fi
  5271. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5272. set dummy libgnutls-config; ac_word=$2
  5273. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5274. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5275. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  5276. echo $ECHO_N "(cached) $ECHO_C" >&6
  5277. else
  5278. case $LIBGNUTLS_CONFIG in
  5279. [\\/]* | ?:[\\/]*)
  5280. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5281. ;;
  5282. *)
  5283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5284. for as_dir in $PATH
  5285. do
  5286. IFS=$as_save_IFS
  5287. test -z "$as_dir" && as_dir=.
  5288. for ac_exec_ext in '' $ac_executable_extensions; do
  5289. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5290. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5291. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5292. break 2
  5293. fi
  5294. done
  5295. done
  5296. IFS=$as_save_IFS
  5297. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5298. ;;
  5299. esac
  5300. fi
  5301. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5302. if test -n "$LIBGNUTLS_CONFIG"; then
  5303. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  5304. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  5305. else
  5306. { echo "$as_me:$LINENO: result: no" >&5
  5307. echo "${ECHO_T}no" >&6; }
  5308. fi
  5309. min_libgnutls_version=1.2.9
  5310. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5311. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  5312. no_libgnutls=""
  5313. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5314. no_libgnutls=yes
  5315. else
  5316. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5317. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5318. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5319. ac_save_CFLAGS="$CFLAGS"
  5320. ac_save_LIBS="$LIBS"
  5321. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5322. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5323. rm -f conf.libgnutlstest
  5324. if test "$cross_compiling" = yes; then
  5325. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5326. else
  5327. cat >conftest.$ac_ext <<_ACEOF
  5328. /* confdefs.h. */
  5329. _ACEOF
  5330. cat confdefs.h >>conftest.$ac_ext
  5331. cat >>conftest.$ac_ext <<_ACEOF
  5332. /* end confdefs.h. */
  5333. #include <stdio.h>
  5334. #include <stdlib.h>
  5335. #include <string.h>
  5336. #include <gnutls/gnutls.h>
  5337. int
  5338. main ()
  5339. {
  5340. system ("touch conf.libgnutlstest");
  5341. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5342. {
  5343. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5344. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5345. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5346. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5347. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5348. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5349. printf("*** required on your system.\n");
  5350. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5351. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5352. printf("*** before re-running configure\n");
  5353. }
  5354. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5355. {
  5356. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5357. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5358. }
  5359. else
  5360. {
  5361. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5362. {
  5363. return 0;
  5364. }
  5365. else
  5366. {
  5367. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5368. gnutls_check_version(NULL) );
  5369. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5370. "$min_libgnutls_version" );
  5371. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5372. printf("*** \n");
  5373. printf("*** If you have already installed a sufficiently new version, this error\n");
  5374. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5375. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5376. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5377. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5378. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5379. printf("*** so that the correct libraries are found at run-time))\n");
  5380. }
  5381. }
  5382. return 1;
  5383. }
  5384. _ACEOF
  5385. rm -f conftest$ac_exeext
  5386. if { (ac_try="$ac_link"
  5387. case "(($ac_try" in
  5388. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5389. *) ac_try_echo=$ac_try;;
  5390. esac
  5391. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5392. (eval "$ac_link") 2>&5
  5393. ac_status=$?
  5394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5395. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5396. { (case "(($ac_try" in
  5397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5398. *) ac_try_echo=$ac_try;;
  5399. esac
  5400. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5401. (eval "$ac_try") 2>&5
  5402. ac_status=$?
  5403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5404. (exit $ac_status); }; }; then
  5405. :
  5406. else
  5407. echo "$as_me: program exited with status $ac_status" >&5
  5408. echo "$as_me: failed program was:" >&5
  5409. sed 's/^/| /' conftest.$ac_ext >&5
  5410. ( exit $ac_status )
  5411. no_libgnutls=yes
  5412. fi
  5413. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5414. fi
  5415. CFLAGS="$ac_save_CFLAGS"
  5416. LIBS="$ac_save_LIBS"
  5417. fi
  5418. if test "x$no_libgnutls" = x ; then
  5419. { echo "$as_me:$LINENO: result: yes" >&5
  5420. echo "${ECHO_T}yes" >&6; }
  5421. have_libgnutls=yes
  5422. else
  5423. if test -f conf.libgnutlstest ; then
  5424. :
  5425. else
  5426. { echo "$as_me:$LINENO: result: no" >&5
  5427. echo "${ECHO_T}no" >&6; }
  5428. fi
  5429. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5430. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5431. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5432. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5433. echo "*** full path to libgnutls-config."
  5434. else
  5435. if test -f conf.libgnutlstest ; then
  5436. :
  5437. else
  5438. echo "*** Could not run libgnutls test program, checking why..."
  5439. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5440. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5441. cat >conftest.$ac_ext <<_ACEOF
  5442. /* confdefs.h. */
  5443. _ACEOF
  5444. cat confdefs.h >>conftest.$ac_ext
  5445. cat >>conftest.$ac_ext <<_ACEOF
  5446. /* end confdefs.h. */
  5447. #include <stdio.h>
  5448. #include <stdlib.h>
  5449. #include <string.h>
  5450. #include <gnutls/gnutls.h>
  5451. int
  5452. main ()
  5453. {
  5454. return !!gnutls_check_version(NULL);
  5455. ;
  5456. return 0;
  5457. }
  5458. _ACEOF
  5459. rm -f conftest.$ac_objext conftest$ac_exeext
  5460. if { (ac_try="$ac_link"
  5461. case "(($ac_try" in
  5462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5463. *) ac_try_echo=$ac_try;;
  5464. esac
  5465. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5466. (eval "$ac_link") 2>conftest.er1
  5467. ac_status=$?
  5468. grep -v '^ *+' conftest.er1 >conftest.err
  5469. rm -f conftest.er1
  5470. cat conftest.err >&5
  5471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5472. (exit $ac_status); } && {
  5473. test -z "$ac_cxx_werror_flag" ||
  5474. test ! -s conftest.err
  5475. } && test -s conftest$ac_exeext &&
  5476. $as_test_x conftest$ac_exeext; then
  5477. echo "*** The test program compiled, but did not run. This usually means"
  5478. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5479. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5480. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5481. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5482. echo "*** is required on your system"
  5483. echo "***"
  5484. echo "*** If you have an old version installed, it is best to remove it, although"
  5485. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5486. echo "***"
  5487. else
  5488. echo "$as_me: failed program was:" >&5
  5489. sed 's/^/| /' conftest.$ac_ext >&5
  5490. echo "*** The test program failed to compile or link. See the file config.log for the"
  5491. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5492. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5493. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5494. fi
  5495. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5496. conftest$ac_exeext conftest.$ac_ext
  5497. CFLAGS="$ac_save_CFLAGS"
  5498. LIBS="$ac_save_LIBS"
  5499. fi
  5500. fi
  5501. LIBGNUTLS_CFLAGS=""
  5502. LIBGNUTLS_LIBS=""
  5503. :
  5504. fi
  5505. rm -f conf.libgnutlstest
  5506. if test "x$have_libgnutls" = "xyes"; then
  5507. cat >>confdefs.h <<\_ACEOF
  5508. #define HAVE_LIBGNUTLS 1
  5509. _ACEOF
  5510. fi
  5511. fi
  5512. if test "x$have_libgnutls" = "xyes"; then
  5513. # Check whether --with-libgcrypt-prefix was given.
  5514. if test "${with_libgcrypt_prefix+set}" = set; then
  5515. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5516. else
  5517. libgcrypt_config_prefix=""
  5518. fi
  5519. if test x$libgcrypt_config_prefix != x ; then
  5520. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5521. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5522. fi
  5523. fi
  5524. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5525. set dummy libgcrypt-config; ac_word=$2
  5526. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5527. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5528. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  5529. echo $ECHO_N "(cached) $ECHO_C" >&6
  5530. else
  5531. case $LIBGCRYPT_CONFIG in
  5532. [\\/]* | ?:[\\/]*)
  5533. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5534. ;;
  5535. *)
  5536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5537. for as_dir in $PATH
  5538. do
  5539. IFS=$as_save_IFS
  5540. test -z "$as_dir" && as_dir=.
  5541. for ac_exec_ext in '' $ac_executable_extensions; do
  5542. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5543. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5544. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5545. break 2
  5546. fi
  5547. done
  5548. done
  5549. IFS=$as_save_IFS
  5550. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5551. ;;
  5552. esac
  5553. fi
  5554. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5555. if test -n "$LIBGCRYPT_CONFIG"; then
  5556. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  5557. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  5558. else
  5559. { echo "$as_me:$LINENO: result: no" >&5
  5560. echo "${ECHO_T}no" >&6; }
  5561. fi
  5562. tmp=1.2.2
  5563. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5564. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5565. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5566. else
  5567. req_libgcrypt_api=0
  5568. min_libgcrypt_version="$tmp"
  5569. fi
  5570. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5571. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  5572. ok=no
  5573. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5574. req_major=`echo $min_libgcrypt_version | \
  5575. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5576. req_minor=`echo $min_libgcrypt_version | \
  5577. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5578. req_micro=`echo $min_libgcrypt_version | \
  5579. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5580. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5581. major=`echo $libgcrypt_config_version | \
  5582. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  5583. minor=`echo $libgcrypt_config_version | \
  5584. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  5585. micro=`echo $libgcrypt_config_version | \
  5586. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  5587. if test "$major" -gt "$req_major"; then
  5588. ok=yes
  5589. else
  5590. if test "$major" -eq "$req_major"; then
  5591. if test "$minor" -gt "$req_minor"; then
  5592. ok=yes
  5593. else
  5594. if test "$minor" -eq "$req_minor"; then
  5595. if test "$micro" -ge "$req_micro"; then
  5596. ok=yes
  5597. fi
  5598. fi
  5599. fi
  5600. fi
  5601. fi
  5602. fi
  5603. if test $ok = yes; then
  5604. { echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
  5605. echo "${ECHO_T}yes ($libgcrypt_config_version)" >&6; }
  5606. else
  5607. { echo "$as_me:$LINENO: result: no" >&5
  5608. echo "${ECHO_T}no" >&6; }
  5609. fi
  5610. if test $ok = yes; then
  5611. # If we have a recent libgcrypt, we should also check that the
  5612. # API is compatible
  5613. if test "$req_libgcrypt_api" -gt 0 ; then
  5614. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  5615. if test "$tmp" -gt 0 ; then
  5616. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  5617. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  5618. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  5619. { echo "$as_me:$LINENO: result: okay" >&5
  5620. echo "${ECHO_T}okay" >&6; }
  5621. else
  5622. ok=no
  5623. { echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  5624. echo "${ECHO_T}does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  5625. fi
  5626. fi
  5627. fi
  5628. fi
  5629. if test $ok = yes; then
  5630. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  5631. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  5632. have_libgcrypt=yes
  5633. else
  5634. LIBGCRYPT_CFLAGS=""
  5635. LIBGCRYPT_LIBS=""
  5636. :
  5637. fi
  5638. if test "x$have_libgcrypt" = "xyes"; then
  5639. cat >>confdefs.h <<\_ACEOF
  5640. #define HAVE_LIBGCRYPT 1
  5641. _ACEOF
  5642. fi
  5643. fi
  5644. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  5645. # Check whether --with-openssl-prefix was given.
  5646. if test "${with_openssl_prefix+set}" = set; then
  5647. withval=$with_openssl_prefix; openssl_prefix=$withval
  5648. else
  5649. openssl_prefix=""
  5650. fi
  5651. if test "x$openssl_prefix" = "x"; then
  5652. openssl_prefix="/usr/local"
  5653. fi
  5654. openssl_prefix_lib=$openssl_prefix/lib
  5655. openssl_prefix_include=$openssl_prefix/include
  5656. LIBS_save=$LIBS
  5657. CPPFLAGS_save=$CPPFLAGS
  5658. LIBS="-L$openssl_prefix_lib $LIBS"
  5659. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  5660. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  5661. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  5662. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  5663. echo $ECHO_N "(cached) $ECHO_C" >&6
  5664. else
  5665. ac_check_lib_save_LIBS=$LIBS
  5666. LIBS="-lssl $LIBS"
  5667. cat >conftest.$ac_ext <<_ACEOF
  5668. /* confdefs.h. */
  5669. _ACEOF
  5670. cat confdefs.h >>conftest.$ac_ext
  5671. cat >>conftest.$ac_ext <<_ACEOF
  5672. /* end confdefs.h. */
  5673. /* Override any GCC internal prototype to avoid an error.
  5674. Use char because int might match the return type of a GCC
  5675. builtin and then its argument prototype would still apply. */
  5676. #ifdef __cplusplus
  5677. extern "C"
  5678. #endif
  5679. char SSL_library_init ();
  5680. int
  5681. main ()
  5682. {
  5683. return SSL_library_init ();
  5684. ;
  5685. return 0;
  5686. }
  5687. _ACEOF
  5688. rm -f conftest.$ac_objext conftest$ac_exeext
  5689. if { (ac_try="$ac_link"
  5690. case "(($ac_try" in
  5691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5692. *) ac_try_echo=$ac_try;;
  5693. esac
  5694. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5695. (eval "$ac_link") 2>conftest.er1
  5696. ac_status=$?
  5697. grep -v '^ *+' conftest.er1 >conftest.err
  5698. rm -f conftest.er1
  5699. cat conftest.err >&5
  5700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5701. (exit $ac_status); } && {
  5702. test -z "$ac_cxx_werror_flag" ||
  5703. test ! -s conftest.err
  5704. } && test -s conftest$ac_exeext &&
  5705. $as_test_x conftest$ac_exeext; then
  5706. ac_cv_lib_ssl_SSL_library_init=yes
  5707. else
  5708. echo "$as_me: failed program was:" >&5
  5709. sed 's/^/| /' conftest.$ac_ext >&5
  5710. ac_cv_lib_ssl_SSL_library_init=no
  5711. fi
  5712. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5713. conftest$ac_exeext conftest.$ac_ext
  5714. LIBS=$ac_check_lib_save_LIBS
  5715. fi
  5716. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  5717. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  5718. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  5719. have_openssl=yes; LIBS="-lssl $LIBS"
  5720. fi
  5721. if test "x$have_openssl" = "xyes"; then
  5722. have_openssl=no
  5723. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  5724. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  5725. if test "${ac_cv_lib_crypto_main+set}" = set; then
  5726. echo $ECHO_N "(cached) $ECHO_C" >&6
  5727. else
  5728. ac_check_lib_save_LIBS=$LIBS
  5729. LIBS="-lcrypto $LIBS"
  5730. cat >conftest.$ac_ext <<_ACEOF
  5731. /* confdefs.h. */
  5732. _ACEOF
  5733. cat confdefs.h >>conftest.$ac_ext
  5734. cat >>conftest.$ac_ext <<_ACEOF
  5735. /* end confdefs.h. */
  5736. int
  5737. main ()
  5738. {
  5739. return main ();
  5740. ;
  5741. return 0;
  5742. }
  5743. _ACEOF
  5744. rm -f conftest.$ac_objext conftest$ac_exeext
  5745. if { (ac_try="$ac_link"
  5746. case "(($ac_try" in
  5747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5748. *) ac_try_echo=$ac_try;;
  5749. esac
  5750. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5751. (eval "$ac_link") 2>conftest.er1
  5752. ac_status=$?
  5753. grep -v '^ *+' conftest.er1 >conftest.err
  5754. rm -f conftest.er1
  5755. cat conftest.err >&5
  5756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5757. (exit $ac_status); } && {
  5758. test -z "$ac_cxx_werror_flag" ||
  5759. test ! -s conftest.err
  5760. } && test -s conftest$ac_exeext &&
  5761. $as_test_x conftest$ac_exeext; then
  5762. ac_cv_lib_crypto_main=yes
  5763. else
  5764. echo "$as_me: failed program was:" >&5
  5765. sed 's/^/| /' conftest.$ac_ext >&5
  5766. ac_cv_lib_crypto_main=no
  5767. fi
  5768. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5769. conftest$ac_exeext conftest.$ac_ext
  5770. LIBS=$ac_check_lib_save_LIBS
  5771. fi
  5772. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  5773. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  5774. if test $ac_cv_lib_crypto_main = yes; then
  5775. have_openssl=yes; LIBS="-lcrypto $LIBS"
  5776. fi
  5777. if test "x$have_openssl" = "xyes"; then
  5778. cat >>confdefs.h <<\_ACEOF
  5779. #define HAVE_LIBSSL 1
  5780. _ACEOF
  5781. for ac_func in EVP_DigestInit_ex
  5782. do
  5783. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5784. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5785. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5786. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5787. echo $ECHO_N "(cached) $ECHO_C" >&6
  5788. else
  5789. cat >conftest.$ac_ext <<_ACEOF
  5790. /* confdefs.h. */
  5791. _ACEOF
  5792. cat confdefs.h >>conftest.$ac_ext
  5793. cat >>conftest.$ac_ext <<_ACEOF
  5794. /* end confdefs.h. */
  5795. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5796. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5797. #define $ac_func innocuous_$ac_func
  5798. /* System header to define __stub macros and hopefully few prototypes,
  5799. which can conflict with char $ac_func (); below.
  5800. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5801. <limits.h> exists even on freestanding compilers. */
  5802. #ifdef __STDC__
  5803. # include <limits.h>
  5804. #else
  5805. # include <assert.h>
  5806. #endif
  5807. #undef $ac_func
  5808. /* Override any GCC internal prototype to avoid an error.
  5809. Use char because int might match the return type of a GCC
  5810. builtin and then its argument prototype would still apply. */
  5811. #ifdef __cplusplus
  5812. extern "C"
  5813. #endif
  5814. char $ac_func ();
  5815. /* The GNU C library defines this for functions which it implements
  5816. to always fail with ENOSYS. Some functions are actually named
  5817. something starting with __ and the normal name is an alias. */
  5818. #if defined __stub_$ac_func || defined __stub___$ac_func
  5819. choke me
  5820. #endif
  5821. int
  5822. main ()
  5823. {
  5824. return $ac_func ();
  5825. ;
  5826. return 0;
  5827. }
  5828. _ACEOF
  5829. rm -f conftest.$ac_objext conftest$ac_exeext
  5830. if { (ac_try="$ac_link"
  5831. case "(($ac_try" in
  5832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5833. *) ac_try_echo=$ac_try;;
  5834. esac
  5835. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5836. (eval "$ac_link") 2>conftest.er1
  5837. ac_status=$?
  5838. grep -v '^ *+' conftest.er1 >conftest.err
  5839. rm -f conftest.er1
  5840. cat conftest.err >&5
  5841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5842. (exit $ac_status); } && {
  5843. test -z "$ac_cxx_werror_flag" ||
  5844. test ! -s conftest.err
  5845. } && test -s conftest$ac_exeext &&
  5846. $as_test_x conftest$ac_exeext; then
  5847. eval "$as_ac_var=yes"
  5848. else
  5849. echo "$as_me: failed program was:" >&5
  5850. sed 's/^/| /' conftest.$ac_ext >&5
  5851. eval "$as_ac_var=no"
  5852. fi
  5853. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5854. conftest$ac_exeext conftest.$ac_ext
  5855. fi
  5856. ac_res=`eval echo '${'$as_ac_var'}'`
  5857. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5858. echo "${ECHO_T}$ac_res" >&6; }
  5859. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5860. cat >>confdefs.h <<_ACEOF
  5861. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5862. _ACEOF
  5863. have_digestinit_ex=yes
  5864. fi
  5865. done
  5866. if test "x$have_digestinit_ex" = "x"; then
  5867. cat >>confdefs.h <<\_ACEOF
  5868. #define HAVE_OLD_LIBSSL 1
  5869. _ACEOF
  5870. fi
  5871. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  5872. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  5873. for ac_func in EVP_sha256
  5874. do
  5875. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5876. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5877. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5878. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5879. echo $ECHO_N "(cached) $ECHO_C" >&6
  5880. else
  5881. cat >conftest.$ac_ext <<_ACEOF
  5882. /* confdefs.h. */
  5883. _ACEOF
  5884. cat confdefs.h >>conftest.$ac_ext
  5885. cat >>conftest.$ac_ext <<_ACEOF
  5886. /* end confdefs.h. */
  5887. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5888. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5889. #define $ac_func innocuous_$ac_func
  5890. /* System header to define __stub macros and hopefully few prototypes,
  5891. which can conflict with char $ac_func (); below.
  5892. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5893. <limits.h> exists even on freestanding compilers. */
  5894. #ifdef __STDC__
  5895. # include <limits.h>
  5896. #else
  5897. # include <assert.h>
  5898. #endif
  5899. #undef $ac_func
  5900. /* Override any GCC internal prototype to avoid an error.
  5901. Use char because int might match the return type of a GCC
  5902. builtin and then its argument prototype would still apply. */
  5903. #ifdef __cplusplus
  5904. extern "C"
  5905. #endif
  5906. char $ac_func ();
  5907. /* The GNU C library defines this for functions which it implements
  5908. to always fail with ENOSYS. Some functions are actually named
  5909. something starting with __ and the normal name is an alias. */
  5910. #if defined __stub_$ac_func || defined __stub___$ac_func
  5911. choke me
  5912. #endif
  5913. int
  5914. main ()
  5915. {
  5916. return $ac_func ();
  5917. ;
  5918. return 0;
  5919. }
  5920. _ACEOF
  5921. rm -f conftest.$ac_objext conftest$ac_exeext
  5922. if { (ac_try="$ac_link"
  5923. case "(($ac_try" in
  5924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5925. *) ac_try_echo=$ac_try;;
  5926. esac
  5927. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5928. (eval "$ac_link") 2>conftest.er1
  5929. ac_status=$?
  5930. grep -v '^ *+' conftest.er1 >conftest.err
  5931. rm -f conftest.er1
  5932. cat conftest.err >&5
  5933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5934. (exit $ac_status); } && {
  5935. test -z "$ac_cxx_werror_flag" ||
  5936. test ! -s conftest.err
  5937. } && test -s conftest$ac_exeext &&
  5938. $as_test_x conftest$ac_exeext; then
  5939. eval "$as_ac_var=yes"
  5940. else
  5941. echo "$as_me: failed program was:" >&5
  5942. sed 's/^/| /' conftest.$ac_ext >&5
  5943. eval "$as_ac_var=no"
  5944. fi
  5945. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5946. conftest$ac_exeext conftest.$ac_ext
  5947. fi
  5948. ac_res=`eval echo '${'$as_ac_var'}'`
  5949. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5950. echo "${ECHO_T}$ac_res" >&6; }
  5951. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5952. cat >>confdefs.h <<_ACEOF
  5953. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5954. _ACEOF
  5955. fi
  5956. done
  5957. fi
  5958. fi
  5959. LIBS=$LIBS_save
  5960. CPPFLAGS=$CPPFLAGS_save
  5961. fi
  5962. if test "x$with_libcares" = "xyes"; then
  5963. # Check whether --with-libcares-prefix was given.
  5964. if test "${with_libcares_prefix+set}" = set; then
  5965. withval=$with_libcares_prefix; libcares_prefix=$withval
  5966. else
  5967. libcares_prefix=""
  5968. fi
  5969. if test "x$libcares_prefix" = "x"; then
  5970. libcares_prefix="/usr"
  5971. fi
  5972. libcares_prefix_lib=$libcares_prefix/lib
  5973. libcares_prefix_include=$libcares_prefix/include
  5974. LIBS_save=$LIBS
  5975. CPPFLAGS_save=$CPPFLAGS
  5976. LIBS="-L$libcares_prefix_lib $LIBS"
  5977. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  5978. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  5979. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  5980. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  5981. echo $ECHO_N "(cached) $ECHO_C" >&6
  5982. else
  5983. ac_check_lib_save_LIBS=$LIBS
  5984. LIBS="-lcares $LIBS"
  5985. cat >conftest.$ac_ext <<_ACEOF
  5986. /* confdefs.h. */
  5987. _ACEOF
  5988. cat confdefs.h >>conftest.$ac_ext
  5989. cat >>conftest.$ac_ext <<_ACEOF
  5990. /* end confdefs.h. */
  5991. /* Override any GCC internal prototype to avoid an error.
  5992. Use char because int might match the return type of a GCC
  5993. builtin and then its argument prototype would still apply. */
  5994. #ifdef __cplusplus
  5995. extern "C"
  5996. #endif
  5997. char ares_init ();
  5998. int
  5999. main ()
  6000. {
  6001. return ares_init ();
  6002. ;
  6003. return 0;
  6004. }
  6005. _ACEOF
  6006. rm -f conftest.$ac_objext conftest$ac_exeext
  6007. if { (ac_try="$ac_link"
  6008. case "(($ac_try" in
  6009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6010. *) ac_try_echo=$ac_try;;
  6011. esac
  6012. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6013. (eval "$ac_link") 2>conftest.er1
  6014. ac_status=$?
  6015. grep -v '^ *+' conftest.er1 >conftest.err
  6016. rm -f conftest.er1
  6017. cat conftest.err >&5
  6018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6019. (exit $ac_status); } && {
  6020. test -z "$ac_cxx_werror_flag" ||
  6021. test ! -s conftest.err
  6022. } && test -s conftest$ac_exeext &&
  6023. $as_test_x conftest$ac_exeext; then
  6024. ac_cv_lib_cares_ares_init=yes
  6025. else
  6026. echo "$as_me: failed program was:" >&5
  6027. sed 's/^/| /' conftest.$ac_ext >&5
  6028. ac_cv_lib_cares_ares_init=no
  6029. fi
  6030. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6031. conftest$ac_exeext conftest.$ac_ext
  6032. LIBS=$ac_check_lib_save_LIBS
  6033. fi
  6034. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6035. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  6036. if test $ac_cv_lib_cares_ares_init = yes; then
  6037. have_libcares=yes
  6038. fi
  6039. if test "x$have_libcares" = "xyes"; then
  6040. { echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6041. echo $ECHO_N "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... $ECHO_C" >&6; }
  6042. cat >conftest.$ac_ext <<_ACEOF
  6043. /* confdefs.h. */
  6044. _ACEOF
  6045. cat confdefs.h >>conftest.$ac_ext
  6046. cat >>conftest.$ac_ext <<_ACEOF
  6047. /* end confdefs.h. */
  6048. #include <ares.h>
  6049. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6050. int
  6051. main ()
  6052. {
  6053. ares_channel channel;
  6054. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6055. ;
  6056. return 0;
  6057. }
  6058. _ACEOF
  6059. rm -f conftest.$ac_objext
  6060. if { (ac_try="$ac_compile"
  6061. case "(($ac_try" in
  6062. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6063. *) ac_try_echo=$ac_try;;
  6064. esac
  6065. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6066. (eval "$ac_compile") 2>conftest.er1
  6067. ac_status=$?
  6068. grep -v '^ *+' conftest.er1 >conftest.err
  6069. rm -f conftest.er1
  6070. cat conftest.err >&5
  6071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6072. (exit $ac_status); } && {
  6073. test -z "$ac_cxx_werror_flag" ||
  6074. test ! -s conftest.err
  6075. } && test -s conftest.$ac_objext; then
  6076. have_libcares1_5=yes
  6077. else
  6078. echo "$as_me: failed program was:" >&5
  6079. sed 's/^/| /' conftest.$ac_ext >&5
  6080. have_libcares1_5=no
  6081. fi
  6082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6083. { echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  6084. echo "${ECHO_T}$have_libcares1_5" >&6; }
  6085. if test "x$have_libcares1_5" = "xyes"; then
  6086. cat >>confdefs.h <<\_ACEOF
  6087. #define HAVE_LIBCARES1_5 1
  6088. _ACEOF
  6089. fi
  6090. cat >>confdefs.h <<\_ACEOF
  6091. #define HAVE_LIBCARES 1
  6092. _ACEOF
  6093. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6094. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6095. fi
  6096. LIBS=$LIBS_save
  6097. CPPFLAGS=$CPPFLAGS_save
  6098. fi
  6099. if test "x$have_libcares" = "x"; then
  6100. if test "x$with_libares" = "xyes"; then
  6101. # Check whether --with-libares-prefix was given.
  6102. if test "${with_libares_prefix+set}" = set; then
  6103. withval=$with_libares_prefix; libares_prefix=$withval
  6104. else
  6105. libares_prefix=""
  6106. fi
  6107. if test "x$libares_prefix" = "x"; then
  6108. libares_prefix="/usr"
  6109. fi
  6110. libares_prefix_lib=$libares_prefix/lib
  6111. libares_prefix_include=$libares_prefix/include
  6112. LIBS_save=$LIBS
  6113. CPPFLAGS_save=$CPPFLAGS
  6114. LIBS="-L$libares_prefix_lib $LIBS"
  6115. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  6116. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  6117. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  6118. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  6119. echo $ECHO_N "(cached) $ECHO_C" >&6
  6120. else
  6121. ac_check_lib_save_LIBS=$LIBS
  6122. LIBS="-lares $LIBS"
  6123. cat >conftest.$ac_ext <<_ACEOF
  6124. /* confdefs.h. */
  6125. _ACEOF
  6126. cat confdefs.h >>conftest.$ac_ext
  6127. cat >>conftest.$ac_ext <<_ACEOF
  6128. /* end confdefs.h. */
  6129. /* Override any GCC internal prototype to avoid an error.
  6130. Use char because int might match the return type of a GCC
  6131. builtin and then its argument prototype would still apply. */
  6132. #ifdef __cplusplus
  6133. extern "C"
  6134. #endif
  6135. char ares_init ();
  6136. int
  6137. main ()
  6138. {
  6139. return ares_init ();
  6140. ;
  6141. return 0;
  6142. }
  6143. _ACEOF
  6144. rm -f conftest.$ac_objext conftest$ac_exeext
  6145. if { (ac_try="$ac_link"
  6146. case "(($ac_try" in
  6147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6148. *) ac_try_echo=$ac_try;;
  6149. esac
  6150. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6151. (eval "$ac_link") 2>conftest.er1
  6152. ac_status=$?
  6153. grep -v '^ *+' conftest.er1 >conftest.err
  6154. rm -f conftest.er1
  6155. cat conftest.err >&5
  6156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6157. (exit $ac_status); } && {
  6158. test -z "$ac_cxx_werror_flag" ||
  6159. test ! -s conftest.err
  6160. } && test -s conftest$ac_exeext &&
  6161. $as_test_x conftest$ac_exeext; then
  6162. ac_cv_lib_ares_ares_init=yes
  6163. else
  6164. echo "$as_me: failed program was:" >&5
  6165. sed 's/^/| /' conftest.$ac_ext >&5
  6166. ac_cv_lib_ares_ares_init=no
  6167. fi
  6168. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6169. conftest$ac_exeext conftest.$ac_ext
  6170. LIBS=$ac_check_lib_save_LIBS
  6171. fi
  6172. { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  6173. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  6174. if test $ac_cv_lib_ares_ares_init = yes; then
  6175. have_libares=yes
  6176. fi
  6177. if test "x$have_libares" = "xyes"; then
  6178. cat >>confdefs.h <<\_ACEOF
  6179. #define HAVE_LIBARES 1
  6180. _ACEOF
  6181. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  6182. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  6183. fi
  6184. LIBS=$LIBS_save
  6185. CPPFLAGS=$CPPFLAGS_save
  6186. fi
  6187. fi
  6188. # Check availability of libz
  6189. if test "x$with_libz" = "xyes"; then
  6190. # Check whether --with-libz-prefix was given.
  6191. if test "${with_libz_prefix+set}" = set; then
  6192. withval=$with_libz_prefix; libz_prefix=$withval
  6193. else
  6194. libz_prefix=""
  6195. fi
  6196. if test "x$libz_prefix" = "x"; then
  6197. libz_prefix="/usr"
  6198. fi
  6199. libz_prefix_lib=$libz_prefix/lib
  6200. libz_prefix_include=$libz_prefix/include
  6201. LIBS_save=$LIBS
  6202. CPPFLAGS_save=$CPPFLAGS
  6203. LIBS="-L$libz_prefix_lib $LIBS"
  6204. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6205. { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
  6206. echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
  6207. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
  6208. echo $ECHO_N "(cached) $ECHO_C" >&6
  6209. else
  6210. ac_check_lib_save_LIBS=$LIBS
  6211. LIBS="-lz $LIBS"
  6212. cat >conftest.$ac_ext <<_ACEOF
  6213. /* confdefs.h. */
  6214. _ACEOF
  6215. cat confdefs.h >>conftest.$ac_ext
  6216. cat >>conftest.$ac_ext <<_ACEOF
  6217. /* end confdefs.h. */
  6218. /* Override any GCC internal prototype to avoid an error.
  6219. Use char because int might match the return type of a GCC
  6220. builtin and then its argument prototype would still apply. */
  6221. #ifdef __cplusplus
  6222. extern "C"
  6223. #endif
  6224. char zlibVersion ();
  6225. int
  6226. main ()
  6227. {
  6228. return zlibVersion ();
  6229. ;
  6230. return 0;
  6231. }
  6232. _ACEOF
  6233. rm -f conftest.$ac_objext conftest$ac_exeext
  6234. if { (ac_try="$ac_link"
  6235. case "(($ac_try" in
  6236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6237. *) ac_try_echo=$ac_try;;
  6238. esac
  6239. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6240. (eval "$ac_link") 2>conftest.er1
  6241. ac_status=$?
  6242. grep -v '^ *+' conftest.er1 >conftest.err
  6243. rm -f conftest.er1
  6244. cat conftest.err >&5
  6245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6246. (exit $ac_status); } && {
  6247. test -z "$ac_cxx_werror_flag" ||
  6248. test ! -s conftest.err
  6249. } && test -s conftest$ac_exeext &&
  6250. $as_test_x conftest$ac_exeext; then
  6251. ac_cv_lib_z_zlibVersion=yes
  6252. else
  6253. echo "$as_me: failed program was:" >&5
  6254. sed 's/^/| /' conftest.$ac_ext >&5
  6255. ac_cv_lib_z_zlibVersion=no
  6256. fi
  6257. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6258. conftest$ac_exeext conftest.$ac_ext
  6259. LIBS=$ac_check_lib_save_LIBS
  6260. fi
  6261. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
  6262. echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
  6263. if test $ac_cv_lib_z_zlibVersion = yes; then
  6264. have_libz=yes
  6265. fi
  6266. if test "x$have_libz" = "xyes"; then
  6267. cat >>confdefs.h <<\_ACEOF
  6268. #define HAVE_LIBZ 1
  6269. _ACEOF
  6270. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6271. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6272. fi
  6273. LIBS=$LIBS_save
  6274. CPPFLAGS=$CPPFLAGS_save
  6275. fi
  6276. # Define variables based on the result of the checks for libraries.
  6277. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6278. cat >>confdefs.h <<\_ACEOF
  6279. #define ENABLE_SSL 1
  6280. _ACEOF
  6281. fi
  6282. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6283. cat >>confdefs.h <<\_ACEOF
  6284. #define ENABLE_MESSAGE_DIGEST 1
  6285. _ACEOF
  6286. if true; then
  6287. ENABLE_MESSAGE_DIGEST_TRUE=
  6288. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6289. else
  6290. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6291. ENABLE_MESSAGE_DIGEST_FALSE=
  6292. fi
  6293. enable_message_digest=yes
  6294. else
  6295. if false; then
  6296. ENABLE_MESSAGE_DIGEST_TRUE=
  6297. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6298. else
  6299. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6300. ENABLE_MESSAGE_DIGEST_FALSE=
  6301. fi
  6302. fi
  6303. if test "x$enable_bittorrent" = "xyes" &&
  6304. test "x$enable_message_digest" = "xyes"; then
  6305. cat >>confdefs.h <<\_ACEOF
  6306. #define ENABLE_BITTORRENT 1
  6307. _ACEOF
  6308. if true; then
  6309. ENABLE_BITTORRENT_TRUE=
  6310. ENABLE_BITTORRENT_FALSE='#'
  6311. else
  6312. ENABLE_BITTORRENT_TRUE='#'
  6313. ENABLE_BITTORRENT_FALSE=
  6314. fi
  6315. else
  6316. enable_bittorrent=no
  6317. if false; then
  6318. ENABLE_BITTORRENT_TRUE=
  6319. ENABLE_BITTORRENT_FALSE='#'
  6320. else
  6321. ENABLE_BITTORRENT_TRUE='#'
  6322. ENABLE_BITTORRENT_FALSE=
  6323. fi
  6324. fi
  6325. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6326. test "x$enable_metalink" = "xyes"; then
  6327. cat >>confdefs.h <<\_ACEOF
  6328. #define ENABLE_METALINK 1
  6329. _ACEOF
  6330. if true; then
  6331. ENABLE_METALINK_TRUE=
  6332. ENABLE_METALINK_FALSE='#'
  6333. else
  6334. ENABLE_METALINK_TRUE='#'
  6335. ENABLE_METALINK_FALSE=
  6336. fi
  6337. else
  6338. enable_metalink=no
  6339. if false; then
  6340. ENABLE_METALINK_TRUE=
  6341. ENABLE_METALINK_FALSE='#'
  6342. else
  6343. ENABLE_METALINK_TRUE='#'
  6344. ENABLE_METALINK_FALSE=
  6345. fi
  6346. fi
  6347. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6348. ENABLE_LIBXML2_TRUE=
  6349. ENABLE_LIBXML2_FALSE='#'
  6350. else
  6351. ENABLE_LIBXML2_TRUE='#'
  6352. ENABLE_LIBXML2_FALSE=
  6353. fi
  6354. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6355. ENABLE_LIBEXPAT_TRUE=
  6356. ENABLE_LIBEXPAT_FALSE='#'
  6357. else
  6358. ENABLE_LIBEXPAT_TRUE='#'
  6359. ENABLE_LIBEXPAT_FALSE=
  6360. fi
  6361. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  6362. cat >>confdefs.h <<\_ACEOF
  6363. #define ENABLE_ASYNC_DNS 1
  6364. _ACEOF
  6365. if true; then
  6366. ENABLE_ASYNC_DNS_TRUE=
  6367. ENABLE_ASYNC_DNS_FALSE='#'
  6368. else
  6369. ENABLE_ASYNC_DNS_TRUE='#'
  6370. ENABLE_ASYNC_DNS_FALSE=
  6371. fi
  6372. else
  6373. if false; then
  6374. ENABLE_ASYNC_DNS_TRUE=
  6375. ENABLE_ASYNC_DNS_FALSE='#'
  6376. else
  6377. ENABLE_ASYNC_DNS_TRUE='#'
  6378. ENABLE_ASYNC_DNS_FALSE=
  6379. fi
  6380. fi
  6381. # Set conditional for libz
  6382. if test "x$have_libz" = "xyes"; then
  6383. HAVE_LIBZ_TRUE=
  6384. HAVE_LIBZ_FALSE='#'
  6385. else
  6386. HAVE_LIBZ_TRUE='#'
  6387. HAVE_LIBZ_FALSE=
  6388. fi
  6389. # Checks for header files.
  6390. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6391. # for constant arguments. Useless!
  6392. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  6393. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  6394. if test "${ac_cv_working_alloca_h+set}" = set; then
  6395. echo $ECHO_N "(cached) $ECHO_C" >&6
  6396. else
  6397. cat >conftest.$ac_ext <<_ACEOF
  6398. /* confdefs.h. */
  6399. _ACEOF
  6400. cat confdefs.h >>conftest.$ac_ext
  6401. cat >>conftest.$ac_ext <<_ACEOF
  6402. /* end confdefs.h. */
  6403. #include <alloca.h>
  6404. int
  6405. main ()
  6406. {
  6407. char *p = (char *) alloca (2 * sizeof (int));
  6408. if (p) return 0;
  6409. ;
  6410. return 0;
  6411. }
  6412. _ACEOF
  6413. rm -f conftest.$ac_objext conftest$ac_exeext
  6414. if { (ac_try="$ac_link"
  6415. case "(($ac_try" in
  6416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6417. *) ac_try_echo=$ac_try;;
  6418. esac
  6419. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6420. (eval "$ac_link") 2>conftest.er1
  6421. ac_status=$?
  6422. grep -v '^ *+' conftest.er1 >conftest.err
  6423. rm -f conftest.er1
  6424. cat conftest.err >&5
  6425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6426. (exit $ac_status); } && {
  6427. test -z "$ac_cxx_werror_flag" ||
  6428. test ! -s conftest.err
  6429. } && test -s conftest$ac_exeext &&
  6430. $as_test_x conftest$ac_exeext; then
  6431. ac_cv_working_alloca_h=yes
  6432. else
  6433. echo "$as_me: failed program was:" >&5
  6434. sed 's/^/| /' conftest.$ac_ext >&5
  6435. ac_cv_working_alloca_h=no
  6436. fi
  6437. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6438. conftest$ac_exeext conftest.$ac_ext
  6439. fi
  6440. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6441. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  6442. if test $ac_cv_working_alloca_h = yes; then
  6443. cat >>confdefs.h <<\_ACEOF
  6444. #define HAVE_ALLOCA_H 1
  6445. _ACEOF
  6446. fi
  6447. { echo "$as_me:$LINENO: checking for alloca" >&5
  6448. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  6449. if test "${ac_cv_func_alloca_works+set}" = set; then
  6450. echo $ECHO_N "(cached) $ECHO_C" >&6
  6451. else
  6452. cat >conftest.$ac_ext <<_ACEOF
  6453. /* confdefs.h. */
  6454. _ACEOF
  6455. cat confdefs.h >>conftest.$ac_ext
  6456. cat >>conftest.$ac_ext <<_ACEOF
  6457. /* end confdefs.h. */
  6458. #ifdef __GNUC__
  6459. # define alloca __builtin_alloca
  6460. #else
  6461. # ifdef _MSC_VER
  6462. # include <malloc.h>
  6463. # define alloca _alloca
  6464. # else
  6465. # ifdef HAVE_ALLOCA_H
  6466. # include <alloca.h>
  6467. # else
  6468. # ifdef _AIX
  6469. #pragma alloca
  6470. # else
  6471. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6472. char *alloca ();
  6473. # endif
  6474. # endif
  6475. # endif
  6476. # endif
  6477. #endif
  6478. int
  6479. main ()
  6480. {
  6481. char *p = (char *) alloca (1);
  6482. if (p) return 0;
  6483. ;
  6484. return 0;
  6485. }
  6486. _ACEOF
  6487. rm -f conftest.$ac_objext conftest$ac_exeext
  6488. if { (ac_try="$ac_link"
  6489. case "(($ac_try" in
  6490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6491. *) ac_try_echo=$ac_try;;
  6492. esac
  6493. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6494. (eval "$ac_link") 2>conftest.er1
  6495. ac_status=$?
  6496. grep -v '^ *+' conftest.er1 >conftest.err
  6497. rm -f conftest.er1
  6498. cat conftest.err >&5
  6499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6500. (exit $ac_status); } && {
  6501. test -z "$ac_cxx_werror_flag" ||
  6502. test ! -s conftest.err
  6503. } && test -s conftest$ac_exeext &&
  6504. $as_test_x conftest$ac_exeext; then
  6505. ac_cv_func_alloca_works=yes
  6506. else
  6507. echo "$as_me: failed program was:" >&5
  6508. sed 's/^/| /' conftest.$ac_ext >&5
  6509. ac_cv_func_alloca_works=no
  6510. fi
  6511. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6512. conftest$ac_exeext conftest.$ac_ext
  6513. fi
  6514. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  6515. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  6516. if test $ac_cv_func_alloca_works = yes; then
  6517. cat >>confdefs.h <<\_ACEOF
  6518. #define HAVE_ALLOCA 1
  6519. _ACEOF
  6520. else
  6521. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6522. # that cause trouble. Some versions do not even contain alloca or
  6523. # contain a buggy version. If you still want to use their alloca,
  6524. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6525. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6526. cat >>confdefs.h <<\_ACEOF
  6527. #define C_ALLOCA 1
  6528. _ACEOF
  6529. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  6530. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  6531. if test "${ac_cv_os_cray+set}" = set; then
  6532. echo $ECHO_N "(cached) $ECHO_C" >&6
  6533. else
  6534. cat >conftest.$ac_ext <<_ACEOF
  6535. /* confdefs.h. */
  6536. _ACEOF
  6537. cat confdefs.h >>conftest.$ac_ext
  6538. cat >>conftest.$ac_ext <<_ACEOF
  6539. /* end confdefs.h. */
  6540. #if defined CRAY && ! defined CRAY2
  6541. webecray
  6542. #else
  6543. wenotbecray
  6544. #endif
  6545. _ACEOF
  6546. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6547. $EGREP "webecray" >/dev/null 2>&1; then
  6548. ac_cv_os_cray=yes
  6549. else
  6550. ac_cv_os_cray=no
  6551. fi
  6552. rm -f conftest*
  6553. fi
  6554. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  6555. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  6556. if test $ac_cv_os_cray = yes; then
  6557. for ac_func in _getb67 GETB67 getb67; do
  6558. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6559. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6560. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6561. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6562. echo $ECHO_N "(cached) $ECHO_C" >&6
  6563. else
  6564. cat >conftest.$ac_ext <<_ACEOF
  6565. /* confdefs.h. */
  6566. _ACEOF
  6567. cat confdefs.h >>conftest.$ac_ext
  6568. cat >>conftest.$ac_ext <<_ACEOF
  6569. /* end confdefs.h. */
  6570. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6571. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6572. #define $ac_func innocuous_$ac_func
  6573. /* System header to define __stub macros and hopefully few prototypes,
  6574. which can conflict with char $ac_func (); below.
  6575. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6576. <limits.h> exists even on freestanding compilers. */
  6577. #ifdef __STDC__
  6578. # include <limits.h>
  6579. #else
  6580. # include <assert.h>
  6581. #endif
  6582. #undef $ac_func
  6583. /* Override any GCC internal prototype to avoid an error.
  6584. Use char because int might match the return type of a GCC
  6585. builtin and then its argument prototype would still apply. */
  6586. #ifdef __cplusplus
  6587. extern "C"
  6588. #endif
  6589. char $ac_func ();
  6590. /* The GNU C library defines this for functions which it implements
  6591. to always fail with ENOSYS. Some functions are actually named
  6592. something starting with __ and the normal name is an alias. */
  6593. #if defined __stub_$ac_func || defined __stub___$ac_func
  6594. choke me
  6595. #endif
  6596. int
  6597. main ()
  6598. {
  6599. return $ac_func ();
  6600. ;
  6601. return 0;
  6602. }
  6603. _ACEOF
  6604. rm -f conftest.$ac_objext conftest$ac_exeext
  6605. if { (ac_try="$ac_link"
  6606. case "(($ac_try" in
  6607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6608. *) ac_try_echo=$ac_try;;
  6609. esac
  6610. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6611. (eval "$ac_link") 2>conftest.er1
  6612. ac_status=$?
  6613. grep -v '^ *+' conftest.er1 >conftest.err
  6614. rm -f conftest.er1
  6615. cat conftest.err >&5
  6616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6617. (exit $ac_status); } && {
  6618. test -z "$ac_cxx_werror_flag" ||
  6619. test ! -s conftest.err
  6620. } && test -s conftest$ac_exeext &&
  6621. $as_test_x conftest$ac_exeext; then
  6622. eval "$as_ac_var=yes"
  6623. else
  6624. echo "$as_me: failed program was:" >&5
  6625. sed 's/^/| /' conftest.$ac_ext >&5
  6626. eval "$as_ac_var=no"
  6627. fi
  6628. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6629. conftest$ac_exeext conftest.$ac_ext
  6630. fi
  6631. ac_res=`eval echo '${'$as_ac_var'}'`
  6632. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6633. echo "${ECHO_T}$ac_res" >&6; }
  6634. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6635. cat >>confdefs.h <<_ACEOF
  6636. #define CRAY_STACKSEG_END $ac_func
  6637. _ACEOF
  6638. break
  6639. fi
  6640. done
  6641. fi
  6642. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6643. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6644. if test "${ac_cv_c_stack_direction+set}" = set; then
  6645. echo $ECHO_N "(cached) $ECHO_C" >&6
  6646. else
  6647. if test "$cross_compiling" = yes; then
  6648. ac_cv_c_stack_direction=0
  6649. else
  6650. cat >conftest.$ac_ext <<_ACEOF
  6651. /* confdefs.h. */
  6652. _ACEOF
  6653. cat confdefs.h >>conftest.$ac_ext
  6654. cat >>conftest.$ac_ext <<_ACEOF
  6655. /* end confdefs.h. */
  6656. $ac_includes_default
  6657. int
  6658. find_stack_direction ()
  6659. {
  6660. static char *addr = 0;
  6661. auto char dummy;
  6662. if (addr == 0)
  6663. {
  6664. addr = &dummy;
  6665. return find_stack_direction ();
  6666. }
  6667. else
  6668. return (&dummy > addr) ? 1 : -1;
  6669. }
  6670. int
  6671. main ()
  6672. {
  6673. return find_stack_direction () < 0;
  6674. }
  6675. _ACEOF
  6676. rm -f conftest$ac_exeext
  6677. if { (ac_try="$ac_link"
  6678. case "(($ac_try" in
  6679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6680. *) ac_try_echo=$ac_try;;
  6681. esac
  6682. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6683. (eval "$ac_link") 2>&5
  6684. ac_status=$?
  6685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6686. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6687. { (case "(($ac_try" in
  6688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6689. *) ac_try_echo=$ac_try;;
  6690. esac
  6691. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6692. (eval "$ac_try") 2>&5
  6693. ac_status=$?
  6694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6695. (exit $ac_status); }; }; then
  6696. ac_cv_c_stack_direction=1
  6697. else
  6698. echo "$as_me: program exited with status $ac_status" >&5
  6699. echo "$as_me: failed program was:" >&5
  6700. sed 's/^/| /' conftest.$ac_ext >&5
  6701. ( exit $ac_status )
  6702. ac_cv_c_stack_direction=-1
  6703. fi
  6704. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6705. fi
  6706. fi
  6707. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6708. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  6709. cat >>confdefs.h <<_ACEOF
  6710. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6711. _ACEOF
  6712. fi
  6713. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6714. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  6715. if test "${ac_cv_header_stdc+set}" = set; then
  6716. echo $ECHO_N "(cached) $ECHO_C" >&6
  6717. else
  6718. cat >conftest.$ac_ext <<_ACEOF
  6719. /* confdefs.h. */
  6720. _ACEOF
  6721. cat confdefs.h >>conftest.$ac_ext
  6722. cat >>conftest.$ac_ext <<_ACEOF
  6723. /* end confdefs.h. */
  6724. #include <stdlib.h>
  6725. #include <stdarg.h>
  6726. #include <string.h>
  6727. #include <float.h>
  6728. int
  6729. main ()
  6730. {
  6731. ;
  6732. return 0;
  6733. }
  6734. _ACEOF
  6735. rm -f conftest.$ac_objext
  6736. if { (ac_try="$ac_compile"
  6737. case "(($ac_try" in
  6738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6739. *) ac_try_echo=$ac_try;;
  6740. esac
  6741. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6742. (eval "$ac_compile") 2>conftest.er1
  6743. ac_status=$?
  6744. grep -v '^ *+' conftest.er1 >conftest.err
  6745. rm -f conftest.er1
  6746. cat conftest.err >&5
  6747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6748. (exit $ac_status); } && {
  6749. test -z "$ac_cxx_werror_flag" ||
  6750. test ! -s conftest.err
  6751. } && test -s conftest.$ac_objext; then
  6752. ac_cv_header_stdc=yes
  6753. else
  6754. echo "$as_me: failed program was:" >&5
  6755. sed 's/^/| /' conftest.$ac_ext >&5
  6756. ac_cv_header_stdc=no
  6757. fi
  6758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6759. if test $ac_cv_header_stdc = yes; then
  6760. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6761. cat >conftest.$ac_ext <<_ACEOF
  6762. /* confdefs.h. */
  6763. _ACEOF
  6764. cat confdefs.h >>conftest.$ac_ext
  6765. cat >>conftest.$ac_ext <<_ACEOF
  6766. /* end confdefs.h. */
  6767. #include <string.h>
  6768. _ACEOF
  6769. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6770. $EGREP "memchr" >/dev/null 2>&1; then
  6771. :
  6772. else
  6773. ac_cv_header_stdc=no
  6774. fi
  6775. rm -f conftest*
  6776. fi
  6777. if test $ac_cv_header_stdc = yes; then
  6778. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6779. cat >conftest.$ac_ext <<_ACEOF
  6780. /* confdefs.h. */
  6781. _ACEOF
  6782. cat confdefs.h >>conftest.$ac_ext
  6783. cat >>conftest.$ac_ext <<_ACEOF
  6784. /* end confdefs.h. */
  6785. #include <stdlib.h>
  6786. _ACEOF
  6787. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6788. $EGREP "free" >/dev/null 2>&1; then
  6789. :
  6790. else
  6791. ac_cv_header_stdc=no
  6792. fi
  6793. rm -f conftest*
  6794. fi
  6795. if test $ac_cv_header_stdc = yes; then
  6796. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6797. if test "$cross_compiling" = yes; then
  6798. :
  6799. else
  6800. cat >conftest.$ac_ext <<_ACEOF
  6801. /* confdefs.h. */
  6802. _ACEOF
  6803. cat confdefs.h >>conftest.$ac_ext
  6804. cat >>conftest.$ac_ext <<_ACEOF
  6805. /* end confdefs.h. */
  6806. #include <ctype.h>
  6807. #include <stdlib.h>
  6808. #if ((' ' & 0x0FF) == 0x020)
  6809. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6810. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6811. #else
  6812. # define ISLOWER(c) \
  6813. (('a' <= (c) && (c) <= 'i') \
  6814. || ('j' <= (c) && (c) <= 'r') \
  6815. || ('s' <= (c) && (c) <= 'z'))
  6816. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6817. #endif
  6818. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6819. int
  6820. main ()
  6821. {
  6822. int i;
  6823. for (i = 0; i < 256; i++)
  6824. if (XOR (islower (i), ISLOWER (i))
  6825. || toupper (i) != TOUPPER (i))
  6826. return 2;
  6827. return 0;
  6828. }
  6829. _ACEOF
  6830. rm -f conftest$ac_exeext
  6831. if { (ac_try="$ac_link"
  6832. case "(($ac_try" in
  6833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6834. *) ac_try_echo=$ac_try;;
  6835. esac
  6836. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6837. (eval "$ac_link") 2>&5
  6838. ac_status=$?
  6839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6840. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6841. { (case "(($ac_try" in
  6842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6843. *) ac_try_echo=$ac_try;;
  6844. esac
  6845. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6846. (eval "$ac_try") 2>&5
  6847. ac_status=$?
  6848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6849. (exit $ac_status); }; }; then
  6850. :
  6851. else
  6852. echo "$as_me: program exited with status $ac_status" >&5
  6853. echo "$as_me: failed program was:" >&5
  6854. sed 's/^/| /' conftest.$ac_ext >&5
  6855. ( exit $ac_status )
  6856. ac_cv_header_stdc=no
  6857. fi
  6858. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6859. fi
  6860. fi
  6861. fi
  6862. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6863. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  6864. if test $ac_cv_header_stdc = yes; then
  6865. cat >>confdefs.h <<\_ACEOF
  6866. #define STDC_HEADERS 1
  6867. _ACEOF
  6868. fi
  6869. for ac_header in winsock2.h \
  6870. ws2tcpip.h \
  6871. argz.h \
  6872. arpa/inet.h \
  6873. fcntl.h \
  6874. float.h \
  6875. inttypes.h \
  6876. io.h \
  6877. langinfo.h \
  6878. libintl.h \
  6879. limits.h \
  6880. locale.h \
  6881. malloc.h \
  6882. netdb.h \
  6883. netinet/in.h \
  6884. stddef.h \
  6885. stdint.h \
  6886. stdio_ext.h \
  6887. stdlib.h \
  6888. string.h \
  6889. strings.h \
  6890. sys/ioctl.h \
  6891. sys/param.h \
  6892. sys/socket.h \
  6893. sys/time.h \
  6894. termios.h \
  6895. unistd.h \
  6896. wchar.h
  6897. do
  6898. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6899. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6900. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6901. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6902. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6903. echo $ECHO_N "(cached) $ECHO_C" >&6
  6904. fi
  6905. ac_res=`eval echo '${'$as_ac_Header'}'`
  6906. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6907. echo "${ECHO_T}$ac_res" >&6; }
  6908. else
  6909. # Is the header compilable?
  6910. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6911. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6912. cat >conftest.$ac_ext <<_ACEOF
  6913. /* confdefs.h. */
  6914. _ACEOF
  6915. cat confdefs.h >>conftest.$ac_ext
  6916. cat >>conftest.$ac_ext <<_ACEOF
  6917. /* end confdefs.h. */
  6918. $ac_includes_default
  6919. #include <$ac_header>
  6920. _ACEOF
  6921. rm -f conftest.$ac_objext
  6922. if { (ac_try="$ac_compile"
  6923. case "(($ac_try" in
  6924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6925. *) ac_try_echo=$ac_try;;
  6926. esac
  6927. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6928. (eval "$ac_compile") 2>conftest.er1
  6929. ac_status=$?
  6930. grep -v '^ *+' conftest.er1 >conftest.err
  6931. rm -f conftest.er1
  6932. cat conftest.err >&5
  6933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6934. (exit $ac_status); } && {
  6935. test -z "$ac_cxx_werror_flag" ||
  6936. test ! -s conftest.err
  6937. } && test -s conftest.$ac_objext; then
  6938. ac_header_compiler=yes
  6939. else
  6940. echo "$as_me: failed program was:" >&5
  6941. sed 's/^/| /' conftest.$ac_ext >&5
  6942. ac_header_compiler=no
  6943. fi
  6944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6945. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6946. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6947. # Is the header present?
  6948. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6949. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6950. cat >conftest.$ac_ext <<_ACEOF
  6951. /* confdefs.h. */
  6952. _ACEOF
  6953. cat confdefs.h >>conftest.$ac_ext
  6954. cat >>conftest.$ac_ext <<_ACEOF
  6955. /* end confdefs.h. */
  6956. #include <$ac_header>
  6957. _ACEOF
  6958. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6959. case "(($ac_try" in
  6960. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6961. *) ac_try_echo=$ac_try;;
  6962. esac
  6963. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6964. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6965. ac_status=$?
  6966. grep -v '^ *+' conftest.er1 >conftest.err
  6967. rm -f conftest.er1
  6968. cat conftest.err >&5
  6969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6970. (exit $ac_status); } >/dev/null && {
  6971. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  6972. test ! -s conftest.err
  6973. }; then
  6974. ac_header_preproc=yes
  6975. else
  6976. echo "$as_me: failed program was:" >&5
  6977. sed 's/^/| /' conftest.$ac_ext >&5
  6978. ac_header_preproc=no
  6979. fi
  6980. rm -f conftest.err conftest.$ac_ext
  6981. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6982. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6983. # So? What about this header?
  6984. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  6985. yes:no: )
  6986. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6987. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6988. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6989. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6990. ac_header_preproc=yes
  6991. ;;
  6992. no:yes:* )
  6993. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6994. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6995. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6996. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6997. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6998. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6999. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7000. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7001. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7002. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7003. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7004. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7005. ( cat <<\_ASBOX
  7006. ## ----------------------------------------------- ##
  7007. ## Report this to t-tujikawa@users.sourceforge.net ##
  7008. ## ----------------------------------------------- ##
  7009. _ASBOX
  7010. ) | sed "s/^/$as_me: WARNING: /" >&2
  7011. ;;
  7012. esac
  7013. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7014. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7015. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7016. echo $ECHO_N "(cached) $ECHO_C" >&6
  7017. else
  7018. eval "$as_ac_Header=\$ac_header_preproc"
  7019. fi
  7020. ac_res=`eval echo '${'$as_ac_Header'}'`
  7021. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7022. echo "${ECHO_T}$ac_res" >&6; }
  7023. fi
  7024. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7025. cat >>confdefs.h <<_ACEOF
  7026. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7027. _ACEOF
  7028. fi
  7029. done
  7030. # Checks for typedefs, structures, and compiler characteristics.
  7031. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  7032. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  7033. if test "${ac_cv_header_stdbool_h+set}" = set; then
  7034. echo $ECHO_N "(cached) $ECHO_C" >&6
  7035. else
  7036. cat >conftest.$ac_ext <<_ACEOF
  7037. /* confdefs.h. */
  7038. _ACEOF
  7039. cat confdefs.h >>conftest.$ac_ext
  7040. cat >>conftest.$ac_ext <<_ACEOF
  7041. /* end confdefs.h. */
  7042. #include <stdbool.h>
  7043. #ifndef bool
  7044. "error: bool is not defined"
  7045. #endif
  7046. #ifndef false
  7047. "error: false is not defined"
  7048. #endif
  7049. #if false
  7050. "error: false is not 0"
  7051. #endif
  7052. #ifndef true
  7053. "error: true is not defined"
  7054. #endif
  7055. #if true != 1
  7056. "error: true is not 1"
  7057. #endif
  7058. #ifndef __bool_true_false_are_defined
  7059. "error: __bool_true_false_are_defined is not defined"
  7060. #endif
  7061. struct s { _Bool s: 1; _Bool t; } s;
  7062. char a[true == 1 ? 1 : -1];
  7063. char b[false == 0 ? 1 : -1];
  7064. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7065. char d[(bool) 0.5 == true ? 1 : -1];
  7066. bool e = &s;
  7067. char f[(_Bool) 0.0 == false ? 1 : -1];
  7068. char g[true];
  7069. char h[sizeof (_Bool)];
  7070. char i[sizeof s.t];
  7071. enum { j = false, k = true, l = false * true, m = true * 256 };
  7072. _Bool n[m];
  7073. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7074. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7075. # if defined __xlc__ || defined __GNUC__
  7076. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7077. reported by James Lemley on 2005-10-05; see
  7078. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7079. This test is not quite right, since xlc is allowed to
  7080. reject this program, as the initializer for xlcbug is
  7081. not one of the forms that C requires support for.
  7082. However, doing the test right would require a runtime
  7083. test, and that would make cross-compilation harder.
  7084. Let us hope that IBM fixes the xlc bug, and also adds
  7085. support for this kind of constant expression. In the
  7086. meantime, this test will reject xlc, which is OK, since
  7087. our stdbool.h substitute should suffice. We also test
  7088. this with GCC, where it should work, to detect more
  7089. quickly whether someone messes up the test in the
  7090. future. */
  7091. char digs[] = "0123456789";
  7092. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7093. # endif
  7094. /* Catch a bug in an HP-UX C compiler. See
  7095. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7096. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7097. */
  7098. _Bool q = true;
  7099. _Bool *pq = &q;
  7100. int
  7101. main ()
  7102. {
  7103. *pq |= q;
  7104. *pq |= ! q;
  7105. /* Refer to every declared value, to avoid compiler optimizations. */
  7106. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7107. + !m + !n + !o + !p + !q + !pq);
  7108. ;
  7109. return 0;
  7110. }
  7111. _ACEOF
  7112. rm -f conftest.$ac_objext
  7113. if { (ac_try="$ac_compile"
  7114. case "(($ac_try" in
  7115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7116. *) ac_try_echo=$ac_try;;
  7117. esac
  7118. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7119. (eval "$ac_compile") 2>conftest.er1
  7120. ac_status=$?
  7121. grep -v '^ *+' conftest.er1 >conftest.err
  7122. rm -f conftest.er1
  7123. cat conftest.err >&5
  7124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7125. (exit $ac_status); } && {
  7126. test -z "$ac_cxx_werror_flag" ||
  7127. test ! -s conftest.err
  7128. } && test -s conftest.$ac_objext; then
  7129. ac_cv_header_stdbool_h=yes
  7130. else
  7131. echo "$as_me: failed program was:" >&5
  7132. sed 's/^/| /' conftest.$ac_ext >&5
  7133. ac_cv_header_stdbool_h=no
  7134. fi
  7135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7136. fi
  7137. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  7138. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  7139. { echo "$as_me:$LINENO: checking for _Bool" >&5
  7140. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  7141. if test "${ac_cv_type__Bool+set}" = set; then
  7142. echo $ECHO_N "(cached) $ECHO_C" >&6
  7143. else
  7144. cat >conftest.$ac_ext <<_ACEOF
  7145. /* confdefs.h. */
  7146. _ACEOF
  7147. cat confdefs.h >>conftest.$ac_ext
  7148. cat >>conftest.$ac_ext <<_ACEOF
  7149. /* end confdefs.h. */
  7150. $ac_includes_default
  7151. typedef _Bool ac__type_new_;
  7152. int
  7153. main ()
  7154. {
  7155. if ((ac__type_new_ *) 0)
  7156. return 0;
  7157. if (sizeof (ac__type_new_))
  7158. return 0;
  7159. ;
  7160. return 0;
  7161. }
  7162. _ACEOF
  7163. rm -f conftest.$ac_objext
  7164. if { (ac_try="$ac_compile"
  7165. case "(($ac_try" in
  7166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7167. *) ac_try_echo=$ac_try;;
  7168. esac
  7169. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7170. (eval "$ac_compile") 2>conftest.er1
  7171. ac_status=$?
  7172. grep -v '^ *+' conftest.er1 >conftest.err
  7173. rm -f conftest.er1
  7174. cat conftest.err >&5
  7175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7176. (exit $ac_status); } && {
  7177. test -z "$ac_cxx_werror_flag" ||
  7178. test ! -s conftest.err
  7179. } && test -s conftest.$ac_objext; then
  7180. ac_cv_type__Bool=yes
  7181. else
  7182. echo "$as_me: failed program was:" >&5
  7183. sed 's/^/| /' conftest.$ac_ext >&5
  7184. ac_cv_type__Bool=no
  7185. fi
  7186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7187. fi
  7188. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  7189. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  7190. if test $ac_cv_type__Bool = yes; then
  7191. cat >>confdefs.h <<_ACEOF
  7192. #define HAVE__BOOL 1
  7193. _ACEOF
  7194. fi
  7195. if test $ac_cv_header_stdbool_h = yes; then
  7196. cat >>confdefs.h <<\_ACEOF
  7197. #define HAVE_STDBOOL_H 1
  7198. _ACEOF
  7199. fi
  7200. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  7201. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  7202. if test "${ac_cv_c_const+set}" = set; then
  7203. echo $ECHO_N "(cached) $ECHO_C" >&6
  7204. else
  7205. cat >conftest.$ac_ext <<_ACEOF
  7206. /* confdefs.h. */
  7207. _ACEOF
  7208. cat confdefs.h >>conftest.$ac_ext
  7209. cat >>conftest.$ac_ext <<_ACEOF
  7210. /* end confdefs.h. */
  7211. int
  7212. main ()
  7213. {
  7214. /* FIXME: Include the comments suggested by Paul. */
  7215. #ifndef __cplusplus
  7216. /* Ultrix mips cc rejects this. */
  7217. typedef int charset[2];
  7218. const charset cs;
  7219. /* SunOS 4.1.1 cc rejects this. */
  7220. char const *const *pcpcc;
  7221. char **ppc;
  7222. /* NEC SVR4.0.2 mips cc rejects this. */
  7223. struct point {int x, y;};
  7224. static struct point const zero = {0,0};
  7225. /* AIX XL C 1.02.0.0 rejects this.
  7226. It does not let you subtract one const X* pointer from another in
  7227. an arm of an if-expression whose if-part is not a constant
  7228. expression */
  7229. const char *g = "string";
  7230. pcpcc = &g + (g ? g-g : 0);
  7231. /* HPUX 7.0 cc rejects these. */
  7232. ++pcpcc;
  7233. ppc = (char**) pcpcc;
  7234. pcpcc = (char const *const *) ppc;
  7235. { /* SCO 3.2v4 cc rejects this. */
  7236. char *t;
  7237. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7238. *t++ = 0;
  7239. if (s) return 0;
  7240. }
  7241. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7242. int x[] = {25, 17};
  7243. const int *foo = &x[0];
  7244. ++foo;
  7245. }
  7246. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7247. typedef const int *iptr;
  7248. iptr p = 0;
  7249. ++p;
  7250. }
  7251. { /* AIX XL C 1.02.0.0 rejects this saying
  7252. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7253. struct s { int j; const int *ap[3]; };
  7254. struct s *b; b->j = 5;
  7255. }
  7256. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7257. const int foo = 10;
  7258. if (!foo) return 0;
  7259. }
  7260. return !cs[0] && !zero.x;
  7261. #endif
  7262. ;
  7263. return 0;
  7264. }
  7265. _ACEOF
  7266. rm -f conftest.$ac_objext
  7267. if { (ac_try="$ac_compile"
  7268. case "(($ac_try" in
  7269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7270. *) ac_try_echo=$ac_try;;
  7271. esac
  7272. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7273. (eval "$ac_compile") 2>conftest.er1
  7274. ac_status=$?
  7275. grep -v '^ *+' conftest.er1 >conftest.err
  7276. rm -f conftest.er1
  7277. cat conftest.err >&5
  7278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7279. (exit $ac_status); } && {
  7280. test -z "$ac_cxx_werror_flag" ||
  7281. test ! -s conftest.err
  7282. } && test -s conftest.$ac_objext; then
  7283. ac_cv_c_const=yes
  7284. else
  7285. echo "$as_me: failed program was:" >&5
  7286. sed 's/^/| /' conftest.$ac_ext >&5
  7287. ac_cv_c_const=no
  7288. fi
  7289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7290. fi
  7291. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  7292. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  7293. if test $ac_cv_c_const = no; then
  7294. cat >>confdefs.h <<\_ACEOF
  7295. #define const
  7296. _ACEOF
  7297. fi
  7298. { echo "$as_me:$LINENO: checking for inline" >&5
  7299. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  7300. if test "${ac_cv_c_inline+set}" = set; then
  7301. echo $ECHO_N "(cached) $ECHO_C" >&6
  7302. else
  7303. ac_cv_c_inline=no
  7304. for ac_kw in inline __inline__ __inline; do
  7305. cat >conftest.$ac_ext <<_ACEOF
  7306. /* confdefs.h. */
  7307. _ACEOF
  7308. cat confdefs.h >>conftest.$ac_ext
  7309. cat >>conftest.$ac_ext <<_ACEOF
  7310. /* end confdefs.h. */
  7311. #ifndef __cplusplus
  7312. typedef int foo_t;
  7313. static $ac_kw foo_t static_foo () {return 0; }
  7314. $ac_kw foo_t foo () {return 0; }
  7315. #endif
  7316. _ACEOF
  7317. rm -f conftest.$ac_objext
  7318. if { (ac_try="$ac_compile"
  7319. case "(($ac_try" in
  7320. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7321. *) ac_try_echo=$ac_try;;
  7322. esac
  7323. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7324. (eval "$ac_compile") 2>conftest.er1
  7325. ac_status=$?
  7326. grep -v '^ *+' conftest.er1 >conftest.err
  7327. rm -f conftest.er1
  7328. cat conftest.err >&5
  7329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7330. (exit $ac_status); } && {
  7331. test -z "$ac_cxx_werror_flag" ||
  7332. test ! -s conftest.err
  7333. } && test -s conftest.$ac_objext; then
  7334. ac_cv_c_inline=$ac_kw
  7335. else
  7336. echo "$as_me: failed program was:" >&5
  7337. sed 's/^/| /' conftest.$ac_ext >&5
  7338. fi
  7339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7340. test "$ac_cv_c_inline" != no && break
  7341. done
  7342. fi
  7343. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  7344. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  7345. case $ac_cv_c_inline in
  7346. inline | yes) ;;
  7347. *)
  7348. case $ac_cv_c_inline in
  7349. no) ac_val=;;
  7350. *) ac_val=$ac_cv_c_inline;;
  7351. esac
  7352. cat >>confdefs.h <<_ACEOF
  7353. #ifndef __cplusplus
  7354. #define inline $ac_val
  7355. #endif
  7356. _ACEOF
  7357. ;;
  7358. esac
  7359. { echo "$as_me:$LINENO: checking for int16_t" >&5
  7360. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  7361. if test "${ac_cv_c_int16_t+set}" = set; then
  7362. echo $ECHO_N "(cached) $ECHO_C" >&6
  7363. else
  7364. ac_cv_c_int16_t=no
  7365. for ac_type in 'int16_t' 'int' 'long int' \
  7366. 'long long int' 'short int' 'signed char'; do
  7367. cat >conftest.$ac_ext <<_ACEOF
  7368. /* confdefs.h. */
  7369. _ACEOF
  7370. cat confdefs.h >>conftest.$ac_ext
  7371. cat >>conftest.$ac_ext <<_ACEOF
  7372. /* end confdefs.h. */
  7373. $ac_includes_default
  7374. int
  7375. main ()
  7376. {
  7377. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  7378. test_array [0] = 0
  7379. ;
  7380. return 0;
  7381. }
  7382. _ACEOF
  7383. rm -f conftest.$ac_objext
  7384. if { (ac_try="$ac_compile"
  7385. case "(($ac_try" in
  7386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7387. *) ac_try_echo=$ac_try;;
  7388. esac
  7389. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7390. (eval "$ac_compile") 2>conftest.er1
  7391. ac_status=$?
  7392. grep -v '^ *+' conftest.er1 >conftest.err
  7393. rm -f conftest.er1
  7394. cat conftest.err >&5
  7395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7396. (exit $ac_status); } && {
  7397. test -z "$ac_cxx_werror_flag" ||
  7398. test ! -s conftest.err
  7399. } && test -s conftest.$ac_objext; then
  7400. cat >conftest.$ac_ext <<_ACEOF
  7401. /* confdefs.h. */
  7402. _ACEOF
  7403. cat confdefs.h >>conftest.$ac_ext
  7404. cat >>conftest.$ac_ext <<_ACEOF
  7405. /* end confdefs.h. */
  7406. $ac_includes_default
  7407. int
  7408. main ()
  7409. {
  7410. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  7411. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  7412. test_array [0] = 0
  7413. ;
  7414. return 0;
  7415. }
  7416. _ACEOF
  7417. rm -f conftest.$ac_objext
  7418. if { (ac_try="$ac_compile"
  7419. case "(($ac_try" in
  7420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7421. *) ac_try_echo=$ac_try;;
  7422. esac
  7423. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7424. (eval "$ac_compile") 2>conftest.er1
  7425. ac_status=$?
  7426. grep -v '^ *+' conftest.er1 >conftest.err
  7427. rm -f conftest.er1
  7428. cat conftest.err >&5
  7429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7430. (exit $ac_status); } && {
  7431. test -z "$ac_cxx_werror_flag" ||
  7432. test ! -s conftest.err
  7433. } && test -s conftest.$ac_objext; then
  7434. :
  7435. else
  7436. echo "$as_me: failed program was:" >&5
  7437. sed 's/^/| /' conftest.$ac_ext >&5
  7438. case $ac_type in
  7439. int16_t) ac_cv_c_int16_t=yes ;;
  7440. *) ac_cv_c_int16_t=$ac_type ;;
  7441. esac
  7442. fi
  7443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7444. else
  7445. echo "$as_me: failed program was:" >&5
  7446. sed 's/^/| /' conftest.$ac_ext >&5
  7447. fi
  7448. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7449. test "$ac_cv_c_int16_t" != no && break
  7450. done
  7451. fi
  7452. { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  7453. echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
  7454. case $ac_cv_c_int16_t in #(
  7455. no|yes) ;; #(
  7456. *)
  7457. cat >>confdefs.h <<_ACEOF
  7458. #define int16_t $ac_cv_c_int16_t
  7459. _ACEOF
  7460. ;;
  7461. esac
  7462. { echo "$as_me:$LINENO: checking for int32_t" >&5
  7463. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  7464. if test "${ac_cv_c_int32_t+set}" = set; then
  7465. echo $ECHO_N "(cached) $ECHO_C" >&6
  7466. else
  7467. ac_cv_c_int32_t=no
  7468. for ac_type in 'int32_t' 'int' 'long int' \
  7469. 'long long int' 'short int' 'signed char'; do
  7470. cat >conftest.$ac_ext <<_ACEOF
  7471. /* confdefs.h. */
  7472. _ACEOF
  7473. cat confdefs.h >>conftest.$ac_ext
  7474. cat >>conftest.$ac_ext <<_ACEOF
  7475. /* end confdefs.h. */
  7476. $ac_includes_default
  7477. int
  7478. main ()
  7479. {
  7480. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  7481. test_array [0] = 0
  7482. ;
  7483. return 0;
  7484. }
  7485. _ACEOF
  7486. rm -f conftest.$ac_objext
  7487. if { (ac_try="$ac_compile"
  7488. case "(($ac_try" in
  7489. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7490. *) ac_try_echo=$ac_try;;
  7491. esac
  7492. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7493. (eval "$ac_compile") 2>conftest.er1
  7494. ac_status=$?
  7495. grep -v '^ *+' conftest.er1 >conftest.err
  7496. rm -f conftest.er1
  7497. cat conftest.err >&5
  7498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7499. (exit $ac_status); } && {
  7500. test -z "$ac_cxx_werror_flag" ||
  7501. test ! -s conftest.err
  7502. } && test -s conftest.$ac_objext; then
  7503. cat >conftest.$ac_ext <<_ACEOF
  7504. /* confdefs.h. */
  7505. _ACEOF
  7506. cat confdefs.h >>conftest.$ac_ext
  7507. cat >>conftest.$ac_ext <<_ACEOF
  7508. /* end confdefs.h. */
  7509. $ac_includes_default
  7510. int
  7511. main ()
  7512. {
  7513. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  7514. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  7515. test_array [0] = 0
  7516. ;
  7517. return 0;
  7518. }
  7519. _ACEOF
  7520. rm -f conftest.$ac_objext
  7521. if { (ac_try="$ac_compile"
  7522. case "(($ac_try" in
  7523. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7524. *) ac_try_echo=$ac_try;;
  7525. esac
  7526. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7527. (eval "$ac_compile") 2>conftest.er1
  7528. ac_status=$?
  7529. grep -v '^ *+' conftest.er1 >conftest.err
  7530. rm -f conftest.er1
  7531. cat conftest.err >&5
  7532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7533. (exit $ac_status); } && {
  7534. test -z "$ac_cxx_werror_flag" ||
  7535. test ! -s conftest.err
  7536. } && test -s conftest.$ac_objext; then
  7537. :
  7538. else
  7539. echo "$as_me: failed program was:" >&5
  7540. sed 's/^/| /' conftest.$ac_ext >&5
  7541. case $ac_type in
  7542. int32_t) ac_cv_c_int32_t=yes ;;
  7543. *) ac_cv_c_int32_t=$ac_type ;;
  7544. esac
  7545. fi
  7546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7547. else
  7548. echo "$as_me: failed program was:" >&5
  7549. sed 's/^/| /' conftest.$ac_ext >&5
  7550. fi
  7551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7552. test "$ac_cv_c_int32_t" != no && break
  7553. done
  7554. fi
  7555. { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  7556. echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
  7557. case $ac_cv_c_int32_t in #(
  7558. no|yes) ;; #(
  7559. *)
  7560. cat >>confdefs.h <<_ACEOF
  7561. #define int32_t $ac_cv_c_int32_t
  7562. _ACEOF
  7563. ;;
  7564. esac
  7565. { echo "$as_me:$LINENO: checking for int64_t" >&5
  7566. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  7567. if test "${ac_cv_c_int64_t+set}" = set; then
  7568. echo $ECHO_N "(cached) $ECHO_C" >&6
  7569. else
  7570. ac_cv_c_int64_t=no
  7571. for ac_type in 'int64_t' 'int' 'long int' \
  7572. 'long long int' 'short int' 'signed char'; do
  7573. cat >conftest.$ac_ext <<_ACEOF
  7574. /* confdefs.h. */
  7575. _ACEOF
  7576. cat confdefs.h >>conftest.$ac_ext
  7577. cat >>conftest.$ac_ext <<_ACEOF
  7578. /* end confdefs.h. */
  7579. $ac_includes_default
  7580. int
  7581. main ()
  7582. {
  7583. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  7584. test_array [0] = 0
  7585. ;
  7586. return 0;
  7587. }
  7588. _ACEOF
  7589. rm -f conftest.$ac_objext
  7590. if { (ac_try="$ac_compile"
  7591. case "(($ac_try" in
  7592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7593. *) ac_try_echo=$ac_try;;
  7594. esac
  7595. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7596. (eval "$ac_compile") 2>conftest.er1
  7597. ac_status=$?
  7598. grep -v '^ *+' conftest.er1 >conftest.err
  7599. rm -f conftest.er1
  7600. cat conftest.err >&5
  7601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7602. (exit $ac_status); } && {
  7603. test -z "$ac_cxx_werror_flag" ||
  7604. test ! -s conftest.err
  7605. } && test -s conftest.$ac_objext; then
  7606. cat >conftest.$ac_ext <<_ACEOF
  7607. /* confdefs.h. */
  7608. _ACEOF
  7609. cat confdefs.h >>conftest.$ac_ext
  7610. cat >>conftest.$ac_ext <<_ACEOF
  7611. /* end confdefs.h. */
  7612. $ac_includes_default
  7613. int
  7614. main ()
  7615. {
  7616. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  7617. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  7618. test_array [0] = 0
  7619. ;
  7620. return 0;
  7621. }
  7622. _ACEOF
  7623. rm -f conftest.$ac_objext
  7624. if { (ac_try="$ac_compile"
  7625. case "(($ac_try" in
  7626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7627. *) ac_try_echo=$ac_try;;
  7628. esac
  7629. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7630. (eval "$ac_compile") 2>conftest.er1
  7631. ac_status=$?
  7632. grep -v '^ *+' conftest.er1 >conftest.err
  7633. rm -f conftest.er1
  7634. cat conftest.err >&5
  7635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7636. (exit $ac_status); } && {
  7637. test -z "$ac_cxx_werror_flag" ||
  7638. test ! -s conftest.err
  7639. } && test -s conftest.$ac_objext; then
  7640. :
  7641. else
  7642. echo "$as_me: failed program was:" >&5
  7643. sed 's/^/| /' conftest.$ac_ext >&5
  7644. case $ac_type in
  7645. int64_t) ac_cv_c_int64_t=yes ;;
  7646. *) ac_cv_c_int64_t=$ac_type ;;
  7647. esac
  7648. fi
  7649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7650. else
  7651. echo "$as_me: failed program was:" >&5
  7652. sed 's/^/| /' conftest.$ac_ext >&5
  7653. fi
  7654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7655. test "$ac_cv_c_int64_t" != no && break
  7656. done
  7657. fi
  7658. { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  7659. echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
  7660. case $ac_cv_c_int64_t in #(
  7661. no|yes) ;; #(
  7662. *)
  7663. cat >>confdefs.h <<_ACEOF
  7664. #define int64_t $ac_cv_c_int64_t
  7665. _ACEOF
  7666. ;;
  7667. esac
  7668. { echo "$as_me:$LINENO: checking for int8_t" >&5
  7669. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  7670. if test "${ac_cv_c_int8_t+set}" = set; then
  7671. echo $ECHO_N "(cached) $ECHO_C" >&6
  7672. else
  7673. ac_cv_c_int8_t=no
  7674. for ac_type in 'int8_t' 'int' 'long int' \
  7675. 'long long int' 'short int' 'signed char'; do
  7676. cat >conftest.$ac_ext <<_ACEOF
  7677. /* confdefs.h. */
  7678. _ACEOF
  7679. cat confdefs.h >>conftest.$ac_ext
  7680. cat >>conftest.$ac_ext <<_ACEOF
  7681. /* end confdefs.h. */
  7682. $ac_includes_default
  7683. int
  7684. main ()
  7685. {
  7686. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  7687. test_array [0] = 0
  7688. ;
  7689. return 0;
  7690. }
  7691. _ACEOF
  7692. rm -f conftest.$ac_objext
  7693. if { (ac_try="$ac_compile"
  7694. case "(($ac_try" in
  7695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7696. *) ac_try_echo=$ac_try;;
  7697. esac
  7698. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7699. (eval "$ac_compile") 2>conftest.er1
  7700. ac_status=$?
  7701. grep -v '^ *+' conftest.er1 >conftest.err
  7702. rm -f conftest.er1
  7703. cat conftest.err >&5
  7704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7705. (exit $ac_status); } && {
  7706. test -z "$ac_cxx_werror_flag" ||
  7707. test ! -s conftest.err
  7708. } && test -s conftest.$ac_objext; then
  7709. cat >conftest.$ac_ext <<_ACEOF
  7710. /* confdefs.h. */
  7711. _ACEOF
  7712. cat confdefs.h >>conftest.$ac_ext
  7713. cat >>conftest.$ac_ext <<_ACEOF
  7714. /* end confdefs.h. */
  7715. $ac_includes_default
  7716. int
  7717. main ()
  7718. {
  7719. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  7720. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  7721. test_array [0] = 0
  7722. ;
  7723. return 0;
  7724. }
  7725. _ACEOF
  7726. rm -f conftest.$ac_objext
  7727. if { (ac_try="$ac_compile"
  7728. case "(($ac_try" in
  7729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7730. *) ac_try_echo=$ac_try;;
  7731. esac
  7732. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7733. (eval "$ac_compile") 2>conftest.er1
  7734. ac_status=$?
  7735. grep -v '^ *+' conftest.er1 >conftest.err
  7736. rm -f conftest.er1
  7737. cat conftest.err >&5
  7738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7739. (exit $ac_status); } && {
  7740. test -z "$ac_cxx_werror_flag" ||
  7741. test ! -s conftest.err
  7742. } && test -s conftest.$ac_objext; then
  7743. :
  7744. else
  7745. echo "$as_me: failed program was:" >&5
  7746. sed 's/^/| /' conftest.$ac_ext >&5
  7747. case $ac_type in
  7748. int8_t) ac_cv_c_int8_t=yes ;;
  7749. *) ac_cv_c_int8_t=$ac_type ;;
  7750. esac
  7751. fi
  7752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7753. else
  7754. echo "$as_me: failed program was:" >&5
  7755. sed 's/^/| /' conftest.$ac_ext >&5
  7756. fi
  7757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7758. test "$ac_cv_c_int8_t" != no && break
  7759. done
  7760. fi
  7761. { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  7762. echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
  7763. case $ac_cv_c_int8_t in #(
  7764. no|yes) ;; #(
  7765. *)
  7766. cat >>confdefs.h <<_ACEOF
  7767. #define int8_t $ac_cv_c_int8_t
  7768. _ACEOF
  7769. ;;
  7770. esac
  7771. { echo "$as_me:$LINENO: checking for mode_t" >&5
  7772. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
  7773. if test "${ac_cv_type_mode_t+set}" = set; then
  7774. echo $ECHO_N "(cached) $ECHO_C" >&6
  7775. else
  7776. cat >conftest.$ac_ext <<_ACEOF
  7777. /* confdefs.h. */
  7778. _ACEOF
  7779. cat confdefs.h >>conftest.$ac_ext
  7780. cat >>conftest.$ac_ext <<_ACEOF
  7781. /* end confdefs.h. */
  7782. $ac_includes_default
  7783. typedef mode_t ac__type_new_;
  7784. int
  7785. main ()
  7786. {
  7787. if ((ac__type_new_ *) 0)
  7788. return 0;
  7789. if (sizeof (ac__type_new_))
  7790. return 0;
  7791. ;
  7792. return 0;
  7793. }
  7794. _ACEOF
  7795. rm -f conftest.$ac_objext
  7796. if { (ac_try="$ac_compile"
  7797. case "(($ac_try" in
  7798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7799. *) ac_try_echo=$ac_try;;
  7800. esac
  7801. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7802. (eval "$ac_compile") 2>conftest.er1
  7803. ac_status=$?
  7804. grep -v '^ *+' conftest.er1 >conftest.err
  7805. rm -f conftest.er1
  7806. cat conftest.err >&5
  7807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7808. (exit $ac_status); } && {
  7809. test -z "$ac_cxx_werror_flag" ||
  7810. test ! -s conftest.err
  7811. } && test -s conftest.$ac_objext; then
  7812. ac_cv_type_mode_t=yes
  7813. else
  7814. echo "$as_me: failed program was:" >&5
  7815. sed 's/^/| /' conftest.$ac_ext >&5
  7816. ac_cv_type_mode_t=no
  7817. fi
  7818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7819. fi
  7820. { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  7821. echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
  7822. if test $ac_cv_type_mode_t = yes; then
  7823. :
  7824. else
  7825. cat >>confdefs.h <<_ACEOF
  7826. #define mode_t int
  7827. _ACEOF
  7828. fi
  7829. { echo "$as_me:$LINENO: checking for off_t" >&5
  7830. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  7831. if test "${ac_cv_type_off_t+set}" = set; then
  7832. echo $ECHO_N "(cached) $ECHO_C" >&6
  7833. else
  7834. cat >conftest.$ac_ext <<_ACEOF
  7835. /* confdefs.h. */
  7836. _ACEOF
  7837. cat confdefs.h >>conftest.$ac_ext
  7838. cat >>conftest.$ac_ext <<_ACEOF
  7839. /* end confdefs.h. */
  7840. $ac_includes_default
  7841. typedef off_t ac__type_new_;
  7842. int
  7843. main ()
  7844. {
  7845. if ((ac__type_new_ *) 0)
  7846. return 0;
  7847. if (sizeof (ac__type_new_))
  7848. return 0;
  7849. ;
  7850. return 0;
  7851. }
  7852. _ACEOF
  7853. rm -f conftest.$ac_objext
  7854. if { (ac_try="$ac_compile"
  7855. case "(($ac_try" in
  7856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7857. *) ac_try_echo=$ac_try;;
  7858. esac
  7859. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7860. (eval "$ac_compile") 2>conftest.er1
  7861. ac_status=$?
  7862. grep -v '^ *+' conftest.er1 >conftest.err
  7863. rm -f conftest.er1
  7864. cat conftest.err >&5
  7865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7866. (exit $ac_status); } && {
  7867. test -z "$ac_cxx_werror_flag" ||
  7868. test ! -s conftest.err
  7869. } && test -s conftest.$ac_objext; then
  7870. ac_cv_type_off_t=yes
  7871. else
  7872. echo "$as_me: failed program was:" >&5
  7873. sed 's/^/| /' conftest.$ac_ext >&5
  7874. ac_cv_type_off_t=no
  7875. fi
  7876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7877. fi
  7878. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  7879. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  7880. if test $ac_cv_type_off_t = yes; then
  7881. :
  7882. else
  7883. cat >>confdefs.h <<_ACEOF
  7884. #define off_t long int
  7885. _ACEOF
  7886. fi
  7887. { echo "$as_me:$LINENO: checking for size_t" >&5
  7888. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  7889. if test "${ac_cv_type_size_t+set}" = set; then
  7890. echo $ECHO_N "(cached) $ECHO_C" >&6
  7891. else
  7892. cat >conftest.$ac_ext <<_ACEOF
  7893. /* confdefs.h. */
  7894. _ACEOF
  7895. cat confdefs.h >>conftest.$ac_ext
  7896. cat >>conftest.$ac_ext <<_ACEOF
  7897. /* end confdefs.h. */
  7898. $ac_includes_default
  7899. typedef size_t ac__type_new_;
  7900. int
  7901. main ()
  7902. {
  7903. if ((ac__type_new_ *) 0)
  7904. return 0;
  7905. if (sizeof (ac__type_new_))
  7906. return 0;
  7907. ;
  7908. return 0;
  7909. }
  7910. _ACEOF
  7911. rm -f conftest.$ac_objext
  7912. if { (ac_try="$ac_compile"
  7913. case "(($ac_try" in
  7914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7915. *) ac_try_echo=$ac_try;;
  7916. esac
  7917. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7918. (eval "$ac_compile") 2>conftest.er1
  7919. ac_status=$?
  7920. grep -v '^ *+' conftest.er1 >conftest.err
  7921. rm -f conftest.er1
  7922. cat conftest.err >&5
  7923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7924. (exit $ac_status); } && {
  7925. test -z "$ac_cxx_werror_flag" ||
  7926. test ! -s conftest.err
  7927. } && test -s conftest.$ac_objext; then
  7928. ac_cv_type_size_t=yes
  7929. else
  7930. echo "$as_me: failed program was:" >&5
  7931. sed 's/^/| /' conftest.$ac_ext >&5
  7932. ac_cv_type_size_t=no
  7933. fi
  7934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7935. fi
  7936. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  7937. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  7938. if test $ac_cv_type_size_t = yes; then
  7939. :
  7940. else
  7941. cat >>confdefs.h <<_ACEOF
  7942. #define size_t unsigned int
  7943. _ACEOF
  7944. fi
  7945. { echo "$as_me:$LINENO: checking for ssize_t" >&5
  7946. echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
  7947. if test "${ac_cv_type_ssize_t+set}" = set; then
  7948. echo $ECHO_N "(cached) $ECHO_C" >&6
  7949. else
  7950. cat >conftest.$ac_ext <<_ACEOF
  7951. /* confdefs.h. */
  7952. _ACEOF
  7953. cat confdefs.h >>conftest.$ac_ext
  7954. cat >>conftest.$ac_ext <<_ACEOF
  7955. /* end confdefs.h. */
  7956. $ac_includes_default
  7957. typedef ssize_t ac__type_new_;
  7958. int
  7959. main ()
  7960. {
  7961. if ((ac__type_new_ *) 0)
  7962. return 0;
  7963. if (sizeof (ac__type_new_))
  7964. return 0;
  7965. ;
  7966. return 0;
  7967. }
  7968. _ACEOF
  7969. rm -f conftest.$ac_objext
  7970. if { (ac_try="$ac_compile"
  7971. case "(($ac_try" in
  7972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7973. *) ac_try_echo=$ac_try;;
  7974. esac
  7975. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7976. (eval "$ac_compile") 2>conftest.er1
  7977. ac_status=$?
  7978. grep -v '^ *+' conftest.er1 >conftest.err
  7979. rm -f conftest.er1
  7980. cat conftest.err >&5
  7981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7982. (exit $ac_status); } && {
  7983. test -z "$ac_cxx_werror_flag" ||
  7984. test ! -s conftest.err
  7985. } && test -s conftest.$ac_objext; then
  7986. ac_cv_type_ssize_t=yes
  7987. else
  7988. echo "$as_me: failed program was:" >&5
  7989. sed 's/^/| /' conftest.$ac_ext >&5
  7990. ac_cv_type_ssize_t=no
  7991. fi
  7992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7993. fi
  7994. { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  7995. echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
  7996. if test $ac_cv_type_ssize_t = yes; then
  7997. :
  7998. else
  7999. cat >>confdefs.h <<_ACEOF
  8000. #define ssize_t int
  8001. _ACEOF
  8002. fi
  8003. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  8004. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  8005. if test "${ac_cv_header_time+set}" = set; then
  8006. echo $ECHO_N "(cached) $ECHO_C" >&6
  8007. else
  8008. cat >conftest.$ac_ext <<_ACEOF
  8009. /* confdefs.h. */
  8010. _ACEOF
  8011. cat confdefs.h >>conftest.$ac_ext
  8012. cat >>conftest.$ac_ext <<_ACEOF
  8013. /* end confdefs.h. */
  8014. #include <sys/types.h>
  8015. #include <sys/time.h>
  8016. #include <time.h>
  8017. int
  8018. main ()
  8019. {
  8020. if ((struct tm *) 0)
  8021. return 0;
  8022. ;
  8023. return 0;
  8024. }
  8025. _ACEOF
  8026. rm -f conftest.$ac_objext
  8027. if { (ac_try="$ac_compile"
  8028. case "(($ac_try" in
  8029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8030. *) ac_try_echo=$ac_try;;
  8031. esac
  8032. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8033. (eval "$ac_compile") 2>conftest.er1
  8034. ac_status=$?
  8035. grep -v '^ *+' conftest.er1 >conftest.err
  8036. rm -f conftest.er1
  8037. cat conftest.err >&5
  8038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8039. (exit $ac_status); } && {
  8040. test -z "$ac_cxx_werror_flag" ||
  8041. test ! -s conftest.err
  8042. } && test -s conftest.$ac_objext; then
  8043. ac_cv_header_time=yes
  8044. else
  8045. echo "$as_me: failed program was:" >&5
  8046. sed 's/^/| /' conftest.$ac_ext >&5
  8047. ac_cv_header_time=no
  8048. fi
  8049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8050. fi
  8051. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  8052. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  8053. if test $ac_cv_header_time = yes; then
  8054. cat >>confdefs.h <<\_ACEOF
  8055. #define TIME_WITH_SYS_TIME 1
  8056. _ACEOF
  8057. fi
  8058. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8059. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  8060. if test "${ac_cv_struct_tm+set}" = set; then
  8061. echo $ECHO_N "(cached) $ECHO_C" >&6
  8062. else
  8063. cat >conftest.$ac_ext <<_ACEOF
  8064. /* confdefs.h. */
  8065. _ACEOF
  8066. cat confdefs.h >>conftest.$ac_ext
  8067. cat >>conftest.$ac_ext <<_ACEOF
  8068. /* end confdefs.h. */
  8069. #include <sys/types.h>
  8070. #include <time.h>
  8071. int
  8072. main ()
  8073. {
  8074. struct tm tm;
  8075. int *p = &tm.tm_sec;
  8076. return !p;
  8077. ;
  8078. return 0;
  8079. }
  8080. _ACEOF
  8081. rm -f conftest.$ac_objext
  8082. if { (ac_try="$ac_compile"
  8083. case "(($ac_try" in
  8084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8085. *) ac_try_echo=$ac_try;;
  8086. esac
  8087. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8088. (eval "$ac_compile") 2>conftest.er1
  8089. ac_status=$?
  8090. grep -v '^ *+' conftest.er1 >conftest.err
  8091. rm -f conftest.er1
  8092. cat conftest.err >&5
  8093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8094. (exit $ac_status); } && {
  8095. test -z "$ac_cxx_werror_flag" ||
  8096. test ! -s conftest.err
  8097. } && test -s conftest.$ac_objext; then
  8098. ac_cv_struct_tm=time.h
  8099. else
  8100. echo "$as_me: failed program was:" >&5
  8101. sed 's/^/| /' conftest.$ac_ext >&5
  8102. ac_cv_struct_tm=sys/time.h
  8103. fi
  8104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8105. fi
  8106. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8107. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  8108. if test $ac_cv_struct_tm = sys/time.h; then
  8109. cat >>confdefs.h <<\_ACEOF
  8110. #define TM_IN_SYS_TIME 1
  8111. _ACEOF
  8112. fi
  8113. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  8114. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  8115. if test "${ac_cv_c_uint16_t+set}" = set; then
  8116. echo $ECHO_N "(cached) $ECHO_C" >&6
  8117. else
  8118. ac_cv_c_uint16_t=no
  8119. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  8120. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8121. cat >conftest.$ac_ext <<_ACEOF
  8122. /* confdefs.h. */
  8123. _ACEOF
  8124. cat confdefs.h >>conftest.$ac_ext
  8125. cat >>conftest.$ac_ext <<_ACEOF
  8126. /* end confdefs.h. */
  8127. $ac_includes_default
  8128. int
  8129. main ()
  8130. {
  8131. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  8132. test_array [0] = 0
  8133. ;
  8134. return 0;
  8135. }
  8136. _ACEOF
  8137. rm -f conftest.$ac_objext
  8138. if { (ac_try="$ac_compile"
  8139. case "(($ac_try" in
  8140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8141. *) ac_try_echo=$ac_try;;
  8142. esac
  8143. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8144. (eval "$ac_compile") 2>conftest.er1
  8145. ac_status=$?
  8146. grep -v '^ *+' conftest.er1 >conftest.err
  8147. rm -f conftest.er1
  8148. cat conftest.err >&5
  8149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8150. (exit $ac_status); } && {
  8151. test -z "$ac_cxx_werror_flag" ||
  8152. test ! -s conftest.err
  8153. } && test -s conftest.$ac_objext; then
  8154. case $ac_type in
  8155. uint16_t) ac_cv_c_uint16_t=yes ;;
  8156. *) ac_cv_c_uint16_t=$ac_type ;;
  8157. esac
  8158. else
  8159. echo "$as_me: failed program was:" >&5
  8160. sed 's/^/| /' conftest.$ac_ext >&5
  8161. fi
  8162. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8163. test "$ac_cv_c_uint16_t" != no && break
  8164. done
  8165. fi
  8166. { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  8167. echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
  8168. case $ac_cv_c_uint16_t in #(
  8169. no|yes) ;; #(
  8170. *)
  8171. cat >>confdefs.h <<_ACEOF
  8172. #define uint16_t $ac_cv_c_uint16_t
  8173. _ACEOF
  8174. ;;
  8175. esac
  8176. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  8177. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  8178. if test "${ac_cv_c_uint32_t+set}" = set; then
  8179. echo $ECHO_N "(cached) $ECHO_C" >&6
  8180. else
  8181. ac_cv_c_uint32_t=no
  8182. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  8183. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8184. cat >conftest.$ac_ext <<_ACEOF
  8185. /* confdefs.h. */
  8186. _ACEOF
  8187. cat confdefs.h >>conftest.$ac_ext
  8188. cat >>conftest.$ac_ext <<_ACEOF
  8189. /* end confdefs.h. */
  8190. $ac_includes_default
  8191. int
  8192. main ()
  8193. {
  8194. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  8195. test_array [0] = 0
  8196. ;
  8197. return 0;
  8198. }
  8199. _ACEOF
  8200. rm -f conftest.$ac_objext
  8201. if { (ac_try="$ac_compile"
  8202. case "(($ac_try" in
  8203. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8204. *) ac_try_echo=$ac_try;;
  8205. esac
  8206. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8207. (eval "$ac_compile") 2>conftest.er1
  8208. ac_status=$?
  8209. grep -v '^ *+' conftest.er1 >conftest.err
  8210. rm -f conftest.er1
  8211. cat conftest.err >&5
  8212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8213. (exit $ac_status); } && {
  8214. test -z "$ac_cxx_werror_flag" ||
  8215. test ! -s conftest.err
  8216. } && test -s conftest.$ac_objext; then
  8217. case $ac_type in
  8218. uint32_t) ac_cv_c_uint32_t=yes ;;
  8219. *) ac_cv_c_uint32_t=$ac_type ;;
  8220. esac
  8221. else
  8222. echo "$as_me: failed program was:" >&5
  8223. sed 's/^/| /' conftest.$ac_ext >&5
  8224. fi
  8225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8226. test "$ac_cv_c_uint32_t" != no && break
  8227. done
  8228. fi
  8229. { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  8230. echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
  8231. case $ac_cv_c_uint32_t in #(
  8232. no|yes) ;; #(
  8233. *)
  8234. cat >>confdefs.h <<\_ACEOF
  8235. #define _UINT32_T 1
  8236. _ACEOF
  8237. cat >>confdefs.h <<_ACEOF
  8238. #define uint32_t $ac_cv_c_uint32_t
  8239. _ACEOF
  8240. ;;
  8241. esac
  8242. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  8243. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  8244. if test "${ac_cv_c_uint64_t+set}" = set; then
  8245. echo $ECHO_N "(cached) $ECHO_C" >&6
  8246. else
  8247. ac_cv_c_uint64_t=no
  8248. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  8249. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8250. cat >conftest.$ac_ext <<_ACEOF
  8251. /* confdefs.h. */
  8252. _ACEOF
  8253. cat confdefs.h >>conftest.$ac_ext
  8254. cat >>conftest.$ac_ext <<_ACEOF
  8255. /* end confdefs.h. */
  8256. $ac_includes_default
  8257. int
  8258. main ()
  8259. {
  8260. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  8261. test_array [0] = 0
  8262. ;
  8263. return 0;
  8264. }
  8265. _ACEOF
  8266. rm -f conftest.$ac_objext
  8267. if { (ac_try="$ac_compile"
  8268. case "(($ac_try" in
  8269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8270. *) ac_try_echo=$ac_try;;
  8271. esac
  8272. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8273. (eval "$ac_compile") 2>conftest.er1
  8274. ac_status=$?
  8275. grep -v '^ *+' conftest.er1 >conftest.err
  8276. rm -f conftest.er1
  8277. cat conftest.err >&5
  8278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8279. (exit $ac_status); } && {
  8280. test -z "$ac_cxx_werror_flag" ||
  8281. test ! -s conftest.err
  8282. } && test -s conftest.$ac_objext; then
  8283. case $ac_type in
  8284. uint64_t) ac_cv_c_uint64_t=yes ;;
  8285. *) ac_cv_c_uint64_t=$ac_type ;;
  8286. esac
  8287. else
  8288. echo "$as_me: failed program was:" >&5
  8289. sed 's/^/| /' conftest.$ac_ext >&5
  8290. fi
  8291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8292. test "$ac_cv_c_uint64_t" != no && break
  8293. done
  8294. fi
  8295. { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  8296. echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
  8297. case $ac_cv_c_uint64_t in #(
  8298. no|yes) ;; #(
  8299. *)
  8300. cat >>confdefs.h <<\_ACEOF
  8301. #define _UINT64_T 1
  8302. _ACEOF
  8303. cat >>confdefs.h <<_ACEOF
  8304. #define uint64_t $ac_cv_c_uint64_t
  8305. _ACEOF
  8306. ;;
  8307. esac
  8308. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  8309. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  8310. if test "${ac_cv_c_uint8_t+set}" = set; then
  8311. echo $ECHO_N "(cached) $ECHO_C" >&6
  8312. else
  8313. ac_cv_c_uint8_t=no
  8314. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  8315. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8316. cat >conftest.$ac_ext <<_ACEOF
  8317. /* confdefs.h. */
  8318. _ACEOF
  8319. cat confdefs.h >>conftest.$ac_ext
  8320. cat >>conftest.$ac_ext <<_ACEOF
  8321. /* end confdefs.h. */
  8322. $ac_includes_default
  8323. int
  8324. main ()
  8325. {
  8326. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  8327. test_array [0] = 0
  8328. ;
  8329. return 0;
  8330. }
  8331. _ACEOF
  8332. rm -f conftest.$ac_objext
  8333. if { (ac_try="$ac_compile"
  8334. case "(($ac_try" in
  8335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8336. *) ac_try_echo=$ac_try;;
  8337. esac
  8338. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8339. (eval "$ac_compile") 2>conftest.er1
  8340. ac_status=$?
  8341. grep -v '^ *+' conftest.er1 >conftest.err
  8342. rm -f conftest.er1
  8343. cat conftest.err >&5
  8344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8345. (exit $ac_status); } && {
  8346. test -z "$ac_cxx_werror_flag" ||
  8347. test ! -s conftest.err
  8348. } && test -s conftest.$ac_objext; then
  8349. case $ac_type in
  8350. uint8_t) ac_cv_c_uint8_t=yes ;;
  8351. *) ac_cv_c_uint8_t=$ac_type ;;
  8352. esac
  8353. else
  8354. echo "$as_me: failed program was:" >&5
  8355. sed 's/^/| /' conftest.$ac_ext >&5
  8356. fi
  8357. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8358. test "$ac_cv_c_uint8_t" != no && break
  8359. done
  8360. fi
  8361. { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  8362. echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
  8363. case $ac_cv_c_uint8_t in #(
  8364. no|yes) ;; #(
  8365. *)
  8366. cat >>confdefs.h <<\_ACEOF
  8367. #define _UINT8_T 1
  8368. _ACEOF
  8369. cat >>confdefs.h <<_ACEOF
  8370. #define uint8_t $ac_cv_c_uint8_t
  8371. _ACEOF
  8372. ;;
  8373. esac
  8374. { echo "$as_me:$LINENO: checking for working volatile" >&5
  8375. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  8376. if test "${ac_cv_c_volatile+set}" = set; then
  8377. echo $ECHO_N "(cached) $ECHO_C" >&6
  8378. else
  8379. cat >conftest.$ac_ext <<_ACEOF
  8380. /* confdefs.h. */
  8381. _ACEOF
  8382. cat confdefs.h >>conftest.$ac_ext
  8383. cat >>conftest.$ac_ext <<_ACEOF
  8384. /* end confdefs.h. */
  8385. int
  8386. main ()
  8387. {
  8388. volatile int x;
  8389. int * volatile y = (int *) 0;
  8390. return !x && !y;
  8391. ;
  8392. return 0;
  8393. }
  8394. _ACEOF
  8395. rm -f conftest.$ac_objext
  8396. if { (ac_try="$ac_compile"
  8397. case "(($ac_try" in
  8398. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8399. *) ac_try_echo=$ac_try;;
  8400. esac
  8401. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8402. (eval "$ac_compile") 2>conftest.er1
  8403. ac_status=$?
  8404. grep -v '^ *+' conftest.er1 >conftest.err
  8405. rm -f conftest.er1
  8406. cat conftest.err >&5
  8407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8408. (exit $ac_status); } && {
  8409. test -z "$ac_cxx_werror_flag" ||
  8410. test ! -s conftest.err
  8411. } && test -s conftest.$ac_objext; then
  8412. ac_cv_c_volatile=yes
  8413. else
  8414. echo "$as_me: failed program was:" >&5
  8415. sed 's/^/| /' conftest.$ac_ext >&5
  8416. ac_cv_c_volatile=no
  8417. fi
  8418. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8419. fi
  8420. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  8421. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  8422. if test $ac_cv_c_volatile = no; then
  8423. cat >>confdefs.h <<\_ACEOF
  8424. #define volatile
  8425. _ACEOF
  8426. fi
  8427. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  8428. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  8429. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  8430. echo $ECHO_N "(cached) $ECHO_C" >&6
  8431. else
  8432. cat >conftest.$ac_ext <<_ACEOF
  8433. /* confdefs.h. */
  8434. _ACEOF
  8435. cat confdefs.h >>conftest.$ac_ext
  8436. cat >>conftest.$ac_ext <<_ACEOF
  8437. /* end confdefs.h. */
  8438. $ac_includes_default
  8439. typedef ptrdiff_t ac__type_new_;
  8440. int
  8441. main ()
  8442. {
  8443. if ((ac__type_new_ *) 0)
  8444. return 0;
  8445. if (sizeof (ac__type_new_))
  8446. return 0;
  8447. ;
  8448. return 0;
  8449. }
  8450. _ACEOF
  8451. rm -f conftest.$ac_objext
  8452. if { (ac_try="$ac_compile"
  8453. case "(($ac_try" in
  8454. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8455. *) ac_try_echo=$ac_try;;
  8456. esac
  8457. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8458. (eval "$ac_compile") 2>conftest.er1
  8459. ac_status=$?
  8460. grep -v '^ *+' conftest.er1 >conftest.err
  8461. rm -f conftest.er1
  8462. cat conftest.err >&5
  8463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8464. (exit $ac_status); } && {
  8465. test -z "$ac_cxx_werror_flag" ||
  8466. test ! -s conftest.err
  8467. } && test -s conftest.$ac_objext; then
  8468. ac_cv_type_ptrdiff_t=yes
  8469. else
  8470. echo "$as_me: failed program was:" >&5
  8471. sed 's/^/| /' conftest.$ac_ext >&5
  8472. ac_cv_type_ptrdiff_t=no
  8473. fi
  8474. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8475. fi
  8476. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  8477. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  8478. if test $ac_cv_type_ptrdiff_t = yes; then
  8479. cat >>confdefs.h <<_ACEOF
  8480. #define HAVE_PTRDIFF_T 1
  8481. _ACEOF
  8482. fi
  8483. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  8484. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  8485. if test "${ac_cv_c_bigendian+set}" = set; then
  8486. echo $ECHO_N "(cached) $ECHO_C" >&6
  8487. else
  8488. # See if sys/param.h defines the BYTE_ORDER macro.
  8489. cat >conftest.$ac_ext <<_ACEOF
  8490. /* confdefs.h. */
  8491. _ACEOF
  8492. cat confdefs.h >>conftest.$ac_ext
  8493. cat >>conftest.$ac_ext <<_ACEOF
  8494. /* end confdefs.h. */
  8495. #include <sys/types.h>
  8496. #include <sys/param.h>
  8497. int
  8498. main ()
  8499. {
  8500. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  8501. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  8502. bogus endian macros
  8503. #endif
  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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8515. (eval "$ac_compile") 2>conftest.er1
  8516. ac_status=$?
  8517. grep -v '^ *+' conftest.er1 >conftest.err
  8518. rm -f conftest.er1
  8519. cat conftest.err >&5
  8520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8521. (exit $ac_status); } && {
  8522. test -z "$ac_cxx_werror_flag" ||
  8523. test ! -s conftest.err
  8524. } && test -s conftest.$ac_objext; then
  8525. # It does; now see whether it defined to BIG_ENDIAN or not.
  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. #include <sys/types.h>
  8533. #include <sys/param.h>
  8534. int
  8535. main ()
  8536. {
  8537. #if BYTE_ORDER != BIG_ENDIAN
  8538. not big endian
  8539. #endif
  8540. ;
  8541. return 0;
  8542. }
  8543. _ACEOF
  8544. rm -f conftest.$ac_objext
  8545. if { (ac_try="$ac_compile"
  8546. case "(($ac_try" in
  8547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8548. *) ac_try_echo=$ac_try;;
  8549. esac
  8550. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8551. (eval "$ac_compile") 2>conftest.er1
  8552. ac_status=$?
  8553. grep -v '^ *+' conftest.er1 >conftest.err
  8554. rm -f conftest.er1
  8555. cat conftest.err >&5
  8556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8557. (exit $ac_status); } && {
  8558. test -z "$ac_cxx_werror_flag" ||
  8559. test ! -s conftest.err
  8560. } && test -s conftest.$ac_objext; then
  8561. ac_cv_c_bigendian=yes
  8562. else
  8563. echo "$as_me: failed program was:" >&5
  8564. sed 's/^/| /' conftest.$ac_ext >&5
  8565. ac_cv_c_bigendian=no
  8566. fi
  8567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8568. else
  8569. echo "$as_me: failed program was:" >&5
  8570. sed 's/^/| /' conftest.$ac_ext >&5
  8571. # It does not; compile a test program.
  8572. if test "$cross_compiling" = yes; then
  8573. # try to guess the endianness by grepping values into an object file
  8574. ac_cv_c_bigendian=unknown
  8575. cat >conftest.$ac_ext <<_ACEOF
  8576. /* confdefs.h. */
  8577. _ACEOF
  8578. cat confdefs.h >>conftest.$ac_ext
  8579. cat >>conftest.$ac_ext <<_ACEOF
  8580. /* end confdefs.h. */
  8581. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  8582. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  8583. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  8584. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  8585. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  8586. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  8587. int
  8588. main ()
  8589. {
  8590. _ascii (); _ebcdic ();
  8591. ;
  8592. return 0;
  8593. }
  8594. _ACEOF
  8595. rm -f conftest.$ac_objext
  8596. if { (ac_try="$ac_compile"
  8597. case "(($ac_try" in
  8598. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8599. *) ac_try_echo=$ac_try;;
  8600. esac
  8601. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8602. (eval "$ac_compile") 2>conftest.er1
  8603. ac_status=$?
  8604. grep -v '^ *+' conftest.er1 >conftest.err
  8605. rm -f conftest.er1
  8606. cat conftest.err >&5
  8607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8608. (exit $ac_status); } && {
  8609. test -z "$ac_cxx_werror_flag" ||
  8610. test ! -s conftest.err
  8611. } && test -s conftest.$ac_objext; then
  8612. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  8613. ac_cv_c_bigendian=yes
  8614. fi
  8615. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  8616. if test "$ac_cv_c_bigendian" = unknown; then
  8617. ac_cv_c_bigendian=no
  8618. else
  8619. # finding both strings is unlikely to happen, but who knows?
  8620. ac_cv_c_bigendian=unknown
  8621. fi
  8622. fi
  8623. else
  8624. echo "$as_me: failed program was:" >&5
  8625. sed 's/^/| /' conftest.$ac_ext >&5
  8626. fi
  8627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8628. else
  8629. cat >conftest.$ac_ext <<_ACEOF
  8630. /* confdefs.h. */
  8631. _ACEOF
  8632. cat confdefs.h >>conftest.$ac_ext
  8633. cat >>conftest.$ac_ext <<_ACEOF
  8634. /* end confdefs.h. */
  8635. $ac_includes_default
  8636. int
  8637. main ()
  8638. {
  8639. /* Are we little or big endian? From Harbison&Steele. */
  8640. union
  8641. {
  8642. long int l;
  8643. char c[sizeof (long int)];
  8644. } u;
  8645. u.l = 1;
  8646. return u.c[sizeof (long int) - 1] == 1;
  8647. ;
  8648. return 0;
  8649. }
  8650. _ACEOF
  8651. rm -f conftest$ac_exeext
  8652. if { (ac_try="$ac_link"
  8653. case "(($ac_try" in
  8654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8655. *) ac_try_echo=$ac_try;;
  8656. esac
  8657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8658. (eval "$ac_link") 2>&5
  8659. ac_status=$?
  8660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8661. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8662. { (case "(($ac_try" in
  8663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8664. *) ac_try_echo=$ac_try;;
  8665. esac
  8666. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8667. (eval "$ac_try") 2>&5
  8668. ac_status=$?
  8669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8670. (exit $ac_status); }; }; then
  8671. ac_cv_c_bigendian=no
  8672. else
  8673. echo "$as_me: program exited with status $ac_status" >&5
  8674. echo "$as_me: failed program was:" >&5
  8675. sed 's/^/| /' conftest.$ac_ext >&5
  8676. ( exit $ac_status )
  8677. ac_cv_c_bigendian=yes
  8678. fi
  8679. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8680. fi
  8681. fi
  8682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8683. fi
  8684. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  8685. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  8686. case $ac_cv_c_bigendian in
  8687. yes)
  8688. cat >>confdefs.h <<\_ACEOF
  8689. #define WORDS_BIGENDIAN 1
  8690. _ACEOF
  8691. ;;
  8692. no)
  8693. ;;
  8694. *)
  8695. { { echo "$as_me:$LINENO: error: unknown endianness
  8696. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  8697. echo "$as_me: error: unknown endianness
  8698. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  8699. { (exit 1); exit 1; }; } ;;
  8700. esac
  8701. # Check whether --enable-largefile was given.
  8702. if test "${enable_largefile+set}" = set; then
  8703. enableval=$enable_largefile;
  8704. fi
  8705. if test "$enable_largefile" != no; then
  8706. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  8707. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  8708. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  8709. echo $ECHO_N "(cached) $ECHO_C" >&6
  8710. else
  8711. ac_cv_sys_largefile_CC=no
  8712. if test "$GCC" != yes; then
  8713. ac_save_CC=$CC
  8714. while :; do
  8715. # IRIX 6.2 and later do not support large files by default,
  8716. # so use the C compiler's -n32 option if that helps.
  8717. cat >conftest.$ac_ext <<_ACEOF
  8718. /* confdefs.h. */
  8719. _ACEOF
  8720. cat confdefs.h >>conftest.$ac_ext
  8721. cat >>conftest.$ac_ext <<_ACEOF
  8722. /* end confdefs.h. */
  8723. #include <sys/types.h>
  8724. /* Check that off_t can represent 2**63 - 1 correctly.
  8725. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8726. since some C++ compilers masquerading as C compilers
  8727. incorrectly reject 9223372036854775807. */
  8728. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8729. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8730. && LARGE_OFF_T % 2147483647 == 1)
  8731. ? 1 : -1];
  8732. int
  8733. main ()
  8734. {
  8735. ;
  8736. return 0;
  8737. }
  8738. _ACEOF
  8739. rm -f conftest.$ac_objext
  8740. if { (ac_try="$ac_compile"
  8741. case "(($ac_try" in
  8742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8743. *) ac_try_echo=$ac_try;;
  8744. esac
  8745. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8746. (eval "$ac_compile") 2>conftest.er1
  8747. ac_status=$?
  8748. grep -v '^ *+' conftest.er1 >conftest.err
  8749. rm -f conftest.er1
  8750. cat conftest.err >&5
  8751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8752. (exit $ac_status); } && {
  8753. test -z "$ac_cxx_werror_flag" ||
  8754. test ! -s conftest.err
  8755. } && test -s conftest.$ac_objext; then
  8756. break
  8757. else
  8758. echo "$as_me: failed program was:" >&5
  8759. sed 's/^/| /' conftest.$ac_ext >&5
  8760. fi
  8761. rm -f core conftest.err conftest.$ac_objext
  8762. CC="$CC -n32"
  8763. rm -f conftest.$ac_objext
  8764. if { (ac_try="$ac_compile"
  8765. case "(($ac_try" in
  8766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8767. *) ac_try_echo=$ac_try;;
  8768. esac
  8769. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8770. (eval "$ac_compile") 2>conftest.er1
  8771. ac_status=$?
  8772. grep -v '^ *+' conftest.er1 >conftest.err
  8773. rm -f conftest.er1
  8774. cat conftest.err >&5
  8775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8776. (exit $ac_status); } && {
  8777. test -z "$ac_cxx_werror_flag" ||
  8778. test ! -s conftest.err
  8779. } && test -s conftest.$ac_objext; then
  8780. ac_cv_sys_largefile_CC=' -n32'; break
  8781. else
  8782. echo "$as_me: failed program was:" >&5
  8783. sed 's/^/| /' conftest.$ac_ext >&5
  8784. fi
  8785. rm -f core conftest.err conftest.$ac_objext
  8786. break
  8787. done
  8788. CC=$ac_save_CC
  8789. rm -f conftest.$ac_ext
  8790. fi
  8791. fi
  8792. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  8793. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  8794. if test "$ac_cv_sys_largefile_CC" != no; then
  8795. CC=$CC$ac_cv_sys_largefile_CC
  8796. fi
  8797. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  8798. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  8799. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  8800. echo $ECHO_N "(cached) $ECHO_C" >&6
  8801. else
  8802. while :; do
  8803. cat >conftest.$ac_ext <<_ACEOF
  8804. /* confdefs.h. */
  8805. _ACEOF
  8806. cat confdefs.h >>conftest.$ac_ext
  8807. cat >>conftest.$ac_ext <<_ACEOF
  8808. /* end confdefs.h. */
  8809. #include <sys/types.h>
  8810. /* Check that off_t can represent 2**63 - 1 correctly.
  8811. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8812. since some C++ compilers masquerading as C compilers
  8813. incorrectly reject 9223372036854775807. */
  8814. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8815. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8816. && LARGE_OFF_T % 2147483647 == 1)
  8817. ? 1 : -1];
  8818. int
  8819. main ()
  8820. {
  8821. ;
  8822. return 0;
  8823. }
  8824. _ACEOF
  8825. rm -f conftest.$ac_objext
  8826. if { (ac_try="$ac_compile"
  8827. case "(($ac_try" in
  8828. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8829. *) ac_try_echo=$ac_try;;
  8830. esac
  8831. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8832. (eval "$ac_compile") 2>conftest.er1
  8833. ac_status=$?
  8834. grep -v '^ *+' conftest.er1 >conftest.err
  8835. rm -f conftest.er1
  8836. cat conftest.err >&5
  8837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8838. (exit $ac_status); } && {
  8839. test -z "$ac_cxx_werror_flag" ||
  8840. test ! -s conftest.err
  8841. } && test -s conftest.$ac_objext; then
  8842. ac_cv_sys_file_offset_bits=no; break
  8843. else
  8844. echo "$as_me: failed program was:" >&5
  8845. sed 's/^/| /' conftest.$ac_ext >&5
  8846. fi
  8847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8848. cat >conftest.$ac_ext <<_ACEOF
  8849. /* confdefs.h. */
  8850. _ACEOF
  8851. cat confdefs.h >>conftest.$ac_ext
  8852. cat >>conftest.$ac_ext <<_ACEOF
  8853. /* end confdefs.h. */
  8854. #define _FILE_OFFSET_BITS 64
  8855. #include <sys/types.h>
  8856. /* Check that off_t can represent 2**63 - 1 correctly.
  8857. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8858. since some C++ compilers masquerading as C compilers
  8859. incorrectly reject 9223372036854775807. */
  8860. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8861. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8862. && LARGE_OFF_T % 2147483647 == 1)
  8863. ? 1 : -1];
  8864. int
  8865. main ()
  8866. {
  8867. ;
  8868. return 0;
  8869. }
  8870. _ACEOF
  8871. rm -f conftest.$ac_objext
  8872. if { (ac_try="$ac_compile"
  8873. case "(($ac_try" in
  8874. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8875. *) ac_try_echo=$ac_try;;
  8876. esac
  8877. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8878. (eval "$ac_compile") 2>conftest.er1
  8879. ac_status=$?
  8880. grep -v '^ *+' conftest.er1 >conftest.err
  8881. rm -f conftest.er1
  8882. cat conftest.err >&5
  8883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8884. (exit $ac_status); } && {
  8885. test -z "$ac_cxx_werror_flag" ||
  8886. test ! -s conftest.err
  8887. } && test -s conftest.$ac_objext; then
  8888. ac_cv_sys_file_offset_bits=64; break
  8889. else
  8890. echo "$as_me: failed program was:" >&5
  8891. sed 's/^/| /' conftest.$ac_ext >&5
  8892. fi
  8893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8894. ac_cv_sys_file_offset_bits=unknown
  8895. break
  8896. done
  8897. fi
  8898. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  8899. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  8900. case $ac_cv_sys_file_offset_bits in #(
  8901. no | unknown) ;;
  8902. *)
  8903. cat >>confdefs.h <<_ACEOF
  8904. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  8905. _ACEOF
  8906. ;;
  8907. esac
  8908. rm -f conftest*
  8909. if test $ac_cv_sys_file_offset_bits = unknown; then
  8910. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  8911. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  8912. if test "${ac_cv_sys_large_files+set}" = set; then
  8913. echo $ECHO_N "(cached) $ECHO_C" >&6
  8914. else
  8915. while :; do
  8916. cat >conftest.$ac_ext <<_ACEOF
  8917. /* confdefs.h. */
  8918. _ACEOF
  8919. cat confdefs.h >>conftest.$ac_ext
  8920. cat >>conftest.$ac_ext <<_ACEOF
  8921. /* end confdefs.h. */
  8922. #include <sys/types.h>
  8923. /* Check that off_t can represent 2**63 - 1 correctly.
  8924. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8925. since some C++ compilers masquerading as C compilers
  8926. incorrectly reject 9223372036854775807. */
  8927. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8928. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8929. && LARGE_OFF_T % 2147483647 == 1)
  8930. ? 1 : -1];
  8931. int
  8932. main ()
  8933. {
  8934. ;
  8935. return 0;
  8936. }
  8937. _ACEOF
  8938. rm -f conftest.$ac_objext
  8939. if { (ac_try="$ac_compile"
  8940. case "(($ac_try" in
  8941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8942. *) ac_try_echo=$ac_try;;
  8943. esac
  8944. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8945. (eval "$ac_compile") 2>conftest.er1
  8946. ac_status=$?
  8947. grep -v '^ *+' conftest.er1 >conftest.err
  8948. rm -f conftest.er1
  8949. cat conftest.err >&5
  8950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8951. (exit $ac_status); } && {
  8952. test -z "$ac_cxx_werror_flag" ||
  8953. test ! -s conftest.err
  8954. } && test -s conftest.$ac_objext; then
  8955. ac_cv_sys_large_files=no; break
  8956. else
  8957. echo "$as_me: failed program was:" >&5
  8958. sed 's/^/| /' conftest.$ac_ext >&5
  8959. fi
  8960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8961. cat >conftest.$ac_ext <<_ACEOF
  8962. /* confdefs.h. */
  8963. _ACEOF
  8964. cat confdefs.h >>conftest.$ac_ext
  8965. cat >>conftest.$ac_ext <<_ACEOF
  8966. /* end confdefs.h. */
  8967. #define _LARGE_FILES 1
  8968. #include <sys/types.h>
  8969. /* Check that off_t can represent 2**63 - 1 correctly.
  8970. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8971. since some C++ compilers masquerading as C compilers
  8972. incorrectly reject 9223372036854775807. */
  8973. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8974. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8975. && LARGE_OFF_T % 2147483647 == 1)
  8976. ? 1 : -1];
  8977. int
  8978. main ()
  8979. {
  8980. ;
  8981. return 0;
  8982. }
  8983. _ACEOF
  8984. rm -f conftest.$ac_objext
  8985. if { (ac_try="$ac_compile"
  8986. case "(($ac_try" in
  8987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8988. *) ac_try_echo=$ac_try;;
  8989. esac
  8990. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8991. (eval "$ac_compile") 2>conftest.er1
  8992. ac_status=$?
  8993. grep -v '^ *+' conftest.er1 >conftest.err
  8994. rm -f conftest.er1
  8995. cat conftest.err >&5
  8996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8997. (exit $ac_status); } && {
  8998. test -z "$ac_cxx_werror_flag" ||
  8999. test ! -s conftest.err
  9000. } && test -s conftest.$ac_objext; then
  9001. ac_cv_sys_large_files=1; break
  9002. else
  9003. echo "$as_me: failed program was:" >&5
  9004. sed 's/^/| /' conftest.$ac_ext >&5
  9005. fi
  9006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9007. ac_cv_sys_large_files=unknown
  9008. break
  9009. done
  9010. fi
  9011. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  9012. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  9013. case $ac_cv_sys_large_files in #(
  9014. no | unknown) ;;
  9015. *)
  9016. cat >>confdefs.h <<_ACEOF
  9017. #define _LARGE_FILES $ac_cv_sys_large_files
  9018. _ACEOF
  9019. ;;
  9020. esac
  9021. rm -f conftest*
  9022. fi
  9023. fi
  9024. # Checks for library functions.
  9025. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  9026. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  9027. # Check whether --enable-nls was given.
  9028. if test "${enable_nls+set}" = set; then
  9029. enableval=$enable_nls; USE_NLS=$enableval
  9030. else
  9031. USE_NLS=yes
  9032. fi
  9033. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9034. echo "${ECHO_T}$USE_NLS" >&6; }
  9035. GETTEXT_MACRO_VERSION=0.17
  9036. # Prepare PATH_SEPARATOR.
  9037. # The user is always right.
  9038. if test "${PATH_SEPARATOR+set}" != set; then
  9039. echo "#! /bin/sh" >conf$$.sh
  9040. echo "exit 0" >>conf$$.sh
  9041. chmod +x conf$$.sh
  9042. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9043. PATH_SEPARATOR=';'
  9044. else
  9045. PATH_SEPARATOR=:
  9046. fi
  9047. rm -f conf$$.sh
  9048. fi
  9049. # Find out how to test for executable files. Don't use a zero-byte file,
  9050. # as systems may use methods other than mode bits to determine executability.
  9051. cat >conf$$.file <<_ASEOF
  9052. #! /bin/sh
  9053. exit 0
  9054. _ASEOF
  9055. chmod +x conf$$.file
  9056. if test -x conf$$.file >/dev/null 2>&1; then
  9057. ac_executable_p="test -x"
  9058. else
  9059. ac_executable_p="test -f"
  9060. fi
  9061. rm -f conf$$.file
  9062. # Extract the first word of "msgfmt", so it can be a program name with args.
  9063. set dummy msgfmt; ac_word=$2
  9064. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9065. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9066. if test "${ac_cv_path_MSGFMT+set}" = set; then
  9067. echo $ECHO_N "(cached) $ECHO_C" >&6
  9068. else
  9069. case "$MSGFMT" in
  9070. [\\/]* | ?:[\\/]*)
  9071. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  9072. ;;
  9073. *)
  9074. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9075. for ac_dir in $PATH; do
  9076. IFS="$ac_save_IFS"
  9077. test -z "$ac_dir" && ac_dir=.
  9078. for ac_exec_ext in '' $ac_executable_extensions; do
  9079. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9080. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9081. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  9082. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  9083. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  9084. break 2
  9085. fi
  9086. fi
  9087. done
  9088. done
  9089. IFS="$ac_save_IFS"
  9090. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  9091. ;;
  9092. esac
  9093. fi
  9094. MSGFMT="$ac_cv_path_MSGFMT"
  9095. if test "$MSGFMT" != ":"; then
  9096. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  9097. echo "${ECHO_T}$MSGFMT" >&6; }
  9098. else
  9099. { echo "$as_me:$LINENO: result: no" >&5
  9100. echo "${ECHO_T}no" >&6; }
  9101. fi
  9102. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  9103. set dummy gmsgfmt; ac_word=$2
  9104. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9105. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9106. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  9107. echo $ECHO_N "(cached) $ECHO_C" >&6
  9108. else
  9109. case $GMSGFMT in
  9110. [\\/]* | ?:[\\/]*)
  9111. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  9112. ;;
  9113. *)
  9114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9115. for as_dir in $PATH
  9116. do
  9117. IFS=$as_save_IFS
  9118. test -z "$as_dir" && as_dir=.
  9119. for ac_exec_ext in '' $ac_executable_extensions; do
  9120. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9121. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  9122. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9123. break 2
  9124. fi
  9125. done
  9126. done
  9127. IFS=$as_save_IFS
  9128. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  9129. ;;
  9130. esac
  9131. fi
  9132. GMSGFMT=$ac_cv_path_GMSGFMT
  9133. if test -n "$GMSGFMT"; then
  9134. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  9135. echo "${ECHO_T}$GMSGFMT" >&6; }
  9136. else
  9137. { echo "$as_me:$LINENO: result: no" >&5
  9138. echo "${ECHO_T}no" >&6; }
  9139. fi
  9140. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9141. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  9142. *) MSGFMT_015=$MSGFMT ;;
  9143. esac
  9144. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9145. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  9146. *) GMSGFMT_015=$GMSGFMT ;;
  9147. esac
  9148. # Prepare PATH_SEPARATOR.
  9149. # The user is always right.
  9150. if test "${PATH_SEPARATOR+set}" != set; then
  9151. echo "#! /bin/sh" >conf$$.sh
  9152. echo "exit 0" >>conf$$.sh
  9153. chmod +x conf$$.sh
  9154. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9155. PATH_SEPARATOR=';'
  9156. else
  9157. PATH_SEPARATOR=:
  9158. fi
  9159. rm -f conf$$.sh
  9160. fi
  9161. # Find out how to test for executable files. Don't use a zero-byte file,
  9162. # as systems may use methods other than mode bits to determine executability.
  9163. cat >conf$$.file <<_ASEOF
  9164. #! /bin/sh
  9165. exit 0
  9166. _ASEOF
  9167. chmod +x conf$$.file
  9168. if test -x conf$$.file >/dev/null 2>&1; then
  9169. ac_executable_p="test -x"
  9170. else
  9171. ac_executable_p="test -f"
  9172. fi
  9173. rm -f conf$$.file
  9174. # Extract the first word of "xgettext", so it can be a program name with args.
  9175. set dummy xgettext; ac_word=$2
  9176. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9177. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9178. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  9179. echo $ECHO_N "(cached) $ECHO_C" >&6
  9180. else
  9181. case "$XGETTEXT" in
  9182. [\\/]* | ?:[\\/]*)
  9183. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  9184. ;;
  9185. *)
  9186. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9187. for ac_dir in $PATH; do
  9188. IFS="$ac_save_IFS"
  9189. test -z "$ac_dir" && ac_dir=.
  9190. for ac_exec_ext in '' $ac_executable_extensions; do
  9191. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9192. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9193. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  9194. (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
  9195. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  9196. break 2
  9197. fi
  9198. fi
  9199. done
  9200. done
  9201. IFS="$ac_save_IFS"
  9202. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  9203. ;;
  9204. esac
  9205. fi
  9206. XGETTEXT="$ac_cv_path_XGETTEXT"
  9207. if test "$XGETTEXT" != ":"; then
  9208. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  9209. echo "${ECHO_T}$XGETTEXT" >&6; }
  9210. else
  9211. { echo "$as_me:$LINENO: result: no" >&5
  9212. echo "${ECHO_T}no" >&6; }
  9213. fi
  9214. rm -f messages.po
  9215. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9216. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  9217. *) XGETTEXT_015=$XGETTEXT ;;
  9218. esac
  9219. # Prepare PATH_SEPARATOR.
  9220. # The user is always right.
  9221. if test "${PATH_SEPARATOR+set}" != set; then
  9222. echo "#! /bin/sh" >conf$$.sh
  9223. echo "exit 0" >>conf$$.sh
  9224. chmod +x conf$$.sh
  9225. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9226. PATH_SEPARATOR=';'
  9227. else
  9228. PATH_SEPARATOR=:
  9229. fi
  9230. rm -f conf$$.sh
  9231. fi
  9232. # Find out how to test for executable files. Don't use a zero-byte file,
  9233. # as systems may use methods other than mode bits to determine executability.
  9234. cat >conf$$.file <<_ASEOF
  9235. #! /bin/sh
  9236. exit 0
  9237. _ASEOF
  9238. chmod +x conf$$.file
  9239. if test -x conf$$.file >/dev/null 2>&1; then
  9240. ac_executable_p="test -x"
  9241. else
  9242. ac_executable_p="test -f"
  9243. fi
  9244. rm -f conf$$.file
  9245. # Extract the first word of "msgmerge", so it can be a program name with args.
  9246. set dummy msgmerge; ac_word=$2
  9247. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9248. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9249. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  9250. echo $ECHO_N "(cached) $ECHO_C" >&6
  9251. else
  9252. case "$MSGMERGE" in
  9253. [\\/]* | ?:[\\/]*)
  9254. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  9255. ;;
  9256. *)
  9257. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9258. for ac_dir in $PATH; do
  9259. IFS="$ac_save_IFS"
  9260. test -z "$ac_dir" && ac_dir=.
  9261. for ac_exec_ext in '' $ac_executable_extensions; do
  9262. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9263. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9264. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  9265. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  9266. break 2
  9267. fi
  9268. fi
  9269. done
  9270. done
  9271. IFS="$ac_save_IFS"
  9272. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  9273. ;;
  9274. esac
  9275. fi
  9276. MSGMERGE="$ac_cv_path_MSGMERGE"
  9277. if test "$MSGMERGE" != ":"; then
  9278. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  9279. echo "${ECHO_T}$MSGMERGE" >&6; }
  9280. else
  9281. { echo "$as_me:$LINENO: result: no" >&5
  9282. echo "${ECHO_T}no" >&6; }
  9283. fi
  9284. test -n "$localedir" || localedir='${datadir}/locale'
  9285. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  9286. ac_config_commands="$ac_config_commands po-directories"
  9287. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  9288. echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
  9289. if test "${ac_cv_gnu_library_2+set}" = set; then
  9290. echo $ECHO_N "(cached) $ECHO_C" >&6
  9291. else
  9292. cat >conftest.$ac_ext <<_ACEOF
  9293. /* confdefs.h. */
  9294. _ACEOF
  9295. cat confdefs.h >>conftest.$ac_ext
  9296. cat >>conftest.$ac_ext <<_ACEOF
  9297. /* end confdefs.h. */
  9298. #include <features.h>
  9299. #ifdef __GNU_LIBRARY__
  9300. #if (__GLIBC__ >= 2)
  9301. Lucky GNU user
  9302. #endif
  9303. #endif
  9304. _ACEOF
  9305. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9306. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  9307. ac_cv_gnu_library_2=yes
  9308. else
  9309. ac_cv_gnu_library_2=no
  9310. fi
  9311. rm -f conftest*
  9312. fi
  9313. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  9314. echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
  9315. GLIBC2="$ac_cv_gnu_library_2"
  9316. CFLAG_VISIBILITY=
  9317. HAVE_VISIBILITY=0
  9318. if test -n "$GCC"; then
  9319. { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  9320. echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
  9321. if test "${gl_cv_cc_visibility+set}" = set; then
  9322. echo $ECHO_N "(cached) $ECHO_C" >&6
  9323. else
  9324. gl_save_CFLAGS="$CFLAGS"
  9325. CFLAGS="$CFLAGS -fvisibility=hidden"
  9326. cat >conftest.$ac_ext <<_ACEOF
  9327. /* confdefs.h. */
  9328. _ACEOF
  9329. cat confdefs.h >>conftest.$ac_ext
  9330. cat >>conftest.$ac_ext <<_ACEOF
  9331. /* end confdefs.h. */
  9332. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  9333. extern __attribute__((__visibility__("default"))) int exportedvar;
  9334. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  9335. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  9336. int
  9337. main ()
  9338. {
  9339. ;
  9340. return 0;
  9341. }
  9342. _ACEOF
  9343. rm -f conftest.$ac_objext
  9344. if { (ac_try="$ac_compile"
  9345. case "(($ac_try" in
  9346. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9347. *) ac_try_echo=$ac_try;;
  9348. esac
  9349. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9350. (eval "$ac_compile") 2>conftest.er1
  9351. ac_status=$?
  9352. grep -v '^ *+' conftest.er1 >conftest.err
  9353. rm -f conftest.er1
  9354. cat conftest.err >&5
  9355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9356. (exit $ac_status); } && {
  9357. test -z "$ac_cxx_werror_flag" ||
  9358. test ! -s conftest.err
  9359. } && test -s conftest.$ac_objext; then
  9360. gl_cv_cc_visibility=yes
  9361. else
  9362. echo "$as_me: failed program was:" >&5
  9363. sed 's/^/| /' conftest.$ac_ext >&5
  9364. gl_cv_cc_visibility=no
  9365. fi
  9366. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9367. CFLAGS="$gl_save_CFLAGS"
  9368. fi
  9369. { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  9370. echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
  9371. if test $gl_cv_cc_visibility = yes; then
  9372. CFLAG_VISIBILITY="-fvisibility=hidden"
  9373. HAVE_VISIBILITY=1
  9374. fi
  9375. fi
  9376. cat >>confdefs.h <<_ACEOF
  9377. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  9378. _ACEOF
  9379. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  9380. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  9381. if test "${gl_cv_header_stdint_h+set}" = set; then
  9382. echo $ECHO_N "(cached) $ECHO_C" >&6
  9383. else
  9384. cat >conftest.$ac_ext <<_ACEOF
  9385. /* confdefs.h. */
  9386. _ACEOF
  9387. cat confdefs.h >>conftest.$ac_ext
  9388. cat >>conftest.$ac_ext <<_ACEOF
  9389. /* end confdefs.h. */
  9390. #include <sys/types.h>
  9391. #include <stdint.h>
  9392. int
  9393. main ()
  9394. {
  9395. uintmax_t i = (uintmax_t) -1; return !i;
  9396. ;
  9397. return 0;
  9398. }
  9399. _ACEOF
  9400. rm -f conftest.$ac_objext
  9401. if { (ac_try="$ac_compile"
  9402. case "(($ac_try" in
  9403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9404. *) ac_try_echo=$ac_try;;
  9405. esac
  9406. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9407. (eval "$ac_compile") 2>conftest.er1
  9408. ac_status=$?
  9409. grep -v '^ *+' conftest.er1 >conftest.err
  9410. rm -f conftest.er1
  9411. cat conftest.err >&5
  9412. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9413. (exit $ac_status); } && {
  9414. test -z "$ac_cxx_werror_flag" ||
  9415. test ! -s conftest.err
  9416. } && test -s conftest.$ac_objext; then
  9417. gl_cv_header_stdint_h=yes
  9418. else
  9419. echo "$as_me: failed program was:" >&5
  9420. sed 's/^/| /' conftest.$ac_ext >&5
  9421. gl_cv_header_stdint_h=no
  9422. fi
  9423. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9424. fi
  9425. { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  9426. echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
  9427. if test $gl_cv_header_stdint_h = yes; then
  9428. cat >>confdefs.h <<_ACEOF
  9429. #define HAVE_STDINT_H_WITH_UINTMAX 1
  9430. _ACEOF
  9431. fi
  9432. for ac_header in stdlib.h unistd.h
  9433. do
  9434. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9435. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9436. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9437. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9438. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9439. echo $ECHO_N "(cached) $ECHO_C" >&6
  9440. fi
  9441. ac_res=`eval echo '${'$as_ac_Header'}'`
  9442. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9443. echo "${ECHO_T}$ac_res" >&6; }
  9444. else
  9445. # Is the header compilable?
  9446. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9447. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9448. cat >conftest.$ac_ext <<_ACEOF
  9449. /* confdefs.h. */
  9450. _ACEOF
  9451. cat confdefs.h >>conftest.$ac_ext
  9452. cat >>conftest.$ac_ext <<_ACEOF
  9453. /* end confdefs.h. */
  9454. $ac_includes_default
  9455. #include <$ac_header>
  9456. _ACEOF
  9457. rm -f conftest.$ac_objext
  9458. if { (ac_try="$ac_compile"
  9459. case "(($ac_try" in
  9460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9461. *) ac_try_echo=$ac_try;;
  9462. esac
  9463. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9464. (eval "$ac_compile") 2>conftest.er1
  9465. ac_status=$?
  9466. grep -v '^ *+' conftest.er1 >conftest.err
  9467. rm -f conftest.er1
  9468. cat conftest.err >&5
  9469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9470. (exit $ac_status); } && {
  9471. test -z "$ac_cxx_werror_flag" ||
  9472. test ! -s conftest.err
  9473. } && test -s conftest.$ac_objext; then
  9474. ac_header_compiler=yes
  9475. else
  9476. echo "$as_me: failed program was:" >&5
  9477. sed 's/^/| /' conftest.$ac_ext >&5
  9478. ac_header_compiler=no
  9479. fi
  9480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9481. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9482. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9483. # Is the header present?
  9484. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9485. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9486. cat >conftest.$ac_ext <<_ACEOF
  9487. /* confdefs.h. */
  9488. _ACEOF
  9489. cat confdefs.h >>conftest.$ac_ext
  9490. cat >>conftest.$ac_ext <<_ACEOF
  9491. /* end confdefs.h. */
  9492. #include <$ac_header>
  9493. _ACEOF
  9494. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9495. case "(($ac_try" in
  9496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9497. *) ac_try_echo=$ac_try;;
  9498. esac
  9499. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9500. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9501. ac_status=$?
  9502. grep -v '^ *+' conftest.er1 >conftest.err
  9503. rm -f conftest.er1
  9504. cat conftest.err >&5
  9505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9506. (exit $ac_status); } >/dev/null && {
  9507. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9508. test ! -s conftest.err
  9509. }; then
  9510. ac_header_preproc=yes
  9511. else
  9512. echo "$as_me: failed program was:" >&5
  9513. sed 's/^/| /' conftest.$ac_ext >&5
  9514. ac_header_preproc=no
  9515. fi
  9516. rm -f conftest.err conftest.$ac_ext
  9517. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9518. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9519. # So? What about this header?
  9520. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9521. yes:no: )
  9522. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9523. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9524. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9525. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9526. ac_header_preproc=yes
  9527. ;;
  9528. no:yes:* )
  9529. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9530. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9531. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9532. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9533. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9534. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9535. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9536. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9537. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9538. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9539. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9540. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9541. ( cat <<\_ASBOX
  9542. ## ----------------------------------------------- ##
  9543. ## Report this to t-tujikawa@users.sourceforge.net ##
  9544. ## ----------------------------------------------- ##
  9545. _ASBOX
  9546. ) | sed "s/^/$as_me: WARNING: /" >&2
  9547. ;;
  9548. esac
  9549. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9550. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9551. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9552. echo $ECHO_N "(cached) $ECHO_C" >&6
  9553. else
  9554. eval "$as_ac_Header=\$ac_header_preproc"
  9555. fi
  9556. ac_res=`eval echo '${'$as_ac_Header'}'`
  9557. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9558. echo "${ECHO_T}$ac_res" >&6; }
  9559. fi
  9560. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9561. cat >>confdefs.h <<_ACEOF
  9562. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9563. _ACEOF
  9564. fi
  9565. done
  9566. for ac_func in getpagesize
  9567. do
  9568. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9569. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9570. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9571. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9572. echo $ECHO_N "(cached) $ECHO_C" >&6
  9573. else
  9574. cat >conftest.$ac_ext <<_ACEOF
  9575. /* confdefs.h. */
  9576. _ACEOF
  9577. cat confdefs.h >>conftest.$ac_ext
  9578. cat >>conftest.$ac_ext <<_ACEOF
  9579. /* end confdefs.h. */
  9580. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9581. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9582. #define $ac_func innocuous_$ac_func
  9583. /* System header to define __stub macros and hopefully few prototypes,
  9584. which can conflict with char $ac_func (); below.
  9585. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9586. <limits.h> exists even on freestanding compilers. */
  9587. #ifdef __STDC__
  9588. # include <limits.h>
  9589. #else
  9590. # include <assert.h>
  9591. #endif
  9592. #undef $ac_func
  9593. /* Override any GCC internal prototype to avoid an error.
  9594. Use char because int might match the return type of a GCC
  9595. builtin and then its argument prototype would still apply. */
  9596. #ifdef __cplusplus
  9597. extern "C"
  9598. #endif
  9599. char $ac_func ();
  9600. /* The GNU C library defines this for functions which it implements
  9601. to always fail with ENOSYS. Some functions are actually named
  9602. something starting with __ and the normal name is an alias. */
  9603. #if defined __stub_$ac_func || defined __stub___$ac_func
  9604. choke me
  9605. #endif
  9606. int
  9607. main ()
  9608. {
  9609. return $ac_func ();
  9610. ;
  9611. return 0;
  9612. }
  9613. _ACEOF
  9614. rm -f conftest.$ac_objext conftest$ac_exeext
  9615. if { (ac_try="$ac_link"
  9616. case "(($ac_try" in
  9617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9618. *) ac_try_echo=$ac_try;;
  9619. esac
  9620. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9621. (eval "$ac_link") 2>conftest.er1
  9622. ac_status=$?
  9623. grep -v '^ *+' conftest.er1 >conftest.err
  9624. rm -f conftest.er1
  9625. cat conftest.err >&5
  9626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9627. (exit $ac_status); } && {
  9628. test -z "$ac_cxx_werror_flag" ||
  9629. test ! -s conftest.err
  9630. } && test -s conftest$ac_exeext &&
  9631. $as_test_x conftest$ac_exeext; then
  9632. eval "$as_ac_var=yes"
  9633. else
  9634. echo "$as_me: failed program was:" >&5
  9635. sed 's/^/| /' conftest.$ac_ext >&5
  9636. eval "$as_ac_var=no"
  9637. fi
  9638. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9639. conftest$ac_exeext conftest.$ac_ext
  9640. fi
  9641. ac_res=`eval echo '${'$as_ac_var'}'`
  9642. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9643. echo "${ECHO_T}$ac_res" >&6; }
  9644. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9645. cat >>confdefs.h <<_ACEOF
  9646. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9647. _ACEOF
  9648. fi
  9649. done
  9650. { echo "$as_me:$LINENO: checking for working mmap" >&5
  9651. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  9652. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9653. echo $ECHO_N "(cached) $ECHO_C" >&6
  9654. else
  9655. if test "$cross_compiling" = yes; then
  9656. ac_cv_func_mmap_fixed_mapped=no
  9657. else
  9658. cat >conftest.$ac_ext <<_ACEOF
  9659. /* confdefs.h. */
  9660. _ACEOF
  9661. cat confdefs.h >>conftest.$ac_ext
  9662. cat >>conftest.$ac_ext <<_ACEOF
  9663. /* end confdefs.h. */
  9664. $ac_includes_default
  9665. /* malloc might have been renamed as rpl_malloc. */
  9666. #undef malloc
  9667. /* Thanks to Mike Haertel and Jim Avera for this test.
  9668. Here is a matrix of mmap possibilities:
  9669. mmap private not fixed
  9670. mmap private fixed at somewhere currently unmapped
  9671. mmap private fixed at somewhere already mapped
  9672. mmap shared not fixed
  9673. mmap shared fixed at somewhere currently unmapped
  9674. mmap shared fixed at somewhere already mapped
  9675. For private mappings, we should verify that changes cannot be read()
  9676. back from the file, nor mmap's back from the file at a different
  9677. address. (There have been systems where private was not correctly
  9678. implemented like the infamous i386 svr4.0, and systems where the
  9679. VM page cache was not coherent with the file system buffer cache
  9680. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9681. For shared mappings, we should conversely verify that changes get
  9682. propagated back to all the places they're supposed to be.
  9683. Grep wants private fixed already mapped.
  9684. The main things grep needs to know about mmap are:
  9685. * does it exist and is it safe to write into the mmap'd area
  9686. * how to use it (BSD variants) */
  9687. #include <fcntl.h>
  9688. #include <sys/mman.h>
  9689. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  9690. char *malloc ();
  9691. #endif
  9692. /* This mess was copied from the GNU getpagesize.h. */
  9693. #ifndef HAVE_GETPAGESIZE
  9694. /* Assume that all systems that can run configure have sys/param.h. */
  9695. # ifndef HAVE_SYS_PARAM_H
  9696. # define HAVE_SYS_PARAM_H 1
  9697. # endif
  9698. # ifdef _SC_PAGESIZE
  9699. # define getpagesize() sysconf(_SC_PAGESIZE)
  9700. # else /* no _SC_PAGESIZE */
  9701. # ifdef HAVE_SYS_PARAM_H
  9702. # include <sys/param.h>
  9703. # ifdef EXEC_PAGESIZE
  9704. # define getpagesize() EXEC_PAGESIZE
  9705. # else /* no EXEC_PAGESIZE */
  9706. # ifdef NBPG
  9707. # define getpagesize() NBPG * CLSIZE
  9708. # ifndef CLSIZE
  9709. # define CLSIZE 1
  9710. # endif /* no CLSIZE */
  9711. # else /* no NBPG */
  9712. # ifdef NBPC
  9713. # define getpagesize() NBPC
  9714. # else /* no NBPC */
  9715. # ifdef PAGESIZE
  9716. # define getpagesize() PAGESIZE
  9717. # endif /* PAGESIZE */
  9718. # endif /* no NBPC */
  9719. # endif /* no NBPG */
  9720. # endif /* no EXEC_PAGESIZE */
  9721. # else /* no HAVE_SYS_PARAM_H */
  9722. # define getpagesize() 8192 /* punt totally */
  9723. # endif /* no HAVE_SYS_PARAM_H */
  9724. # endif /* no _SC_PAGESIZE */
  9725. #endif /* no HAVE_GETPAGESIZE */
  9726. int
  9727. main ()
  9728. {
  9729. char *data, *data2, *data3;
  9730. int i, pagesize;
  9731. int fd;
  9732. pagesize = getpagesize ();
  9733. /* First, make a file with some known garbage in it. */
  9734. data = (char *) malloc (pagesize);
  9735. if (!data)
  9736. return 1;
  9737. for (i = 0; i < pagesize; ++i)
  9738. *(data + i) = rand ();
  9739. umask (0);
  9740. fd = creat ("conftest.mmap", 0600);
  9741. if (fd < 0)
  9742. return 1;
  9743. if (write (fd, data, pagesize) != pagesize)
  9744. return 1;
  9745. close (fd);
  9746. /* Next, try to mmap the file at a fixed address which already has
  9747. something else allocated at it. If we can, also make sure that
  9748. we see the same garbage. */
  9749. fd = open ("conftest.mmap", O_RDWR);
  9750. if (fd < 0)
  9751. return 1;
  9752. data2 = (char *) malloc (2 * pagesize);
  9753. if (!data2)
  9754. return 1;
  9755. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  9756. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9757. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9758. return 1;
  9759. for (i = 0; i < pagesize; ++i)
  9760. if (*(data + i) != *(data2 + i))
  9761. return 1;
  9762. /* Finally, make sure that changes to the mapped area do not
  9763. percolate back to the file as seen by read(). (This is a bug on
  9764. some variants of i386 svr4.0.) */
  9765. for (i = 0; i < pagesize; ++i)
  9766. *(data2 + i) = *(data2 + i) + 1;
  9767. data3 = (char *) malloc (pagesize);
  9768. if (!data3)
  9769. return 1;
  9770. if (read (fd, data3, pagesize) != pagesize)
  9771. return 1;
  9772. for (i = 0; i < pagesize; ++i)
  9773. if (*(data + i) != *(data3 + i))
  9774. return 1;
  9775. close (fd);
  9776. return 0;
  9777. }
  9778. _ACEOF
  9779. rm -f conftest$ac_exeext
  9780. if { (ac_try="$ac_link"
  9781. case "(($ac_try" in
  9782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9783. *) ac_try_echo=$ac_try;;
  9784. esac
  9785. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9786. (eval "$ac_link") 2>&5
  9787. ac_status=$?
  9788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9789. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9790. { (case "(($ac_try" in
  9791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9792. *) ac_try_echo=$ac_try;;
  9793. esac
  9794. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9795. (eval "$ac_try") 2>&5
  9796. ac_status=$?
  9797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9798. (exit $ac_status); }; }; then
  9799. ac_cv_func_mmap_fixed_mapped=yes
  9800. else
  9801. echo "$as_me: program exited with status $ac_status" >&5
  9802. echo "$as_me: failed program was:" >&5
  9803. sed 's/^/| /' conftest.$ac_ext >&5
  9804. ( exit $ac_status )
  9805. ac_cv_func_mmap_fixed_mapped=no
  9806. fi
  9807. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9808. fi
  9809. fi
  9810. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9811. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  9812. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9813. cat >>confdefs.h <<\_ACEOF
  9814. #define HAVE_MMAP 1
  9815. _ACEOF
  9816. fi
  9817. rm -f conftest.mmap
  9818. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  9819. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  9820. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  9821. echo $ECHO_N "(cached) $ECHO_C" >&6
  9822. else
  9823. gt_cv_int_divbyzero_sigfpe=
  9824. case "$host_os" in
  9825. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  9826. # On MacOS X 10.2 or newer, just assume the same as when cross-
  9827. # compiling. If we were to perform the real test, 1 Crash Report
  9828. # dialog window would pop up.
  9829. case "$host_cpu" in
  9830. i[34567]86 | x86_64)
  9831. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  9832. esac
  9833. ;;
  9834. esac
  9835. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  9836. if test "$cross_compiling" = yes; then
  9837. # Guess based on the CPU.
  9838. case "$host_cpu" in
  9839. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  9840. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  9841. *)
  9842. gt_cv_int_divbyzero_sigfpe="guessing no";;
  9843. esac
  9844. else
  9845. cat >conftest.$ac_ext <<_ACEOF
  9846. /* confdefs.h. */
  9847. _ACEOF
  9848. cat confdefs.h >>conftest.$ac_ext
  9849. cat >>conftest.$ac_ext <<_ACEOF
  9850. /* end confdefs.h. */
  9851. #include <stdlib.h>
  9852. #include <signal.h>
  9853. static void
  9854. sigfpe_handler (int sig)
  9855. {
  9856. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  9857. exit (sig != SIGFPE);
  9858. }
  9859. int x = 1;
  9860. int y = 0;
  9861. int z;
  9862. int nan;
  9863. int main ()
  9864. {
  9865. signal (SIGFPE, sigfpe_handler);
  9866. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  9867. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  9868. signal (SIGTRAP, sigfpe_handler);
  9869. #endif
  9870. /* Linux/SPARC yields signal SIGILL. */
  9871. #if defined (__sparc__) && defined (__linux__)
  9872. signal (SIGILL, sigfpe_handler);
  9873. #endif
  9874. z = x / y;
  9875. nan = y / y;
  9876. exit (1);
  9877. }
  9878. _ACEOF
  9879. rm -f conftest$ac_exeext
  9880. if { (ac_try="$ac_link"
  9881. case "(($ac_try" in
  9882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9883. *) ac_try_echo=$ac_try;;
  9884. esac
  9885. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9886. (eval "$ac_link") 2>&5
  9887. ac_status=$?
  9888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9889. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9890. { (case "(($ac_try" in
  9891. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9892. *) ac_try_echo=$ac_try;;
  9893. esac
  9894. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9895. (eval "$ac_try") 2>&5
  9896. ac_status=$?
  9897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9898. (exit $ac_status); }; }; then
  9899. gt_cv_int_divbyzero_sigfpe=yes
  9900. else
  9901. echo "$as_me: program exited with status $ac_status" >&5
  9902. echo "$as_me: failed program was:" >&5
  9903. sed 's/^/| /' conftest.$ac_ext >&5
  9904. ( exit $ac_status )
  9905. gt_cv_int_divbyzero_sigfpe=no
  9906. fi
  9907. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9908. fi
  9909. fi
  9910. fi
  9911. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  9912. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  9913. case "$gt_cv_int_divbyzero_sigfpe" in
  9914. *yes) value=1;;
  9915. *) value=0;;
  9916. esac
  9917. cat >>confdefs.h <<_ACEOF
  9918. #define INTDIV0_RAISES_SIGFPE $value
  9919. _ACEOF
  9920. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  9921. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  9922. if test "${gl_cv_header_inttypes_h+set}" = set; then
  9923. echo $ECHO_N "(cached) $ECHO_C" >&6
  9924. else
  9925. cat >conftest.$ac_ext <<_ACEOF
  9926. /* confdefs.h. */
  9927. _ACEOF
  9928. cat confdefs.h >>conftest.$ac_ext
  9929. cat >>conftest.$ac_ext <<_ACEOF
  9930. /* end confdefs.h. */
  9931. #include <sys/types.h>
  9932. #include <inttypes.h>
  9933. int
  9934. main ()
  9935. {
  9936. uintmax_t i = (uintmax_t) -1; return !i;
  9937. ;
  9938. return 0;
  9939. }
  9940. _ACEOF
  9941. rm -f conftest.$ac_objext
  9942. if { (ac_try="$ac_compile"
  9943. case "(($ac_try" in
  9944. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9945. *) ac_try_echo=$ac_try;;
  9946. esac
  9947. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9948. (eval "$ac_compile") 2>conftest.er1
  9949. ac_status=$?
  9950. grep -v '^ *+' conftest.er1 >conftest.err
  9951. rm -f conftest.er1
  9952. cat conftest.err >&5
  9953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9954. (exit $ac_status); } && {
  9955. test -z "$ac_cxx_werror_flag" ||
  9956. test ! -s conftest.err
  9957. } && test -s conftest.$ac_objext; then
  9958. gl_cv_header_inttypes_h=yes
  9959. else
  9960. echo "$as_me: failed program was:" >&5
  9961. sed 's/^/| /' conftest.$ac_ext >&5
  9962. gl_cv_header_inttypes_h=no
  9963. fi
  9964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9965. fi
  9966. { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  9967. echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
  9968. if test $gl_cv_header_inttypes_h = yes; then
  9969. cat >>confdefs.h <<_ACEOF
  9970. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  9971. _ACEOF
  9972. fi
  9973. { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  9974. echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
  9975. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  9976. echo $ECHO_N "(cached) $ECHO_C" >&6
  9977. else
  9978. cat >conftest.$ac_ext <<_ACEOF
  9979. /* confdefs.h. */
  9980. _ACEOF
  9981. cat confdefs.h >>conftest.$ac_ext
  9982. cat >>conftest.$ac_ext <<_ACEOF
  9983. /* end confdefs.h. */
  9984. /* Test preprocessor. */
  9985. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  9986. error in preprocessor;
  9987. #endif
  9988. #if ! (18446744073709551615ULL <= -1ull)
  9989. error in preprocessor;
  9990. #endif
  9991. /* Test literals. */
  9992. long long int ll = 9223372036854775807ll;
  9993. long long int nll = -9223372036854775807LL;
  9994. unsigned long long int ull = 18446744073709551615ULL;
  9995. /* Test constant expressions. */
  9996. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  9997. ? 1 : -1)];
  9998. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  9999. ? 1 : -1)];
  10000. int i = 63;
  10001. int
  10002. main ()
  10003. {
  10004. /* Test availability of runtime routines for shift and division. */
  10005. long long int llmax = 9223372036854775807ll;
  10006. unsigned long long int ullmax = 18446744073709551615ull;
  10007. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10008. | (llmax / ll) | (llmax % ll)
  10009. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10010. | (ullmax / ull) | (ullmax % ull));
  10011. ;
  10012. return 0;
  10013. }
  10014. _ACEOF
  10015. rm -f conftest.$ac_objext conftest$ac_exeext
  10016. if { (ac_try="$ac_link"
  10017. case "(($ac_try" in
  10018. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10019. *) ac_try_echo=$ac_try;;
  10020. esac
  10021. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10022. (eval "$ac_link") 2>conftest.er1
  10023. ac_status=$?
  10024. grep -v '^ *+' conftest.er1 >conftest.err
  10025. rm -f conftest.er1
  10026. cat conftest.err >&5
  10027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10028. (exit $ac_status); } && {
  10029. test -z "$ac_cxx_werror_flag" ||
  10030. test ! -s conftest.err
  10031. } && test -s conftest$ac_exeext &&
  10032. $as_test_x conftest$ac_exeext; then
  10033. ac_cv_type_unsigned_long_long_int=yes
  10034. else
  10035. echo "$as_me: failed program was:" >&5
  10036. sed 's/^/| /' conftest.$ac_ext >&5
  10037. ac_cv_type_unsigned_long_long_int=no
  10038. fi
  10039. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10040. conftest$ac_exeext conftest.$ac_ext
  10041. fi
  10042. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  10043. echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
  10044. if test $ac_cv_type_unsigned_long_long_int = yes; then
  10045. cat >>confdefs.h <<\_ACEOF
  10046. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  10047. _ACEOF
  10048. fi
  10049. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  10050. test $ac_cv_type_unsigned_long_long_int = yes \
  10051. && ac_type='unsigned long long' \
  10052. || ac_type='unsigned long'
  10053. cat >>confdefs.h <<_ACEOF
  10054. #define uintmax_t $ac_type
  10055. _ACEOF
  10056. else
  10057. cat >>confdefs.h <<\_ACEOF
  10058. #define HAVE_UINTMAX_T 1
  10059. _ACEOF
  10060. fi
  10061. for ac_header in inttypes.h
  10062. do
  10063. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10064. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10065. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10066. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10067. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10068. echo $ECHO_N "(cached) $ECHO_C" >&6
  10069. fi
  10070. ac_res=`eval echo '${'$as_ac_Header'}'`
  10071. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10072. echo "${ECHO_T}$ac_res" >&6; }
  10073. else
  10074. # Is the header compilable?
  10075. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10076. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10077. cat >conftest.$ac_ext <<_ACEOF
  10078. /* confdefs.h. */
  10079. _ACEOF
  10080. cat confdefs.h >>conftest.$ac_ext
  10081. cat >>conftest.$ac_ext <<_ACEOF
  10082. /* end confdefs.h. */
  10083. $ac_includes_default
  10084. #include <$ac_header>
  10085. _ACEOF
  10086. rm -f conftest.$ac_objext
  10087. if { (ac_try="$ac_compile"
  10088. case "(($ac_try" in
  10089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10090. *) ac_try_echo=$ac_try;;
  10091. esac
  10092. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10093. (eval "$ac_compile") 2>conftest.er1
  10094. ac_status=$?
  10095. grep -v '^ *+' conftest.er1 >conftest.err
  10096. rm -f conftest.er1
  10097. cat conftest.err >&5
  10098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10099. (exit $ac_status); } && {
  10100. test -z "$ac_cxx_werror_flag" ||
  10101. test ! -s conftest.err
  10102. } && test -s conftest.$ac_objext; then
  10103. ac_header_compiler=yes
  10104. else
  10105. echo "$as_me: failed program was:" >&5
  10106. sed 's/^/| /' conftest.$ac_ext >&5
  10107. ac_header_compiler=no
  10108. fi
  10109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10110. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10111. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10112. # Is the header present?
  10113. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10114. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10115. cat >conftest.$ac_ext <<_ACEOF
  10116. /* confdefs.h. */
  10117. _ACEOF
  10118. cat confdefs.h >>conftest.$ac_ext
  10119. cat >>conftest.$ac_ext <<_ACEOF
  10120. /* end confdefs.h. */
  10121. #include <$ac_header>
  10122. _ACEOF
  10123. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10124. case "(($ac_try" in
  10125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10126. *) ac_try_echo=$ac_try;;
  10127. esac
  10128. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10129. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10130. ac_status=$?
  10131. grep -v '^ *+' conftest.er1 >conftest.err
  10132. rm -f conftest.er1
  10133. cat conftest.err >&5
  10134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10135. (exit $ac_status); } >/dev/null && {
  10136. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10137. test ! -s conftest.err
  10138. }; then
  10139. ac_header_preproc=yes
  10140. else
  10141. echo "$as_me: failed program was:" >&5
  10142. sed 's/^/| /' conftest.$ac_ext >&5
  10143. ac_header_preproc=no
  10144. fi
  10145. rm -f conftest.err conftest.$ac_ext
  10146. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10147. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10148. # So? What about this header?
  10149. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10150. yes:no: )
  10151. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10152. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10153. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10154. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10155. ac_header_preproc=yes
  10156. ;;
  10157. no:yes:* )
  10158. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10159. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10160. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10161. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10162. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10163. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10164. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10165. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10166. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10167. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10168. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10169. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10170. ( cat <<\_ASBOX
  10171. ## ----------------------------------------------- ##
  10172. ## Report this to t-tujikawa@users.sourceforge.net ##
  10173. ## ----------------------------------------------- ##
  10174. _ASBOX
  10175. ) | sed "s/^/$as_me: WARNING: /" >&2
  10176. ;;
  10177. esac
  10178. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10179. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10180. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10181. echo $ECHO_N "(cached) $ECHO_C" >&6
  10182. else
  10183. eval "$as_ac_Header=\$ac_header_preproc"
  10184. fi
  10185. ac_res=`eval echo '${'$as_ac_Header'}'`
  10186. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10187. echo "${ECHO_T}$ac_res" >&6; }
  10188. fi
  10189. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10190. cat >>confdefs.h <<_ACEOF
  10191. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10192. _ACEOF
  10193. fi
  10194. done
  10195. if test $ac_cv_header_inttypes_h = yes; then
  10196. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  10197. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  10198. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  10199. echo $ECHO_N "(cached) $ECHO_C" >&6
  10200. else
  10201. cat >conftest.$ac_ext <<_ACEOF
  10202. /* confdefs.h. */
  10203. _ACEOF
  10204. cat confdefs.h >>conftest.$ac_ext
  10205. cat >>conftest.$ac_ext <<_ACEOF
  10206. /* end confdefs.h. */
  10207. #include <inttypes.h>
  10208. #ifdef PRId32
  10209. char *p = PRId32;
  10210. #endif
  10211. int
  10212. main ()
  10213. {
  10214. ;
  10215. return 0;
  10216. }
  10217. _ACEOF
  10218. rm -f conftest.$ac_objext
  10219. if { (ac_try="$ac_compile"
  10220. case "(($ac_try" in
  10221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10222. *) ac_try_echo=$ac_try;;
  10223. esac
  10224. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10225. (eval "$ac_compile") 2>conftest.er1
  10226. ac_status=$?
  10227. grep -v '^ *+' conftest.er1 >conftest.err
  10228. rm -f conftest.er1
  10229. cat conftest.err >&5
  10230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10231. (exit $ac_status); } && {
  10232. test -z "$ac_cxx_werror_flag" ||
  10233. test ! -s conftest.err
  10234. } && test -s conftest.$ac_objext; then
  10235. gt_cv_inttypes_pri_broken=no
  10236. else
  10237. echo "$as_me: failed program was:" >&5
  10238. sed 's/^/| /' conftest.$ac_ext >&5
  10239. gt_cv_inttypes_pri_broken=yes
  10240. fi
  10241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10242. fi
  10243. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  10244. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  10245. fi
  10246. if test "$gt_cv_inttypes_pri_broken" = yes; then
  10247. cat >>confdefs.h <<_ACEOF
  10248. #define PRI_MACROS_BROKEN 1
  10249. _ACEOF
  10250. PRI_MACROS_BROKEN=1
  10251. else
  10252. PRI_MACROS_BROKEN=0
  10253. fi
  10254. # Check whether --enable-threads was given.
  10255. if test "${enable_threads+set}" = set; then
  10256. enableval=$enable_threads; gl_use_threads=$enableval
  10257. else
  10258. case "$host_os" in
  10259. osf*) gl_use_threads=no ;;
  10260. *) gl_use_threads=yes ;;
  10261. esac
  10262. fi
  10263. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10264. # For using <pthread.h>:
  10265. case "$host_os" in
  10266. osf*)
  10267. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  10268. # groks <pthread.h>. cc also understands the flag -pthread, but
  10269. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  10270. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  10271. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  10272. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  10273. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  10274. ;;
  10275. esac
  10276. # Some systems optimize for single-threaded programs by default, and
  10277. # need special flags to disable these optimizations. For example, the
  10278. # definition of 'errno' in <errno.h>.
  10279. case "$host_os" in
  10280. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  10281. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  10282. esac
  10283. fi
  10284. if test "X$prefix" = "XNONE"; then
  10285. acl_final_prefix="$ac_default_prefix"
  10286. else
  10287. acl_final_prefix="$prefix"
  10288. fi
  10289. if test "X$exec_prefix" = "XNONE"; then
  10290. acl_final_exec_prefix='${prefix}'
  10291. else
  10292. acl_final_exec_prefix="$exec_prefix"
  10293. fi
  10294. acl_save_prefix="$prefix"
  10295. prefix="$acl_final_prefix"
  10296. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  10297. prefix="$acl_save_prefix"
  10298. # Check whether --with-gnu-ld was given.
  10299. if test "${with_gnu_ld+set}" = set; then
  10300. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10301. else
  10302. with_gnu_ld=no
  10303. fi
  10304. # Prepare PATH_SEPARATOR.
  10305. # The user is always right.
  10306. if test "${PATH_SEPARATOR+set}" != set; then
  10307. echo "#! /bin/sh" >conf$$.sh
  10308. echo "exit 0" >>conf$$.sh
  10309. chmod +x conf$$.sh
  10310. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10311. PATH_SEPARATOR=';'
  10312. else
  10313. PATH_SEPARATOR=:
  10314. fi
  10315. rm -f conf$$.sh
  10316. fi
  10317. ac_prog=ld
  10318. if test "$GCC" = yes; then
  10319. # Check if gcc -print-prog-name=ld gives a path.
  10320. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  10321. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  10322. case $host in
  10323. *-*-mingw*)
  10324. # gcc leaves a trailing carriage return which upsets mingw
  10325. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10326. *)
  10327. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10328. esac
  10329. case $ac_prog in
  10330. # Accept absolute paths.
  10331. [\\/]* | [A-Za-z]:[\\/]*)
  10332. re_direlt='/[^/][^/]*/\.\./'
  10333. # Canonicalize the path of ld
  10334. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  10335. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  10336. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  10337. done
  10338. test -z "$LD" && LD="$ac_prog"
  10339. ;;
  10340. "")
  10341. # If it fails, then pretend we aren't using GCC.
  10342. ac_prog=ld
  10343. ;;
  10344. *)
  10345. # If it is relative, then search for the first ld in PATH.
  10346. with_gnu_ld=unknown
  10347. ;;
  10348. esac
  10349. elif test "$with_gnu_ld" = yes; then
  10350. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  10351. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  10352. else
  10353. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10354. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  10355. fi
  10356. if test "${acl_cv_path_LD+set}" = set; then
  10357. echo $ECHO_N "(cached) $ECHO_C" >&6
  10358. else
  10359. if test -z "$LD"; then
  10360. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  10361. for ac_dir in $PATH; do
  10362. test -z "$ac_dir" && ac_dir=.
  10363. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10364. acl_cv_path_LD="$ac_dir/$ac_prog"
  10365. # Check to see if the program is GNU ld. I'd rather use --version,
  10366. # but apparently some GNU ld's only accept -v.
  10367. # Break only if it was the GNU/non-GNU ld that we prefer.
  10368. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  10369. *GNU* | *'with BFD'*)
  10370. test "$with_gnu_ld" != no && break ;;
  10371. *)
  10372. test "$with_gnu_ld" != yes && break ;;
  10373. esac
  10374. fi
  10375. done
  10376. IFS="$ac_save_ifs"
  10377. else
  10378. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  10379. fi
  10380. fi
  10381. LD="$acl_cv_path_LD"
  10382. if test -n "$LD"; then
  10383. { echo "$as_me:$LINENO: result: $LD" >&5
  10384. echo "${ECHO_T}$LD" >&6; }
  10385. else
  10386. { echo "$as_me:$LINENO: result: no" >&5
  10387. echo "${ECHO_T}no" >&6; }
  10388. fi
  10389. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10390. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10391. { (exit 1); exit 1; }; }
  10392. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10393. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  10394. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  10395. echo $ECHO_N "(cached) $ECHO_C" >&6
  10396. else
  10397. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  10398. case `$LD -v 2>&1 </dev/null` in
  10399. *GNU* | *'with BFD'*)
  10400. acl_cv_prog_gnu_ld=yes ;;
  10401. *)
  10402. acl_cv_prog_gnu_ld=no ;;
  10403. esac
  10404. fi
  10405. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  10406. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  10407. with_gnu_ld=$acl_cv_prog_gnu_ld
  10408. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  10409. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  10410. if test "${acl_cv_rpath+set}" = set; then
  10411. echo $ECHO_N "(cached) $ECHO_C" >&6
  10412. else
  10413. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  10414. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  10415. . ./conftest.sh
  10416. rm -f ./conftest.sh
  10417. acl_cv_rpath=done
  10418. fi
  10419. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  10420. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  10421. wl="$acl_cv_wl"
  10422. acl_libext="$acl_cv_libext"
  10423. acl_shlibext="$acl_cv_shlibext"
  10424. acl_libname_spec="$acl_cv_libname_spec"
  10425. acl_library_names_spec="$acl_cv_library_names_spec"
  10426. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  10427. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  10428. acl_hardcode_direct="$acl_cv_hardcode_direct"
  10429. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  10430. # Check whether --enable-rpath was given.
  10431. if test "${enable_rpath+set}" = set; then
  10432. enableval=$enable_rpath; :
  10433. else
  10434. enable_rpath=yes
  10435. fi
  10436. acl_libdirstem=lib
  10437. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  10438. if test -n "$searchpath"; then
  10439. acl_save_IFS="${IFS= }"; IFS=":"
  10440. for searchdir in $searchpath; do
  10441. if test -d "$searchdir"; then
  10442. case "$searchdir" in
  10443. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  10444. *) searchdir=`cd "$searchdir" && pwd`
  10445. case "$searchdir" in
  10446. */lib64 ) acl_libdirstem=lib64 ;;
  10447. esac ;;
  10448. esac
  10449. fi
  10450. done
  10451. IFS="$acl_save_IFS"
  10452. fi
  10453. gl_threads_api=none
  10454. LIBTHREAD=
  10455. LTLIBTHREAD=
  10456. LIBMULTITHREAD=
  10457. LTLIBMULTITHREAD=
  10458. if test "$gl_use_threads" != no; then
  10459. { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  10460. echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
  10461. gl_have_weak=no
  10462. cat >conftest.$ac_ext <<_ACEOF
  10463. /* confdefs.h. */
  10464. _ACEOF
  10465. cat confdefs.h >>conftest.$ac_ext
  10466. cat >>conftest.$ac_ext <<_ACEOF
  10467. /* end confdefs.h. */
  10468. extern void xyzzy ();
  10469. #pragma weak xyzzy
  10470. int
  10471. main ()
  10472. {
  10473. xyzzy();
  10474. ;
  10475. return 0;
  10476. }
  10477. _ACEOF
  10478. rm -f conftest.$ac_objext conftest$ac_exeext
  10479. if { (ac_try="$ac_link"
  10480. case "(($ac_try" in
  10481. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10482. *) ac_try_echo=$ac_try;;
  10483. esac
  10484. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10485. (eval "$ac_link") 2>conftest.er1
  10486. ac_status=$?
  10487. grep -v '^ *+' conftest.er1 >conftest.err
  10488. rm -f conftest.er1
  10489. cat conftest.err >&5
  10490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10491. (exit $ac_status); } && {
  10492. test -z "$ac_cxx_werror_flag" ||
  10493. test ! -s conftest.err
  10494. } && test -s conftest$ac_exeext &&
  10495. $as_test_x conftest$ac_exeext; then
  10496. gl_have_weak=yes
  10497. else
  10498. echo "$as_me: failed program was:" >&5
  10499. sed 's/^/| /' conftest.$ac_ext >&5
  10500. fi
  10501. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10502. conftest$ac_exeext conftest.$ac_ext
  10503. { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  10504. echo "${ECHO_T}$gl_have_weak" >&6; }
  10505. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10506. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  10507. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  10508. if test "${ac_cv_header_pthread_h+set}" = set; then
  10509. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10510. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10511. if test "${ac_cv_header_pthread_h+set}" = set; then
  10512. echo $ECHO_N "(cached) $ECHO_C" >&6
  10513. fi
  10514. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10515. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10516. else
  10517. # Is the header compilable?
  10518. { echo "$as_me:$LINENO: checking pthread.h usability" >&5
  10519. echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
  10520. cat >conftest.$ac_ext <<_ACEOF
  10521. /* confdefs.h. */
  10522. _ACEOF
  10523. cat confdefs.h >>conftest.$ac_ext
  10524. cat >>conftest.$ac_ext <<_ACEOF
  10525. /* end confdefs.h. */
  10526. $ac_includes_default
  10527. #include <pthread.h>
  10528. _ACEOF
  10529. rm -f conftest.$ac_objext
  10530. if { (ac_try="$ac_compile"
  10531. case "(($ac_try" in
  10532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10533. *) ac_try_echo=$ac_try;;
  10534. esac
  10535. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10536. (eval "$ac_compile") 2>conftest.er1
  10537. ac_status=$?
  10538. grep -v '^ *+' conftest.er1 >conftest.err
  10539. rm -f conftest.er1
  10540. cat conftest.err >&5
  10541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10542. (exit $ac_status); } && {
  10543. test -z "$ac_cxx_werror_flag" ||
  10544. test ! -s conftest.err
  10545. } && test -s conftest.$ac_objext; then
  10546. ac_header_compiler=yes
  10547. else
  10548. echo "$as_me: failed program was:" >&5
  10549. sed 's/^/| /' conftest.$ac_ext >&5
  10550. ac_header_compiler=no
  10551. fi
  10552. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10553. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10554. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10555. # Is the header present?
  10556. { echo "$as_me:$LINENO: checking pthread.h presence" >&5
  10557. echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
  10558. cat >conftest.$ac_ext <<_ACEOF
  10559. /* confdefs.h. */
  10560. _ACEOF
  10561. cat confdefs.h >>conftest.$ac_ext
  10562. cat >>conftest.$ac_ext <<_ACEOF
  10563. /* end confdefs.h. */
  10564. #include <pthread.h>
  10565. _ACEOF
  10566. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10567. case "(($ac_try" in
  10568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10569. *) ac_try_echo=$ac_try;;
  10570. esac
  10571. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10572. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10573. ac_status=$?
  10574. grep -v '^ *+' conftest.er1 >conftest.err
  10575. rm -f conftest.er1
  10576. cat conftest.err >&5
  10577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10578. (exit $ac_status); } >/dev/null && {
  10579. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10580. test ! -s conftest.err
  10581. }; then
  10582. ac_header_preproc=yes
  10583. else
  10584. echo "$as_me: failed program was:" >&5
  10585. sed 's/^/| /' conftest.$ac_ext >&5
  10586. ac_header_preproc=no
  10587. fi
  10588. rm -f conftest.err conftest.$ac_ext
  10589. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10590. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10591. # So? What about this header?
  10592. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10593. yes:no: )
  10594. { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10595. echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10596. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  10597. echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  10598. ac_header_preproc=yes
  10599. ;;
  10600. no:yes:* )
  10601. { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  10602. echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  10603. { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  10604. echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  10605. { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  10606. echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  10607. { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  10608. echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10609. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  10610. echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  10611. { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  10612. echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  10613. ( cat <<\_ASBOX
  10614. ## ----------------------------------------------- ##
  10615. ## Report this to t-tujikawa@users.sourceforge.net ##
  10616. ## ----------------------------------------------- ##
  10617. _ASBOX
  10618. ) | sed "s/^/$as_me: WARNING: /" >&2
  10619. ;;
  10620. esac
  10621. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10622. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10623. if test "${ac_cv_header_pthread_h+set}" = set; then
  10624. echo $ECHO_N "(cached) $ECHO_C" >&6
  10625. else
  10626. ac_cv_header_pthread_h=$ac_header_preproc
  10627. fi
  10628. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10629. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10630. fi
  10631. if test $ac_cv_header_pthread_h = yes; then
  10632. gl_have_pthread_h=yes
  10633. else
  10634. gl_have_pthread_h=no
  10635. fi
  10636. if test "$gl_have_pthread_h" = yes; then
  10637. # Other possible tests:
  10638. # -lpthreads (FSU threads, PCthreads)
  10639. # -lgthreads
  10640. gl_have_pthread=
  10641. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  10642. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  10643. # the second one only in libpthread, and lock.c needs it.
  10644. cat >conftest.$ac_ext <<_ACEOF
  10645. /* confdefs.h. */
  10646. _ACEOF
  10647. cat confdefs.h >>conftest.$ac_ext
  10648. cat >>conftest.$ac_ext <<_ACEOF
  10649. /* end confdefs.h. */
  10650. #include <pthread.h>
  10651. int
  10652. main ()
  10653. {
  10654. pthread_mutex_lock((pthread_mutex_t*)0);
  10655. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  10656. ;
  10657. return 0;
  10658. }
  10659. _ACEOF
  10660. rm -f conftest.$ac_objext conftest$ac_exeext
  10661. if { (ac_try="$ac_link"
  10662. case "(($ac_try" in
  10663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10664. *) ac_try_echo=$ac_try;;
  10665. esac
  10666. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10667. (eval "$ac_link") 2>conftest.er1
  10668. ac_status=$?
  10669. grep -v '^ *+' conftest.er1 >conftest.err
  10670. rm -f conftest.er1
  10671. cat conftest.err >&5
  10672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10673. (exit $ac_status); } && {
  10674. test -z "$ac_cxx_werror_flag" ||
  10675. test ! -s conftest.err
  10676. } && test -s conftest$ac_exeext &&
  10677. $as_test_x conftest$ac_exeext; then
  10678. gl_have_pthread=yes
  10679. else
  10680. echo "$as_me: failed program was:" >&5
  10681. sed 's/^/| /' conftest.$ac_ext >&5
  10682. fi
  10683. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10684. conftest$ac_exeext conftest.$ac_ext
  10685. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  10686. # since it is defined as a macro on OSF/1.)
  10687. if test -n "$gl_have_pthread"; then
  10688. # The program links fine without libpthread. But it may actually
  10689. # need to link with libpthread in order to create multiple threads.
  10690. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  10691. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  10692. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  10693. echo $ECHO_N "(cached) $ECHO_C" >&6
  10694. else
  10695. ac_check_lib_save_LIBS=$LIBS
  10696. LIBS="-lpthread $LIBS"
  10697. cat >conftest.$ac_ext <<_ACEOF
  10698. /* confdefs.h. */
  10699. _ACEOF
  10700. cat confdefs.h >>conftest.$ac_ext
  10701. cat >>conftest.$ac_ext <<_ACEOF
  10702. /* end confdefs.h. */
  10703. /* Override any GCC internal prototype to avoid an error.
  10704. Use char because int might match the return type of a GCC
  10705. builtin and then its argument prototype would still apply. */
  10706. #ifdef __cplusplus
  10707. extern "C"
  10708. #endif
  10709. char pthread_kill ();
  10710. int
  10711. main ()
  10712. {
  10713. return pthread_kill ();
  10714. ;
  10715. return 0;
  10716. }
  10717. _ACEOF
  10718. rm -f conftest.$ac_objext conftest$ac_exeext
  10719. if { (ac_try="$ac_link"
  10720. case "(($ac_try" in
  10721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10722. *) ac_try_echo=$ac_try;;
  10723. esac
  10724. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10725. (eval "$ac_link") 2>conftest.er1
  10726. ac_status=$?
  10727. grep -v '^ *+' conftest.er1 >conftest.err
  10728. rm -f conftest.er1
  10729. cat conftest.err >&5
  10730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10731. (exit $ac_status); } && {
  10732. test -z "$ac_cxx_werror_flag" ||
  10733. test ! -s conftest.err
  10734. } && test -s conftest$ac_exeext &&
  10735. $as_test_x conftest$ac_exeext; then
  10736. ac_cv_lib_pthread_pthread_kill=yes
  10737. else
  10738. echo "$as_me: failed program was:" >&5
  10739. sed 's/^/| /' conftest.$ac_ext >&5
  10740. ac_cv_lib_pthread_pthread_kill=no
  10741. fi
  10742. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10743. conftest$ac_exeext conftest.$ac_ext
  10744. LIBS=$ac_check_lib_save_LIBS
  10745. fi
  10746. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  10747. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  10748. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  10749. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  10750. # On Solaris and HP-UX, most pthread functions exist also in libc.
  10751. # Therefore pthread_in_use() needs to actually try to create a
  10752. # thread: pthread_create from libc will fail, whereas
  10753. # pthread_create will actually create a thread.
  10754. case "$host_os" in
  10755. solaris* | hpux*)
  10756. cat >>confdefs.h <<\_ACEOF
  10757. #define PTHREAD_IN_USE_DETECTION_HARD 1
  10758. _ACEOF
  10759. esac
  10760. fi
  10761. else
  10762. # Some library is needed. Try libpthread and libc_r.
  10763. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  10764. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  10765. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  10766. echo $ECHO_N "(cached) $ECHO_C" >&6
  10767. else
  10768. ac_check_lib_save_LIBS=$LIBS
  10769. LIBS="-lpthread $LIBS"
  10770. cat >conftest.$ac_ext <<_ACEOF
  10771. /* confdefs.h. */
  10772. _ACEOF
  10773. cat confdefs.h >>conftest.$ac_ext
  10774. cat >>conftest.$ac_ext <<_ACEOF
  10775. /* end confdefs.h. */
  10776. /* Override any GCC internal prototype to avoid an error.
  10777. Use char because int might match the return type of a GCC
  10778. builtin and then its argument prototype would still apply. */
  10779. #ifdef __cplusplus
  10780. extern "C"
  10781. #endif
  10782. char pthread_kill ();
  10783. int
  10784. main ()
  10785. {
  10786. return pthread_kill ();
  10787. ;
  10788. return 0;
  10789. }
  10790. _ACEOF
  10791. rm -f conftest.$ac_objext conftest$ac_exeext
  10792. if { (ac_try="$ac_link"
  10793. case "(($ac_try" in
  10794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10795. *) ac_try_echo=$ac_try;;
  10796. esac
  10797. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10798. (eval "$ac_link") 2>conftest.er1
  10799. ac_status=$?
  10800. grep -v '^ *+' conftest.er1 >conftest.err
  10801. rm -f conftest.er1
  10802. cat conftest.err >&5
  10803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10804. (exit $ac_status); } && {
  10805. test -z "$ac_cxx_werror_flag" ||
  10806. test ! -s conftest.err
  10807. } && test -s conftest$ac_exeext &&
  10808. $as_test_x conftest$ac_exeext; then
  10809. ac_cv_lib_pthread_pthread_kill=yes
  10810. else
  10811. echo "$as_me: failed program was:" >&5
  10812. sed 's/^/| /' conftest.$ac_ext >&5
  10813. ac_cv_lib_pthread_pthread_kill=no
  10814. fi
  10815. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10816. conftest$ac_exeext conftest.$ac_ext
  10817. LIBS=$ac_check_lib_save_LIBS
  10818. fi
  10819. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  10820. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  10821. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  10822. gl_have_pthread=yes
  10823. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  10824. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  10825. fi
  10826. if test -z "$gl_have_pthread"; then
  10827. # For FreeBSD 4.
  10828. { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  10829. echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
  10830. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  10831. echo $ECHO_N "(cached) $ECHO_C" >&6
  10832. else
  10833. ac_check_lib_save_LIBS=$LIBS
  10834. LIBS="-lc_r $LIBS"
  10835. cat >conftest.$ac_ext <<_ACEOF
  10836. /* confdefs.h. */
  10837. _ACEOF
  10838. cat confdefs.h >>conftest.$ac_ext
  10839. cat >>conftest.$ac_ext <<_ACEOF
  10840. /* end confdefs.h. */
  10841. /* Override any GCC internal prototype to avoid an error.
  10842. Use char because int might match the return type of a GCC
  10843. builtin and then its argument prototype would still apply. */
  10844. #ifdef __cplusplus
  10845. extern "C"
  10846. #endif
  10847. char pthread_kill ();
  10848. int
  10849. main ()
  10850. {
  10851. return pthread_kill ();
  10852. ;
  10853. return 0;
  10854. }
  10855. _ACEOF
  10856. rm -f conftest.$ac_objext conftest$ac_exeext
  10857. if { (ac_try="$ac_link"
  10858. case "(($ac_try" in
  10859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10860. *) ac_try_echo=$ac_try;;
  10861. esac
  10862. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10863. (eval "$ac_link") 2>conftest.er1
  10864. ac_status=$?
  10865. grep -v '^ *+' conftest.er1 >conftest.err
  10866. rm -f conftest.er1
  10867. cat conftest.err >&5
  10868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10869. (exit $ac_status); } && {
  10870. test -z "$ac_cxx_werror_flag" ||
  10871. test ! -s conftest.err
  10872. } && test -s conftest$ac_exeext &&
  10873. $as_test_x conftest$ac_exeext; then
  10874. ac_cv_lib_c_r_pthread_kill=yes
  10875. else
  10876. echo "$as_me: failed program was:" >&5
  10877. sed 's/^/| /' conftest.$ac_ext >&5
  10878. ac_cv_lib_c_r_pthread_kill=no
  10879. fi
  10880. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10881. conftest$ac_exeext conftest.$ac_ext
  10882. LIBS=$ac_check_lib_save_LIBS
  10883. fi
  10884. { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  10885. echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
  10886. if test $ac_cv_lib_c_r_pthread_kill = yes; then
  10887. gl_have_pthread=yes
  10888. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  10889. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  10890. fi
  10891. fi
  10892. fi
  10893. if test -n "$gl_have_pthread"; then
  10894. gl_threads_api=posix
  10895. cat >>confdefs.h <<\_ACEOF
  10896. #define USE_POSIX_THREADS 1
  10897. _ACEOF
  10898. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  10899. if test $gl_have_weak = yes; then
  10900. cat >>confdefs.h <<\_ACEOF
  10901. #define USE_POSIX_THREADS_WEAK 1
  10902. _ACEOF
  10903. LIBTHREAD=
  10904. LTLIBTHREAD=
  10905. fi
  10906. fi
  10907. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  10908. # pthread_rwlock_* functions.
  10909. { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  10910. echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
  10911. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  10912. echo $ECHO_N "(cached) $ECHO_C" >&6
  10913. else
  10914. cat >conftest.$ac_ext <<_ACEOF
  10915. /* confdefs.h. */
  10916. _ACEOF
  10917. cat confdefs.h >>conftest.$ac_ext
  10918. cat >>conftest.$ac_ext <<_ACEOF
  10919. /* end confdefs.h. */
  10920. #include <pthread.h>
  10921. typedef pthread_rwlock_t ac__type_new_;
  10922. int
  10923. main ()
  10924. {
  10925. if ((ac__type_new_ *) 0)
  10926. return 0;
  10927. if (sizeof (ac__type_new_))
  10928. return 0;
  10929. ;
  10930. return 0;
  10931. }
  10932. _ACEOF
  10933. rm -f conftest.$ac_objext
  10934. if { (ac_try="$ac_compile"
  10935. case "(($ac_try" in
  10936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10937. *) ac_try_echo=$ac_try;;
  10938. esac
  10939. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10940. (eval "$ac_compile") 2>conftest.er1
  10941. ac_status=$?
  10942. grep -v '^ *+' conftest.er1 >conftest.err
  10943. rm -f conftest.er1
  10944. cat conftest.err >&5
  10945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10946. (exit $ac_status); } && {
  10947. test -z "$ac_cxx_werror_flag" ||
  10948. test ! -s conftest.err
  10949. } && test -s conftest.$ac_objext; then
  10950. ac_cv_type_pthread_rwlock_t=yes
  10951. else
  10952. echo "$as_me: failed program was:" >&5
  10953. sed 's/^/| /' conftest.$ac_ext >&5
  10954. ac_cv_type_pthread_rwlock_t=no
  10955. fi
  10956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10957. fi
  10958. { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  10959. echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
  10960. if test $ac_cv_type_pthread_rwlock_t = yes; then
  10961. cat >>confdefs.h <<\_ACEOF
  10962. #define HAVE_PTHREAD_RWLOCK 1
  10963. _ACEOF
  10964. fi
  10965. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  10966. cat >conftest.$ac_ext <<_ACEOF
  10967. /* confdefs.h. */
  10968. _ACEOF
  10969. cat confdefs.h >>conftest.$ac_ext
  10970. cat >>conftest.$ac_ext <<_ACEOF
  10971. /* end confdefs.h. */
  10972. #include <pthread.h>
  10973. int
  10974. main ()
  10975. {
  10976. #if __FreeBSD__ == 4
  10977. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  10978. #else
  10979. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  10980. return !x;
  10981. #endif
  10982. ;
  10983. return 0;
  10984. }
  10985. _ACEOF
  10986. rm -f conftest.$ac_objext
  10987. if { (ac_try="$ac_compile"
  10988. case "(($ac_try" in
  10989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10990. *) ac_try_echo=$ac_try;;
  10991. esac
  10992. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10993. (eval "$ac_compile") 2>conftest.er1
  10994. ac_status=$?
  10995. grep -v '^ *+' conftest.er1 >conftest.err
  10996. rm -f conftest.er1
  10997. cat conftest.err >&5
  10998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10999. (exit $ac_status); } && {
  11000. test -z "$ac_cxx_werror_flag" ||
  11001. test ! -s conftest.err
  11002. } && test -s conftest.$ac_objext; then
  11003. cat >>confdefs.h <<\_ACEOF
  11004. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  11005. _ACEOF
  11006. else
  11007. echo "$as_me: failed program was:" >&5
  11008. sed 's/^/| /' conftest.$ac_ext >&5
  11009. fi
  11010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11011. fi
  11012. fi
  11013. fi
  11014. if test -z "$gl_have_pthread"; then
  11015. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  11016. gl_have_solaristhread=
  11017. gl_save_LIBS="$LIBS"
  11018. LIBS="$LIBS -lthread"
  11019. cat >conftest.$ac_ext <<_ACEOF
  11020. /* confdefs.h. */
  11021. _ACEOF
  11022. cat confdefs.h >>conftest.$ac_ext
  11023. cat >>conftest.$ac_ext <<_ACEOF
  11024. /* end confdefs.h. */
  11025. #include <thread.h>
  11026. #include <synch.h>
  11027. int
  11028. main ()
  11029. {
  11030. thr_self();
  11031. ;
  11032. return 0;
  11033. }
  11034. _ACEOF
  11035. rm -f conftest.$ac_objext conftest$ac_exeext
  11036. if { (ac_try="$ac_link"
  11037. case "(($ac_try" in
  11038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11039. *) ac_try_echo=$ac_try;;
  11040. esac
  11041. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11042. (eval "$ac_link") 2>conftest.er1
  11043. ac_status=$?
  11044. grep -v '^ *+' conftest.er1 >conftest.err
  11045. rm -f conftest.er1
  11046. cat conftest.err >&5
  11047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11048. (exit $ac_status); } && {
  11049. test -z "$ac_cxx_werror_flag" ||
  11050. test ! -s conftest.err
  11051. } && test -s conftest$ac_exeext &&
  11052. $as_test_x conftest$ac_exeext; then
  11053. gl_have_solaristhread=yes
  11054. else
  11055. echo "$as_me: failed program was:" >&5
  11056. sed 's/^/| /' conftest.$ac_ext >&5
  11057. fi
  11058. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11059. conftest$ac_exeext conftest.$ac_ext
  11060. LIBS="$gl_save_LIBS"
  11061. if test -n "$gl_have_solaristhread"; then
  11062. gl_threads_api=solaris
  11063. LIBTHREAD=-lthread
  11064. LTLIBTHREAD=-lthread
  11065. LIBMULTITHREAD="$LIBTHREAD"
  11066. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11067. cat >>confdefs.h <<\_ACEOF
  11068. #define USE_SOLARIS_THREADS 1
  11069. _ACEOF
  11070. if test $gl_have_weak = yes; then
  11071. cat >>confdefs.h <<\_ACEOF
  11072. #define USE_SOLARIS_THREADS_WEAK 1
  11073. _ACEOF
  11074. LIBTHREAD=
  11075. LTLIBTHREAD=
  11076. fi
  11077. fi
  11078. fi
  11079. fi
  11080. if test "$gl_use_threads" = pth; then
  11081. gl_save_CPPFLAGS="$CPPFLAGS"
  11082. { echo "$as_me:$LINENO: checking how to link with libpth" >&5
  11083. echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
  11084. if test "${ac_cv_libpth_libs+set}" = set; then
  11085. echo $ECHO_N "(cached) $ECHO_C" >&6
  11086. else
  11087. use_additional=yes
  11088. acl_save_prefix="$prefix"
  11089. prefix="$acl_final_prefix"
  11090. acl_save_exec_prefix="$exec_prefix"
  11091. exec_prefix="$acl_final_exec_prefix"
  11092. eval additional_includedir=\"$includedir\"
  11093. eval additional_libdir=\"$libdir\"
  11094. exec_prefix="$acl_save_exec_prefix"
  11095. prefix="$acl_save_prefix"
  11096. # Check whether --with-libpth-prefix was given.
  11097. if test "${with_libpth_prefix+set}" = set; then
  11098. withval=$with_libpth_prefix;
  11099. if test "X$withval" = "Xno"; then
  11100. use_additional=no
  11101. else
  11102. if test "X$withval" = "X"; then
  11103. acl_save_prefix="$prefix"
  11104. prefix="$acl_final_prefix"
  11105. acl_save_exec_prefix="$exec_prefix"
  11106. exec_prefix="$acl_final_exec_prefix"
  11107. eval additional_includedir=\"$includedir\"
  11108. eval additional_libdir=\"$libdir\"
  11109. exec_prefix="$acl_save_exec_prefix"
  11110. prefix="$acl_save_prefix"
  11111. else
  11112. additional_includedir="$withval/include"
  11113. additional_libdir="$withval/$acl_libdirstem"
  11114. fi
  11115. fi
  11116. fi
  11117. LIBPTH=
  11118. LTLIBPTH=
  11119. INCPTH=
  11120. LIBPTH_PREFIX=
  11121. rpathdirs=
  11122. ltrpathdirs=
  11123. names_already_handled=
  11124. names_next_round='pth '
  11125. while test -n "$names_next_round"; do
  11126. names_this_round="$names_next_round"
  11127. names_next_round=
  11128. for name in $names_this_round; do
  11129. already_handled=
  11130. for n in $names_already_handled; do
  11131. if test "$n" = "$name"; then
  11132. already_handled=yes
  11133. break
  11134. fi
  11135. done
  11136. if test -z "$already_handled"; then
  11137. names_already_handled="$names_already_handled $name"
  11138. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11139. eval value=\"\$HAVE_LIB$uppername\"
  11140. if test -n "$value"; then
  11141. if test "$value" = yes; then
  11142. eval value=\"\$LIB$uppername\"
  11143. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  11144. eval value=\"\$LTLIB$uppername\"
  11145. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  11146. else
  11147. :
  11148. fi
  11149. else
  11150. found_dir=
  11151. found_la=
  11152. found_so=
  11153. found_a=
  11154. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11155. if test -n "$acl_shlibext"; then
  11156. shrext=".$acl_shlibext" # typically: shrext=.so
  11157. else
  11158. shrext=
  11159. fi
  11160. if test $use_additional = yes; then
  11161. dir="$additional_libdir"
  11162. if test -n "$acl_shlibext"; then
  11163. if test -f "$dir/$libname$shrext"; then
  11164. found_dir="$dir"
  11165. found_so="$dir/$libname$shrext"
  11166. else
  11167. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11168. ver=`(cd "$dir" && \
  11169. for f in "$libname$shrext".*; do echo "$f"; done \
  11170. | sed -e "s,^$libname$shrext\\\\.,," \
  11171. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11172. | sed 1q ) 2>/dev/null`
  11173. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11174. found_dir="$dir"
  11175. found_so="$dir/$libname$shrext.$ver"
  11176. fi
  11177. else
  11178. eval library_names=\"$acl_library_names_spec\"
  11179. for f in $library_names; do
  11180. if test -f "$dir/$f"; then
  11181. found_dir="$dir"
  11182. found_so="$dir/$f"
  11183. break
  11184. fi
  11185. done
  11186. fi
  11187. fi
  11188. fi
  11189. if test "X$found_dir" = "X"; then
  11190. if test -f "$dir/$libname.$acl_libext"; then
  11191. found_dir="$dir"
  11192. found_a="$dir/$libname.$acl_libext"
  11193. fi
  11194. fi
  11195. if test "X$found_dir" != "X"; then
  11196. if test -f "$dir/$libname.la"; then
  11197. found_la="$dir/$libname.la"
  11198. fi
  11199. fi
  11200. fi
  11201. if test "X$found_dir" = "X"; then
  11202. for x in $LDFLAGS $LTLIBPTH; do
  11203. acl_save_prefix="$prefix"
  11204. prefix="$acl_final_prefix"
  11205. acl_save_exec_prefix="$exec_prefix"
  11206. exec_prefix="$acl_final_exec_prefix"
  11207. eval x=\"$x\"
  11208. exec_prefix="$acl_save_exec_prefix"
  11209. prefix="$acl_save_prefix"
  11210. case "$x" in
  11211. -L*)
  11212. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11213. if test -n "$acl_shlibext"; then
  11214. if test -f "$dir/$libname$shrext"; then
  11215. found_dir="$dir"
  11216. found_so="$dir/$libname$shrext"
  11217. else
  11218. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11219. ver=`(cd "$dir" && \
  11220. for f in "$libname$shrext".*; do echo "$f"; done \
  11221. | sed -e "s,^$libname$shrext\\\\.,," \
  11222. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11223. | sed 1q ) 2>/dev/null`
  11224. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11225. found_dir="$dir"
  11226. found_so="$dir/$libname$shrext.$ver"
  11227. fi
  11228. else
  11229. eval library_names=\"$acl_library_names_spec\"
  11230. for f in $library_names; do
  11231. if test -f "$dir/$f"; then
  11232. found_dir="$dir"
  11233. found_so="$dir/$f"
  11234. break
  11235. fi
  11236. done
  11237. fi
  11238. fi
  11239. fi
  11240. if test "X$found_dir" = "X"; then
  11241. if test -f "$dir/$libname.$acl_libext"; then
  11242. found_dir="$dir"
  11243. found_a="$dir/$libname.$acl_libext"
  11244. fi
  11245. fi
  11246. if test "X$found_dir" != "X"; then
  11247. if test -f "$dir/$libname.la"; then
  11248. found_la="$dir/$libname.la"
  11249. fi
  11250. fi
  11251. ;;
  11252. esac
  11253. if test "X$found_dir" != "X"; then
  11254. break
  11255. fi
  11256. done
  11257. fi
  11258. if test "X$found_dir" != "X"; then
  11259. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  11260. if test "X$found_so" != "X"; then
  11261. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11262. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11263. else
  11264. haveit=
  11265. for x in $ltrpathdirs; do
  11266. if test "X$x" = "X$found_dir"; then
  11267. haveit=yes
  11268. break
  11269. fi
  11270. done
  11271. if test -z "$haveit"; then
  11272. ltrpathdirs="$ltrpathdirs $found_dir"
  11273. fi
  11274. if test "$acl_hardcode_direct" = yes; then
  11275. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11276. else
  11277. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11278. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11279. haveit=
  11280. for x in $rpathdirs; do
  11281. if test "X$x" = "X$found_dir"; then
  11282. haveit=yes
  11283. break
  11284. fi
  11285. done
  11286. if test -z "$haveit"; then
  11287. rpathdirs="$rpathdirs $found_dir"
  11288. fi
  11289. else
  11290. haveit=
  11291. for x in $LDFLAGS $LIBPTH; do
  11292. acl_save_prefix="$prefix"
  11293. prefix="$acl_final_prefix"
  11294. acl_save_exec_prefix="$exec_prefix"
  11295. exec_prefix="$acl_final_exec_prefix"
  11296. eval x=\"$x\"
  11297. exec_prefix="$acl_save_exec_prefix"
  11298. prefix="$acl_save_prefix"
  11299. if test "X$x" = "X-L$found_dir"; then
  11300. haveit=yes
  11301. break
  11302. fi
  11303. done
  11304. if test -z "$haveit"; then
  11305. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  11306. fi
  11307. if test "$acl_hardcode_minus_L" != no; then
  11308. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11309. else
  11310. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11311. fi
  11312. fi
  11313. fi
  11314. fi
  11315. else
  11316. if test "X$found_a" != "X"; then
  11317. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  11318. else
  11319. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  11320. fi
  11321. fi
  11322. additional_includedir=
  11323. case "$found_dir" in
  11324. */$acl_libdirstem | */$acl_libdirstem/)
  11325. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11326. LIBPTH_PREFIX="$basedir"
  11327. additional_includedir="$basedir/include"
  11328. ;;
  11329. esac
  11330. if test "X$additional_includedir" != "X"; then
  11331. if test "X$additional_includedir" != "X/usr/include"; then
  11332. haveit=
  11333. if test "X$additional_includedir" = "X/usr/local/include"; then
  11334. if test -n "$GCC"; then
  11335. case $host_os in
  11336. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11337. esac
  11338. fi
  11339. fi
  11340. if test -z "$haveit"; then
  11341. for x in $CPPFLAGS $INCPTH; do
  11342. acl_save_prefix="$prefix"
  11343. prefix="$acl_final_prefix"
  11344. acl_save_exec_prefix="$exec_prefix"
  11345. exec_prefix="$acl_final_exec_prefix"
  11346. eval x=\"$x\"
  11347. exec_prefix="$acl_save_exec_prefix"
  11348. prefix="$acl_save_prefix"
  11349. if test "X$x" = "X-I$additional_includedir"; then
  11350. haveit=yes
  11351. break
  11352. fi
  11353. done
  11354. if test -z "$haveit"; then
  11355. if test -d "$additional_includedir"; then
  11356. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  11357. fi
  11358. fi
  11359. fi
  11360. fi
  11361. fi
  11362. if test -n "$found_la"; then
  11363. save_libdir="$libdir"
  11364. case "$found_la" in
  11365. */* | *\\*) . "$found_la" ;;
  11366. *) . "./$found_la" ;;
  11367. esac
  11368. libdir="$save_libdir"
  11369. for dep in $dependency_libs; do
  11370. case "$dep" in
  11371. -L*)
  11372. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11373. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11374. haveit=
  11375. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11376. if test -n "$GCC"; then
  11377. case $host_os in
  11378. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11379. esac
  11380. fi
  11381. fi
  11382. if test -z "$haveit"; then
  11383. haveit=
  11384. for x in $LDFLAGS $LIBPTH; do
  11385. acl_save_prefix="$prefix"
  11386. prefix="$acl_final_prefix"
  11387. acl_save_exec_prefix="$exec_prefix"
  11388. exec_prefix="$acl_final_exec_prefix"
  11389. eval x=\"$x\"
  11390. exec_prefix="$acl_save_exec_prefix"
  11391. prefix="$acl_save_prefix"
  11392. if test "X$x" = "X-L$additional_libdir"; then
  11393. haveit=yes
  11394. break
  11395. fi
  11396. done
  11397. if test -z "$haveit"; then
  11398. if test -d "$additional_libdir"; then
  11399. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  11400. fi
  11401. fi
  11402. haveit=
  11403. for x in $LDFLAGS $LTLIBPTH; do
  11404. acl_save_prefix="$prefix"
  11405. prefix="$acl_final_prefix"
  11406. acl_save_exec_prefix="$exec_prefix"
  11407. exec_prefix="$acl_final_exec_prefix"
  11408. eval x=\"$x\"
  11409. exec_prefix="$acl_save_exec_prefix"
  11410. prefix="$acl_save_prefix"
  11411. if test "X$x" = "X-L$additional_libdir"; then
  11412. haveit=yes
  11413. break
  11414. fi
  11415. done
  11416. if test -z "$haveit"; then
  11417. if test -d "$additional_libdir"; then
  11418. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  11419. fi
  11420. fi
  11421. fi
  11422. fi
  11423. ;;
  11424. -R*)
  11425. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11426. if test "$enable_rpath" != no; then
  11427. haveit=
  11428. for x in $rpathdirs; do
  11429. if test "X$x" = "X$dir"; then
  11430. haveit=yes
  11431. break
  11432. fi
  11433. done
  11434. if test -z "$haveit"; then
  11435. rpathdirs="$rpathdirs $dir"
  11436. fi
  11437. haveit=
  11438. for x in $ltrpathdirs; do
  11439. if test "X$x" = "X$dir"; then
  11440. haveit=yes
  11441. break
  11442. fi
  11443. done
  11444. if test -z "$haveit"; then
  11445. ltrpathdirs="$ltrpathdirs $dir"
  11446. fi
  11447. fi
  11448. ;;
  11449. -l*)
  11450. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11451. ;;
  11452. *.la)
  11453. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11454. ;;
  11455. *)
  11456. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  11457. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  11458. ;;
  11459. esac
  11460. done
  11461. fi
  11462. else
  11463. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11464. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  11465. fi
  11466. fi
  11467. fi
  11468. done
  11469. done
  11470. if test "X$rpathdirs" != "X"; then
  11471. if test -n "$acl_hardcode_libdir_separator"; then
  11472. alldirs=
  11473. for found_dir in $rpathdirs; do
  11474. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11475. done
  11476. acl_save_libdir="$libdir"
  11477. libdir="$alldirs"
  11478. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11479. libdir="$acl_save_libdir"
  11480. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11481. else
  11482. for found_dir in $rpathdirs; do
  11483. acl_save_libdir="$libdir"
  11484. libdir="$found_dir"
  11485. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11486. libdir="$acl_save_libdir"
  11487. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11488. done
  11489. fi
  11490. fi
  11491. if test "X$ltrpathdirs" != "X"; then
  11492. for found_dir in $ltrpathdirs; do
  11493. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  11494. done
  11495. fi
  11496. ac_cv_libpth_libs="$LIBPTH"
  11497. ac_cv_libpth_ltlibs="$LTLIBPTH"
  11498. ac_cv_libpth_cppflags="$INCPTH"
  11499. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  11500. fi
  11501. { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  11502. echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
  11503. LIBPTH="$ac_cv_libpth_libs"
  11504. LTLIBPTH="$ac_cv_libpth_ltlibs"
  11505. INCPTH="$ac_cv_libpth_cppflags"
  11506. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  11507. for element in $INCPTH; do
  11508. haveit=
  11509. for x in $CPPFLAGS; do
  11510. acl_save_prefix="$prefix"
  11511. prefix="$acl_final_prefix"
  11512. acl_save_exec_prefix="$exec_prefix"
  11513. exec_prefix="$acl_final_exec_prefix"
  11514. eval x=\"$x\"
  11515. exec_prefix="$acl_save_exec_prefix"
  11516. prefix="$acl_save_prefix"
  11517. if test "X$x" = "X$element"; then
  11518. haveit=yes
  11519. break
  11520. fi
  11521. done
  11522. if test -z "$haveit"; then
  11523. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11524. fi
  11525. done
  11526. HAVE_LIBPTH=yes
  11527. gl_have_pth=
  11528. gl_save_LIBS="$LIBS"
  11529. LIBS="$LIBS -lpth"
  11530. cat >conftest.$ac_ext <<_ACEOF
  11531. /* confdefs.h. */
  11532. _ACEOF
  11533. cat confdefs.h >>conftest.$ac_ext
  11534. cat >>conftest.$ac_ext <<_ACEOF
  11535. /* end confdefs.h. */
  11536. #include <pth.h>
  11537. int
  11538. main ()
  11539. {
  11540. pth_self();
  11541. ;
  11542. return 0;
  11543. }
  11544. _ACEOF
  11545. rm -f conftest.$ac_objext conftest$ac_exeext
  11546. if { (ac_try="$ac_link"
  11547. case "(($ac_try" in
  11548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11549. *) ac_try_echo=$ac_try;;
  11550. esac
  11551. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11552. (eval "$ac_link") 2>conftest.er1
  11553. ac_status=$?
  11554. grep -v '^ *+' conftest.er1 >conftest.err
  11555. rm -f conftest.er1
  11556. cat conftest.err >&5
  11557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11558. (exit $ac_status); } && {
  11559. test -z "$ac_cxx_werror_flag" ||
  11560. test ! -s conftest.err
  11561. } && test -s conftest$ac_exeext &&
  11562. $as_test_x conftest$ac_exeext; then
  11563. gl_have_pth=yes
  11564. else
  11565. echo "$as_me: failed program was:" >&5
  11566. sed 's/^/| /' conftest.$ac_ext >&5
  11567. fi
  11568. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11569. conftest$ac_exeext conftest.$ac_ext
  11570. LIBS="$gl_save_LIBS"
  11571. if test -n "$gl_have_pth"; then
  11572. gl_threads_api=pth
  11573. LIBTHREAD="$LIBPTH"
  11574. LTLIBTHREAD="$LTLIBPTH"
  11575. LIBMULTITHREAD="$LIBTHREAD"
  11576. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11577. cat >>confdefs.h <<\_ACEOF
  11578. #define USE_PTH_THREADS 1
  11579. _ACEOF
  11580. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11581. if test $gl_have_weak = yes; then
  11582. cat >>confdefs.h <<\_ACEOF
  11583. #define USE_PTH_THREADS_WEAK 1
  11584. _ACEOF
  11585. LIBTHREAD=
  11586. LTLIBTHREAD=
  11587. fi
  11588. fi
  11589. else
  11590. CPPFLAGS="$gl_save_CPPFLAGS"
  11591. fi
  11592. fi
  11593. if test -z "$gl_have_pthread"; then
  11594. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  11595. if { case "$host_os" in
  11596. mingw*) true;;
  11597. *) false;;
  11598. esac
  11599. }; then
  11600. gl_threads_api=win32
  11601. cat >>confdefs.h <<\_ACEOF
  11602. #define USE_WIN32_THREADS 1
  11603. _ACEOF
  11604. fi
  11605. fi
  11606. fi
  11607. fi
  11608. { echo "$as_me:$LINENO: checking for multithread API to use" >&5
  11609. echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
  11610. { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  11611. echo "${ECHO_T}$gl_threads_api" >&6; }
  11612. use_additional=yes
  11613. acl_save_prefix="$prefix"
  11614. prefix="$acl_final_prefix"
  11615. acl_save_exec_prefix="$exec_prefix"
  11616. exec_prefix="$acl_final_exec_prefix"
  11617. eval additional_includedir=\"$includedir\"
  11618. eval additional_libdir=\"$libdir\"
  11619. exec_prefix="$acl_save_exec_prefix"
  11620. prefix="$acl_save_prefix"
  11621. # Check whether --with-libiconv-prefix was given.
  11622. if test "${with_libiconv_prefix+set}" = set; then
  11623. withval=$with_libiconv_prefix;
  11624. if test "X$withval" = "Xno"; then
  11625. use_additional=no
  11626. else
  11627. if test "X$withval" = "X"; then
  11628. acl_save_prefix="$prefix"
  11629. prefix="$acl_final_prefix"
  11630. acl_save_exec_prefix="$exec_prefix"
  11631. exec_prefix="$acl_final_exec_prefix"
  11632. eval additional_includedir=\"$includedir\"
  11633. eval additional_libdir=\"$libdir\"
  11634. exec_prefix="$acl_save_exec_prefix"
  11635. prefix="$acl_save_prefix"
  11636. else
  11637. additional_includedir="$withval/include"
  11638. additional_libdir="$withval/$acl_libdirstem"
  11639. fi
  11640. fi
  11641. fi
  11642. LIBICONV=
  11643. LTLIBICONV=
  11644. INCICONV=
  11645. LIBICONV_PREFIX=
  11646. rpathdirs=
  11647. ltrpathdirs=
  11648. names_already_handled=
  11649. names_next_round='iconv '
  11650. while test -n "$names_next_round"; do
  11651. names_this_round="$names_next_round"
  11652. names_next_round=
  11653. for name in $names_this_round; do
  11654. already_handled=
  11655. for n in $names_already_handled; do
  11656. if test "$n" = "$name"; then
  11657. already_handled=yes
  11658. break
  11659. fi
  11660. done
  11661. if test -z "$already_handled"; then
  11662. names_already_handled="$names_already_handled $name"
  11663. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11664. eval value=\"\$HAVE_LIB$uppername\"
  11665. if test -n "$value"; then
  11666. if test "$value" = yes; then
  11667. eval value=\"\$LIB$uppername\"
  11668. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  11669. eval value=\"\$LTLIB$uppername\"
  11670. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  11671. else
  11672. :
  11673. fi
  11674. else
  11675. found_dir=
  11676. found_la=
  11677. found_so=
  11678. found_a=
  11679. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11680. if test -n "$acl_shlibext"; then
  11681. shrext=".$acl_shlibext" # typically: shrext=.so
  11682. else
  11683. shrext=
  11684. fi
  11685. if test $use_additional = yes; then
  11686. dir="$additional_libdir"
  11687. if test -n "$acl_shlibext"; then
  11688. if test -f "$dir/$libname$shrext"; then
  11689. found_dir="$dir"
  11690. found_so="$dir/$libname$shrext"
  11691. else
  11692. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11693. ver=`(cd "$dir" && \
  11694. for f in "$libname$shrext".*; do echo "$f"; done \
  11695. | sed -e "s,^$libname$shrext\\\\.,," \
  11696. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11697. | sed 1q ) 2>/dev/null`
  11698. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11699. found_dir="$dir"
  11700. found_so="$dir/$libname$shrext.$ver"
  11701. fi
  11702. else
  11703. eval library_names=\"$acl_library_names_spec\"
  11704. for f in $library_names; do
  11705. if test -f "$dir/$f"; then
  11706. found_dir="$dir"
  11707. found_so="$dir/$f"
  11708. break
  11709. fi
  11710. done
  11711. fi
  11712. fi
  11713. fi
  11714. if test "X$found_dir" = "X"; then
  11715. if test -f "$dir/$libname.$acl_libext"; then
  11716. found_dir="$dir"
  11717. found_a="$dir/$libname.$acl_libext"
  11718. fi
  11719. fi
  11720. if test "X$found_dir" != "X"; then
  11721. if test -f "$dir/$libname.la"; then
  11722. found_la="$dir/$libname.la"
  11723. fi
  11724. fi
  11725. fi
  11726. if test "X$found_dir" = "X"; then
  11727. for x in $LDFLAGS $LTLIBICONV; do
  11728. acl_save_prefix="$prefix"
  11729. prefix="$acl_final_prefix"
  11730. acl_save_exec_prefix="$exec_prefix"
  11731. exec_prefix="$acl_final_exec_prefix"
  11732. eval x=\"$x\"
  11733. exec_prefix="$acl_save_exec_prefix"
  11734. prefix="$acl_save_prefix"
  11735. case "$x" in
  11736. -L*)
  11737. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11738. if test -n "$acl_shlibext"; then
  11739. if test -f "$dir/$libname$shrext"; then
  11740. found_dir="$dir"
  11741. found_so="$dir/$libname$shrext"
  11742. else
  11743. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11744. ver=`(cd "$dir" && \
  11745. for f in "$libname$shrext".*; do echo "$f"; done \
  11746. | sed -e "s,^$libname$shrext\\\\.,," \
  11747. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11748. | sed 1q ) 2>/dev/null`
  11749. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11750. found_dir="$dir"
  11751. found_so="$dir/$libname$shrext.$ver"
  11752. fi
  11753. else
  11754. eval library_names=\"$acl_library_names_spec\"
  11755. for f in $library_names; do
  11756. if test -f "$dir/$f"; then
  11757. found_dir="$dir"
  11758. found_so="$dir/$f"
  11759. break
  11760. fi
  11761. done
  11762. fi
  11763. fi
  11764. fi
  11765. if test "X$found_dir" = "X"; then
  11766. if test -f "$dir/$libname.$acl_libext"; then
  11767. found_dir="$dir"
  11768. found_a="$dir/$libname.$acl_libext"
  11769. fi
  11770. fi
  11771. if test "X$found_dir" != "X"; then
  11772. if test -f "$dir/$libname.la"; then
  11773. found_la="$dir/$libname.la"
  11774. fi
  11775. fi
  11776. ;;
  11777. esac
  11778. if test "X$found_dir" != "X"; then
  11779. break
  11780. fi
  11781. done
  11782. fi
  11783. if test "X$found_dir" != "X"; then
  11784. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  11785. if test "X$found_so" != "X"; then
  11786. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11787. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11788. else
  11789. haveit=
  11790. for x in $ltrpathdirs; do
  11791. if test "X$x" = "X$found_dir"; then
  11792. haveit=yes
  11793. break
  11794. fi
  11795. done
  11796. if test -z "$haveit"; then
  11797. ltrpathdirs="$ltrpathdirs $found_dir"
  11798. fi
  11799. if test "$acl_hardcode_direct" = yes; then
  11800. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11801. else
  11802. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11803. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11804. haveit=
  11805. for x in $rpathdirs; do
  11806. if test "X$x" = "X$found_dir"; then
  11807. haveit=yes
  11808. break
  11809. fi
  11810. done
  11811. if test -z "$haveit"; then
  11812. rpathdirs="$rpathdirs $found_dir"
  11813. fi
  11814. else
  11815. haveit=
  11816. for x in $LDFLAGS $LIBICONV; do
  11817. acl_save_prefix="$prefix"
  11818. prefix="$acl_final_prefix"
  11819. acl_save_exec_prefix="$exec_prefix"
  11820. exec_prefix="$acl_final_exec_prefix"
  11821. eval x=\"$x\"
  11822. exec_prefix="$acl_save_exec_prefix"
  11823. prefix="$acl_save_prefix"
  11824. if test "X$x" = "X-L$found_dir"; then
  11825. haveit=yes
  11826. break
  11827. fi
  11828. done
  11829. if test -z "$haveit"; then
  11830. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  11831. fi
  11832. if test "$acl_hardcode_minus_L" != no; then
  11833. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11834. else
  11835. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  11836. fi
  11837. fi
  11838. fi
  11839. fi
  11840. else
  11841. if test "X$found_a" != "X"; then
  11842. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  11843. else
  11844. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  11845. fi
  11846. fi
  11847. additional_includedir=
  11848. case "$found_dir" in
  11849. */$acl_libdirstem | */$acl_libdirstem/)
  11850. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11851. LIBICONV_PREFIX="$basedir"
  11852. additional_includedir="$basedir/include"
  11853. ;;
  11854. esac
  11855. if test "X$additional_includedir" != "X"; then
  11856. if test "X$additional_includedir" != "X/usr/include"; then
  11857. haveit=
  11858. if test "X$additional_includedir" = "X/usr/local/include"; then
  11859. if test -n "$GCC"; then
  11860. case $host_os in
  11861. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11862. esac
  11863. fi
  11864. fi
  11865. if test -z "$haveit"; then
  11866. for x in $CPPFLAGS $INCICONV; do
  11867. acl_save_prefix="$prefix"
  11868. prefix="$acl_final_prefix"
  11869. acl_save_exec_prefix="$exec_prefix"
  11870. exec_prefix="$acl_final_exec_prefix"
  11871. eval x=\"$x\"
  11872. exec_prefix="$acl_save_exec_prefix"
  11873. prefix="$acl_save_prefix"
  11874. if test "X$x" = "X-I$additional_includedir"; then
  11875. haveit=yes
  11876. break
  11877. fi
  11878. done
  11879. if test -z "$haveit"; then
  11880. if test -d "$additional_includedir"; then
  11881. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  11882. fi
  11883. fi
  11884. fi
  11885. fi
  11886. fi
  11887. if test -n "$found_la"; then
  11888. save_libdir="$libdir"
  11889. case "$found_la" in
  11890. */* | *\\*) . "$found_la" ;;
  11891. *) . "./$found_la" ;;
  11892. esac
  11893. libdir="$save_libdir"
  11894. for dep in $dependency_libs; do
  11895. case "$dep" in
  11896. -L*)
  11897. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11898. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11899. haveit=
  11900. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11901. if test -n "$GCC"; then
  11902. case $host_os in
  11903. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11904. esac
  11905. fi
  11906. fi
  11907. if test -z "$haveit"; then
  11908. haveit=
  11909. for x in $LDFLAGS $LIBICONV; do
  11910. acl_save_prefix="$prefix"
  11911. prefix="$acl_final_prefix"
  11912. acl_save_exec_prefix="$exec_prefix"
  11913. exec_prefix="$acl_final_exec_prefix"
  11914. eval x=\"$x\"
  11915. exec_prefix="$acl_save_exec_prefix"
  11916. prefix="$acl_save_prefix"
  11917. if test "X$x" = "X-L$additional_libdir"; then
  11918. haveit=yes
  11919. break
  11920. fi
  11921. done
  11922. if test -z "$haveit"; then
  11923. if test -d "$additional_libdir"; then
  11924. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  11925. fi
  11926. fi
  11927. haveit=
  11928. for x in $LDFLAGS $LTLIBICONV; do
  11929. acl_save_prefix="$prefix"
  11930. prefix="$acl_final_prefix"
  11931. acl_save_exec_prefix="$exec_prefix"
  11932. exec_prefix="$acl_final_exec_prefix"
  11933. eval x=\"$x\"
  11934. exec_prefix="$acl_save_exec_prefix"
  11935. prefix="$acl_save_prefix"
  11936. if test "X$x" = "X-L$additional_libdir"; then
  11937. haveit=yes
  11938. break
  11939. fi
  11940. done
  11941. if test -z "$haveit"; then
  11942. if test -d "$additional_libdir"; then
  11943. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  11944. fi
  11945. fi
  11946. fi
  11947. fi
  11948. ;;
  11949. -R*)
  11950. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11951. if test "$enable_rpath" != no; then
  11952. haveit=
  11953. for x in $rpathdirs; do
  11954. if test "X$x" = "X$dir"; then
  11955. haveit=yes
  11956. break
  11957. fi
  11958. done
  11959. if test -z "$haveit"; then
  11960. rpathdirs="$rpathdirs $dir"
  11961. fi
  11962. haveit=
  11963. for x in $ltrpathdirs; do
  11964. if test "X$x" = "X$dir"; then
  11965. haveit=yes
  11966. break
  11967. fi
  11968. done
  11969. if test -z "$haveit"; then
  11970. ltrpathdirs="$ltrpathdirs $dir"
  11971. fi
  11972. fi
  11973. ;;
  11974. -l*)
  11975. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11976. ;;
  11977. *.la)
  11978. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11979. ;;
  11980. *)
  11981. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  11982. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  11983. ;;
  11984. esac
  11985. done
  11986. fi
  11987. else
  11988. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  11989. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  11990. fi
  11991. fi
  11992. fi
  11993. done
  11994. done
  11995. if test "X$rpathdirs" != "X"; then
  11996. if test -n "$acl_hardcode_libdir_separator"; then
  11997. alldirs=
  11998. for found_dir in $rpathdirs; do
  11999. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  12000. done
  12001. acl_save_libdir="$libdir"
  12002. libdir="$alldirs"
  12003. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12004. libdir="$acl_save_libdir"
  12005. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12006. else
  12007. for found_dir in $rpathdirs; do
  12008. acl_save_libdir="$libdir"
  12009. libdir="$found_dir"
  12010. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12011. libdir="$acl_save_libdir"
  12012. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12013. done
  12014. fi
  12015. fi
  12016. if test "X$ltrpathdirs" != "X"; then
  12017. for found_dir in $ltrpathdirs; do
  12018. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  12019. done
  12020. fi
  12021. cat >conftest.$ac_ext <<_ACEOF
  12022. /* confdefs.h. */
  12023. _ACEOF
  12024. cat confdefs.h >>conftest.$ac_ext
  12025. cat >>conftest.$ac_ext <<_ACEOF
  12026. /* end confdefs.h. */
  12027. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  12028. int
  12029. main ()
  12030. {
  12031. ;
  12032. return 0;
  12033. }
  12034. _ACEOF
  12035. rm -f conftest.$ac_objext conftest$ac_exeext
  12036. if { (ac_try="$ac_link"
  12037. case "(($ac_try" in
  12038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12039. *) ac_try_echo=$ac_try;;
  12040. esac
  12041. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12042. (eval "$ac_link") 2>conftest.er1
  12043. ac_status=$?
  12044. grep -v '^ *+' conftest.er1 >conftest.err
  12045. rm -f conftest.er1
  12046. cat conftest.err >&5
  12047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12048. (exit $ac_status); } && {
  12049. test -z "$ac_cxx_werror_flag" ||
  12050. test ! -s conftest.err
  12051. } && test -s conftest$ac_exeext &&
  12052. $as_test_x conftest$ac_exeext; then
  12053. cat >>confdefs.h <<\_ACEOF
  12054. #define HAVE_BUILTIN_EXPECT 1
  12055. _ACEOF
  12056. else
  12057. echo "$as_me: failed program was:" >&5
  12058. sed 's/^/| /' conftest.$ac_ext >&5
  12059. fi
  12060. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12061. conftest$ac_exeext conftest.$ac_ext
  12062. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  12063. do
  12064. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12065. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12066. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12067. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12068. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12069. echo $ECHO_N "(cached) $ECHO_C" >&6
  12070. fi
  12071. ac_res=`eval echo '${'$as_ac_Header'}'`
  12072. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12073. echo "${ECHO_T}$ac_res" >&6; }
  12074. else
  12075. # Is the header compilable?
  12076. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12077. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  12078. cat >conftest.$ac_ext <<_ACEOF
  12079. /* confdefs.h. */
  12080. _ACEOF
  12081. cat confdefs.h >>conftest.$ac_ext
  12082. cat >>conftest.$ac_ext <<_ACEOF
  12083. /* end confdefs.h. */
  12084. $ac_includes_default
  12085. #include <$ac_header>
  12086. _ACEOF
  12087. rm -f conftest.$ac_objext
  12088. if { (ac_try="$ac_compile"
  12089. case "(($ac_try" in
  12090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12091. *) ac_try_echo=$ac_try;;
  12092. esac
  12093. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12094. (eval "$ac_compile") 2>conftest.er1
  12095. ac_status=$?
  12096. grep -v '^ *+' conftest.er1 >conftest.err
  12097. rm -f conftest.er1
  12098. cat conftest.err >&5
  12099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12100. (exit $ac_status); } && {
  12101. test -z "$ac_cxx_werror_flag" ||
  12102. test ! -s conftest.err
  12103. } && test -s conftest.$ac_objext; then
  12104. ac_header_compiler=yes
  12105. else
  12106. echo "$as_me: failed program was:" >&5
  12107. sed 's/^/| /' conftest.$ac_ext >&5
  12108. ac_header_compiler=no
  12109. fi
  12110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12111. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12112. echo "${ECHO_T}$ac_header_compiler" >&6; }
  12113. # Is the header present?
  12114. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12115. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  12116. cat >conftest.$ac_ext <<_ACEOF
  12117. /* confdefs.h. */
  12118. _ACEOF
  12119. cat confdefs.h >>conftest.$ac_ext
  12120. cat >>conftest.$ac_ext <<_ACEOF
  12121. /* end confdefs.h. */
  12122. #include <$ac_header>
  12123. _ACEOF
  12124. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12125. case "(($ac_try" in
  12126. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12127. *) ac_try_echo=$ac_try;;
  12128. esac
  12129. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12130. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12131. ac_status=$?
  12132. grep -v '^ *+' conftest.er1 >conftest.err
  12133. rm -f conftest.er1
  12134. cat conftest.err >&5
  12135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12136. (exit $ac_status); } >/dev/null && {
  12137. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12138. test ! -s conftest.err
  12139. }; then
  12140. ac_header_preproc=yes
  12141. else
  12142. echo "$as_me: failed program was:" >&5
  12143. sed 's/^/| /' conftest.$ac_ext >&5
  12144. ac_header_preproc=no
  12145. fi
  12146. rm -f conftest.err conftest.$ac_ext
  12147. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12148. echo "${ECHO_T}$ac_header_preproc" >&6; }
  12149. # So? What about this header?
  12150. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  12151. yes:no: )
  12152. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12153. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12154. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12155. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12156. ac_header_preproc=yes
  12157. ;;
  12158. no:yes:* )
  12159. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12160. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12161. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12162. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12163. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12164. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12165. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12166. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12167. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12168. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12169. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12170. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12171. ( cat <<\_ASBOX
  12172. ## ----------------------------------------------- ##
  12173. ## Report this to t-tujikawa@users.sourceforge.net ##
  12174. ## ----------------------------------------------- ##
  12175. _ASBOX
  12176. ) | sed "s/^/$as_me: WARNING: /" >&2
  12177. ;;
  12178. esac
  12179. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12180. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12181. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12182. echo $ECHO_N "(cached) $ECHO_C" >&6
  12183. else
  12184. eval "$as_ac_Header=\$ac_header_preproc"
  12185. fi
  12186. ac_res=`eval echo '${'$as_ac_Header'}'`
  12187. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12188. echo "${ECHO_T}$ac_res" >&6; }
  12189. fi
  12190. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  12191. cat >>confdefs.h <<_ACEOF
  12192. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12193. _ACEOF
  12194. fi
  12195. done
  12196. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  12197. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  12198. argz_next __fsetlocking
  12199. do
  12200. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12201. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  12202. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  12203. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12204. echo $ECHO_N "(cached) $ECHO_C" >&6
  12205. else
  12206. cat >conftest.$ac_ext <<_ACEOF
  12207. /* confdefs.h. */
  12208. _ACEOF
  12209. cat confdefs.h >>conftest.$ac_ext
  12210. cat >>conftest.$ac_ext <<_ACEOF
  12211. /* end confdefs.h. */
  12212. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12213. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12214. #define $ac_func innocuous_$ac_func
  12215. /* System header to define __stub macros and hopefully few prototypes,
  12216. which can conflict with char $ac_func (); below.
  12217. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12218. <limits.h> exists even on freestanding compilers. */
  12219. #ifdef __STDC__
  12220. # include <limits.h>
  12221. #else
  12222. # include <assert.h>
  12223. #endif
  12224. #undef $ac_func
  12225. /* Override any GCC internal prototype to avoid an error.
  12226. Use char because int might match the return type of a GCC
  12227. builtin and then its argument prototype would still apply. */
  12228. #ifdef __cplusplus
  12229. extern "C"
  12230. #endif
  12231. char $ac_func ();
  12232. /* The GNU C library defines this for functions which it implements
  12233. to always fail with ENOSYS. Some functions are actually named
  12234. something starting with __ and the normal name is an alias. */
  12235. #if defined __stub_$ac_func || defined __stub___$ac_func
  12236. choke me
  12237. #endif
  12238. int
  12239. main ()
  12240. {
  12241. return $ac_func ();
  12242. ;
  12243. return 0;
  12244. }
  12245. _ACEOF
  12246. rm -f conftest.$ac_objext conftest$ac_exeext
  12247. if { (ac_try="$ac_link"
  12248. case "(($ac_try" in
  12249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12250. *) ac_try_echo=$ac_try;;
  12251. esac
  12252. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12253. (eval "$ac_link") 2>conftest.er1
  12254. ac_status=$?
  12255. grep -v '^ *+' conftest.er1 >conftest.err
  12256. rm -f conftest.er1
  12257. cat conftest.err >&5
  12258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12259. (exit $ac_status); } && {
  12260. test -z "$ac_cxx_werror_flag" ||
  12261. test ! -s conftest.err
  12262. } && test -s conftest$ac_exeext &&
  12263. $as_test_x conftest$ac_exeext; then
  12264. eval "$as_ac_var=yes"
  12265. else
  12266. echo "$as_me: failed program was:" >&5
  12267. sed 's/^/| /' conftest.$ac_ext >&5
  12268. eval "$as_ac_var=no"
  12269. fi
  12270. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12271. conftest$ac_exeext conftest.$ac_ext
  12272. fi
  12273. ac_res=`eval echo '${'$as_ac_var'}'`
  12274. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12275. echo "${ECHO_T}$ac_res" >&6; }
  12276. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12277. cat >>confdefs.h <<_ACEOF
  12278. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12279. _ACEOF
  12280. fi
  12281. done
  12282. { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  12283. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
  12284. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  12285. echo $ECHO_N "(cached) $ECHO_C" >&6
  12286. else
  12287. cat >conftest.$ac_ext <<_ACEOF
  12288. /* confdefs.h. */
  12289. _ACEOF
  12290. cat confdefs.h >>conftest.$ac_ext
  12291. cat >>conftest.$ac_ext <<_ACEOF
  12292. /* end confdefs.h. */
  12293. #include <stdio.h>
  12294. int
  12295. main ()
  12296. {
  12297. #ifndef feof_unlocked
  12298. char *p = (char *) feof_unlocked;
  12299. #endif
  12300. ;
  12301. return 0;
  12302. }
  12303. _ACEOF
  12304. rm -f conftest.$ac_objext
  12305. if { (ac_try="$ac_compile"
  12306. case "(($ac_try" in
  12307. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12308. *) ac_try_echo=$ac_try;;
  12309. esac
  12310. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12311. (eval "$ac_compile") 2>conftest.er1
  12312. ac_status=$?
  12313. grep -v '^ *+' conftest.er1 >conftest.err
  12314. rm -f conftest.er1
  12315. cat conftest.err >&5
  12316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12317. (exit $ac_status); } && {
  12318. test -z "$ac_cxx_werror_flag" ||
  12319. test ! -s conftest.err
  12320. } && test -s conftest.$ac_objext; then
  12321. ac_cv_have_decl_feof_unlocked=yes
  12322. else
  12323. echo "$as_me: failed program was:" >&5
  12324. sed 's/^/| /' conftest.$ac_ext >&5
  12325. ac_cv_have_decl_feof_unlocked=no
  12326. fi
  12327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12328. fi
  12329. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  12330. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
  12331. if test $ac_cv_have_decl_feof_unlocked = yes; then
  12332. gt_value=1
  12333. else
  12334. gt_value=0
  12335. fi
  12336. cat >>confdefs.h <<_ACEOF
  12337. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  12338. _ACEOF
  12339. { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  12340. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
  12341. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  12342. echo $ECHO_N "(cached) $ECHO_C" >&6
  12343. else
  12344. cat >conftest.$ac_ext <<_ACEOF
  12345. /* confdefs.h. */
  12346. _ACEOF
  12347. cat confdefs.h >>conftest.$ac_ext
  12348. cat >>conftest.$ac_ext <<_ACEOF
  12349. /* end confdefs.h. */
  12350. #include <stdio.h>
  12351. int
  12352. main ()
  12353. {
  12354. #ifndef fgets_unlocked
  12355. char *p = (char *) fgets_unlocked;
  12356. #endif
  12357. ;
  12358. return 0;
  12359. }
  12360. _ACEOF
  12361. rm -f conftest.$ac_objext
  12362. if { (ac_try="$ac_compile"
  12363. case "(($ac_try" in
  12364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12365. *) ac_try_echo=$ac_try;;
  12366. esac
  12367. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12368. (eval "$ac_compile") 2>conftest.er1
  12369. ac_status=$?
  12370. grep -v '^ *+' conftest.er1 >conftest.err
  12371. rm -f conftest.er1
  12372. cat conftest.err >&5
  12373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12374. (exit $ac_status); } && {
  12375. test -z "$ac_cxx_werror_flag" ||
  12376. test ! -s conftest.err
  12377. } && test -s conftest.$ac_objext; then
  12378. ac_cv_have_decl_fgets_unlocked=yes
  12379. else
  12380. echo "$as_me: failed program was:" >&5
  12381. sed 's/^/| /' conftest.$ac_ext >&5
  12382. ac_cv_have_decl_fgets_unlocked=no
  12383. fi
  12384. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12385. fi
  12386. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  12387. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
  12388. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  12389. gt_value=1
  12390. else
  12391. gt_value=0
  12392. fi
  12393. cat >>confdefs.h <<_ACEOF
  12394. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  12395. _ACEOF
  12396. am_save_CPPFLAGS="$CPPFLAGS"
  12397. for element in $INCICONV; do
  12398. haveit=
  12399. for x in $CPPFLAGS; do
  12400. acl_save_prefix="$prefix"
  12401. prefix="$acl_final_prefix"
  12402. acl_save_exec_prefix="$exec_prefix"
  12403. exec_prefix="$acl_final_exec_prefix"
  12404. eval x=\"$x\"
  12405. exec_prefix="$acl_save_exec_prefix"
  12406. prefix="$acl_save_prefix"
  12407. if test "X$x" = "X$element"; then
  12408. haveit=yes
  12409. break
  12410. fi
  12411. done
  12412. if test -z "$haveit"; then
  12413. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12414. fi
  12415. done
  12416. { echo "$as_me:$LINENO: checking for iconv" >&5
  12417. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  12418. if test "${am_cv_func_iconv+set}" = set; then
  12419. echo $ECHO_N "(cached) $ECHO_C" >&6
  12420. else
  12421. am_cv_func_iconv="no, consider installing GNU libiconv"
  12422. am_cv_lib_iconv=no
  12423. cat >conftest.$ac_ext <<_ACEOF
  12424. /* confdefs.h. */
  12425. _ACEOF
  12426. cat confdefs.h >>conftest.$ac_ext
  12427. cat >>conftest.$ac_ext <<_ACEOF
  12428. /* end confdefs.h. */
  12429. #include <stdlib.h>
  12430. #include <iconv.h>
  12431. int
  12432. main ()
  12433. {
  12434. iconv_t cd = iconv_open("","");
  12435. iconv(cd,NULL,NULL,NULL,NULL);
  12436. iconv_close(cd);
  12437. ;
  12438. return 0;
  12439. }
  12440. _ACEOF
  12441. rm -f conftest.$ac_objext conftest$ac_exeext
  12442. if { (ac_try="$ac_link"
  12443. case "(($ac_try" in
  12444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12445. *) ac_try_echo=$ac_try;;
  12446. esac
  12447. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12448. (eval "$ac_link") 2>conftest.er1
  12449. ac_status=$?
  12450. grep -v '^ *+' conftest.er1 >conftest.err
  12451. rm -f conftest.er1
  12452. cat conftest.err >&5
  12453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12454. (exit $ac_status); } && {
  12455. test -z "$ac_cxx_werror_flag" ||
  12456. test ! -s conftest.err
  12457. } && test -s conftest$ac_exeext &&
  12458. $as_test_x conftest$ac_exeext; then
  12459. am_cv_func_iconv=yes
  12460. else
  12461. echo "$as_me: failed program was:" >&5
  12462. sed 's/^/| /' conftest.$ac_ext >&5
  12463. fi
  12464. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12465. conftest$ac_exeext conftest.$ac_ext
  12466. if test "$am_cv_func_iconv" != yes; then
  12467. am_save_LIBS="$LIBS"
  12468. LIBS="$LIBS $LIBICONV"
  12469. cat >conftest.$ac_ext <<_ACEOF
  12470. /* confdefs.h. */
  12471. _ACEOF
  12472. cat confdefs.h >>conftest.$ac_ext
  12473. cat >>conftest.$ac_ext <<_ACEOF
  12474. /* end confdefs.h. */
  12475. #include <stdlib.h>
  12476. #include <iconv.h>
  12477. int
  12478. main ()
  12479. {
  12480. iconv_t cd = iconv_open("","");
  12481. iconv(cd,NULL,NULL,NULL,NULL);
  12482. iconv_close(cd);
  12483. ;
  12484. return 0;
  12485. }
  12486. _ACEOF
  12487. rm -f conftest.$ac_objext conftest$ac_exeext
  12488. if { (ac_try="$ac_link"
  12489. case "(($ac_try" in
  12490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12491. *) ac_try_echo=$ac_try;;
  12492. esac
  12493. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12494. (eval "$ac_link") 2>conftest.er1
  12495. ac_status=$?
  12496. grep -v '^ *+' conftest.er1 >conftest.err
  12497. rm -f conftest.er1
  12498. cat conftest.err >&5
  12499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12500. (exit $ac_status); } && {
  12501. test -z "$ac_cxx_werror_flag" ||
  12502. test ! -s conftest.err
  12503. } && test -s conftest$ac_exeext &&
  12504. $as_test_x conftest$ac_exeext; then
  12505. am_cv_lib_iconv=yes
  12506. am_cv_func_iconv=yes
  12507. else
  12508. echo "$as_me: failed program was:" >&5
  12509. sed 's/^/| /' conftest.$ac_ext >&5
  12510. fi
  12511. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12512. conftest$ac_exeext conftest.$ac_ext
  12513. LIBS="$am_save_LIBS"
  12514. fi
  12515. fi
  12516. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  12517. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  12518. if test "$am_cv_func_iconv" = yes; then
  12519. { echo "$as_me:$LINENO: checking for working iconv" >&5
  12520. echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
  12521. if test "${am_cv_func_iconv_works+set}" = set; then
  12522. echo $ECHO_N "(cached) $ECHO_C" >&6
  12523. else
  12524. am_save_LIBS="$LIBS"
  12525. if test $am_cv_lib_iconv = yes; then
  12526. LIBS="$LIBS $LIBICONV"
  12527. fi
  12528. if test "$cross_compiling" = yes; then
  12529. case "$host_os" in
  12530. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  12531. *) am_cv_func_iconv_works="guessing yes" ;;
  12532. esac
  12533. else
  12534. cat >conftest.$ac_ext <<_ACEOF
  12535. /* confdefs.h. */
  12536. _ACEOF
  12537. cat confdefs.h >>conftest.$ac_ext
  12538. cat >>conftest.$ac_ext <<_ACEOF
  12539. /* end confdefs.h. */
  12540. #include <iconv.h>
  12541. #include <string.h>
  12542. int main ()
  12543. {
  12544. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  12545. returns. */
  12546. {
  12547. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  12548. if (cd_utf8_to_88591 != (iconv_t)(-1))
  12549. {
  12550. static const char input[] = "\342\202\254"; /* EURO SIGN */
  12551. char buf[10];
  12552. const char *inptr = input;
  12553. size_t inbytesleft = strlen (input);
  12554. char *outptr = buf;
  12555. size_t outbytesleft = sizeof (buf);
  12556. size_t res = iconv (cd_utf8_to_88591,
  12557. (char **) &inptr, &inbytesleft,
  12558. &outptr, &outbytesleft);
  12559. if (res == 0)
  12560. return 1;
  12561. }
  12562. }
  12563. #if 0 /* This bug could be worked around by the caller. */
  12564. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  12565. {
  12566. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  12567. if (cd_88591_to_utf8 != (iconv_t)(-1))
  12568. {
  12569. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  12570. char buf[50];
  12571. const char *inptr = input;
  12572. size_t inbytesleft = strlen (input);
  12573. char *outptr = buf;
  12574. size_t outbytesleft = sizeof (buf);
  12575. size_t res = iconv (cd_88591_to_utf8,
  12576. (char **) &inptr, &inbytesleft,
  12577. &outptr, &outbytesleft);
  12578. if ((int)res > 0)
  12579. return 1;
  12580. }
  12581. }
  12582. #endif
  12583. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  12584. provided. */
  12585. if (/* Try standardized names. */
  12586. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  12587. /* Try IRIX, OSF/1 names. */
  12588. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  12589. /* Try AIX names. */
  12590. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  12591. /* Try HP-UX names. */
  12592. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  12593. return 1;
  12594. return 0;
  12595. }
  12596. _ACEOF
  12597. rm -f conftest$ac_exeext
  12598. if { (ac_try="$ac_link"
  12599. case "(($ac_try" in
  12600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12601. *) ac_try_echo=$ac_try;;
  12602. esac
  12603. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12604. (eval "$ac_link") 2>&5
  12605. ac_status=$?
  12606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12607. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12608. { (case "(($ac_try" in
  12609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12610. *) ac_try_echo=$ac_try;;
  12611. esac
  12612. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12613. (eval "$ac_try") 2>&5
  12614. ac_status=$?
  12615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12616. (exit $ac_status); }; }; then
  12617. am_cv_func_iconv_works=yes
  12618. else
  12619. echo "$as_me: program exited with status $ac_status" >&5
  12620. echo "$as_me: failed program was:" >&5
  12621. sed 's/^/| /' conftest.$ac_ext >&5
  12622. ( exit $ac_status )
  12623. am_cv_func_iconv_works=no
  12624. fi
  12625. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12626. fi
  12627. LIBS="$am_save_LIBS"
  12628. fi
  12629. { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  12630. echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
  12631. case "$am_cv_func_iconv_works" in
  12632. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  12633. *) am_func_iconv=yes ;;
  12634. esac
  12635. else
  12636. am_func_iconv=no am_cv_lib_iconv=no
  12637. fi
  12638. if test "$am_func_iconv" = yes; then
  12639. cat >>confdefs.h <<\_ACEOF
  12640. #define HAVE_ICONV 1
  12641. _ACEOF
  12642. fi
  12643. if test "$am_cv_lib_iconv" = yes; then
  12644. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  12645. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  12646. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  12647. echo "${ECHO_T}$LIBICONV" >&6; }
  12648. else
  12649. CPPFLAGS="$am_save_CPPFLAGS"
  12650. LIBICONV=
  12651. LTLIBICONV=
  12652. fi
  12653. if test "$am_cv_func_iconv" = yes; then
  12654. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  12655. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  12656. if test "${am_cv_proto_iconv+set}" = set; then
  12657. echo $ECHO_N "(cached) $ECHO_C" >&6
  12658. else
  12659. cat >conftest.$ac_ext <<_ACEOF
  12660. /* confdefs.h. */
  12661. _ACEOF
  12662. cat confdefs.h >>conftest.$ac_ext
  12663. cat >>conftest.$ac_ext <<_ACEOF
  12664. /* end confdefs.h. */
  12665. #include <stdlib.h>
  12666. #include <iconv.h>
  12667. extern
  12668. #ifdef __cplusplus
  12669. "C"
  12670. #endif
  12671. #if defined(__STDC__) || defined(__cplusplus)
  12672. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  12673. #else
  12674. size_t iconv();
  12675. #endif
  12676. int
  12677. main ()
  12678. {
  12679. ;
  12680. return 0;
  12681. }
  12682. _ACEOF
  12683. rm -f conftest.$ac_objext
  12684. if { (ac_try="$ac_compile"
  12685. case "(($ac_try" in
  12686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12687. *) ac_try_echo=$ac_try;;
  12688. esac
  12689. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12690. (eval "$ac_compile") 2>conftest.er1
  12691. ac_status=$?
  12692. grep -v '^ *+' conftest.er1 >conftest.err
  12693. rm -f conftest.er1
  12694. cat conftest.err >&5
  12695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12696. (exit $ac_status); } && {
  12697. test -z "$ac_cxx_werror_flag" ||
  12698. test ! -s conftest.err
  12699. } && test -s conftest.$ac_objext; then
  12700. am_cv_proto_iconv_arg1=""
  12701. else
  12702. echo "$as_me: failed program was:" >&5
  12703. sed 's/^/| /' conftest.$ac_ext >&5
  12704. am_cv_proto_iconv_arg1="const"
  12705. fi
  12706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12707. 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);"
  12708. fi
  12709. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  12710. { echo "$as_me:$LINENO: result: ${ac_t:-
  12711. }$am_cv_proto_iconv" >&5
  12712. echo "${ECHO_T}${ac_t:-
  12713. }$am_cv_proto_iconv" >&6; }
  12714. cat >>confdefs.h <<_ACEOF
  12715. #define ICONV_CONST $am_cv_proto_iconv_arg1
  12716. _ACEOF
  12717. fi
  12718. { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  12719. echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
  12720. if test "${gt_cv_nl_locale_name+set}" = set; then
  12721. echo $ECHO_N "(cached) $ECHO_C" >&6
  12722. else
  12723. cat >conftest.$ac_ext <<_ACEOF
  12724. /* confdefs.h. */
  12725. _ACEOF
  12726. cat confdefs.h >>conftest.$ac_ext
  12727. cat >>conftest.$ac_ext <<_ACEOF
  12728. /* end confdefs.h. */
  12729. #include <langinfo.h>
  12730. #include <locale.h>
  12731. int
  12732. main ()
  12733. {
  12734. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  12735. return !cs;
  12736. ;
  12737. return 0;
  12738. }
  12739. _ACEOF
  12740. rm -f conftest.$ac_objext conftest$ac_exeext
  12741. if { (ac_try="$ac_link"
  12742. case "(($ac_try" in
  12743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12744. *) ac_try_echo=$ac_try;;
  12745. esac
  12746. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12747. (eval "$ac_link") 2>conftest.er1
  12748. ac_status=$?
  12749. grep -v '^ *+' conftest.er1 >conftest.err
  12750. rm -f conftest.er1
  12751. cat conftest.err >&5
  12752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12753. (exit $ac_status); } && {
  12754. test -z "$ac_cxx_werror_flag" ||
  12755. test ! -s conftest.err
  12756. } && test -s conftest$ac_exeext &&
  12757. $as_test_x conftest$ac_exeext; then
  12758. gt_cv_nl_locale_name=yes
  12759. else
  12760. echo "$as_me: failed program was:" >&5
  12761. sed 's/^/| /' conftest.$ac_ext >&5
  12762. gt_cv_nl_locale_name=no
  12763. fi
  12764. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12765. conftest$ac_exeext conftest.$ac_ext
  12766. fi
  12767. { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  12768. echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
  12769. if test $gt_cv_nl_locale_name = yes; then
  12770. cat >>confdefs.h <<\_ACEOF
  12771. #define HAVE_NL_LOCALE_NAME 1
  12772. _ACEOF
  12773. fi
  12774. for ac_prog in bison
  12775. do
  12776. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12777. set dummy $ac_prog; ac_word=$2
  12778. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  12779. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12780. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  12781. echo $ECHO_N "(cached) $ECHO_C" >&6
  12782. else
  12783. if test -n "$INTLBISON"; then
  12784. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  12785. else
  12786. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12787. for as_dir in $PATH
  12788. do
  12789. IFS=$as_save_IFS
  12790. test -z "$as_dir" && as_dir=.
  12791. for ac_exec_ext in '' $ac_executable_extensions; do
  12792. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12793. ac_cv_prog_INTLBISON="$ac_prog"
  12794. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12795. break 2
  12796. fi
  12797. done
  12798. done
  12799. IFS=$as_save_IFS
  12800. fi
  12801. fi
  12802. INTLBISON=$ac_cv_prog_INTLBISON
  12803. if test -n "$INTLBISON"; then
  12804. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  12805. echo "${ECHO_T}$INTLBISON" >&6; }
  12806. else
  12807. { echo "$as_me:$LINENO: result: no" >&5
  12808. echo "${ECHO_T}no" >&6; }
  12809. fi
  12810. test -n "$INTLBISON" && break
  12811. done
  12812. if test -z "$INTLBISON"; then
  12813. ac_verc_fail=yes
  12814. else
  12815. { echo "$as_me:$LINENO: checking version of bison" >&5
  12816. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  12817. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  12818. case $ac_prog_version in
  12819. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  12820. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  12821. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  12822. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  12823. esac
  12824. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  12825. echo "${ECHO_T}$ac_prog_version" >&6; }
  12826. fi
  12827. if test $ac_verc_fail = yes; then
  12828. INTLBISON=:
  12829. fi
  12830. { echo "$as_me:$LINENO: checking for long long int" >&5
  12831. echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
  12832. if test "${ac_cv_type_long_long_int+set}" = set; then
  12833. echo $ECHO_N "(cached) $ECHO_C" >&6
  12834. else
  12835. cat >conftest.$ac_ext <<_ACEOF
  12836. /* confdefs.h. */
  12837. _ACEOF
  12838. cat confdefs.h >>conftest.$ac_ext
  12839. cat >>conftest.$ac_ext <<_ACEOF
  12840. /* end confdefs.h. */
  12841. /* Test preprocessor. */
  12842. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  12843. error in preprocessor;
  12844. #endif
  12845. #if ! (18446744073709551615ULL <= -1ull)
  12846. error in preprocessor;
  12847. #endif
  12848. /* Test literals. */
  12849. long long int ll = 9223372036854775807ll;
  12850. long long int nll = -9223372036854775807LL;
  12851. unsigned long long int ull = 18446744073709551615ULL;
  12852. /* Test constant expressions. */
  12853. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  12854. ? 1 : -1)];
  12855. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  12856. ? 1 : -1)];
  12857. int i = 63;
  12858. int
  12859. main ()
  12860. {
  12861. /* Test availability of runtime routines for shift and division. */
  12862. long long int llmax = 9223372036854775807ll;
  12863. unsigned long long int ullmax = 18446744073709551615ull;
  12864. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  12865. | (llmax / ll) | (llmax % ll)
  12866. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  12867. | (ullmax / ull) | (ullmax % ull));
  12868. ;
  12869. return 0;
  12870. }
  12871. _ACEOF
  12872. rm -f conftest.$ac_objext conftest$ac_exeext
  12873. if { (ac_try="$ac_link"
  12874. case "(($ac_try" in
  12875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12876. *) ac_try_echo=$ac_try;;
  12877. esac
  12878. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12879. (eval "$ac_link") 2>conftest.er1
  12880. ac_status=$?
  12881. grep -v '^ *+' conftest.er1 >conftest.err
  12882. rm -f conftest.er1
  12883. cat conftest.err >&5
  12884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12885. (exit $ac_status); } && {
  12886. test -z "$ac_cxx_werror_flag" ||
  12887. test ! -s conftest.err
  12888. } && test -s conftest$ac_exeext &&
  12889. $as_test_x conftest$ac_exeext; then
  12890. if test "$cross_compiling" = yes; then
  12891. ac_cv_type_long_long_int=yes
  12892. else
  12893. cat >conftest.$ac_ext <<_ACEOF
  12894. /* confdefs.h. */
  12895. _ACEOF
  12896. cat confdefs.h >>conftest.$ac_ext
  12897. cat >>conftest.$ac_ext <<_ACEOF
  12898. /* end confdefs.h. */
  12899. #include <limits.h>
  12900. #ifndef LLONG_MAX
  12901. # define HALF \
  12902. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  12903. # define LLONG_MAX (HALF - 1 + HALF)
  12904. #endif
  12905. int
  12906. main ()
  12907. {
  12908. long long int n = 1;
  12909. int i;
  12910. for (i = 0; ; i++)
  12911. {
  12912. long long int m = n << i;
  12913. if (m >> i != n)
  12914. return 1;
  12915. if (LLONG_MAX / 2 < m)
  12916. break;
  12917. }
  12918. return 0;
  12919. ;
  12920. return 0;
  12921. }
  12922. _ACEOF
  12923. rm -f conftest$ac_exeext
  12924. if { (ac_try="$ac_link"
  12925. case "(($ac_try" in
  12926. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12927. *) ac_try_echo=$ac_try;;
  12928. esac
  12929. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12930. (eval "$ac_link") 2>&5
  12931. ac_status=$?
  12932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12933. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12934. { (case "(($ac_try" in
  12935. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12936. *) ac_try_echo=$ac_try;;
  12937. esac
  12938. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12939. (eval "$ac_try") 2>&5
  12940. ac_status=$?
  12941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12942. (exit $ac_status); }; }; then
  12943. ac_cv_type_long_long_int=yes
  12944. else
  12945. echo "$as_me: program exited with status $ac_status" >&5
  12946. echo "$as_me: failed program was:" >&5
  12947. sed 's/^/| /' conftest.$ac_ext >&5
  12948. ( exit $ac_status )
  12949. ac_cv_type_long_long_int=no
  12950. fi
  12951. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12952. fi
  12953. else
  12954. echo "$as_me: failed program was:" >&5
  12955. sed 's/^/| /' conftest.$ac_ext >&5
  12956. ac_cv_type_long_long_int=no
  12957. fi
  12958. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12959. conftest$ac_exeext conftest.$ac_ext
  12960. fi
  12961. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  12962. echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
  12963. if test $ac_cv_type_long_long_int = yes; then
  12964. cat >>confdefs.h <<\_ACEOF
  12965. #define HAVE_LONG_LONG_INT 1
  12966. _ACEOF
  12967. fi
  12968. { echo "$as_me:$LINENO: checking for wchar_t" >&5
  12969. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
  12970. if test "${gt_cv_c_wchar_t+set}" = set; then
  12971. echo $ECHO_N "(cached) $ECHO_C" >&6
  12972. else
  12973. cat >conftest.$ac_ext <<_ACEOF
  12974. /* confdefs.h. */
  12975. _ACEOF
  12976. cat confdefs.h >>conftest.$ac_ext
  12977. cat >>conftest.$ac_ext <<_ACEOF
  12978. /* end confdefs.h. */
  12979. #include <stddef.h>
  12980. wchar_t foo = (wchar_t)'\0';
  12981. int
  12982. main ()
  12983. {
  12984. ;
  12985. return 0;
  12986. }
  12987. _ACEOF
  12988. rm -f conftest.$ac_objext
  12989. if { (ac_try="$ac_compile"
  12990. case "(($ac_try" in
  12991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12992. *) ac_try_echo=$ac_try;;
  12993. esac
  12994. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12995. (eval "$ac_compile") 2>conftest.er1
  12996. ac_status=$?
  12997. grep -v '^ *+' conftest.er1 >conftest.err
  12998. rm -f conftest.er1
  12999. cat conftest.err >&5
  13000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13001. (exit $ac_status); } && {
  13002. test -z "$ac_cxx_werror_flag" ||
  13003. test ! -s conftest.err
  13004. } && test -s conftest.$ac_objext; then
  13005. gt_cv_c_wchar_t=yes
  13006. else
  13007. echo "$as_me: failed program was:" >&5
  13008. sed 's/^/| /' conftest.$ac_ext >&5
  13009. gt_cv_c_wchar_t=no
  13010. fi
  13011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13012. fi
  13013. { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  13014. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
  13015. if test $gt_cv_c_wchar_t = yes; then
  13016. cat >>confdefs.h <<\_ACEOF
  13017. #define HAVE_WCHAR_T 1
  13018. _ACEOF
  13019. fi
  13020. { echo "$as_me:$LINENO: checking for wint_t" >&5
  13021. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
  13022. if test "${gt_cv_c_wint_t+set}" = set; then
  13023. echo $ECHO_N "(cached) $ECHO_C" >&6
  13024. else
  13025. cat >conftest.$ac_ext <<_ACEOF
  13026. /* confdefs.h. */
  13027. _ACEOF
  13028. cat confdefs.h >>conftest.$ac_ext
  13029. cat >>conftest.$ac_ext <<_ACEOF
  13030. /* end confdefs.h. */
  13031. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  13032. <wchar.h>.
  13033. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  13034. before <wchar.h>. */
  13035. #include <stddef.h>
  13036. #include <stdio.h>
  13037. #include <time.h>
  13038. #include <wchar.h>
  13039. wint_t foo = (wchar_t)'\0';
  13040. int
  13041. main ()
  13042. {
  13043. ;
  13044. return 0;
  13045. }
  13046. _ACEOF
  13047. rm -f conftest.$ac_objext
  13048. if { (ac_try="$ac_compile"
  13049. case "(($ac_try" in
  13050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13051. *) ac_try_echo=$ac_try;;
  13052. esac
  13053. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13054. (eval "$ac_compile") 2>conftest.er1
  13055. ac_status=$?
  13056. grep -v '^ *+' conftest.er1 >conftest.err
  13057. rm -f conftest.er1
  13058. cat conftest.err >&5
  13059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13060. (exit $ac_status); } && {
  13061. test -z "$ac_cxx_werror_flag" ||
  13062. test ! -s conftest.err
  13063. } && test -s conftest.$ac_objext; then
  13064. gt_cv_c_wint_t=yes
  13065. else
  13066. echo "$as_me: failed program was:" >&5
  13067. sed 's/^/| /' conftest.$ac_ext >&5
  13068. gt_cv_c_wint_t=no
  13069. fi
  13070. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13071. fi
  13072. { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  13073. echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
  13074. if test $gt_cv_c_wint_t = yes; then
  13075. cat >>confdefs.h <<\_ACEOF
  13076. #define HAVE_WINT_T 1
  13077. _ACEOF
  13078. fi
  13079. { echo "$as_me:$LINENO: checking for intmax_t" >&5
  13080. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
  13081. if test "${gt_cv_c_intmax_t+set}" = set; then
  13082. echo $ECHO_N "(cached) $ECHO_C" >&6
  13083. else
  13084. cat >conftest.$ac_ext <<_ACEOF
  13085. /* confdefs.h. */
  13086. _ACEOF
  13087. cat confdefs.h >>conftest.$ac_ext
  13088. cat >>conftest.$ac_ext <<_ACEOF
  13089. /* end confdefs.h. */
  13090. #include <stddef.h>
  13091. #include <stdlib.h>
  13092. #if HAVE_STDINT_H_WITH_UINTMAX
  13093. #include <stdint.h>
  13094. #endif
  13095. #if HAVE_INTTYPES_H_WITH_UINTMAX
  13096. #include <inttypes.h>
  13097. #endif
  13098. int
  13099. main ()
  13100. {
  13101. intmax_t x = -1;
  13102. return !x;
  13103. ;
  13104. return 0;
  13105. }
  13106. _ACEOF
  13107. rm -f conftest.$ac_objext
  13108. if { (ac_try="$ac_compile"
  13109. case "(($ac_try" in
  13110. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13111. *) ac_try_echo=$ac_try;;
  13112. esac
  13113. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13114. (eval "$ac_compile") 2>conftest.er1
  13115. ac_status=$?
  13116. grep -v '^ *+' conftest.er1 >conftest.err
  13117. rm -f conftest.er1
  13118. cat conftest.err >&5
  13119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13120. (exit $ac_status); } && {
  13121. test -z "$ac_cxx_werror_flag" ||
  13122. test ! -s conftest.err
  13123. } && test -s conftest.$ac_objext; then
  13124. gt_cv_c_intmax_t=yes
  13125. else
  13126. echo "$as_me: failed program was:" >&5
  13127. sed 's/^/| /' conftest.$ac_ext >&5
  13128. gt_cv_c_intmax_t=no
  13129. fi
  13130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13131. fi
  13132. { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  13133. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
  13134. if test $gt_cv_c_intmax_t = yes; then
  13135. cat >>confdefs.h <<\_ACEOF
  13136. #define HAVE_INTMAX_T 1
  13137. _ACEOF
  13138. fi
  13139. { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  13140. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
  13141. if test "${gt_cv_func_printf_posix+set}" = set; then
  13142. echo $ECHO_N "(cached) $ECHO_C" >&6
  13143. else
  13144. if test "$cross_compiling" = yes; then
  13145. cat >conftest.$ac_ext <<_ACEOF
  13146. /* confdefs.h. */
  13147. _ACEOF
  13148. cat confdefs.h >>conftest.$ac_ext
  13149. cat >>conftest.$ac_ext <<_ACEOF
  13150. /* end confdefs.h. */
  13151. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  13152. notposix
  13153. #endif
  13154. _ACEOF
  13155. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13156. $EGREP "notposix" >/dev/null 2>&1; then
  13157. gt_cv_func_printf_posix="guessing no"
  13158. else
  13159. gt_cv_func_printf_posix="guessing yes"
  13160. fi
  13161. rm -f conftest*
  13162. else
  13163. cat >conftest.$ac_ext <<_ACEOF
  13164. /* confdefs.h. */
  13165. _ACEOF
  13166. cat confdefs.h >>conftest.$ac_ext
  13167. cat >>conftest.$ac_ext <<_ACEOF
  13168. /* end confdefs.h. */
  13169. #include <stdio.h>
  13170. #include <string.h>
  13171. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  13172. dollar expansion (possibly an autoconf bug). */
  13173. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  13174. static char buf[100];
  13175. int main ()
  13176. {
  13177. sprintf (buf, format, 33, 55);
  13178. return (strcmp (buf, "55 33") != 0);
  13179. }
  13180. _ACEOF
  13181. rm -f conftest$ac_exeext
  13182. if { (ac_try="$ac_link"
  13183. case "(($ac_try" in
  13184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13185. *) ac_try_echo=$ac_try;;
  13186. esac
  13187. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13188. (eval "$ac_link") 2>&5
  13189. ac_status=$?
  13190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13191. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13192. { (case "(($ac_try" in
  13193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13194. *) ac_try_echo=$ac_try;;
  13195. esac
  13196. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13197. (eval "$ac_try") 2>&5
  13198. ac_status=$?
  13199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13200. (exit $ac_status); }; }; then
  13201. gt_cv_func_printf_posix=yes
  13202. else
  13203. echo "$as_me: program exited with status $ac_status" >&5
  13204. echo "$as_me: failed program was:" >&5
  13205. sed 's/^/| /' conftest.$ac_ext >&5
  13206. ( exit $ac_status )
  13207. gt_cv_func_printf_posix=no
  13208. fi
  13209. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13210. fi
  13211. fi
  13212. { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  13213. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
  13214. case $gt_cv_func_printf_posix in
  13215. *yes)
  13216. cat >>confdefs.h <<\_ACEOF
  13217. #define HAVE_POSIX_PRINTF 1
  13218. _ACEOF
  13219. ;;
  13220. esac
  13221. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  13222. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  13223. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  13224. echo $ECHO_N "(cached) $ECHO_C" >&6
  13225. else
  13226. cat >conftest.$ac_ext <<_ACEOF
  13227. /* confdefs.h. */
  13228. _ACEOF
  13229. cat confdefs.h >>conftest.$ac_ext
  13230. cat >>conftest.$ac_ext <<_ACEOF
  13231. /* end confdefs.h. */
  13232. #include <features.h>
  13233. #ifdef __GNU_LIBRARY__
  13234. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  13235. Lucky GNU user
  13236. #endif
  13237. #endif
  13238. _ACEOF
  13239. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13240. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  13241. ac_cv_gnu_library_2_1=yes
  13242. else
  13243. ac_cv_gnu_library_2_1=no
  13244. fi
  13245. rm -f conftest*
  13246. fi
  13247. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  13248. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  13249. GLIBC21="$ac_cv_gnu_library_2_1"
  13250. for ac_header in stdint.h
  13251. do
  13252. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13253. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13254. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13255. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13256. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13257. echo $ECHO_N "(cached) $ECHO_C" >&6
  13258. fi
  13259. ac_res=`eval echo '${'$as_ac_Header'}'`
  13260. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13261. echo "${ECHO_T}$ac_res" >&6; }
  13262. else
  13263. # Is the header compilable?
  13264. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13265. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  13266. cat >conftest.$ac_ext <<_ACEOF
  13267. /* confdefs.h. */
  13268. _ACEOF
  13269. cat confdefs.h >>conftest.$ac_ext
  13270. cat >>conftest.$ac_ext <<_ACEOF
  13271. /* end confdefs.h. */
  13272. $ac_includes_default
  13273. #include <$ac_header>
  13274. _ACEOF
  13275. rm -f conftest.$ac_objext
  13276. if { (ac_try="$ac_compile"
  13277. case "(($ac_try" in
  13278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13279. *) ac_try_echo=$ac_try;;
  13280. esac
  13281. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13282. (eval "$ac_compile") 2>conftest.er1
  13283. ac_status=$?
  13284. grep -v '^ *+' conftest.er1 >conftest.err
  13285. rm -f conftest.er1
  13286. cat conftest.err >&5
  13287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13288. (exit $ac_status); } && {
  13289. test -z "$ac_cxx_werror_flag" ||
  13290. test ! -s conftest.err
  13291. } && test -s conftest.$ac_objext; then
  13292. ac_header_compiler=yes
  13293. else
  13294. echo "$as_me: failed program was:" >&5
  13295. sed 's/^/| /' conftest.$ac_ext >&5
  13296. ac_header_compiler=no
  13297. fi
  13298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13299. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13300. echo "${ECHO_T}$ac_header_compiler" >&6; }
  13301. # Is the header present?
  13302. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13303. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  13304. cat >conftest.$ac_ext <<_ACEOF
  13305. /* confdefs.h. */
  13306. _ACEOF
  13307. cat confdefs.h >>conftest.$ac_ext
  13308. cat >>conftest.$ac_ext <<_ACEOF
  13309. /* end confdefs.h. */
  13310. #include <$ac_header>
  13311. _ACEOF
  13312. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13313. case "(($ac_try" in
  13314. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13315. *) ac_try_echo=$ac_try;;
  13316. esac
  13317. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13318. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13319. ac_status=$?
  13320. grep -v '^ *+' conftest.er1 >conftest.err
  13321. rm -f conftest.er1
  13322. cat conftest.err >&5
  13323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13324. (exit $ac_status); } >/dev/null && {
  13325. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13326. test ! -s conftest.err
  13327. }; then
  13328. ac_header_preproc=yes
  13329. else
  13330. echo "$as_me: failed program was:" >&5
  13331. sed 's/^/| /' conftest.$ac_ext >&5
  13332. ac_header_preproc=no
  13333. fi
  13334. rm -f conftest.err conftest.$ac_ext
  13335. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13336. echo "${ECHO_T}$ac_header_preproc" >&6; }
  13337. # So? What about this header?
  13338. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13339. yes:no: )
  13340. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13341. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13342. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13343. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13344. ac_header_preproc=yes
  13345. ;;
  13346. no:yes:* )
  13347. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13348. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13349. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13350. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13351. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13352. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13353. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13354. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13355. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13356. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13357. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13358. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13359. ( cat <<\_ASBOX
  13360. ## ----------------------------------------------- ##
  13361. ## Report this to t-tujikawa@users.sourceforge.net ##
  13362. ## ----------------------------------------------- ##
  13363. _ASBOX
  13364. ) | sed "s/^/$as_me: WARNING: /" >&2
  13365. ;;
  13366. esac
  13367. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13368. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13369. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13370. echo $ECHO_N "(cached) $ECHO_C" >&6
  13371. else
  13372. eval "$as_ac_Header=\$ac_header_preproc"
  13373. fi
  13374. ac_res=`eval echo '${'$as_ac_Header'}'`
  13375. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13376. echo "${ECHO_T}$ac_res" >&6; }
  13377. fi
  13378. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13379. cat >>confdefs.h <<_ACEOF
  13380. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13381. _ACEOF
  13382. fi
  13383. done
  13384. { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  13385. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
  13386. if test "${gl_cv_size_max+set}" = set; then
  13387. echo $ECHO_N "(cached) $ECHO_C" >&6
  13388. else
  13389. gl_cv_size_max=
  13390. cat >conftest.$ac_ext <<_ACEOF
  13391. /* confdefs.h. */
  13392. _ACEOF
  13393. cat confdefs.h >>conftest.$ac_ext
  13394. cat >>conftest.$ac_ext <<_ACEOF
  13395. /* end confdefs.h. */
  13396. #include <limits.h>
  13397. #if HAVE_STDINT_H
  13398. #include <stdint.h>
  13399. #endif
  13400. #ifdef SIZE_MAX
  13401. Found it
  13402. #endif
  13403. _ACEOF
  13404. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13405. $EGREP "Found it" >/dev/null 2>&1; then
  13406. gl_cv_size_max=yes
  13407. fi
  13408. rm -f conftest*
  13409. if test -z "$gl_cv_size_max"; then
  13410. if test "$cross_compiling" = yes; then
  13411. # Depending upon the size, compute the lo and hi bounds.
  13412. cat >conftest.$ac_ext <<_ACEOF
  13413. /* confdefs.h. */
  13414. _ACEOF
  13415. cat confdefs.h >>conftest.$ac_ext
  13416. cat >>conftest.$ac_ext <<_ACEOF
  13417. /* end confdefs.h. */
  13418. #include <stddef.h>
  13419. #include <limits.h>
  13420. int
  13421. main ()
  13422. {
  13423. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  13424. test_array [0] = 0
  13425. ;
  13426. return 0;
  13427. }
  13428. _ACEOF
  13429. rm -f conftest.$ac_objext
  13430. if { (ac_try="$ac_compile"
  13431. case "(($ac_try" in
  13432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13433. *) ac_try_echo=$ac_try;;
  13434. esac
  13435. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13436. (eval "$ac_compile") 2>conftest.er1
  13437. ac_status=$?
  13438. grep -v '^ *+' conftest.er1 >conftest.err
  13439. rm -f conftest.er1
  13440. cat conftest.err >&5
  13441. 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_objext; then
  13446. ac_lo=0 ac_mid=0
  13447. while :; do
  13448. cat >conftest.$ac_ext <<_ACEOF
  13449. /* confdefs.h. */
  13450. _ACEOF
  13451. cat confdefs.h >>conftest.$ac_ext
  13452. cat >>conftest.$ac_ext <<_ACEOF
  13453. /* end confdefs.h. */
  13454. #include <stddef.h>
  13455. #include <limits.h>
  13456. int
  13457. main ()
  13458. {
  13459. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13460. test_array [0] = 0
  13461. ;
  13462. return 0;
  13463. }
  13464. _ACEOF
  13465. rm -f conftest.$ac_objext
  13466. if { (ac_try="$ac_compile"
  13467. case "(($ac_try" in
  13468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13469. *) ac_try_echo=$ac_try;;
  13470. esac
  13471. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13472. (eval "$ac_compile") 2>conftest.er1
  13473. ac_status=$?
  13474. grep -v '^ *+' conftest.er1 >conftest.err
  13475. rm -f conftest.er1
  13476. cat conftest.err >&5
  13477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13478. (exit $ac_status); } && {
  13479. test -z "$ac_cxx_werror_flag" ||
  13480. test ! -s conftest.err
  13481. } && test -s conftest.$ac_objext; then
  13482. ac_hi=$ac_mid; break
  13483. else
  13484. echo "$as_me: failed program was:" >&5
  13485. sed 's/^/| /' conftest.$ac_ext >&5
  13486. ac_lo=`expr $ac_mid + 1`
  13487. if test $ac_lo -le $ac_mid; then
  13488. ac_lo= ac_hi=
  13489. break
  13490. fi
  13491. ac_mid=`expr 2 '*' $ac_mid + 1`
  13492. fi
  13493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13494. done
  13495. else
  13496. echo "$as_me: failed program was:" >&5
  13497. sed 's/^/| /' conftest.$ac_ext >&5
  13498. cat >conftest.$ac_ext <<_ACEOF
  13499. /* confdefs.h. */
  13500. _ACEOF
  13501. cat confdefs.h >>conftest.$ac_ext
  13502. cat >>conftest.$ac_ext <<_ACEOF
  13503. /* end confdefs.h. */
  13504. #include <stddef.h>
  13505. #include <limits.h>
  13506. int
  13507. main ()
  13508. {
  13509. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  13510. test_array [0] = 0
  13511. ;
  13512. return 0;
  13513. }
  13514. _ACEOF
  13515. rm -f conftest.$ac_objext
  13516. if { (ac_try="$ac_compile"
  13517. case "(($ac_try" in
  13518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13519. *) ac_try_echo=$ac_try;;
  13520. esac
  13521. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13522. (eval "$ac_compile") 2>conftest.er1
  13523. ac_status=$?
  13524. grep -v '^ *+' conftest.er1 >conftest.err
  13525. rm -f conftest.er1
  13526. cat conftest.err >&5
  13527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13528. (exit $ac_status); } && {
  13529. test -z "$ac_cxx_werror_flag" ||
  13530. test ! -s conftest.err
  13531. } && test -s conftest.$ac_objext; then
  13532. ac_hi=-1 ac_mid=-1
  13533. while :; do
  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 <stddef.h>
  13541. #include <limits.h>
  13542. int
  13543. main ()
  13544. {
  13545. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  13546. test_array [0] = 0
  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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13558. (eval "$ac_compile") 2>conftest.er1
  13559. ac_status=$?
  13560. grep -v '^ *+' conftest.er1 >conftest.err
  13561. rm -f conftest.er1
  13562. cat conftest.err >&5
  13563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13564. (exit $ac_status); } && {
  13565. test -z "$ac_cxx_werror_flag" ||
  13566. test ! -s conftest.err
  13567. } && test -s conftest.$ac_objext; then
  13568. ac_lo=$ac_mid; break
  13569. else
  13570. echo "$as_me: failed program was:" >&5
  13571. sed 's/^/| /' conftest.$ac_ext >&5
  13572. ac_hi=`expr '(' $ac_mid ')' - 1`
  13573. if test $ac_mid -le $ac_hi; then
  13574. ac_lo= ac_hi=
  13575. break
  13576. fi
  13577. ac_mid=`expr 2 '*' $ac_mid`
  13578. fi
  13579. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13580. done
  13581. else
  13582. echo "$as_me: failed program was:" >&5
  13583. sed 's/^/| /' conftest.$ac_ext >&5
  13584. ac_lo= ac_hi=
  13585. fi
  13586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13587. fi
  13588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13589. # Binary search between lo and hi bounds.
  13590. while test "x$ac_lo" != "x$ac_hi"; do
  13591. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13592. cat >conftest.$ac_ext <<_ACEOF
  13593. /* confdefs.h. */
  13594. _ACEOF
  13595. cat confdefs.h >>conftest.$ac_ext
  13596. cat >>conftest.$ac_ext <<_ACEOF
  13597. /* end confdefs.h. */
  13598. #include <stddef.h>
  13599. #include <limits.h>
  13600. int
  13601. main ()
  13602. {
  13603. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13604. test_array [0] = 0
  13605. ;
  13606. return 0;
  13607. }
  13608. _ACEOF
  13609. rm -f conftest.$ac_objext
  13610. if { (ac_try="$ac_compile"
  13611. case "(($ac_try" in
  13612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13613. *) ac_try_echo=$ac_try;;
  13614. esac
  13615. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13616. (eval "$ac_compile") 2>conftest.er1
  13617. ac_status=$?
  13618. grep -v '^ *+' conftest.er1 >conftest.err
  13619. rm -f conftest.er1
  13620. cat conftest.err >&5
  13621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13622. (exit $ac_status); } && {
  13623. test -z "$ac_cxx_werror_flag" ||
  13624. test ! -s conftest.err
  13625. } && test -s conftest.$ac_objext; then
  13626. ac_hi=$ac_mid
  13627. else
  13628. echo "$as_me: failed program was:" >&5
  13629. sed 's/^/| /' conftest.$ac_ext >&5
  13630. ac_lo=`expr '(' $ac_mid ')' + 1`
  13631. fi
  13632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13633. done
  13634. case $ac_lo in
  13635. ?*) size_t_bits_minus_1=$ac_lo;;
  13636. '') size_t_bits_minus_1= ;;
  13637. esac
  13638. else
  13639. cat >conftest.$ac_ext <<_ACEOF
  13640. /* confdefs.h. */
  13641. _ACEOF
  13642. cat confdefs.h >>conftest.$ac_ext
  13643. cat >>conftest.$ac_ext <<_ACEOF
  13644. /* end confdefs.h. */
  13645. #include <stddef.h>
  13646. #include <limits.h>
  13647. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  13648. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  13649. #include <stdio.h>
  13650. #include <stdlib.h>
  13651. int
  13652. main ()
  13653. {
  13654. FILE *f = fopen ("conftest.val", "w");
  13655. if (! f)
  13656. return 1;
  13657. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  13658. {
  13659. long int i = longval ();
  13660. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  13661. return 1;
  13662. fprintf (f, "%ld\n", i);
  13663. }
  13664. else
  13665. {
  13666. unsigned long int i = ulongval ();
  13667. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  13668. return 1;
  13669. fprintf (f, "%lu\n", i);
  13670. }
  13671. return ferror (f) || fclose (f) != 0;
  13672. ;
  13673. return 0;
  13674. }
  13675. _ACEOF
  13676. rm -f conftest$ac_exeext
  13677. if { (ac_try="$ac_link"
  13678. case "(($ac_try" in
  13679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13680. *) ac_try_echo=$ac_try;;
  13681. esac
  13682. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13683. (eval "$ac_link") 2>&5
  13684. ac_status=$?
  13685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13686. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13687. { (case "(($ac_try" in
  13688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13689. *) ac_try_echo=$ac_try;;
  13690. esac
  13691. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13692. (eval "$ac_try") 2>&5
  13693. ac_status=$?
  13694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13695. (exit $ac_status); }; }; then
  13696. size_t_bits_minus_1=`cat conftest.val`
  13697. else
  13698. echo "$as_me: program exited with status $ac_status" >&5
  13699. echo "$as_me: failed program was:" >&5
  13700. sed 's/^/| /' conftest.$ac_ext >&5
  13701. ( exit $ac_status )
  13702. size_t_bits_minus_1=
  13703. fi
  13704. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13705. fi
  13706. rm -f conftest.val
  13707. if test "$cross_compiling" = yes; then
  13708. # Depending upon the size, compute the lo and hi bounds.
  13709. cat >conftest.$ac_ext <<_ACEOF
  13710. /* confdefs.h. */
  13711. _ACEOF
  13712. cat confdefs.h >>conftest.$ac_ext
  13713. cat >>conftest.$ac_ext <<_ACEOF
  13714. /* end confdefs.h. */
  13715. #include <stddef.h>
  13716. int
  13717. main ()
  13718. {
  13719. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  13720. test_array [0] = 0
  13721. ;
  13722. return 0;
  13723. }
  13724. _ACEOF
  13725. rm -f conftest.$ac_objext
  13726. if { (ac_try="$ac_compile"
  13727. case "(($ac_try" in
  13728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13729. *) ac_try_echo=$ac_try;;
  13730. esac
  13731. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13732. (eval "$ac_compile") 2>conftest.er1
  13733. ac_status=$?
  13734. grep -v '^ *+' conftest.er1 >conftest.err
  13735. rm -f conftest.er1
  13736. cat conftest.err >&5
  13737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13738. (exit $ac_status); } && {
  13739. test -z "$ac_cxx_werror_flag" ||
  13740. test ! -s conftest.err
  13741. } && test -s conftest.$ac_objext; then
  13742. ac_lo=0 ac_mid=0
  13743. while :; do
  13744. cat >conftest.$ac_ext <<_ACEOF
  13745. /* confdefs.h. */
  13746. _ACEOF
  13747. cat confdefs.h >>conftest.$ac_ext
  13748. cat >>conftest.$ac_ext <<_ACEOF
  13749. /* end confdefs.h. */
  13750. #include <stddef.h>
  13751. int
  13752. main ()
  13753. {
  13754. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  13755. test_array [0] = 0
  13756. ;
  13757. return 0;
  13758. }
  13759. _ACEOF
  13760. rm -f conftest.$ac_objext
  13761. if { (ac_try="$ac_compile"
  13762. case "(($ac_try" in
  13763. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13764. *) ac_try_echo=$ac_try;;
  13765. esac
  13766. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13767. (eval "$ac_compile") 2>conftest.er1
  13768. ac_status=$?
  13769. grep -v '^ *+' conftest.er1 >conftest.err
  13770. rm -f conftest.er1
  13771. cat conftest.err >&5
  13772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13773. (exit $ac_status); } && {
  13774. test -z "$ac_cxx_werror_flag" ||
  13775. test ! -s conftest.err
  13776. } && test -s conftest.$ac_objext; then
  13777. ac_hi=$ac_mid; break
  13778. else
  13779. echo "$as_me: failed program was:" >&5
  13780. sed 's/^/| /' conftest.$ac_ext >&5
  13781. ac_lo=`expr $ac_mid + 1`
  13782. if test $ac_lo -le $ac_mid; then
  13783. ac_lo= ac_hi=
  13784. break
  13785. fi
  13786. ac_mid=`expr 2 '*' $ac_mid + 1`
  13787. fi
  13788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13789. done
  13790. else
  13791. echo "$as_me: failed program was:" >&5
  13792. sed 's/^/| /' conftest.$ac_ext >&5
  13793. cat >conftest.$ac_ext <<_ACEOF
  13794. /* confdefs.h. */
  13795. _ACEOF
  13796. cat confdefs.h >>conftest.$ac_ext
  13797. cat >>conftest.$ac_ext <<_ACEOF
  13798. /* end confdefs.h. */
  13799. #include <stddef.h>
  13800. int
  13801. main ()
  13802. {
  13803. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  13804. test_array [0] = 0
  13805. ;
  13806. return 0;
  13807. }
  13808. _ACEOF
  13809. rm -f conftest.$ac_objext
  13810. if { (ac_try="$ac_compile"
  13811. case "(($ac_try" in
  13812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13813. *) ac_try_echo=$ac_try;;
  13814. esac
  13815. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13816. (eval "$ac_compile") 2>conftest.er1
  13817. ac_status=$?
  13818. grep -v '^ *+' conftest.er1 >conftest.err
  13819. rm -f conftest.er1
  13820. cat conftest.err >&5
  13821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13822. (exit $ac_status); } && {
  13823. test -z "$ac_cxx_werror_flag" ||
  13824. test ! -s conftest.err
  13825. } && test -s conftest.$ac_objext; then
  13826. ac_hi=-1 ac_mid=-1
  13827. while :; do
  13828. cat >conftest.$ac_ext <<_ACEOF
  13829. /* confdefs.h. */
  13830. _ACEOF
  13831. cat confdefs.h >>conftest.$ac_ext
  13832. cat >>conftest.$ac_ext <<_ACEOF
  13833. /* end confdefs.h. */
  13834. #include <stddef.h>
  13835. int
  13836. main ()
  13837. {
  13838. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  13839. test_array [0] = 0
  13840. ;
  13841. return 0;
  13842. }
  13843. _ACEOF
  13844. rm -f conftest.$ac_objext
  13845. if { (ac_try="$ac_compile"
  13846. case "(($ac_try" in
  13847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13848. *) ac_try_echo=$ac_try;;
  13849. esac
  13850. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13851. (eval "$ac_compile") 2>conftest.er1
  13852. ac_status=$?
  13853. grep -v '^ *+' conftest.er1 >conftest.err
  13854. rm -f conftest.er1
  13855. cat conftest.err >&5
  13856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13857. (exit $ac_status); } && {
  13858. test -z "$ac_cxx_werror_flag" ||
  13859. test ! -s conftest.err
  13860. } && test -s conftest.$ac_objext; then
  13861. ac_lo=$ac_mid; break
  13862. else
  13863. echo "$as_me: failed program was:" >&5
  13864. sed 's/^/| /' conftest.$ac_ext >&5
  13865. ac_hi=`expr '(' $ac_mid ')' - 1`
  13866. if test $ac_mid -le $ac_hi; then
  13867. ac_lo= ac_hi=
  13868. break
  13869. fi
  13870. ac_mid=`expr 2 '*' $ac_mid`
  13871. fi
  13872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13873. done
  13874. else
  13875. echo "$as_me: failed program was:" >&5
  13876. sed 's/^/| /' conftest.$ac_ext >&5
  13877. ac_lo= ac_hi=
  13878. fi
  13879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13880. fi
  13881. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13882. # Binary search between lo and hi bounds.
  13883. while test "x$ac_lo" != "x$ac_hi"; do
  13884. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13885. cat >conftest.$ac_ext <<_ACEOF
  13886. /* confdefs.h. */
  13887. _ACEOF
  13888. cat confdefs.h >>conftest.$ac_ext
  13889. cat >>conftest.$ac_ext <<_ACEOF
  13890. /* end confdefs.h. */
  13891. #include <stddef.h>
  13892. int
  13893. main ()
  13894. {
  13895. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  13896. test_array [0] = 0
  13897. ;
  13898. return 0;
  13899. }
  13900. _ACEOF
  13901. rm -f conftest.$ac_objext
  13902. if { (ac_try="$ac_compile"
  13903. case "(($ac_try" in
  13904. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13905. *) ac_try_echo=$ac_try;;
  13906. esac
  13907. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13908. (eval "$ac_compile") 2>conftest.er1
  13909. ac_status=$?
  13910. grep -v '^ *+' conftest.er1 >conftest.err
  13911. rm -f conftest.er1
  13912. cat conftest.err >&5
  13913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13914. (exit $ac_status); } && {
  13915. test -z "$ac_cxx_werror_flag" ||
  13916. test ! -s conftest.err
  13917. } && test -s conftest.$ac_objext; then
  13918. ac_hi=$ac_mid
  13919. else
  13920. echo "$as_me: failed program was:" >&5
  13921. sed 's/^/| /' conftest.$ac_ext >&5
  13922. ac_lo=`expr '(' $ac_mid ')' + 1`
  13923. fi
  13924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13925. done
  13926. case $ac_lo in
  13927. ?*) fits_in_uint=$ac_lo;;
  13928. '') fits_in_uint= ;;
  13929. esac
  13930. else
  13931. cat >conftest.$ac_ext <<_ACEOF
  13932. /* confdefs.h. */
  13933. _ACEOF
  13934. cat confdefs.h >>conftest.$ac_ext
  13935. cat >>conftest.$ac_ext <<_ACEOF
  13936. /* end confdefs.h. */
  13937. #include <stddef.h>
  13938. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  13939. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  13940. #include <stdio.h>
  13941. #include <stdlib.h>
  13942. int
  13943. main ()
  13944. {
  13945. FILE *f = fopen ("conftest.val", "w");
  13946. if (! f)
  13947. return 1;
  13948. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  13949. {
  13950. long int i = longval ();
  13951. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  13952. return 1;
  13953. fprintf (f, "%ld\n", i);
  13954. }
  13955. else
  13956. {
  13957. unsigned long int i = ulongval ();
  13958. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  13959. return 1;
  13960. fprintf (f, "%lu\n", i);
  13961. }
  13962. return ferror (f) || fclose (f) != 0;
  13963. ;
  13964. return 0;
  13965. }
  13966. _ACEOF
  13967. rm -f conftest$ac_exeext
  13968. if { (ac_try="$ac_link"
  13969. case "(($ac_try" in
  13970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13971. *) ac_try_echo=$ac_try;;
  13972. esac
  13973. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13974. (eval "$ac_link") 2>&5
  13975. ac_status=$?
  13976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13977. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13978. { (case "(($ac_try" in
  13979. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13980. *) ac_try_echo=$ac_try;;
  13981. esac
  13982. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13983. (eval "$ac_try") 2>&5
  13984. ac_status=$?
  13985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13986. (exit $ac_status); }; }; then
  13987. fits_in_uint=`cat conftest.val`
  13988. else
  13989. echo "$as_me: program exited with status $ac_status" >&5
  13990. echo "$as_me: failed program was:" >&5
  13991. sed 's/^/| /' conftest.$ac_ext >&5
  13992. ( exit $ac_status )
  13993. fits_in_uint=
  13994. fi
  13995. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13996. fi
  13997. rm -f conftest.val
  13998. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  13999. if test $fits_in_uint = 1; then
  14000. cat >conftest.$ac_ext <<_ACEOF
  14001. /* confdefs.h. */
  14002. _ACEOF
  14003. cat confdefs.h >>conftest.$ac_ext
  14004. cat >>conftest.$ac_ext <<_ACEOF
  14005. /* end confdefs.h. */
  14006. #include <stddef.h>
  14007. extern size_t foo;
  14008. extern unsigned long foo;
  14009. int
  14010. main ()
  14011. {
  14012. ;
  14013. return 0;
  14014. }
  14015. _ACEOF
  14016. rm -f conftest.$ac_objext
  14017. if { (ac_try="$ac_compile"
  14018. case "(($ac_try" in
  14019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14020. *) ac_try_echo=$ac_try;;
  14021. esac
  14022. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14023. (eval "$ac_compile") 2>conftest.er1
  14024. ac_status=$?
  14025. grep -v '^ *+' conftest.er1 >conftest.err
  14026. rm -f conftest.er1
  14027. cat conftest.err >&5
  14028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14029. (exit $ac_status); } && {
  14030. test -z "$ac_cxx_werror_flag" ||
  14031. test ! -s conftest.err
  14032. } && test -s conftest.$ac_objext; then
  14033. fits_in_uint=0
  14034. else
  14035. echo "$as_me: failed program was:" >&5
  14036. sed 's/^/| /' conftest.$ac_ext >&5
  14037. fi
  14038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14039. fi
  14040. if test $fits_in_uint = 1; then
  14041. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  14042. else
  14043. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  14044. fi
  14045. else
  14046. gl_cv_size_max='((size_t)~(size_t)0)'
  14047. fi
  14048. fi
  14049. fi
  14050. { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  14051. echo "${ECHO_T}$gl_cv_size_max" >&6; }
  14052. if test "$gl_cv_size_max" != yes; then
  14053. cat >>confdefs.h <<_ACEOF
  14054. #define SIZE_MAX $gl_cv_size_max
  14055. _ACEOF
  14056. fi
  14057. for ac_header in stdint.h
  14058. do
  14059. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14060. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14061. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14062. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14063. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14064. echo $ECHO_N "(cached) $ECHO_C" >&6
  14065. fi
  14066. ac_res=`eval echo '${'$as_ac_Header'}'`
  14067. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14068. echo "${ECHO_T}$ac_res" >&6; }
  14069. else
  14070. # Is the header compilable?
  14071. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14072. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14073. cat >conftest.$ac_ext <<_ACEOF
  14074. /* confdefs.h. */
  14075. _ACEOF
  14076. cat confdefs.h >>conftest.$ac_ext
  14077. cat >>conftest.$ac_ext <<_ACEOF
  14078. /* end confdefs.h. */
  14079. $ac_includes_default
  14080. #include <$ac_header>
  14081. _ACEOF
  14082. rm -f conftest.$ac_objext
  14083. if { (ac_try="$ac_compile"
  14084. case "(($ac_try" in
  14085. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14086. *) ac_try_echo=$ac_try;;
  14087. esac
  14088. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14089. (eval "$ac_compile") 2>conftest.er1
  14090. ac_status=$?
  14091. grep -v '^ *+' conftest.er1 >conftest.err
  14092. rm -f conftest.er1
  14093. cat conftest.err >&5
  14094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14095. (exit $ac_status); } && {
  14096. test -z "$ac_cxx_werror_flag" ||
  14097. test ! -s conftest.err
  14098. } && test -s conftest.$ac_objext; then
  14099. ac_header_compiler=yes
  14100. else
  14101. echo "$as_me: failed program was:" >&5
  14102. sed 's/^/| /' conftest.$ac_ext >&5
  14103. ac_header_compiler=no
  14104. fi
  14105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14106. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14107. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14108. # Is the header present?
  14109. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14110. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14111. cat >conftest.$ac_ext <<_ACEOF
  14112. /* confdefs.h. */
  14113. _ACEOF
  14114. cat confdefs.h >>conftest.$ac_ext
  14115. cat >>conftest.$ac_ext <<_ACEOF
  14116. /* end confdefs.h. */
  14117. #include <$ac_header>
  14118. _ACEOF
  14119. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14120. case "(($ac_try" in
  14121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14122. *) ac_try_echo=$ac_try;;
  14123. esac
  14124. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14125. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14126. ac_status=$?
  14127. grep -v '^ *+' conftest.er1 >conftest.err
  14128. rm -f conftest.er1
  14129. cat conftest.err >&5
  14130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14131. (exit $ac_status); } >/dev/null && {
  14132. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14133. test ! -s conftest.err
  14134. }; then
  14135. ac_header_preproc=yes
  14136. else
  14137. echo "$as_me: failed program was:" >&5
  14138. sed 's/^/| /' conftest.$ac_ext >&5
  14139. ac_header_preproc=no
  14140. fi
  14141. rm -f conftest.err conftest.$ac_ext
  14142. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14143. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14144. # So? What about this header?
  14145. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14146. yes:no: )
  14147. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14148. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14149. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14150. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14151. ac_header_preproc=yes
  14152. ;;
  14153. no:yes:* )
  14154. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14155. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14156. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14157. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14158. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14159. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14160. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14161. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14162. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14163. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14164. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14165. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14166. ( cat <<\_ASBOX
  14167. ## ----------------------------------------------- ##
  14168. ## Report this to t-tujikawa@users.sourceforge.net ##
  14169. ## ----------------------------------------------- ##
  14170. _ASBOX
  14171. ) | sed "s/^/$as_me: WARNING: /" >&2
  14172. ;;
  14173. esac
  14174. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14175. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14176. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14177. echo $ECHO_N "(cached) $ECHO_C" >&6
  14178. else
  14179. eval "$as_ac_Header=\$ac_header_preproc"
  14180. fi
  14181. ac_res=`eval echo '${'$as_ac_Header'}'`
  14182. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14183. echo "${ECHO_T}$ac_res" >&6; }
  14184. fi
  14185. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14186. cat >>confdefs.h <<_ACEOF
  14187. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14188. _ACEOF
  14189. fi
  14190. done
  14191. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  14192. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  14193. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  14194. echo $ECHO_N "(cached) $ECHO_C" >&6
  14195. else
  14196. gt_save_LIBS="$LIBS"
  14197. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14198. cat >conftest.$ac_ext <<_ACEOF
  14199. /* confdefs.h. */
  14200. _ACEOF
  14201. cat confdefs.h >>conftest.$ac_ext
  14202. cat >>conftest.$ac_ext <<_ACEOF
  14203. /* end confdefs.h. */
  14204. #include <CoreFoundation/CFPreferences.h>
  14205. int
  14206. main ()
  14207. {
  14208. CFPreferencesCopyAppValue(NULL, NULL)
  14209. ;
  14210. return 0;
  14211. }
  14212. _ACEOF
  14213. rm -f conftest.$ac_objext conftest$ac_exeext
  14214. if { (ac_try="$ac_link"
  14215. case "(($ac_try" in
  14216. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14217. *) ac_try_echo=$ac_try;;
  14218. esac
  14219. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14220. (eval "$ac_link") 2>conftest.er1
  14221. ac_status=$?
  14222. grep -v '^ *+' conftest.er1 >conftest.err
  14223. rm -f conftest.er1
  14224. cat conftest.err >&5
  14225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14226. (exit $ac_status); } && {
  14227. test -z "$ac_cxx_werror_flag" ||
  14228. test ! -s conftest.err
  14229. } && test -s conftest$ac_exeext &&
  14230. $as_test_x conftest$ac_exeext; then
  14231. gt_cv_func_CFPreferencesCopyAppValue=yes
  14232. else
  14233. echo "$as_me: failed program was:" >&5
  14234. sed 's/^/| /' conftest.$ac_ext >&5
  14235. gt_cv_func_CFPreferencesCopyAppValue=no
  14236. fi
  14237. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14238. conftest$ac_exeext conftest.$ac_ext
  14239. LIBS="$gt_save_LIBS"
  14240. fi
  14241. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  14242. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  14243. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  14244. cat >>confdefs.h <<\_ACEOF
  14245. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  14246. _ACEOF
  14247. fi
  14248. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  14249. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  14250. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  14251. echo $ECHO_N "(cached) $ECHO_C" >&6
  14252. else
  14253. gt_save_LIBS="$LIBS"
  14254. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14255. cat >conftest.$ac_ext <<_ACEOF
  14256. /* confdefs.h. */
  14257. _ACEOF
  14258. cat confdefs.h >>conftest.$ac_ext
  14259. cat >>conftest.$ac_ext <<_ACEOF
  14260. /* end confdefs.h. */
  14261. #include <CoreFoundation/CFLocale.h>
  14262. int
  14263. main ()
  14264. {
  14265. CFLocaleCopyCurrent();
  14266. ;
  14267. return 0;
  14268. }
  14269. _ACEOF
  14270. rm -f conftest.$ac_objext conftest$ac_exeext
  14271. if { (ac_try="$ac_link"
  14272. case "(($ac_try" in
  14273. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14274. *) ac_try_echo=$ac_try;;
  14275. esac
  14276. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14277. (eval "$ac_link") 2>conftest.er1
  14278. ac_status=$?
  14279. grep -v '^ *+' conftest.er1 >conftest.err
  14280. rm -f conftest.er1
  14281. cat conftest.err >&5
  14282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14283. (exit $ac_status); } && {
  14284. test -z "$ac_cxx_werror_flag" ||
  14285. test ! -s conftest.err
  14286. } && test -s conftest$ac_exeext &&
  14287. $as_test_x conftest$ac_exeext; then
  14288. gt_cv_func_CFLocaleCopyCurrent=yes
  14289. else
  14290. echo "$as_me: failed program was:" >&5
  14291. sed 's/^/| /' conftest.$ac_ext >&5
  14292. gt_cv_func_CFLocaleCopyCurrent=no
  14293. fi
  14294. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14295. conftest$ac_exeext conftest.$ac_ext
  14296. LIBS="$gt_save_LIBS"
  14297. fi
  14298. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  14299. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  14300. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14301. cat >>confdefs.h <<\_ACEOF
  14302. #define HAVE_CFLOCALECOPYCURRENT 1
  14303. _ACEOF
  14304. fi
  14305. INTL_MACOSX_LIBS=
  14306. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14307. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  14308. fi
  14309. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  14310. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  14311. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  14312. echo $ECHO_N "(cached) $ECHO_C" >&6
  14313. else
  14314. cat >conftest.$ac_ext <<_ACEOF
  14315. /* confdefs.h. */
  14316. _ACEOF
  14317. cat confdefs.h >>conftest.$ac_ext
  14318. cat >>conftest.$ac_ext <<_ACEOF
  14319. /* end confdefs.h. */
  14320. $ac_includes_default
  14321. typedef ptrdiff_t ac__type_new_;
  14322. int
  14323. main ()
  14324. {
  14325. if ((ac__type_new_ *) 0)
  14326. return 0;
  14327. if (sizeof (ac__type_new_))
  14328. return 0;
  14329. ;
  14330. return 0;
  14331. }
  14332. _ACEOF
  14333. rm -f conftest.$ac_objext
  14334. if { (ac_try="$ac_compile"
  14335. case "(($ac_try" in
  14336. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14337. *) ac_try_echo=$ac_try;;
  14338. esac
  14339. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14340. (eval "$ac_compile") 2>conftest.er1
  14341. ac_status=$?
  14342. grep -v '^ *+' conftest.er1 >conftest.err
  14343. rm -f conftest.er1
  14344. cat conftest.err >&5
  14345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14346. (exit $ac_status); } && {
  14347. test -z "$ac_cxx_werror_flag" ||
  14348. test ! -s conftest.err
  14349. } && test -s conftest.$ac_objext; then
  14350. ac_cv_type_ptrdiff_t=yes
  14351. else
  14352. echo "$as_me: failed program was:" >&5
  14353. sed 's/^/| /' conftest.$ac_ext >&5
  14354. ac_cv_type_ptrdiff_t=no
  14355. fi
  14356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14357. fi
  14358. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  14359. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  14360. if test $ac_cv_type_ptrdiff_t = yes; then
  14361. :
  14362. else
  14363. cat >>confdefs.h <<\_ACEOF
  14364. #define ptrdiff_t long
  14365. _ACEOF
  14366. fi
  14367. for ac_header in stddef.h stdlib.h string.h
  14368. do
  14369. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14370. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14371. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14372. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14373. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14374. echo $ECHO_N "(cached) $ECHO_C" >&6
  14375. fi
  14376. ac_res=`eval echo '${'$as_ac_Header'}'`
  14377. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14378. echo "${ECHO_T}$ac_res" >&6; }
  14379. else
  14380. # Is the header compilable?
  14381. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14382. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14383. cat >conftest.$ac_ext <<_ACEOF
  14384. /* confdefs.h. */
  14385. _ACEOF
  14386. cat confdefs.h >>conftest.$ac_ext
  14387. cat >>conftest.$ac_ext <<_ACEOF
  14388. /* end confdefs.h. */
  14389. $ac_includes_default
  14390. #include <$ac_header>
  14391. _ACEOF
  14392. rm -f conftest.$ac_objext
  14393. if { (ac_try="$ac_compile"
  14394. case "(($ac_try" in
  14395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14396. *) ac_try_echo=$ac_try;;
  14397. esac
  14398. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14399. (eval "$ac_compile") 2>conftest.er1
  14400. ac_status=$?
  14401. grep -v '^ *+' conftest.er1 >conftest.err
  14402. rm -f conftest.er1
  14403. cat conftest.err >&5
  14404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14405. (exit $ac_status); } && {
  14406. test -z "$ac_cxx_werror_flag" ||
  14407. test ! -s conftest.err
  14408. } && test -s conftest.$ac_objext; then
  14409. ac_header_compiler=yes
  14410. else
  14411. echo "$as_me: failed program was:" >&5
  14412. sed 's/^/| /' conftest.$ac_ext >&5
  14413. ac_header_compiler=no
  14414. fi
  14415. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14416. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14417. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14418. # Is the header present?
  14419. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14420. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14421. cat >conftest.$ac_ext <<_ACEOF
  14422. /* confdefs.h. */
  14423. _ACEOF
  14424. cat confdefs.h >>conftest.$ac_ext
  14425. cat >>conftest.$ac_ext <<_ACEOF
  14426. /* end confdefs.h. */
  14427. #include <$ac_header>
  14428. _ACEOF
  14429. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14430. case "(($ac_try" in
  14431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14432. *) ac_try_echo=$ac_try;;
  14433. esac
  14434. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14435. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14436. ac_status=$?
  14437. grep -v '^ *+' conftest.er1 >conftest.err
  14438. rm -f conftest.er1
  14439. cat conftest.err >&5
  14440. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14441. (exit $ac_status); } >/dev/null && {
  14442. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14443. test ! -s conftest.err
  14444. }; then
  14445. ac_header_preproc=yes
  14446. else
  14447. echo "$as_me: failed program was:" >&5
  14448. sed 's/^/| /' conftest.$ac_ext >&5
  14449. ac_header_preproc=no
  14450. fi
  14451. rm -f conftest.err conftest.$ac_ext
  14452. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14453. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14454. # So? What about this header?
  14455. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14456. yes:no: )
  14457. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14458. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14459. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14460. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14461. ac_header_preproc=yes
  14462. ;;
  14463. no:yes:* )
  14464. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14465. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14466. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14467. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14468. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14469. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14470. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14471. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14472. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14473. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14474. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14475. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14476. ( cat <<\_ASBOX
  14477. ## ----------------------------------------------- ##
  14478. ## Report this to t-tujikawa@users.sourceforge.net ##
  14479. ## ----------------------------------------------- ##
  14480. _ASBOX
  14481. ) | sed "s/^/$as_me: WARNING: /" >&2
  14482. ;;
  14483. esac
  14484. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14485. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14486. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14487. echo $ECHO_N "(cached) $ECHO_C" >&6
  14488. else
  14489. eval "$as_ac_Header=\$ac_header_preproc"
  14490. fi
  14491. ac_res=`eval echo '${'$as_ac_Header'}'`
  14492. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14493. echo "${ECHO_T}$ac_res" >&6; }
  14494. fi
  14495. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14496. cat >>confdefs.h <<_ACEOF
  14497. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14498. _ACEOF
  14499. fi
  14500. done
  14501. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  14502. do
  14503. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14504. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  14505. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  14506. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  14507. echo $ECHO_N "(cached) $ECHO_C" >&6
  14508. else
  14509. cat >conftest.$ac_ext <<_ACEOF
  14510. /* confdefs.h. */
  14511. _ACEOF
  14512. cat confdefs.h >>conftest.$ac_ext
  14513. cat >>conftest.$ac_ext <<_ACEOF
  14514. /* end confdefs.h. */
  14515. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14516. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14517. #define $ac_func innocuous_$ac_func
  14518. /* System header to define __stub macros and hopefully few prototypes,
  14519. which can conflict with char $ac_func (); below.
  14520. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14521. <limits.h> exists even on freestanding compilers. */
  14522. #ifdef __STDC__
  14523. # include <limits.h>
  14524. #else
  14525. # include <assert.h>
  14526. #endif
  14527. #undef $ac_func
  14528. /* Override any GCC internal prototype to avoid an error.
  14529. Use char because int might match the return type of a GCC
  14530. builtin and then its argument prototype would still apply. */
  14531. #ifdef __cplusplus
  14532. extern "C"
  14533. #endif
  14534. char $ac_func ();
  14535. /* The GNU C library defines this for functions which it implements
  14536. to always fail with ENOSYS. Some functions are actually named
  14537. something starting with __ and the normal name is an alias. */
  14538. #if defined __stub_$ac_func || defined __stub___$ac_func
  14539. choke me
  14540. #endif
  14541. int
  14542. main ()
  14543. {
  14544. return $ac_func ();
  14545. ;
  14546. return 0;
  14547. }
  14548. _ACEOF
  14549. rm -f conftest.$ac_objext conftest$ac_exeext
  14550. if { (ac_try="$ac_link"
  14551. case "(($ac_try" in
  14552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14553. *) ac_try_echo=$ac_try;;
  14554. esac
  14555. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14556. (eval "$ac_link") 2>conftest.er1
  14557. ac_status=$?
  14558. grep -v '^ *+' conftest.er1 >conftest.err
  14559. rm -f conftest.er1
  14560. cat conftest.err >&5
  14561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14562. (exit $ac_status); } && {
  14563. test -z "$ac_cxx_werror_flag" ||
  14564. test ! -s conftest.err
  14565. } && test -s conftest$ac_exeext &&
  14566. $as_test_x conftest$ac_exeext; then
  14567. eval "$as_ac_var=yes"
  14568. else
  14569. echo "$as_me: failed program was:" >&5
  14570. sed 's/^/| /' conftest.$ac_ext >&5
  14571. eval "$as_ac_var=no"
  14572. fi
  14573. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14574. conftest$ac_exeext conftest.$ac_ext
  14575. fi
  14576. ac_res=`eval echo '${'$as_ac_var'}'`
  14577. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14578. echo "${ECHO_T}$ac_res" >&6; }
  14579. if test `eval echo '${'$as_ac_var'}'` = yes; then
  14580. cat >>confdefs.h <<_ACEOF
  14581. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14582. _ACEOF
  14583. fi
  14584. done
  14585. { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  14586. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
  14587. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  14588. echo $ECHO_N "(cached) $ECHO_C" >&6
  14589. else
  14590. cat >conftest.$ac_ext <<_ACEOF
  14591. /* confdefs.h. */
  14592. _ACEOF
  14593. cat confdefs.h >>conftest.$ac_ext
  14594. cat >>conftest.$ac_ext <<_ACEOF
  14595. /* end confdefs.h. */
  14596. #include <stdio.h>
  14597. int
  14598. main ()
  14599. {
  14600. #ifndef _snprintf
  14601. char *p = (char *) _snprintf;
  14602. #endif
  14603. ;
  14604. return 0;
  14605. }
  14606. _ACEOF
  14607. rm -f conftest.$ac_objext
  14608. if { (ac_try="$ac_compile"
  14609. case "(($ac_try" in
  14610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14611. *) ac_try_echo=$ac_try;;
  14612. esac
  14613. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14614. (eval "$ac_compile") 2>conftest.er1
  14615. ac_status=$?
  14616. grep -v '^ *+' conftest.er1 >conftest.err
  14617. rm -f conftest.er1
  14618. cat conftest.err >&5
  14619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14620. (exit $ac_status); } && {
  14621. test -z "$ac_cxx_werror_flag" ||
  14622. test ! -s conftest.err
  14623. } && test -s conftest.$ac_objext; then
  14624. ac_cv_have_decl__snprintf=yes
  14625. else
  14626. echo "$as_me: failed program was:" >&5
  14627. sed 's/^/| /' conftest.$ac_ext >&5
  14628. ac_cv_have_decl__snprintf=no
  14629. fi
  14630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14631. fi
  14632. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  14633. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
  14634. if test $ac_cv_have_decl__snprintf = yes; then
  14635. gt_value=1
  14636. else
  14637. gt_value=0
  14638. fi
  14639. cat >>confdefs.h <<_ACEOF
  14640. #define HAVE_DECL__SNPRINTF $gt_value
  14641. _ACEOF
  14642. { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  14643. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
  14644. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  14645. echo $ECHO_N "(cached) $ECHO_C" >&6
  14646. else
  14647. cat >conftest.$ac_ext <<_ACEOF
  14648. /* confdefs.h. */
  14649. _ACEOF
  14650. cat confdefs.h >>conftest.$ac_ext
  14651. cat >>conftest.$ac_ext <<_ACEOF
  14652. /* end confdefs.h. */
  14653. #include <stdio.h>
  14654. int
  14655. main ()
  14656. {
  14657. #ifndef _snwprintf
  14658. char *p = (char *) _snwprintf;
  14659. #endif
  14660. ;
  14661. return 0;
  14662. }
  14663. _ACEOF
  14664. rm -f conftest.$ac_objext
  14665. if { (ac_try="$ac_compile"
  14666. case "(($ac_try" in
  14667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14668. *) ac_try_echo=$ac_try;;
  14669. esac
  14670. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14671. (eval "$ac_compile") 2>conftest.er1
  14672. ac_status=$?
  14673. grep -v '^ *+' conftest.er1 >conftest.err
  14674. rm -f conftest.er1
  14675. cat conftest.err >&5
  14676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14677. (exit $ac_status); } && {
  14678. test -z "$ac_cxx_werror_flag" ||
  14679. test ! -s conftest.err
  14680. } && test -s conftest.$ac_objext; then
  14681. ac_cv_have_decl__snwprintf=yes
  14682. else
  14683. echo "$as_me: failed program was:" >&5
  14684. sed 's/^/| /' conftest.$ac_ext >&5
  14685. ac_cv_have_decl__snwprintf=no
  14686. fi
  14687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14688. fi
  14689. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  14690. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
  14691. if test $ac_cv_have_decl__snwprintf = yes; then
  14692. gt_value=1
  14693. else
  14694. gt_value=0
  14695. fi
  14696. cat >>confdefs.h <<_ACEOF
  14697. #define HAVE_DECL__SNWPRINTF $gt_value
  14698. _ACEOF
  14699. { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  14700. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
  14701. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  14702. echo $ECHO_N "(cached) $ECHO_C" >&6
  14703. else
  14704. cat >conftest.$ac_ext <<_ACEOF
  14705. /* confdefs.h. */
  14706. _ACEOF
  14707. cat confdefs.h >>conftest.$ac_ext
  14708. cat >>conftest.$ac_ext <<_ACEOF
  14709. /* end confdefs.h. */
  14710. #include <stdio.h>
  14711. int
  14712. main ()
  14713. {
  14714. #ifndef getc_unlocked
  14715. char *p = (char *) getc_unlocked;
  14716. #endif
  14717. ;
  14718. return 0;
  14719. }
  14720. _ACEOF
  14721. rm -f conftest.$ac_objext
  14722. if { (ac_try="$ac_compile"
  14723. case "(($ac_try" in
  14724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14725. *) ac_try_echo=$ac_try;;
  14726. esac
  14727. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14728. (eval "$ac_compile") 2>conftest.er1
  14729. ac_status=$?
  14730. grep -v '^ *+' conftest.er1 >conftest.err
  14731. rm -f conftest.er1
  14732. cat conftest.err >&5
  14733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14734. (exit $ac_status); } && {
  14735. test -z "$ac_cxx_werror_flag" ||
  14736. test ! -s conftest.err
  14737. } && test -s conftest.$ac_objext; then
  14738. ac_cv_have_decl_getc_unlocked=yes
  14739. else
  14740. echo "$as_me: failed program was:" >&5
  14741. sed 's/^/| /' conftest.$ac_ext >&5
  14742. ac_cv_have_decl_getc_unlocked=no
  14743. fi
  14744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14745. fi
  14746. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  14747. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
  14748. if test $ac_cv_have_decl_getc_unlocked = yes; then
  14749. gt_value=1
  14750. else
  14751. gt_value=0
  14752. fi
  14753. cat >>confdefs.h <<_ACEOF
  14754. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  14755. _ACEOF
  14756. case $gt_cv_func_printf_posix in
  14757. *yes) HAVE_POSIX_PRINTF=1 ;;
  14758. *) HAVE_POSIX_PRINTF=0 ;;
  14759. esac
  14760. if test "$ac_cv_func_asprintf" = yes; then
  14761. HAVE_ASPRINTF=1
  14762. else
  14763. HAVE_ASPRINTF=0
  14764. fi
  14765. if test "$ac_cv_func_snprintf" = yes; then
  14766. HAVE_SNPRINTF=1
  14767. else
  14768. HAVE_SNPRINTF=0
  14769. fi
  14770. if test "$ac_cv_func_wprintf" = yes; then
  14771. HAVE_WPRINTF=1
  14772. else
  14773. HAVE_WPRINTF=0
  14774. fi
  14775. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  14776. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  14777. if test "${am_cv_langinfo_codeset+set}" = set; then
  14778. echo $ECHO_N "(cached) $ECHO_C" >&6
  14779. else
  14780. cat >conftest.$ac_ext <<_ACEOF
  14781. /* confdefs.h. */
  14782. _ACEOF
  14783. cat confdefs.h >>conftest.$ac_ext
  14784. cat >>conftest.$ac_ext <<_ACEOF
  14785. /* end confdefs.h. */
  14786. #include <langinfo.h>
  14787. int
  14788. main ()
  14789. {
  14790. char* cs = nl_langinfo(CODESET); return !cs;
  14791. ;
  14792. return 0;
  14793. }
  14794. _ACEOF
  14795. rm -f conftest.$ac_objext conftest$ac_exeext
  14796. if { (ac_try="$ac_link"
  14797. case "(($ac_try" in
  14798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14799. *) ac_try_echo=$ac_try;;
  14800. esac
  14801. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14802. (eval "$ac_link") 2>conftest.er1
  14803. ac_status=$?
  14804. grep -v '^ *+' conftest.er1 >conftest.err
  14805. rm -f conftest.er1
  14806. cat conftest.err >&5
  14807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14808. (exit $ac_status); } && {
  14809. test -z "$ac_cxx_werror_flag" ||
  14810. test ! -s conftest.err
  14811. } && test -s conftest$ac_exeext &&
  14812. $as_test_x conftest$ac_exeext; then
  14813. am_cv_langinfo_codeset=yes
  14814. else
  14815. echo "$as_me: failed program was:" >&5
  14816. sed 's/^/| /' conftest.$ac_ext >&5
  14817. am_cv_langinfo_codeset=no
  14818. fi
  14819. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14820. conftest$ac_exeext conftest.$ac_ext
  14821. fi
  14822. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  14823. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  14824. if test $am_cv_langinfo_codeset = yes; then
  14825. cat >>confdefs.h <<\_ACEOF
  14826. #define HAVE_LANGINFO_CODESET 1
  14827. _ACEOF
  14828. fi
  14829. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  14830. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  14831. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  14832. echo $ECHO_N "(cached) $ECHO_C" >&6
  14833. else
  14834. cat >conftest.$ac_ext <<_ACEOF
  14835. /* confdefs.h. */
  14836. _ACEOF
  14837. cat confdefs.h >>conftest.$ac_ext
  14838. cat >>conftest.$ac_ext <<_ACEOF
  14839. /* end confdefs.h. */
  14840. #include <locale.h>
  14841. int
  14842. main ()
  14843. {
  14844. return LC_MESSAGES
  14845. ;
  14846. return 0;
  14847. }
  14848. _ACEOF
  14849. rm -f conftest.$ac_objext conftest$ac_exeext
  14850. if { (ac_try="$ac_link"
  14851. case "(($ac_try" in
  14852. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14853. *) ac_try_echo=$ac_try;;
  14854. esac
  14855. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14856. (eval "$ac_link") 2>conftest.er1
  14857. ac_status=$?
  14858. grep -v '^ *+' conftest.er1 >conftest.err
  14859. rm -f conftest.er1
  14860. cat conftest.err >&5
  14861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14862. (exit $ac_status); } && {
  14863. test -z "$ac_cxx_werror_flag" ||
  14864. test ! -s conftest.err
  14865. } && test -s conftest$ac_exeext &&
  14866. $as_test_x conftest$ac_exeext; then
  14867. gt_cv_val_LC_MESSAGES=yes
  14868. else
  14869. echo "$as_me: failed program was:" >&5
  14870. sed 's/^/| /' conftest.$ac_ext >&5
  14871. gt_cv_val_LC_MESSAGES=no
  14872. fi
  14873. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14874. conftest$ac_exeext conftest.$ac_ext
  14875. fi
  14876. { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  14877. echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
  14878. if test $gt_cv_val_LC_MESSAGES = yes; then
  14879. cat >>confdefs.h <<\_ACEOF
  14880. #define HAVE_LC_MESSAGES 1
  14881. _ACEOF
  14882. fi
  14883. if test "$enable_shared" = yes; then
  14884. case "$host_os" in
  14885. mingw* | cygwin*) is_woe32dll=yes ;;
  14886. *) is_woe32dll=no ;;
  14887. esac
  14888. else
  14889. is_woe32dll=no
  14890. fi
  14891. WOE32DLL=$is_woe32dll
  14892. case "$host_os" in
  14893. mingw* | cygwin*) is_woe32=yes ;;
  14894. *) is_woe32=no ;;
  14895. esac
  14896. WOE32=$is_woe32
  14897. if test $WOE32 = yes; then
  14898. if test -n "$ac_tool_prefix"; then
  14899. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  14900. set dummy ${ac_tool_prefix}windres; ac_word=$2
  14901. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  14902. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14903. if test "${ac_cv_prog_WINDRES+set}" = set; then
  14904. echo $ECHO_N "(cached) $ECHO_C" >&6
  14905. else
  14906. if test -n "$WINDRES"; then
  14907. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  14908. else
  14909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14910. for as_dir in $PATH
  14911. do
  14912. IFS=$as_save_IFS
  14913. test -z "$as_dir" && as_dir=.
  14914. for ac_exec_ext in '' $ac_executable_extensions; do
  14915. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14916. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  14917. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14918. break 2
  14919. fi
  14920. done
  14921. done
  14922. IFS=$as_save_IFS
  14923. fi
  14924. fi
  14925. WINDRES=$ac_cv_prog_WINDRES
  14926. if test -n "$WINDRES"; then
  14927. { echo "$as_me:$LINENO: result: $WINDRES" >&5
  14928. echo "${ECHO_T}$WINDRES" >&6; }
  14929. else
  14930. { echo "$as_me:$LINENO: result: no" >&5
  14931. echo "${ECHO_T}no" >&6; }
  14932. fi
  14933. fi
  14934. if test -z "$ac_cv_prog_WINDRES"; then
  14935. ac_ct_WINDRES=$WINDRES
  14936. # Extract the first word of "windres", so it can be a program name with args.
  14937. set dummy windres; ac_word=$2
  14938. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  14939. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14940. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  14941. echo $ECHO_N "(cached) $ECHO_C" >&6
  14942. else
  14943. if test -n "$ac_ct_WINDRES"; then
  14944. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  14945. else
  14946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14947. for as_dir in $PATH
  14948. do
  14949. IFS=$as_save_IFS
  14950. test -z "$as_dir" && as_dir=.
  14951. for ac_exec_ext in '' $ac_executable_extensions; do
  14952. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14953. ac_cv_prog_ac_ct_WINDRES="windres"
  14954. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14955. break 2
  14956. fi
  14957. done
  14958. done
  14959. IFS=$as_save_IFS
  14960. fi
  14961. fi
  14962. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  14963. if test -n "$ac_ct_WINDRES"; then
  14964. { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  14965. echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
  14966. else
  14967. { echo "$as_me:$LINENO: result: no" >&5
  14968. echo "${ECHO_T}no" >&6; }
  14969. fi
  14970. if test "x$ac_ct_WINDRES" = x; then
  14971. WINDRES=""
  14972. else
  14973. case $cross_compiling:$ac_tool_warned in
  14974. yes:)
  14975. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  14976. whose name does not start with the host triplet. If you think this
  14977. configuration is useful to you, please write to autoconf@gnu.org." >&5
  14978. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  14979. whose name does not start with the host triplet. If you think this
  14980. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  14981. ac_tool_warned=yes ;;
  14982. esac
  14983. WINDRES=$ac_ct_WINDRES
  14984. fi
  14985. else
  14986. WINDRES="$ac_cv_prog_WINDRES"
  14987. fi
  14988. fi
  14989. case "$host_os" in
  14990. hpux*) LTLIBC="" ;;
  14991. *) LTLIBC="-lc" ;;
  14992. esac
  14993. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  14994. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  14995. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  14996. echo $ECHO_N "(cached) $ECHO_C" >&6
  14997. else
  14998. gt_save_LIBS="$LIBS"
  14999. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15000. cat >conftest.$ac_ext <<_ACEOF
  15001. /* confdefs.h. */
  15002. _ACEOF
  15003. cat confdefs.h >>conftest.$ac_ext
  15004. cat >>conftest.$ac_ext <<_ACEOF
  15005. /* end confdefs.h. */
  15006. #include <CoreFoundation/CFPreferences.h>
  15007. int
  15008. main ()
  15009. {
  15010. CFPreferencesCopyAppValue(NULL, NULL)
  15011. ;
  15012. return 0;
  15013. }
  15014. _ACEOF
  15015. rm -f conftest.$ac_objext conftest$ac_exeext
  15016. if { (ac_try="$ac_link"
  15017. case "(($ac_try" in
  15018. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15019. *) ac_try_echo=$ac_try;;
  15020. esac
  15021. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15022. (eval "$ac_link") 2>conftest.er1
  15023. ac_status=$?
  15024. grep -v '^ *+' conftest.er1 >conftest.err
  15025. rm -f conftest.er1
  15026. cat conftest.err >&5
  15027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15028. (exit $ac_status); } && {
  15029. test -z "$ac_cxx_werror_flag" ||
  15030. test ! -s conftest.err
  15031. } && test -s conftest$ac_exeext &&
  15032. $as_test_x conftest$ac_exeext; then
  15033. gt_cv_func_CFPreferencesCopyAppValue=yes
  15034. else
  15035. echo "$as_me: failed program was:" >&5
  15036. sed 's/^/| /' conftest.$ac_ext >&5
  15037. gt_cv_func_CFPreferencesCopyAppValue=no
  15038. fi
  15039. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15040. conftest$ac_exeext conftest.$ac_ext
  15041. LIBS="$gt_save_LIBS"
  15042. fi
  15043. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  15044. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  15045. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  15046. cat >>confdefs.h <<\_ACEOF
  15047. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  15048. _ACEOF
  15049. fi
  15050. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  15051. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  15052. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  15053. echo $ECHO_N "(cached) $ECHO_C" >&6
  15054. else
  15055. gt_save_LIBS="$LIBS"
  15056. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15057. cat >conftest.$ac_ext <<_ACEOF
  15058. /* confdefs.h. */
  15059. _ACEOF
  15060. cat confdefs.h >>conftest.$ac_ext
  15061. cat >>conftest.$ac_ext <<_ACEOF
  15062. /* end confdefs.h. */
  15063. #include <CoreFoundation/CFLocale.h>
  15064. int
  15065. main ()
  15066. {
  15067. CFLocaleCopyCurrent();
  15068. ;
  15069. return 0;
  15070. }
  15071. _ACEOF
  15072. rm -f conftest.$ac_objext conftest$ac_exeext
  15073. if { (ac_try="$ac_link"
  15074. case "(($ac_try" in
  15075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15076. *) ac_try_echo=$ac_try;;
  15077. esac
  15078. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15079. (eval "$ac_link") 2>conftest.er1
  15080. ac_status=$?
  15081. grep -v '^ *+' conftest.er1 >conftest.err
  15082. rm -f conftest.er1
  15083. cat conftest.err >&5
  15084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15085. (exit $ac_status); } && {
  15086. test -z "$ac_cxx_werror_flag" ||
  15087. test ! -s conftest.err
  15088. } && test -s conftest$ac_exeext &&
  15089. $as_test_x conftest$ac_exeext; then
  15090. gt_cv_func_CFLocaleCopyCurrent=yes
  15091. else
  15092. echo "$as_me: failed program was:" >&5
  15093. sed 's/^/| /' conftest.$ac_ext >&5
  15094. gt_cv_func_CFLocaleCopyCurrent=no
  15095. fi
  15096. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15097. conftest$ac_exeext conftest.$ac_ext
  15098. LIBS="$gt_save_LIBS"
  15099. fi
  15100. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  15101. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  15102. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15103. cat >>confdefs.h <<\_ACEOF
  15104. #define HAVE_CFLOCALECOPYCURRENT 1
  15105. _ACEOF
  15106. fi
  15107. INTL_MACOSX_LIBS=
  15108. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15109. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  15110. fi
  15111. BUILD_INCLUDED_LIBINTL=no
  15112. USE_INCLUDED_LIBINTL=no
  15113. LIBINTL=
  15114. LTLIBINTL=
  15115. POSUB=
  15116. case " $gt_needs " in
  15117. *" need-formatstring-macros "*) gt_api_version=3 ;;
  15118. *" need-ngettext "*) gt_api_version=2 ;;
  15119. *) gt_api_version=1 ;;
  15120. esac
  15121. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  15122. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  15123. if test "$USE_NLS" = "yes"; then
  15124. gt_use_preinstalled_gnugettext=no
  15125. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  15126. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  15127. # Check whether --with-included-gettext was given.
  15128. if test "${with_included_gettext+set}" = set; then
  15129. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  15130. else
  15131. nls_cv_force_use_gnu_gettext=no
  15132. fi
  15133. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  15134. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  15135. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  15136. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  15137. if test $gt_api_version -ge 3; then
  15138. gt_revision_test_code='
  15139. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  15140. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  15141. #endif
  15142. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  15143. '
  15144. else
  15145. gt_revision_test_code=
  15146. fi
  15147. if test $gt_api_version -ge 2; then
  15148. gt_expression_test_code=' + * ngettext ("", "", 0)'
  15149. else
  15150. gt_expression_test_code=
  15151. fi
  15152. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  15153. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  15154. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  15155. echo $ECHO_N "(cached) $ECHO_C" >&6
  15156. else
  15157. cat >conftest.$ac_ext <<_ACEOF
  15158. /* confdefs.h. */
  15159. _ACEOF
  15160. cat confdefs.h >>conftest.$ac_ext
  15161. cat >>conftest.$ac_ext <<_ACEOF
  15162. /* end confdefs.h. */
  15163. #include <libintl.h>
  15164. $gt_revision_test_code
  15165. extern int _nl_msg_cat_cntr;
  15166. extern int *_nl_domain_bindings;
  15167. int
  15168. main ()
  15169. {
  15170. bindtextdomain ("", "");
  15171. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  15172. ;
  15173. return 0;
  15174. }
  15175. _ACEOF
  15176. rm -f conftest.$ac_objext conftest$ac_exeext
  15177. if { (ac_try="$ac_link"
  15178. case "(($ac_try" in
  15179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15180. *) ac_try_echo=$ac_try;;
  15181. esac
  15182. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15183. (eval "$ac_link") 2>conftest.er1
  15184. ac_status=$?
  15185. grep -v '^ *+' conftest.er1 >conftest.err
  15186. rm -f conftest.er1
  15187. cat conftest.err >&5
  15188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15189. (exit $ac_status); } && {
  15190. test -z "$ac_cxx_werror_flag" ||
  15191. test ! -s conftest.err
  15192. } && test -s conftest$ac_exeext &&
  15193. $as_test_x conftest$ac_exeext; then
  15194. eval "$gt_func_gnugettext_libc=yes"
  15195. else
  15196. echo "$as_me: failed program was:" >&5
  15197. sed 's/^/| /' conftest.$ac_ext >&5
  15198. eval "$gt_func_gnugettext_libc=no"
  15199. fi
  15200. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15201. conftest$ac_exeext conftest.$ac_ext
  15202. fi
  15203. ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
  15204. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15205. echo "${ECHO_T}$ac_res" >&6; }
  15206. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  15207. use_additional=yes
  15208. acl_save_prefix="$prefix"
  15209. prefix="$acl_final_prefix"
  15210. acl_save_exec_prefix="$exec_prefix"
  15211. exec_prefix="$acl_final_exec_prefix"
  15212. eval additional_includedir=\"$includedir\"
  15213. eval additional_libdir=\"$libdir\"
  15214. exec_prefix="$acl_save_exec_prefix"
  15215. prefix="$acl_save_prefix"
  15216. # Check whether --with-libintl-prefix was given.
  15217. if test "${with_libintl_prefix+set}" = set; then
  15218. withval=$with_libintl_prefix;
  15219. if test "X$withval" = "Xno"; then
  15220. use_additional=no
  15221. else
  15222. if test "X$withval" = "X"; then
  15223. acl_save_prefix="$prefix"
  15224. prefix="$acl_final_prefix"
  15225. acl_save_exec_prefix="$exec_prefix"
  15226. exec_prefix="$acl_final_exec_prefix"
  15227. eval additional_includedir=\"$includedir\"
  15228. eval additional_libdir=\"$libdir\"
  15229. exec_prefix="$acl_save_exec_prefix"
  15230. prefix="$acl_save_prefix"
  15231. else
  15232. additional_includedir="$withval/include"
  15233. additional_libdir="$withval/$acl_libdirstem"
  15234. fi
  15235. fi
  15236. fi
  15237. LIBINTL=
  15238. LTLIBINTL=
  15239. INCINTL=
  15240. LIBINTL_PREFIX=
  15241. rpathdirs=
  15242. ltrpathdirs=
  15243. names_already_handled=
  15244. names_next_round='intl '
  15245. while test -n "$names_next_round"; do
  15246. names_this_round="$names_next_round"
  15247. names_next_round=
  15248. for name in $names_this_round; do
  15249. already_handled=
  15250. for n in $names_already_handled; do
  15251. if test "$n" = "$name"; then
  15252. already_handled=yes
  15253. break
  15254. fi
  15255. done
  15256. if test -z "$already_handled"; then
  15257. names_already_handled="$names_already_handled $name"
  15258. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  15259. eval value=\"\$HAVE_LIB$uppername\"
  15260. if test -n "$value"; then
  15261. if test "$value" = yes; then
  15262. eval value=\"\$LIB$uppername\"
  15263. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  15264. eval value=\"\$LTLIB$uppername\"
  15265. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  15266. else
  15267. :
  15268. fi
  15269. else
  15270. found_dir=
  15271. found_la=
  15272. found_so=
  15273. found_a=
  15274. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  15275. if test -n "$acl_shlibext"; then
  15276. shrext=".$acl_shlibext" # typically: shrext=.so
  15277. else
  15278. shrext=
  15279. fi
  15280. if test $use_additional = yes; then
  15281. dir="$additional_libdir"
  15282. if test -n "$acl_shlibext"; then
  15283. if test -f "$dir/$libname$shrext"; then
  15284. found_dir="$dir"
  15285. found_so="$dir/$libname$shrext"
  15286. else
  15287. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15288. ver=`(cd "$dir" && \
  15289. for f in "$libname$shrext".*; do echo "$f"; done \
  15290. | sed -e "s,^$libname$shrext\\\\.,," \
  15291. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15292. | sed 1q ) 2>/dev/null`
  15293. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15294. found_dir="$dir"
  15295. found_so="$dir/$libname$shrext.$ver"
  15296. fi
  15297. else
  15298. eval library_names=\"$acl_library_names_spec\"
  15299. for f in $library_names; do
  15300. if test -f "$dir/$f"; then
  15301. found_dir="$dir"
  15302. found_so="$dir/$f"
  15303. break
  15304. fi
  15305. done
  15306. fi
  15307. fi
  15308. fi
  15309. if test "X$found_dir" = "X"; then
  15310. if test -f "$dir/$libname.$acl_libext"; then
  15311. found_dir="$dir"
  15312. found_a="$dir/$libname.$acl_libext"
  15313. fi
  15314. fi
  15315. if test "X$found_dir" != "X"; then
  15316. if test -f "$dir/$libname.la"; then
  15317. found_la="$dir/$libname.la"
  15318. fi
  15319. fi
  15320. fi
  15321. if test "X$found_dir" = "X"; then
  15322. for x in $LDFLAGS $LTLIBINTL; do
  15323. acl_save_prefix="$prefix"
  15324. prefix="$acl_final_prefix"
  15325. acl_save_exec_prefix="$exec_prefix"
  15326. exec_prefix="$acl_final_exec_prefix"
  15327. eval x=\"$x\"
  15328. exec_prefix="$acl_save_exec_prefix"
  15329. prefix="$acl_save_prefix"
  15330. case "$x" in
  15331. -L*)
  15332. dir=`echo "X$x" | sed -e 's/^X-L//'`
  15333. if test -n "$acl_shlibext"; then
  15334. if test -f "$dir/$libname$shrext"; then
  15335. found_dir="$dir"
  15336. found_so="$dir/$libname$shrext"
  15337. else
  15338. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15339. ver=`(cd "$dir" && \
  15340. for f in "$libname$shrext".*; do echo "$f"; done \
  15341. | sed -e "s,^$libname$shrext\\\\.,," \
  15342. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15343. | sed 1q ) 2>/dev/null`
  15344. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15345. found_dir="$dir"
  15346. found_so="$dir/$libname$shrext.$ver"
  15347. fi
  15348. else
  15349. eval library_names=\"$acl_library_names_spec\"
  15350. for f in $library_names; do
  15351. if test -f "$dir/$f"; then
  15352. found_dir="$dir"
  15353. found_so="$dir/$f"
  15354. break
  15355. fi
  15356. done
  15357. fi
  15358. fi
  15359. fi
  15360. if test "X$found_dir" = "X"; then
  15361. if test -f "$dir/$libname.$acl_libext"; then
  15362. found_dir="$dir"
  15363. found_a="$dir/$libname.$acl_libext"
  15364. fi
  15365. fi
  15366. if test "X$found_dir" != "X"; then
  15367. if test -f "$dir/$libname.la"; then
  15368. found_la="$dir/$libname.la"
  15369. fi
  15370. fi
  15371. ;;
  15372. esac
  15373. if test "X$found_dir" != "X"; then
  15374. break
  15375. fi
  15376. done
  15377. fi
  15378. if test "X$found_dir" != "X"; then
  15379. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  15380. if test "X$found_so" != "X"; then
  15381. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  15382. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15383. else
  15384. haveit=
  15385. for x in $ltrpathdirs; do
  15386. if test "X$x" = "X$found_dir"; then
  15387. haveit=yes
  15388. break
  15389. fi
  15390. done
  15391. if test -z "$haveit"; then
  15392. ltrpathdirs="$ltrpathdirs $found_dir"
  15393. fi
  15394. if test "$acl_hardcode_direct" = yes; then
  15395. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15396. else
  15397. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  15398. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15399. haveit=
  15400. for x in $rpathdirs; do
  15401. if test "X$x" = "X$found_dir"; then
  15402. haveit=yes
  15403. break
  15404. fi
  15405. done
  15406. if test -z "$haveit"; then
  15407. rpathdirs="$rpathdirs $found_dir"
  15408. fi
  15409. else
  15410. haveit=
  15411. for x in $LDFLAGS $LIBINTL; do
  15412. acl_save_prefix="$prefix"
  15413. prefix="$acl_final_prefix"
  15414. acl_save_exec_prefix="$exec_prefix"
  15415. exec_prefix="$acl_final_exec_prefix"
  15416. eval x=\"$x\"
  15417. exec_prefix="$acl_save_exec_prefix"
  15418. prefix="$acl_save_prefix"
  15419. if test "X$x" = "X-L$found_dir"; then
  15420. haveit=yes
  15421. break
  15422. fi
  15423. done
  15424. if test -z "$haveit"; then
  15425. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  15426. fi
  15427. if test "$acl_hardcode_minus_L" != no; then
  15428. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15429. else
  15430. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15431. fi
  15432. fi
  15433. fi
  15434. fi
  15435. else
  15436. if test "X$found_a" != "X"; then
  15437. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  15438. else
  15439. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  15440. fi
  15441. fi
  15442. additional_includedir=
  15443. case "$found_dir" in
  15444. */$acl_libdirstem | */$acl_libdirstem/)
  15445. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  15446. LIBINTL_PREFIX="$basedir"
  15447. additional_includedir="$basedir/include"
  15448. ;;
  15449. esac
  15450. if test "X$additional_includedir" != "X"; then
  15451. if test "X$additional_includedir" != "X/usr/include"; then
  15452. haveit=
  15453. if test "X$additional_includedir" = "X/usr/local/include"; then
  15454. if test -n "$GCC"; then
  15455. case $host_os in
  15456. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15457. esac
  15458. fi
  15459. fi
  15460. if test -z "$haveit"; then
  15461. for x in $CPPFLAGS $INCINTL; do
  15462. acl_save_prefix="$prefix"
  15463. prefix="$acl_final_prefix"
  15464. acl_save_exec_prefix="$exec_prefix"
  15465. exec_prefix="$acl_final_exec_prefix"
  15466. eval x=\"$x\"
  15467. exec_prefix="$acl_save_exec_prefix"
  15468. prefix="$acl_save_prefix"
  15469. if test "X$x" = "X-I$additional_includedir"; then
  15470. haveit=yes
  15471. break
  15472. fi
  15473. done
  15474. if test -z "$haveit"; then
  15475. if test -d "$additional_includedir"; then
  15476. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  15477. fi
  15478. fi
  15479. fi
  15480. fi
  15481. fi
  15482. if test -n "$found_la"; then
  15483. save_libdir="$libdir"
  15484. case "$found_la" in
  15485. */* | *\\*) . "$found_la" ;;
  15486. *) . "./$found_la" ;;
  15487. esac
  15488. libdir="$save_libdir"
  15489. for dep in $dependency_libs; do
  15490. case "$dep" in
  15491. -L*)
  15492. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  15493. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  15494. haveit=
  15495. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  15496. if test -n "$GCC"; then
  15497. case $host_os in
  15498. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15499. esac
  15500. fi
  15501. fi
  15502. if test -z "$haveit"; then
  15503. haveit=
  15504. for x in $LDFLAGS $LIBINTL; do
  15505. acl_save_prefix="$prefix"
  15506. prefix="$acl_final_prefix"
  15507. acl_save_exec_prefix="$exec_prefix"
  15508. exec_prefix="$acl_final_exec_prefix"
  15509. eval x=\"$x\"
  15510. exec_prefix="$acl_save_exec_prefix"
  15511. prefix="$acl_save_prefix"
  15512. if test "X$x" = "X-L$additional_libdir"; then
  15513. haveit=yes
  15514. break
  15515. fi
  15516. done
  15517. if test -z "$haveit"; then
  15518. if test -d "$additional_libdir"; then
  15519. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  15520. fi
  15521. fi
  15522. haveit=
  15523. for x in $LDFLAGS $LTLIBINTL; do
  15524. acl_save_prefix="$prefix"
  15525. prefix="$acl_final_prefix"
  15526. acl_save_exec_prefix="$exec_prefix"
  15527. exec_prefix="$acl_final_exec_prefix"
  15528. eval x=\"$x\"
  15529. exec_prefix="$acl_save_exec_prefix"
  15530. prefix="$acl_save_prefix"
  15531. if test "X$x" = "X-L$additional_libdir"; then
  15532. haveit=yes
  15533. break
  15534. fi
  15535. done
  15536. if test -z "$haveit"; then
  15537. if test -d "$additional_libdir"; then
  15538. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  15539. fi
  15540. fi
  15541. fi
  15542. fi
  15543. ;;
  15544. -R*)
  15545. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  15546. if test "$enable_rpath" != no; then
  15547. haveit=
  15548. for x in $rpathdirs; do
  15549. if test "X$x" = "X$dir"; then
  15550. haveit=yes
  15551. break
  15552. fi
  15553. done
  15554. if test -z "$haveit"; then
  15555. rpathdirs="$rpathdirs $dir"
  15556. fi
  15557. haveit=
  15558. for x in $ltrpathdirs; do
  15559. if test "X$x" = "X$dir"; then
  15560. haveit=yes
  15561. break
  15562. fi
  15563. done
  15564. if test -z "$haveit"; then
  15565. ltrpathdirs="$ltrpathdirs $dir"
  15566. fi
  15567. fi
  15568. ;;
  15569. -l*)
  15570. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  15571. ;;
  15572. *.la)
  15573. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  15574. ;;
  15575. *)
  15576. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  15577. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  15578. ;;
  15579. esac
  15580. done
  15581. fi
  15582. else
  15583. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15584. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  15585. fi
  15586. fi
  15587. fi
  15588. done
  15589. done
  15590. if test "X$rpathdirs" != "X"; then
  15591. if test -n "$acl_hardcode_libdir_separator"; then
  15592. alldirs=
  15593. for found_dir in $rpathdirs; do
  15594. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  15595. done
  15596. acl_save_libdir="$libdir"
  15597. libdir="$alldirs"
  15598. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15599. libdir="$acl_save_libdir"
  15600. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15601. else
  15602. for found_dir in $rpathdirs; do
  15603. acl_save_libdir="$libdir"
  15604. libdir="$found_dir"
  15605. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15606. libdir="$acl_save_libdir"
  15607. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15608. done
  15609. fi
  15610. fi
  15611. if test "X$ltrpathdirs" != "X"; then
  15612. for found_dir in $ltrpathdirs; do
  15613. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  15614. done
  15615. fi
  15616. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  15617. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  15618. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  15619. echo $ECHO_N "(cached) $ECHO_C" >&6
  15620. else
  15621. gt_save_CPPFLAGS="$CPPFLAGS"
  15622. CPPFLAGS="$CPPFLAGS $INCINTL"
  15623. gt_save_LIBS="$LIBS"
  15624. LIBS="$LIBS $LIBINTL"
  15625. cat >conftest.$ac_ext <<_ACEOF
  15626. /* confdefs.h. */
  15627. _ACEOF
  15628. cat confdefs.h >>conftest.$ac_ext
  15629. cat >>conftest.$ac_ext <<_ACEOF
  15630. /* end confdefs.h. */
  15631. #include <libintl.h>
  15632. $gt_revision_test_code
  15633. extern int _nl_msg_cat_cntr;
  15634. extern
  15635. #ifdef __cplusplus
  15636. "C"
  15637. #endif
  15638. const char *_nl_expand_alias (const char *);
  15639. int
  15640. main ()
  15641. {
  15642. bindtextdomain ("", "");
  15643. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  15644. ;
  15645. return 0;
  15646. }
  15647. _ACEOF
  15648. rm -f conftest.$ac_objext conftest$ac_exeext
  15649. if { (ac_try="$ac_link"
  15650. case "(($ac_try" in
  15651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15652. *) ac_try_echo=$ac_try;;
  15653. esac
  15654. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15655. (eval "$ac_link") 2>conftest.er1
  15656. ac_status=$?
  15657. grep -v '^ *+' conftest.er1 >conftest.err
  15658. rm -f conftest.er1
  15659. cat conftest.err >&5
  15660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15661. (exit $ac_status); } && {
  15662. test -z "$ac_cxx_werror_flag" ||
  15663. test ! -s conftest.err
  15664. } && test -s conftest$ac_exeext &&
  15665. $as_test_x conftest$ac_exeext; then
  15666. eval "$gt_func_gnugettext_libintl=yes"
  15667. else
  15668. echo "$as_me: failed program was:" >&5
  15669. sed 's/^/| /' conftest.$ac_ext >&5
  15670. eval "$gt_func_gnugettext_libintl=no"
  15671. fi
  15672. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15673. conftest$ac_exeext conftest.$ac_ext
  15674. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  15675. LIBS="$LIBS $LIBICONV"
  15676. cat >conftest.$ac_ext <<_ACEOF
  15677. /* confdefs.h. */
  15678. _ACEOF
  15679. cat confdefs.h >>conftest.$ac_ext
  15680. cat >>conftest.$ac_ext <<_ACEOF
  15681. /* end confdefs.h. */
  15682. #include <libintl.h>
  15683. $gt_revision_test_code
  15684. extern int _nl_msg_cat_cntr;
  15685. extern
  15686. #ifdef __cplusplus
  15687. "C"
  15688. #endif
  15689. const char *_nl_expand_alias (const char *);
  15690. int
  15691. main ()
  15692. {
  15693. bindtextdomain ("", "");
  15694. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  15695. ;
  15696. return 0;
  15697. }
  15698. _ACEOF
  15699. rm -f conftest.$ac_objext conftest$ac_exeext
  15700. if { (ac_try="$ac_link"
  15701. case "(($ac_try" in
  15702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15703. *) ac_try_echo=$ac_try;;
  15704. esac
  15705. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15706. (eval "$ac_link") 2>conftest.er1
  15707. ac_status=$?
  15708. grep -v '^ *+' conftest.er1 >conftest.err
  15709. rm -f conftest.er1
  15710. cat conftest.err >&5
  15711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15712. (exit $ac_status); } && {
  15713. test -z "$ac_cxx_werror_flag" ||
  15714. test ! -s conftest.err
  15715. } && test -s conftest$ac_exeext &&
  15716. $as_test_x conftest$ac_exeext; then
  15717. LIBINTL="$LIBINTL $LIBICONV"
  15718. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  15719. eval "$gt_func_gnugettext_libintl=yes"
  15720. else
  15721. echo "$as_me: failed program was:" >&5
  15722. sed 's/^/| /' conftest.$ac_ext >&5
  15723. fi
  15724. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15725. conftest$ac_exeext conftest.$ac_ext
  15726. fi
  15727. CPPFLAGS="$gt_save_CPPFLAGS"
  15728. LIBS="$gt_save_LIBS"
  15729. fi
  15730. ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
  15731. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15732. echo "${ECHO_T}$ac_res" >&6; }
  15733. fi
  15734. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  15735. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  15736. && test "$PACKAGE" != gettext-runtime \
  15737. && test "$PACKAGE" != gettext-tools; }; then
  15738. gt_use_preinstalled_gnugettext=yes
  15739. else
  15740. LIBINTL=
  15741. LTLIBINTL=
  15742. INCINTL=
  15743. fi
  15744. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  15745. nls_cv_use_gnu_gettext=yes
  15746. fi
  15747. fi
  15748. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  15749. BUILD_INCLUDED_LIBINTL=yes
  15750. USE_INCLUDED_LIBINTL=yes
  15751. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  15752. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  15753. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  15754. fi
  15755. CATOBJEXT=
  15756. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15757. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15758. CATOBJEXT=.gmo
  15759. fi
  15760. if test -n "$INTL_MACOSX_LIBS"; then
  15761. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15762. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15763. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  15764. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  15765. fi
  15766. fi
  15767. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15768. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15769. cat >>confdefs.h <<\_ACEOF
  15770. #define ENABLE_NLS 1
  15771. _ACEOF
  15772. else
  15773. USE_NLS=no
  15774. fi
  15775. fi
  15776. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  15777. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  15778. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  15779. echo "${ECHO_T}$USE_NLS" >&6; }
  15780. if test "$USE_NLS" = "yes"; then
  15781. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  15782. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  15783. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  15784. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  15785. gt_source="external libintl"
  15786. else
  15787. gt_source="libc"
  15788. fi
  15789. else
  15790. gt_source="included intl directory"
  15791. fi
  15792. { echo "$as_me:$LINENO: result: $gt_source" >&5
  15793. echo "${ECHO_T}$gt_source" >&6; }
  15794. fi
  15795. if test "$USE_NLS" = "yes"; then
  15796. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  15797. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  15798. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  15799. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  15800. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  15801. echo "${ECHO_T}$LIBINTL" >&6; }
  15802. for element in $INCINTL; do
  15803. haveit=
  15804. for x in $CPPFLAGS; do
  15805. acl_save_prefix="$prefix"
  15806. prefix="$acl_final_prefix"
  15807. acl_save_exec_prefix="$exec_prefix"
  15808. exec_prefix="$acl_final_exec_prefix"
  15809. eval x=\"$x\"
  15810. exec_prefix="$acl_save_exec_prefix"
  15811. prefix="$acl_save_prefix"
  15812. if test "X$x" = "X$element"; then
  15813. haveit=yes
  15814. break
  15815. fi
  15816. done
  15817. if test -z "$haveit"; then
  15818. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  15819. fi
  15820. done
  15821. fi
  15822. cat >>confdefs.h <<\_ACEOF
  15823. #define HAVE_GETTEXT 1
  15824. _ACEOF
  15825. cat >>confdefs.h <<\_ACEOF
  15826. #define HAVE_DCGETTEXT 1
  15827. _ACEOF
  15828. fi
  15829. POSUB=po
  15830. fi
  15831. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  15832. BUILD_INCLUDED_LIBINTL=yes
  15833. fi
  15834. nls_cv_header_intl=
  15835. nls_cv_header_libgt=
  15836. DATADIRNAME=share
  15837. INSTOBJEXT=.mo
  15838. GENCAT=gencat
  15839. INTLOBJS=
  15840. if test "$USE_INCLUDED_LIBINTL" = yes; then
  15841. INTLOBJS="\$(GETTOBJS)"
  15842. fi
  15843. INTL_LIBTOOL_SUFFIX_PREFIX=
  15844. INTLLIBS="$LIBINTL"
  15845. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  15846. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  15847. if test "${ac_cv_lib_error_at_line+set}" = set; then
  15848. echo $ECHO_N "(cached) $ECHO_C" >&6
  15849. else
  15850. cat >conftest.$ac_ext <<_ACEOF
  15851. /* confdefs.h. */
  15852. _ACEOF
  15853. cat confdefs.h >>conftest.$ac_ext
  15854. cat >>conftest.$ac_ext <<_ACEOF
  15855. /* end confdefs.h. */
  15856. #include <error.h>
  15857. int
  15858. main ()
  15859. {
  15860. error_at_line (0, 0, "", 0, "an error occurred");
  15861. ;
  15862. return 0;
  15863. }
  15864. _ACEOF
  15865. rm -f conftest.$ac_objext conftest$ac_exeext
  15866. if { (ac_try="$ac_link"
  15867. case "(($ac_try" in
  15868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15869. *) ac_try_echo=$ac_try;;
  15870. esac
  15871. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15872. (eval "$ac_link") 2>conftest.er1
  15873. ac_status=$?
  15874. grep -v '^ *+' conftest.er1 >conftest.err
  15875. rm -f conftest.er1
  15876. cat conftest.err >&5
  15877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15878. (exit $ac_status); } && {
  15879. test -z "$ac_cxx_werror_flag" ||
  15880. test ! -s conftest.err
  15881. } && test -s conftest$ac_exeext &&
  15882. $as_test_x conftest$ac_exeext; then
  15883. ac_cv_lib_error_at_line=yes
  15884. else
  15885. echo "$as_me: failed program was:" >&5
  15886. sed 's/^/| /' conftest.$ac_ext >&5
  15887. ac_cv_lib_error_at_line=no
  15888. fi
  15889. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15890. conftest$ac_exeext conftest.$ac_ext
  15891. fi
  15892. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  15893. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  15894. if test $ac_cv_lib_error_at_line = no; then
  15895. case " $LIBOBJS " in
  15896. *" error.$ac_objext "* ) ;;
  15897. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  15898. ;;
  15899. esac
  15900. fi
  15901. if test $ac_cv_c_compiler_gnu = yes; then
  15902. { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  15903. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
  15904. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  15905. echo $ECHO_N "(cached) $ECHO_C" >&6
  15906. else
  15907. ac_pattern="Autoconf.*'x'"
  15908. cat >conftest.$ac_ext <<_ACEOF
  15909. /* confdefs.h. */
  15910. _ACEOF
  15911. cat confdefs.h >>conftest.$ac_ext
  15912. cat >>conftest.$ac_ext <<_ACEOF
  15913. /* end confdefs.h. */
  15914. #include <sgtty.h>
  15915. Autoconf TIOCGETP
  15916. _ACEOF
  15917. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15918. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  15919. ac_cv_prog_gcc_traditional=yes
  15920. else
  15921. ac_cv_prog_gcc_traditional=no
  15922. fi
  15923. rm -f conftest*
  15924. if test $ac_cv_prog_gcc_traditional = no; then
  15925. cat >conftest.$ac_ext <<_ACEOF
  15926. /* confdefs.h. */
  15927. _ACEOF
  15928. cat confdefs.h >>conftest.$ac_ext
  15929. cat >>conftest.$ac_ext <<_ACEOF
  15930. /* end confdefs.h. */
  15931. #include <termio.h>
  15932. Autoconf TCGETA
  15933. _ACEOF
  15934. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15935. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  15936. ac_cv_prog_gcc_traditional=yes
  15937. fi
  15938. rm -f conftest*
  15939. fi
  15940. fi
  15941. { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  15942. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
  15943. if test $ac_cv_prog_gcc_traditional = yes; then
  15944. CC="$CC -traditional"
  15945. fi
  15946. fi
  15947. case "$target" in
  15948. *mingw*)
  15949. ;;
  15950. *)
  15951. for ac_header in stdlib.h
  15952. do
  15953. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15954. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15955. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15956. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15957. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15958. echo $ECHO_N "(cached) $ECHO_C" >&6
  15959. fi
  15960. ac_res=`eval echo '${'$as_ac_Header'}'`
  15961. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15962. echo "${ECHO_T}$ac_res" >&6; }
  15963. else
  15964. # Is the header compilable?
  15965. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15966. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  15967. cat >conftest.$ac_ext <<_ACEOF
  15968. /* confdefs.h. */
  15969. _ACEOF
  15970. cat confdefs.h >>conftest.$ac_ext
  15971. cat >>conftest.$ac_ext <<_ACEOF
  15972. /* end confdefs.h. */
  15973. $ac_includes_default
  15974. #include <$ac_header>
  15975. _ACEOF
  15976. rm -f conftest.$ac_objext
  15977. if { (ac_try="$ac_compile"
  15978. case "(($ac_try" in
  15979. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15980. *) ac_try_echo=$ac_try;;
  15981. esac
  15982. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15983. (eval "$ac_compile") 2>conftest.er1
  15984. ac_status=$?
  15985. grep -v '^ *+' conftest.er1 >conftest.err
  15986. rm -f conftest.er1
  15987. cat conftest.err >&5
  15988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15989. (exit $ac_status); } && {
  15990. test -z "$ac_cxx_werror_flag" ||
  15991. test ! -s conftest.err
  15992. } && test -s conftest.$ac_objext; then
  15993. ac_header_compiler=yes
  15994. else
  15995. echo "$as_me: failed program was:" >&5
  15996. sed 's/^/| /' conftest.$ac_ext >&5
  15997. ac_header_compiler=no
  15998. fi
  15999. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16000. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16001. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16002. # Is the header present?
  16003. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16004. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16005. cat >conftest.$ac_ext <<_ACEOF
  16006. /* confdefs.h. */
  16007. _ACEOF
  16008. cat confdefs.h >>conftest.$ac_ext
  16009. cat >>conftest.$ac_ext <<_ACEOF
  16010. /* end confdefs.h. */
  16011. #include <$ac_header>
  16012. _ACEOF
  16013. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16014. case "(($ac_try" in
  16015. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16016. *) ac_try_echo=$ac_try;;
  16017. esac
  16018. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16019. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16020. ac_status=$?
  16021. grep -v '^ *+' conftest.er1 >conftest.err
  16022. rm -f conftest.er1
  16023. cat conftest.err >&5
  16024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16025. (exit $ac_status); } >/dev/null && {
  16026. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16027. test ! -s conftest.err
  16028. }; then
  16029. ac_header_preproc=yes
  16030. else
  16031. echo "$as_me: failed program was:" >&5
  16032. sed 's/^/| /' conftest.$ac_ext >&5
  16033. ac_header_preproc=no
  16034. fi
  16035. rm -f conftest.err conftest.$ac_ext
  16036. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16037. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16038. # So? What about this header?
  16039. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16040. yes:no: )
  16041. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16042. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16043. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16044. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16045. ac_header_preproc=yes
  16046. ;;
  16047. no:yes:* )
  16048. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16049. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16050. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16051. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16052. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16053. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16054. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16055. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16056. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16057. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16058. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16059. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16060. ( cat <<\_ASBOX
  16061. ## ----------------------------------------------- ##
  16062. ## Report this to t-tujikawa@users.sourceforge.net ##
  16063. ## ----------------------------------------------- ##
  16064. _ASBOX
  16065. ) | sed "s/^/$as_me: WARNING: /" >&2
  16066. ;;
  16067. esac
  16068. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16069. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16070. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16071. echo $ECHO_N "(cached) $ECHO_C" >&6
  16072. else
  16073. eval "$as_ac_Header=\$ac_header_preproc"
  16074. fi
  16075. ac_res=`eval echo '${'$as_ac_Header'}'`
  16076. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16077. echo "${ECHO_T}$ac_res" >&6; }
  16078. fi
  16079. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16080. cat >>confdefs.h <<_ACEOF
  16081. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16082. _ACEOF
  16083. fi
  16084. done
  16085. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  16086. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  16087. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  16088. echo $ECHO_N "(cached) $ECHO_C" >&6
  16089. else
  16090. if test "$cross_compiling" = yes; then
  16091. ac_cv_func_malloc_0_nonnull=no
  16092. else
  16093. cat >conftest.$ac_ext <<_ACEOF
  16094. /* confdefs.h. */
  16095. _ACEOF
  16096. cat confdefs.h >>conftest.$ac_ext
  16097. cat >>conftest.$ac_ext <<_ACEOF
  16098. /* end confdefs.h. */
  16099. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16100. # include <stdlib.h>
  16101. #else
  16102. char *malloc ();
  16103. #endif
  16104. int
  16105. main ()
  16106. {
  16107. return ! malloc (0);
  16108. ;
  16109. return 0;
  16110. }
  16111. _ACEOF
  16112. rm -f conftest$ac_exeext
  16113. if { (ac_try="$ac_link"
  16114. case "(($ac_try" in
  16115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16116. *) ac_try_echo=$ac_try;;
  16117. esac
  16118. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16119. (eval "$ac_link") 2>&5
  16120. ac_status=$?
  16121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16122. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16123. { (case "(($ac_try" in
  16124. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16125. *) ac_try_echo=$ac_try;;
  16126. esac
  16127. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16128. (eval "$ac_try") 2>&5
  16129. ac_status=$?
  16130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16131. (exit $ac_status); }; }; then
  16132. ac_cv_func_malloc_0_nonnull=yes
  16133. else
  16134. echo "$as_me: program exited with status $ac_status" >&5
  16135. echo "$as_me: failed program was:" >&5
  16136. sed 's/^/| /' conftest.$ac_ext >&5
  16137. ( exit $ac_status )
  16138. ac_cv_func_malloc_0_nonnull=no
  16139. fi
  16140. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16141. fi
  16142. fi
  16143. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  16144. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  16145. if test $ac_cv_func_malloc_0_nonnull = yes; then
  16146. cat >>confdefs.h <<\_ACEOF
  16147. #define HAVE_MALLOC 1
  16148. _ACEOF
  16149. else
  16150. cat >>confdefs.h <<\_ACEOF
  16151. #define HAVE_MALLOC 0
  16152. _ACEOF
  16153. case " $LIBOBJS " in
  16154. *" malloc.$ac_objext "* ) ;;
  16155. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  16156. ;;
  16157. esac
  16158. cat >>confdefs.h <<\_ACEOF
  16159. #define malloc rpl_malloc
  16160. _ACEOF
  16161. fi
  16162. for ac_header in stdlib.h
  16163. do
  16164. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16165. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16166. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16167. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16168. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16169. echo $ECHO_N "(cached) $ECHO_C" >&6
  16170. fi
  16171. ac_res=`eval echo '${'$as_ac_Header'}'`
  16172. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16173. echo "${ECHO_T}$ac_res" >&6; }
  16174. else
  16175. # Is the header compilable?
  16176. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16177. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16178. cat >conftest.$ac_ext <<_ACEOF
  16179. /* confdefs.h. */
  16180. _ACEOF
  16181. cat confdefs.h >>conftest.$ac_ext
  16182. cat >>conftest.$ac_ext <<_ACEOF
  16183. /* end confdefs.h. */
  16184. $ac_includes_default
  16185. #include <$ac_header>
  16186. _ACEOF
  16187. rm -f conftest.$ac_objext
  16188. if { (ac_try="$ac_compile"
  16189. case "(($ac_try" in
  16190. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16191. *) ac_try_echo=$ac_try;;
  16192. esac
  16193. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16194. (eval "$ac_compile") 2>conftest.er1
  16195. ac_status=$?
  16196. grep -v '^ *+' conftest.er1 >conftest.err
  16197. rm -f conftest.er1
  16198. cat conftest.err >&5
  16199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16200. (exit $ac_status); } && {
  16201. test -z "$ac_cxx_werror_flag" ||
  16202. test ! -s conftest.err
  16203. } && test -s conftest.$ac_objext; then
  16204. ac_header_compiler=yes
  16205. else
  16206. echo "$as_me: failed program was:" >&5
  16207. sed 's/^/| /' conftest.$ac_ext >&5
  16208. ac_header_compiler=no
  16209. fi
  16210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16211. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16212. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16213. # Is the header present?
  16214. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16215. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16216. cat >conftest.$ac_ext <<_ACEOF
  16217. /* confdefs.h. */
  16218. _ACEOF
  16219. cat confdefs.h >>conftest.$ac_ext
  16220. cat >>conftest.$ac_ext <<_ACEOF
  16221. /* end confdefs.h. */
  16222. #include <$ac_header>
  16223. _ACEOF
  16224. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16225. case "(($ac_try" in
  16226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16227. *) ac_try_echo=$ac_try;;
  16228. esac
  16229. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16230. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16231. ac_status=$?
  16232. grep -v '^ *+' conftest.er1 >conftest.err
  16233. rm -f conftest.er1
  16234. cat conftest.err >&5
  16235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16236. (exit $ac_status); } >/dev/null && {
  16237. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16238. test ! -s conftest.err
  16239. }; then
  16240. ac_header_preproc=yes
  16241. else
  16242. echo "$as_me: failed program was:" >&5
  16243. sed 's/^/| /' conftest.$ac_ext >&5
  16244. ac_header_preproc=no
  16245. fi
  16246. rm -f conftest.err conftest.$ac_ext
  16247. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16248. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16249. # So? What about this header?
  16250. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16251. yes:no: )
  16252. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16253. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16254. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16255. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16256. ac_header_preproc=yes
  16257. ;;
  16258. no:yes:* )
  16259. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16260. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16261. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16262. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16263. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16264. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16265. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16266. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16267. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16268. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16269. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16270. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16271. ( cat <<\_ASBOX
  16272. ## ----------------------------------------------- ##
  16273. ## Report this to t-tujikawa@users.sourceforge.net ##
  16274. ## ----------------------------------------------- ##
  16275. _ASBOX
  16276. ) | sed "s/^/$as_me: WARNING: /" >&2
  16277. ;;
  16278. esac
  16279. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16280. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16281. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16282. echo $ECHO_N "(cached) $ECHO_C" >&6
  16283. else
  16284. eval "$as_ac_Header=\$ac_header_preproc"
  16285. fi
  16286. ac_res=`eval echo '${'$as_ac_Header'}'`
  16287. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16288. echo "${ECHO_T}$ac_res" >&6; }
  16289. fi
  16290. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16291. cat >>confdefs.h <<_ACEOF
  16292. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16293. _ACEOF
  16294. fi
  16295. done
  16296. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  16297. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  16298. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  16299. echo $ECHO_N "(cached) $ECHO_C" >&6
  16300. else
  16301. if test "$cross_compiling" = yes; then
  16302. ac_cv_func_realloc_0_nonnull=no
  16303. else
  16304. cat >conftest.$ac_ext <<_ACEOF
  16305. /* confdefs.h. */
  16306. _ACEOF
  16307. cat confdefs.h >>conftest.$ac_ext
  16308. cat >>conftest.$ac_ext <<_ACEOF
  16309. /* end confdefs.h. */
  16310. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16311. # include <stdlib.h>
  16312. #else
  16313. char *realloc ();
  16314. #endif
  16315. int
  16316. main ()
  16317. {
  16318. return ! realloc (0, 0);
  16319. ;
  16320. return 0;
  16321. }
  16322. _ACEOF
  16323. rm -f conftest$ac_exeext
  16324. if { (ac_try="$ac_link"
  16325. case "(($ac_try" in
  16326. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16327. *) ac_try_echo=$ac_try;;
  16328. esac
  16329. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16330. (eval "$ac_link") 2>&5
  16331. ac_status=$?
  16332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16333. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16334. { (case "(($ac_try" in
  16335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16336. *) ac_try_echo=$ac_try;;
  16337. esac
  16338. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16339. (eval "$ac_try") 2>&5
  16340. ac_status=$?
  16341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16342. (exit $ac_status); }; }; then
  16343. ac_cv_func_realloc_0_nonnull=yes
  16344. else
  16345. echo "$as_me: program exited with status $ac_status" >&5
  16346. echo "$as_me: failed program was:" >&5
  16347. sed 's/^/| /' conftest.$ac_ext >&5
  16348. ( exit $ac_status )
  16349. ac_cv_func_realloc_0_nonnull=no
  16350. fi
  16351. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16352. fi
  16353. fi
  16354. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  16355. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  16356. if test $ac_cv_func_realloc_0_nonnull = yes; then
  16357. cat >>confdefs.h <<\_ACEOF
  16358. #define HAVE_REALLOC 1
  16359. _ACEOF
  16360. else
  16361. cat >>confdefs.h <<\_ACEOF
  16362. #define HAVE_REALLOC 0
  16363. _ACEOF
  16364. case " $LIBOBJS " in
  16365. *" realloc.$ac_objext "* ) ;;
  16366. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  16367. ;;
  16368. esac
  16369. cat >>confdefs.h <<\_ACEOF
  16370. #define realloc rpl_realloc
  16371. _ACEOF
  16372. fi
  16373. ;;
  16374. esac
  16375. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  16376. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  16377. if test "${ac_cv_func_memcmp_working+set}" = set; then
  16378. echo $ECHO_N "(cached) $ECHO_C" >&6
  16379. else
  16380. if test "$cross_compiling" = yes; then
  16381. ac_cv_func_memcmp_working=no
  16382. else
  16383. cat >conftest.$ac_ext <<_ACEOF
  16384. /* confdefs.h. */
  16385. _ACEOF
  16386. cat confdefs.h >>conftest.$ac_ext
  16387. cat >>conftest.$ac_ext <<_ACEOF
  16388. /* end confdefs.h. */
  16389. $ac_includes_default
  16390. int
  16391. main ()
  16392. {
  16393. /* Some versions of memcmp are not 8-bit clean. */
  16394. char c0 = '\100', c1 = '\200', c2 = '\201';
  16395. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16396. return 1;
  16397. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16398. or more and with at least one buffer not starting on a 4-byte boundary.
  16399. William Lewis provided this test program. */
  16400. {
  16401. char foo[21];
  16402. char bar[21];
  16403. int i;
  16404. for (i = 0; i < 4; i++)
  16405. {
  16406. char *a = foo + i;
  16407. char *b = bar + i;
  16408. strcpy (a, "--------01111111");
  16409. strcpy (b, "--------10000000");
  16410. if (memcmp (a, b, 16) >= 0)
  16411. return 1;
  16412. }
  16413. return 0;
  16414. }
  16415. ;
  16416. return 0;
  16417. }
  16418. _ACEOF
  16419. rm -f conftest$ac_exeext
  16420. if { (ac_try="$ac_link"
  16421. case "(($ac_try" in
  16422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16423. *) ac_try_echo=$ac_try;;
  16424. esac
  16425. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16426. (eval "$ac_link") 2>&5
  16427. ac_status=$?
  16428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16429. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16430. { (case "(($ac_try" in
  16431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16432. *) ac_try_echo=$ac_try;;
  16433. esac
  16434. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16435. (eval "$ac_try") 2>&5
  16436. ac_status=$?
  16437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16438. (exit $ac_status); }; }; then
  16439. ac_cv_func_memcmp_working=yes
  16440. else
  16441. echo "$as_me: program exited with status $ac_status" >&5
  16442. echo "$as_me: failed program was:" >&5
  16443. sed 's/^/| /' conftest.$ac_ext >&5
  16444. ( exit $ac_status )
  16445. ac_cv_func_memcmp_working=no
  16446. fi
  16447. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16448. fi
  16449. fi
  16450. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  16451. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  16452. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16453. *" memcmp.$ac_objext "* ) ;;
  16454. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16455. ;;
  16456. esac
  16457. for ac_header in $ac_header_list
  16458. do
  16459. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16460. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16461. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16462. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16463. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16464. echo $ECHO_N "(cached) $ECHO_C" >&6
  16465. fi
  16466. ac_res=`eval echo '${'$as_ac_Header'}'`
  16467. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16468. echo "${ECHO_T}$ac_res" >&6; }
  16469. else
  16470. # Is the header compilable?
  16471. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16472. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16473. cat >conftest.$ac_ext <<_ACEOF
  16474. /* confdefs.h. */
  16475. _ACEOF
  16476. cat confdefs.h >>conftest.$ac_ext
  16477. cat >>conftest.$ac_ext <<_ACEOF
  16478. /* end confdefs.h. */
  16479. $ac_includes_default
  16480. #include <$ac_header>
  16481. _ACEOF
  16482. rm -f conftest.$ac_objext
  16483. if { (ac_try="$ac_compile"
  16484. case "(($ac_try" in
  16485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16486. *) ac_try_echo=$ac_try;;
  16487. esac
  16488. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16489. (eval "$ac_compile") 2>conftest.er1
  16490. ac_status=$?
  16491. grep -v '^ *+' conftest.er1 >conftest.err
  16492. rm -f conftest.er1
  16493. cat conftest.err >&5
  16494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16495. (exit $ac_status); } && {
  16496. test -z "$ac_cxx_werror_flag" ||
  16497. test ! -s conftest.err
  16498. } && test -s conftest.$ac_objext; then
  16499. ac_header_compiler=yes
  16500. else
  16501. echo "$as_me: failed program was:" >&5
  16502. sed 's/^/| /' conftest.$ac_ext >&5
  16503. ac_header_compiler=no
  16504. fi
  16505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16506. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16507. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16508. # Is the header present?
  16509. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16510. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16511. cat >conftest.$ac_ext <<_ACEOF
  16512. /* confdefs.h. */
  16513. _ACEOF
  16514. cat confdefs.h >>conftest.$ac_ext
  16515. cat >>conftest.$ac_ext <<_ACEOF
  16516. /* end confdefs.h. */
  16517. #include <$ac_header>
  16518. _ACEOF
  16519. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16520. case "(($ac_try" in
  16521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16522. *) ac_try_echo=$ac_try;;
  16523. esac
  16524. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16525. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16526. ac_status=$?
  16527. grep -v '^ *+' conftest.er1 >conftest.err
  16528. rm -f conftest.er1
  16529. cat conftest.err >&5
  16530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16531. (exit $ac_status); } >/dev/null && {
  16532. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16533. test ! -s conftest.err
  16534. }; then
  16535. ac_header_preproc=yes
  16536. else
  16537. echo "$as_me: failed program was:" >&5
  16538. sed 's/^/| /' conftest.$ac_ext >&5
  16539. ac_header_preproc=no
  16540. fi
  16541. rm -f conftest.err conftest.$ac_ext
  16542. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16543. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16544. # So? What about this header?
  16545. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16546. yes:no: )
  16547. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16548. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16549. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16550. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16551. ac_header_preproc=yes
  16552. ;;
  16553. no:yes:* )
  16554. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16555. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16556. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16557. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16558. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16559. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16560. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16561. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16562. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16563. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16564. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16565. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16566. ( cat <<\_ASBOX
  16567. ## ----------------------------------------------- ##
  16568. ## Report this to t-tujikawa@users.sourceforge.net ##
  16569. ## ----------------------------------------------- ##
  16570. _ASBOX
  16571. ) | sed "s/^/$as_me: WARNING: /" >&2
  16572. ;;
  16573. esac
  16574. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16575. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16576. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16577. echo $ECHO_N "(cached) $ECHO_C" >&6
  16578. else
  16579. eval "$as_ac_Header=\$ac_header_preproc"
  16580. fi
  16581. ac_res=`eval echo '${'$as_ac_Header'}'`
  16582. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16583. echo "${ECHO_T}$ac_res" >&6; }
  16584. fi
  16585. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16586. cat >>confdefs.h <<_ACEOF
  16587. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16588. _ACEOF
  16589. fi
  16590. done
  16591. for ac_func in $ac_func_list
  16592. do
  16593. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16594. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16595. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16596. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16597. echo $ECHO_N "(cached) $ECHO_C" >&6
  16598. else
  16599. cat >conftest.$ac_ext <<_ACEOF
  16600. /* confdefs.h. */
  16601. _ACEOF
  16602. cat confdefs.h >>conftest.$ac_ext
  16603. cat >>conftest.$ac_ext <<_ACEOF
  16604. /* end confdefs.h. */
  16605. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16606. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16607. #define $ac_func innocuous_$ac_func
  16608. /* System header to define __stub macros and hopefully few prototypes,
  16609. which can conflict with char $ac_func (); below.
  16610. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16611. <limits.h> exists even on freestanding compilers. */
  16612. #ifdef __STDC__
  16613. # include <limits.h>
  16614. #else
  16615. # include <assert.h>
  16616. #endif
  16617. #undef $ac_func
  16618. /* Override any GCC internal prototype to avoid an error.
  16619. Use char because int might match the return type of a GCC
  16620. builtin and then its argument prototype would still apply. */
  16621. #ifdef __cplusplus
  16622. extern "C"
  16623. #endif
  16624. char $ac_func ();
  16625. /* The GNU C library defines this for functions which it implements
  16626. to always fail with ENOSYS. Some functions are actually named
  16627. something starting with __ and the normal name is an alias. */
  16628. #if defined __stub_$ac_func || defined __stub___$ac_func
  16629. choke me
  16630. #endif
  16631. int
  16632. main ()
  16633. {
  16634. return $ac_func ();
  16635. ;
  16636. return 0;
  16637. }
  16638. _ACEOF
  16639. rm -f conftest.$ac_objext conftest$ac_exeext
  16640. if { (ac_try="$ac_link"
  16641. case "(($ac_try" in
  16642. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16643. *) ac_try_echo=$ac_try;;
  16644. esac
  16645. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16646. (eval "$ac_link") 2>conftest.er1
  16647. ac_status=$?
  16648. grep -v '^ *+' conftest.er1 >conftest.err
  16649. rm -f conftest.er1
  16650. cat conftest.err >&5
  16651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16652. (exit $ac_status); } && {
  16653. test -z "$ac_cxx_werror_flag" ||
  16654. test ! -s conftest.err
  16655. } && test -s conftest$ac_exeext &&
  16656. $as_test_x conftest$ac_exeext; then
  16657. eval "$as_ac_var=yes"
  16658. else
  16659. echo "$as_me: failed program was:" >&5
  16660. sed 's/^/| /' conftest.$ac_ext >&5
  16661. eval "$as_ac_var=no"
  16662. fi
  16663. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16664. conftest$ac_exeext conftest.$ac_ext
  16665. fi
  16666. ac_res=`eval echo '${'$as_ac_var'}'`
  16667. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16668. echo "${ECHO_T}$ac_res" >&6; }
  16669. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16670. cat >>confdefs.h <<_ACEOF
  16671. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16672. _ACEOF
  16673. fi
  16674. done
  16675. { echo "$as_me:$LINENO: checking for working mktime" >&5
  16676. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
  16677. if test "${ac_cv_func_working_mktime+set}" = set; then
  16678. echo $ECHO_N "(cached) $ECHO_C" >&6
  16679. else
  16680. if test "$cross_compiling" = yes; then
  16681. ac_cv_func_working_mktime=no
  16682. else
  16683. cat >conftest.$ac_ext <<_ACEOF
  16684. /* confdefs.h. */
  16685. _ACEOF
  16686. cat confdefs.h >>conftest.$ac_ext
  16687. cat >>conftest.$ac_ext <<_ACEOF
  16688. /* end confdefs.h. */
  16689. /* Test program from Paul Eggert and Tony Leneis. */
  16690. #ifdef TIME_WITH_SYS_TIME
  16691. # include <sys/time.h>
  16692. # include <time.h>
  16693. #else
  16694. # ifdef HAVE_SYS_TIME_H
  16695. # include <sys/time.h>
  16696. # else
  16697. # include <time.h>
  16698. # endif
  16699. #endif
  16700. #include <limits.h>
  16701. #include <stdlib.h>
  16702. #ifdef HAVE_UNISTD_H
  16703. # include <unistd.h>
  16704. #endif
  16705. #ifndef HAVE_ALARM
  16706. # define alarm(X) /* empty */
  16707. #endif
  16708. /* Work around redefinition to rpl_putenv by other config tests. */
  16709. #undef putenv
  16710. static time_t time_t_max;
  16711. static time_t time_t_min;
  16712. /* Values we'll use to set the TZ environment variable. */
  16713. static char *tz_strings[] = {
  16714. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  16715. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  16716. };
  16717. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  16718. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  16719. Based on a problem report from Andreas Jaeger. */
  16720. static int
  16721. spring_forward_gap ()
  16722. {
  16723. /* glibc (up to about 1998-10-07) failed this test. */
  16724. struct tm tm;
  16725. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  16726. instead of "TZ=America/Vancouver" in order to detect the bug even
  16727. on systems that don't support the Olson extension, or don't have the
  16728. full zoneinfo tables installed. */
  16729. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  16730. tm.tm_year = 98;
  16731. tm.tm_mon = 3;
  16732. tm.tm_mday = 5;
  16733. tm.tm_hour = 2;
  16734. tm.tm_min = 0;
  16735. tm.tm_sec = 0;
  16736. tm.tm_isdst = -1;
  16737. return mktime (&tm) != (time_t) -1;
  16738. }
  16739. static int
  16740. mktime_test1 (now)
  16741. time_t now;
  16742. {
  16743. struct tm *lt;
  16744. return ! (lt = localtime (&now)) || mktime (lt) == now;
  16745. }
  16746. static int
  16747. mktime_test (now)
  16748. time_t now;
  16749. {
  16750. return (mktime_test1 (now)
  16751. && mktime_test1 ((time_t) (time_t_max - now))
  16752. && mktime_test1 ((time_t) (time_t_min + now)));
  16753. }
  16754. static int
  16755. irix_6_4_bug ()
  16756. {
  16757. /* Based on code from Ariel Faigon. */
  16758. struct tm tm;
  16759. tm.tm_year = 96;
  16760. tm.tm_mon = 3;
  16761. tm.tm_mday = 0;
  16762. tm.tm_hour = 0;
  16763. tm.tm_min = 0;
  16764. tm.tm_sec = 0;
  16765. tm.tm_isdst = -1;
  16766. mktime (&tm);
  16767. return tm.tm_mon == 2 && tm.tm_mday == 31;
  16768. }
  16769. static int
  16770. bigtime_test (j)
  16771. int j;
  16772. {
  16773. struct tm tm;
  16774. time_t now;
  16775. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  16776. now = mktime (&tm);
  16777. if (now != (time_t) -1)
  16778. {
  16779. struct tm *lt = localtime (&now);
  16780. if (! (lt
  16781. && lt->tm_year == tm.tm_year
  16782. && lt->tm_mon == tm.tm_mon
  16783. && lt->tm_mday == tm.tm_mday
  16784. && lt->tm_hour == tm.tm_hour
  16785. && lt->tm_min == tm.tm_min
  16786. && lt->tm_sec == tm.tm_sec
  16787. && lt->tm_yday == tm.tm_yday
  16788. && lt->tm_wday == tm.tm_wday
  16789. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  16790. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  16791. return 0;
  16792. }
  16793. return 1;
  16794. }
  16795. static int
  16796. year_2050_test ()
  16797. {
  16798. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  16799. ignoring leap seconds. */
  16800. unsigned long int answer = 2527315200UL;
  16801. struct tm tm;
  16802. time_t t;
  16803. tm.tm_year = 2050 - 1900;
  16804. tm.tm_mon = 2 - 1;
  16805. tm.tm_mday = 1;
  16806. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  16807. tm.tm_isdst = -1;
  16808. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  16809. instead of "TZ=America/Vancouver" in order to detect the bug even
  16810. on systems that don't support the Olson extension, or don't have the
  16811. full zoneinfo tables installed. */
  16812. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  16813. t = mktime (&tm);
  16814. /* Check that the result is either a failure, or close enough
  16815. to the correct answer that we can assume the discrepancy is
  16816. due to leap seconds. */
  16817. return (t == (time_t) -1
  16818. || (0 < t && answer - 120 <= t && t <= answer + 120));
  16819. }
  16820. int
  16821. main ()
  16822. {
  16823. time_t t, delta;
  16824. int i, j;
  16825. /* This test makes some buggy mktime implementations loop.
  16826. Give up after 60 seconds; a mktime slower than that
  16827. isn't worth using anyway. */
  16828. alarm (60);
  16829. for (;;)
  16830. {
  16831. t = (time_t_max << 1) + 1;
  16832. if (t <= time_t_max)
  16833. break;
  16834. time_t_max = t;
  16835. }
  16836. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  16837. delta = time_t_max / 997; /* a suitable prime number */
  16838. for (i = 0; i < N_STRINGS; i++)
  16839. {
  16840. if (tz_strings[i])
  16841. putenv (tz_strings[i]);
  16842. for (t = 0; t <= time_t_max - delta; t += delta)
  16843. if (! mktime_test (t))
  16844. return 1;
  16845. if (! (mktime_test ((time_t) 1)
  16846. && mktime_test ((time_t) (60 * 60))
  16847. && mktime_test ((time_t) (60 * 60 * 24))))
  16848. return 1;
  16849. for (j = 1; ; j <<= 1)
  16850. if (! bigtime_test (j))
  16851. return 1;
  16852. else if (INT_MAX / 2 < j)
  16853. break;
  16854. if (! bigtime_test (INT_MAX))
  16855. return 1;
  16856. }
  16857. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  16858. }
  16859. _ACEOF
  16860. rm -f conftest$ac_exeext
  16861. if { (ac_try="$ac_link"
  16862. case "(($ac_try" in
  16863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16864. *) ac_try_echo=$ac_try;;
  16865. esac
  16866. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16867. (eval "$ac_link") 2>&5
  16868. ac_status=$?
  16869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16870. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16871. { (case "(($ac_try" in
  16872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16873. *) ac_try_echo=$ac_try;;
  16874. esac
  16875. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16876. (eval "$ac_try") 2>&5
  16877. ac_status=$?
  16878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16879. (exit $ac_status); }; }; then
  16880. ac_cv_func_working_mktime=yes
  16881. else
  16882. echo "$as_me: program exited with status $ac_status" >&5
  16883. echo "$as_me: failed program was:" >&5
  16884. sed 's/^/| /' conftest.$ac_ext >&5
  16885. ( exit $ac_status )
  16886. ac_cv_func_working_mktime=no
  16887. fi
  16888. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16889. fi
  16890. fi
  16891. { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  16892. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
  16893. if test $ac_cv_func_working_mktime = no; then
  16894. case " $LIBOBJS " in
  16895. *" mktime.$ac_objext "* ) ;;
  16896. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  16897. ;;
  16898. esac
  16899. fi
  16900. for ac_header in stdlib.h unistd.h
  16901. do
  16902. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16903. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16904. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16905. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16906. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16907. echo $ECHO_N "(cached) $ECHO_C" >&6
  16908. fi
  16909. ac_res=`eval echo '${'$as_ac_Header'}'`
  16910. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16911. echo "${ECHO_T}$ac_res" >&6; }
  16912. else
  16913. # Is the header compilable?
  16914. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16915. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16916. cat >conftest.$ac_ext <<_ACEOF
  16917. /* confdefs.h. */
  16918. _ACEOF
  16919. cat confdefs.h >>conftest.$ac_ext
  16920. cat >>conftest.$ac_ext <<_ACEOF
  16921. /* end confdefs.h. */
  16922. $ac_includes_default
  16923. #include <$ac_header>
  16924. _ACEOF
  16925. rm -f conftest.$ac_objext
  16926. if { (ac_try="$ac_compile"
  16927. case "(($ac_try" in
  16928. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16929. *) ac_try_echo=$ac_try;;
  16930. esac
  16931. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16932. (eval "$ac_compile") 2>conftest.er1
  16933. ac_status=$?
  16934. grep -v '^ *+' conftest.er1 >conftest.err
  16935. rm -f conftest.er1
  16936. cat conftest.err >&5
  16937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16938. (exit $ac_status); } && {
  16939. test -z "$ac_cxx_werror_flag" ||
  16940. test ! -s conftest.err
  16941. } && test -s conftest.$ac_objext; then
  16942. ac_header_compiler=yes
  16943. else
  16944. echo "$as_me: failed program was:" >&5
  16945. sed 's/^/| /' conftest.$ac_ext >&5
  16946. ac_header_compiler=no
  16947. fi
  16948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16949. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16950. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16951. # Is the header present?
  16952. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16953. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16954. cat >conftest.$ac_ext <<_ACEOF
  16955. /* confdefs.h. */
  16956. _ACEOF
  16957. cat confdefs.h >>conftest.$ac_ext
  16958. cat >>conftest.$ac_ext <<_ACEOF
  16959. /* end confdefs.h. */
  16960. #include <$ac_header>
  16961. _ACEOF
  16962. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16963. case "(($ac_try" in
  16964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16965. *) ac_try_echo=$ac_try;;
  16966. esac
  16967. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16968. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16969. ac_status=$?
  16970. grep -v '^ *+' conftest.er1 >conftest.err
  16971. rm -f conftest.er1
  16972. cat conftest.err >&5
  16973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16974. (exit $ac_status); } >/dev/null && {
  16975. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16976. test ! -s conftest.err
  16977. }; then
  16978. ac_header_preproc=yes
  16979. else
  16980. echo "$as_me: failed program was:" >&5
  16981. sed 's/^/| /' conftest.$ac_ext >&5
  16982. ac_header_preproc=no
  16983. fi
  16984. rm -f conftest.err conftest.$ac_ext
  16985. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16986. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16987. # So? What about this header?
  16988. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16989. yes:no: )
  16990. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16991. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16992. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16993. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16994. ac_header_preproc=yes
  16995. ;;
  16996. no:yes:* )
  16997. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16998. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16999. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17000. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17001. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17002. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17003. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17004. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17005. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17006. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17007. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17008. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17009. ( cat <<\_ASBOX
  17010. ## ----------------------------------------------- ##
  17011. ## Report this to t-tujikawa@users.sourceforge.net ##
  17012. ## ----------------------------------------------- ##
  17013. _ASBOX
  17014. ) | sed "s/^/$as_me: WARNING: /" >&2
  17015. ;;
  17016. esac
  17017. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17018. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17019. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17020. echo $ECHO_N "(cached) $ECHO_C" >&6
  17021. else
  17022. eval "$as_ac_Header=\$ac_header_preproc"
  17023. fi
  17024. ac_res=`eval echo '${'$as_ac_Header'}'`
  17025. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17026. echo "${ECHO_T}$ac_res" >&6; }
  17027. fi
  17028. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17029. cat >>confdefs.h <<_ACEOF
  17030. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17031. _ACEOF
  17032. fi
  17033. done
  17034. for ac_func in getpagesize
  17035. do
  17036. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17037. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17038. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17039. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17040. echo $ECHO_N "(cached) $ECHO_C" >&6
  17041. else
  17042. cat >conftest.$ac_ext <<_ACEOF
  17043. /* confdefs.h. */
  17044. _ACEOF
  17045. cat confdefs.h >>conftest.$ac_ext
  17046. cat >>conftest.$ac_ext <<_ACEOF
  17047. /* end confdefs.h. */
  17048. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17049. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17050. #define $ac_func innocuous_$ac_func
  17051. /* System header to define __stub macros and hopefully few prototypes,
  17052. which can conflict with char $ac_func (); below.
  17053. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17054. <limits.h> exists even on freestanding compilers. */
  17055. #ifdef __STDC__
  17056. # include <limits.h>
  17057. #else
  17058. # include <assert.h>
  17059. #endif
  17060. #undef $ac_func
  17061. /* Override any GCC internal prototype to avoid an error.
  17062. Use char because int might match the return type of a GCC
  17063. builtin and then its argument prototype would still apply. */
  17064. #ifdef __cplusplus
  17065. extern "C"
  17066. #endif
  17067. char $ac_func ();
  17068. /* The GNU C library defines this for functions which it implements
  17069. to always fail with ENOSYS. Some functions are actually named
  17070. something starting with __ and the normal name is an alias. */
  17071. #if defined __stub_$ac_func || defined __stub___$ac_func
  17072. choke me
  17073. #endif
  17074. int
  17075. main ()
  17076. {
  17077. return $ac_func ();
  17078. ;
  17079. return 0;
  17080. }
  17081. _ACEOF
  17082. rm -f conftest.$ac_objext conftest$ac_exeext
  17083. if { (ac_try="$ac_link"
  17084. case "(($ac_try" in
  17085. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17086. *) ac_try_echo=$ac_try;;
  17087. esac
  17088. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17089. (eval "$ac_link") 2>conftest.er1
  17090. ac_status=$?
  17091. grep -v '^ *+' conftest.er1 >conftest.err
  17092. rm -f conftest.er1
  17093. cat conftest.err >&5
  17094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17095. (exit $ac_status); } && {
  17096. test -z "$ac_cxx_werror_flag" ||
  17097. test ! -s conftest.err
  17098. } && test -s conftest$ac_exeext &&
  17099. $as_test_x conftest$ac_exeext; then
  17100. eval "$as_ac_var=yes"
  17101. else
  17102. echo "$as_me: failed program was:" >&5
  17103. sed 's/^/| /' conftest.$ac_ext >&5
  17104. eval "$as_ac_var=no"
  17105. fi
  17106. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17107. conftest$ac_exeext conftest.$ac_ext
  17108. fi
  17109. ac_res=`eval echo '${'$as_ac_var'}'`
  17110. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17111. echo "${ECHO_T}$ac_res" >&6; }
  17112. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17113. cat >>confdefs.h <<_ACEOF
  17114. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17115. _ACEOF
  17116. fi
  17117. done
  17118. { echo "$as_me:$LINENO: checking for working mmap" >&5
  17119. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  17120. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  17121. echo $ECHO_N "(cached) $ECHO_C" >&6
  17122. else
  17123. if test "$cross_compiling" = yes; then
  17124. ac_cv_func_mmap_fixed_mapped=no
  17125. else
  17126. cat >conftest.$ac_ext <<_ACEOF
  17127. /* confdefs.h. */
  17128. _ACEOF
  17129. cat confdefs.h >>conftest.$ac_ext
  17130. cat >>conftest.$ac_ext <<_ACEOF
  17131. /* end confdefs.h. */
  17132. $ac_includes_default
  17133. /* malloc might have been renamed as rpl_malloc. */
  17134. #undef malloc
  17135. /* Thanks to Mike Haertel and Jim Avera for this test.
  17136. Here is a matrix of mmap possibilities:
  17137. mmap private not fixed
  17138. mmap private fixed at somewhere currently unmapped
  17139. mmap private fixed at somewhere already mapped
  17140. mmap shared not fixed
  17141. mmap shared fixed at somewhere currently unmapped
  17142. mmap shared fixed at somewhere already mapped
  17143. For private mappings, we should verify that changes cannot be read()
  17144. back from the file, nor mmap's back from the file at a different
  17145. address. (There have been systems where private was not correctly
  17146. implemented like the infamous i386 svr4.0, and systems where the
  17147. VM page cache was not coherent with the file system buffer cache
  17148. like early versions of FreeBSD and possibly contemporary NetBSD.)
  17149. For shared mappings, we should conversely verify that changes get
  17150. propagated back to all the places they're supposed to be.
  17151. Grep wants private fixed already mapped.
  17152. The main things grep needs to know about mmap are:
  17153. * does it exist and is it safe to write into the mmap'd area
  17154. * how to use it (BSD variants) */
  17155. #include <fcntl.h>
  17156. #include <sys/mman.h>
  17157. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  17158. char *malloc ();
  17159. #endif
  17160. /* This mess was copied from the GNU getpagesize.h. */
  17161. #ifndef HAVE_GETPAGESIZE
  17162. /* Assume that all systems that can run configure have sys/param.h. */
  17163. # ifndef HAVE_SYS_PARAM_H
  17164. # define HAVE_SYS_PARAM_H 1
  17165. # endif
  17166. # ifdef _SC_PAGESIZE
  17167. # define getpagesize() sysconf(_SC_PAGESIZE)
  17168. # else /* no _SC_PAGESIZE */
  17169. # ifdef HAVE_SYS_PARAM_H
  17170. # include <sys/param.h>
  17171. # ifdef EXEC_PAGESIZE
  17172. # define getpagesize() EXEC_PAGESIZE
  17173. # else /* no EXEC_PAGESIZE */
  17174. # ifdef NBPG
  17175. # define getpagesize() NBPG * CLSIZE
  17176. # ifndef CLSIZE
  17177. # define CLSIZE 1
  17178. # endif /* no CLSIZE */
  17179. # else /* no NBPG */
  17180. # ifdef NBPC
  17181. # define getpagesize() NBPC
  17182. # else /* no NBPC */
  17183. # ifdef PAGESIZE
  17184. # define getpagesize() PAGESIZE
  17185. # endif /* PAGESIZE */
  17186. # endif /* no NBPC */
  17187. # endif /* no NBPG */
  17188. # endif /* no EXEC_PAGESIZE */
  17189. # else /* no HAVE_SYS_PARAM_H */
  17190. # define getpagesize() 8192 /* punt totally */
  17191. # endif /* no HAVE_SYS_PARAM_H */
  17192. # endif /* no _SC_PAGESIZE */
  17193. #endif /* no HAVE_GETPAGESIZE */
  17194. int
  17195. main ()
  17196. {
  17197. char *data, *data2, *data3;
  17198. int i, pagesize;
  17199. int fd;
  17200. pagesize = getpagesize ();
  17201. /* First, make a file with some known garbage in it. */
  17202. data = (char *) malloc (pagesize);
  17203. if (!data)
  17204. return 1;
  17205. for (i = 0; i < pagesize; ++i)
  17206. *(data + i) = rand ();
  17207. umask (0);
  17208. fd = creat ("conftest.mmap", 0600);
  17209. if (fd < 0)
  17210. return 1;
  17211. if (write (fd, data, pagesize) != pagesize)
  17212. return 1;
  17213. close (fd);
  17214. /* Next, try to mmap the file at a fixed address which already has
  17215. something else allocated at it. If we can, also make sure that
  17216. we see the same garbage. */
  17217. fd = open ("conftest.mmap", O_RDWR);
  17218. if (fd < 0)
  17219. return 1;
  17220. data2 = (char *) malloc (2 * pagesize);
  17221. if (!data2)
  17222. return 1;
  17223. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  17224. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  17225. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  17226. return 1;
  17227. for (i = 0; i < pagesize; ++i)
  17228. if (*(data + i) != *(data2 + i))
  17229. return 1;
  17230. /* Finally, make sure that changes to the mapped area do not
  17231. percolate back to the file as seen by read(). (This is a bug on
  17232. some variants of i386 svr4.0.) */
  17233. for (i = 0; i < pagesize; ++i)
  17234. *(data2 + i) = *(data2 + i) + 1;
  17235. data3 = (char *) malloc (pagesize);
  17236. if (!data3)
  17237. return 1;
  17238. if (read (fd, data3, pagesize) != pagesize)
  17239. return 1;
  17240. for (i = 0; i < pagesize; ++i)
  17241. if (*(data + i) != *(data3 + i))
  17242. return 1;
  17243. close (fd);
  17244. return 0;
  17245. }
  17246. _ACEOF
  17247. rm -f conftest$ac_exeext
  17248. if { (ac_try="$ac_link"
  17249. case "(($ac_try" in
  17250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17251. *) ac_try_echo=$ac_try;;
  17252. esac
  17253. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17254. (eval "$ac_link") 2>&5
  17255. ac_status=$?
  17256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17257. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17258. { (case "(($ac_try" in
  17259. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17260. *) ac_try_echo=$ac_try;;
  17261. esac
  17262. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17263. (eval "$ac_try") 2>&5
  17264. ac_status=$?
  17265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17266. (exit $ac_status); }; }; then
  17267. ac_cv_func_mmap_fixed_mapped=yes
  17268. else
  17269. echo "$as_me: program exited with status $ac_status" >&5
  17270. echo "$as_me: failed program was:" >&5
  17271. sed 's/^/| /' conftest.$ac_ext >&5
  17272. ( exit $ac_status )
  17273. ac_cv_func_mmap_fixed_mapped=no
  17274. fi
  17275. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17276. fi
  17277. fi
  17278. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  17279. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  17280. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  17281. cat >>confdefs.h <<\_ACEOF
  17282. #define HAVE_MMAP 1
  17283. _ACEOF
  17284. fi
  17285. rm -f conftest.mmap
  17286. for ac_header in sys/select.h sys/socket.h
  17287. do
  17288. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17289. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17290. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17291. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17292. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17293. echo $ECHO_N "(cached) $ECHO_C" >&6
  17294. fi
  17295. ac_res=`eval echo '${'$as_ac_Header'}'`
  17296. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17297. echo "${ECHO_T}$ac_res" >&6; }
  17298. else
  17299. # Is the header compilable?
  17300. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17301. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17302. cat >conftest.$ac_ext <<_ACEOF
  17303. /* confdefs.h. */
  17304. _ACEOF
  17305. cat confdefs.h >>conftest.$ac_ext
  17306. cat >>conftest.$ac_ext <<_ACEOF
  17307. /* end confdefs.h. */
  17308. $ac_includes_default
  17309. #include <$ac_header>
  17310. _ACEOF
  17311. rm -f conftest.$ac_objext
  17312. if { (ac_try="$ac_compile"
  17313. case "(($ac_try" in
  17314. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17315. *) ac_try_echo=$ac_try;;
  17316. esac
  17317. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17318. (eval "$ac_compile") 2>conftest.er1
  17319. ac_status=$?
  17320. grep -v '^ *+' conftest.er1 >conftest.err
  17321. rm -f conftest.er1
  17322. cat conftest.err >&5
  17323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17324. (exit $ac_status); } && {
  17325. test -z "$ac_cxx_werror_flag" ||
  17326. test ! -s conftest.err
  17327. } && test -s conftest.$ac_objext; then
  17328. ac_header_compiler=yes
  17329. else
  17330. echo "$as_me: failed program was:" >&5
  17331. sed 's/^/| /' conftest.$ac_ext >&5
  17332. ac_header_compiler=no
  17333. fi
  17334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17335. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17336. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17337. # Is the header present?
  17338. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17339. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17340. cat >conftest.$ac_ext <<_ACEOF
  17341. /* confdefs.h. */
  17342. _ACEOF
  17343. cat confdefs.h >>conftest.$ac_ext
  17344. cat >>conftest.$ac_ext <<_ACEOF
  17345. /* end confdefs.h. */
  17346. #include <$ac_header>
  17347. _ACEOF
  17348. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17349. case "(($ac_try" in
  17350. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17351. *) ac_try_echo=$ac_try;;
  17352. esac
  17353. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17354. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17355. ac_status=$?
  17356. grep -v '^ *+' conftest.er1 >conftest.err
  17357. rm -f conftest.er1
  17358. cat conftest.err >&5
  17359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17360. (exit $ac_status); } >/dev/null && {
  17361. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17362. test ! -s conftest.err
  17363. }; then
  17364. ac_header_preproc=yes
  17365. else
  17366. echo "$as_me: failed program was:" >&5
  17367. sed 's/^/| /' conftest.$ac_ext >&5
  17368. ac_header_preproc=no
  17369. fi
  17370. rm -f conftest.err conftest.$ac_ext
  17371. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17372. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17373. # So? What about this header?
  17374. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17375. yes:no: )
  17376. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17377. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17378. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17379. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17380. ac_header_preproc=yes
  17381. ;;
  17382. no:yes:* )
  17383. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17384. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17385. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17386. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17387. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17388. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17389. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17390. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17391. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17392. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17393. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17394. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17395. ( cat <<\_ASBOX
  17396. ## ----------------------------------------------- ##
  17397. ## Report this to t-tujikawa@users.sourceforge.net ##
  17398. ## ----------------------------------------------- ##
  17399. _ASBOX
  17400. ) | sed "s/^/$as_me: WARNING: /" >&2
  17401. ;;
  17402. esac
  17403. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17404. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17405. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17406. echo $ECHO_N "(cached) $ECHO_C" >&6
  17407. else
  17408. eval "$as_ac_Header=\$ac_header_preproc"
  17409. fi
  17410. ac_res=`eval echo '${'$as_ac_Header'}'`
  17411. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17412. echo "${ECHO_T}$ac_res" >&6; }
  17413. fi
  17414. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17415. cat >>confdefs.h <<_ACEOF
  17416. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17417. _ACEOF
  17418. fi
  17419. done
  17420. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  17421. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  17422. if test "${ac_cv_func_select_args+set}" = set; then
  17423. echo $ECHO_N "(cached) $ECHO_C" >&6
  17424. else
  17425. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  17426. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  17427. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  17428. cat >conftest.$ac_ext <<_ACEOF
  17429. /* confdefs.h. */
  17430. _ACEOF
  17431. cat confdefs.h >>conftest.$ac_ext
  17432. cat >>conftest.$ac_ext <<_ACEOF
  17433. /* end confdefs.h. */
  17434. $ac_includes_default
  17435. #ifdef HAVE_SYS_SELECT_H
  17436. # include <sys/select.h>
  17437. #endif
  17438. #ifdef HAVE_SYS_SOCKET_H
  17439. # include <sys/socket.h>
  17440. #endif
  17441. int
  17442. main ()
  17443. {
  17444. extern int select ($ac_arg1,
  17445. $ac_arg234, $ac_arg234, $ac_arg234,
  17446. $ac_arg5);
  17447. ;
  17448. return 0;
  17449. }
  17450. _ACEOF
  17451. rm -f conftest.$ac_objext
  17452. if { (ac_try="$ac_compile"
  17453. case "(($ac_try" in
  17454. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17455. *) ac_try_echo=$ac_try;;
  17456. esac
  17457. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17458. (eval "$ac_compile") 2>conftest.er1
  17459. ac_status=$?
  17460. grep -v '^ *+' conftest.er1 >conftest.err
  17461. rm -f conftest.er1
  17462. cat conftest.err >&5
  17463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17464. (exit $ac_status); } && {
  17465. test -z "$ac_cxx_werror_flag" ||
  17466. test ! -s conftest.err
  17467. } && test -s conftest.$ac_objext; then
  17468. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  17469. else
  17470. echo "$as_me: failed program was:" >&5
  17471. sed 's/^/| /' conftest.$ac_ext >&5
  17472. fi
  17473. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17474. done
  17475. done
  17476. done
  17477. # Provide a safe default value.
  17478. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  17479. fi
  17480. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  17481. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  17482. ac_save_IFS=$IFS; IFS=','
  17483. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  17484. IFS=$ac_save_IFS
  17485. shift
  17486. cat >>confdefs.h <<_ACEOF
  17487. #define SELECT_TYPE_ARG1 $1
  17488. _ACEOF
  17489. cat >>confdefs.h <<_ACEOF
  17490. #define SELECT_TYPE_ARG234 ($2)
  17491. _ACEOF
  17492. cat >>confdefs.h <<_ACEOF
  17493. #define SELECT_TYPE_ARG5 ($3)
  17494. _ACEOF
  17495. rm -f conftest*
  17496. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  17497. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  17498. if test "${ac_cv_type_signal+set}" = set; then
  17499. echo $ECHO_N "(cached) $ECHO_C" >&6
  17500. else
  17501. cat >conftest.$ac_ext <<_ACEOF
  17502. /* confdefs.h. */
  17503. _ACEOF
  17504. cat confdefs.h >>conftest.$ac_ext
  17505. cat >>conftest.$ac_ext <<_ACEOF
  17506. /* end confdefs.h. */
  17507. #include <sys/types.h>
  17508. #include <signal.h>
  17509. int
  17510. main ()
  17511. {
  17512. return *(signal (0, 0)) (0) == 1;
  17513. ;
  17514. return 0;
  17515. }
  17516. _ACEOF
  17517. rm -f conftest.$ac_objext
  17518. if { (ac_try="$ac_compile"
  17519. case "(($ac_try" in
  17520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17521. *) ac_try_echo=$ac_try;;
  17522. esac
  17523. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17524. (eval "$ac_compile") 2>conftest.er1
  17525. ac_status=$?
  17526. grep -v '^ *+' conftest.er1 >conftest.err
  17527. rm -f conftest.er1
  17528. cat conftest.err >&5
  17529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17530. (exit $ac_status); } && {
  17531. test -z "$ac_cxx_werror_flag" ||
  17532. test ! -s conftest.err
  17533. } && test -s conftest.$ac_objext; then
  17534. ac_cv_type_signal=int
  17535. else
  17536. echo "$as_me: failed program was:" >&5
  17537. sed 's/^/| /' conftest.$ac_ext >&5
  17538. ac_cv_type_signal=void
  17539. fi
  17540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17541. fi
  17542. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  17543. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  17544. cat >>confdefs.h <<_ACEOF
  17545. #define RETSIGTYPE $ac_cv_type_signal
  17546. _ACEOF
  17547. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  17548. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  17549. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  17550. echo $ECHO_N "(cached) $ECHO_C" >&6
  17551. else
  17552. rm -f conftest.sym conftest.file
  17553. echo >conftest.file
  17554. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  17555. if test "$cross_compiling" = yes; then
  17556. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17557. else
  17558. cat >conftest.$ac_ext <<_ACEOF
  17559. /* confdefs.h. */
  17560. _ACEOF
  17561. cat confdefs.h >>conftest.$ac_ext
  17562. cat >>conftest.$ac_ext <<_ACEOF
  17563. /* end confdefs.h. */
  17564. $ac_includes_default
  17565. int
  17566. main ()
  17567. {
  17568. struct stat sbuf;
  17569. /* Linux will dereference the symlink and fail.
  17570. That is better in the sense that it means we will not
  17571. have to compile and use the lstat wrapper. */
  17572. return lstat ("conftest.sym/", &sbuf) == 0;
  17573. ;
  17574. return 0;
  17575. }
  17576. _ACEOF
  17577. rm -f conftest$ac_exeext
  17578. if { (ac_try="$ac_link"
  17579. case "(($ac_try" in
  17580. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17581. *) ac_try_echo=$ac_try;;
  17582. esac
  17583. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17584. (eval "$ac_link") 2>&5
  17585. ac_status=$?
  17586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17587. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17588. { (case "(($ac_try" in
  17589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17590. *) ac_try_echo=$ac_try;;
  17591. esac
  17592. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17593. (eval "$ac_try") 2>&5
  17594. ac_status=$?
  17595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17596. (exit $ac_status); }; }; then
  17597. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  17598. else
  17599. echo "$as_me: program exited with status $ac_status" >&5
  17600. echo "$as_me: failed program was:" >&5
  17601. sed 's/^/| /' conftest.$ac_ext >&5
  17602. ( exit $ac_status )
  17603. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17604. fi
  17605. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17606. fi
  17607. else
  17608. # If the `ln -s' command failed, then we probably don't even
  17609. # have an lstat function.
  17610. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17611. fi
  17612. rm -f conftest.sym conftest.file
  17613. fi
  17614. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  17615. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  17616. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  17617. cat >>confdefs.h <<_ACEOF
  17618. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  17619. _ACEOF
  17620. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  17621. case " $LIBOBJS " in
  17622. *" lstat.$ac_objext "* ) ;;
  17623. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  17624. ;;
  17625. esac
  17626. fi
  17627. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  17628. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  17629. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  17630. echo $ECHO_N "(cached) $ECHO_C" >&6
  17631. else
  17632. if test "$cross_compiling" = yes; then
  17633. ac_cv_func_stat_empty_string_bug=yes
  17634. else
  17635. cat >conftest.$ac_ext <<_ACEOF
  17636. /* confdefs.h. */
  17637. _ACEOF
  17638. cat confdefs.h >>conftest.$ac_ext
  17639. cat >>conftest.$ac_ext <<_ACEOF
  17640. /* end confdefs.h. */
  17641. $ac_includes_default
  17642. int
  17643. main ()
  17644. {
  17645. struct stat sbuf;
  17646. return stat ("", &sbuf) == 0;
  17647. ;
  17648. return 0;
  17649. }
  17650. _ACEOF
  17651. rm -f conftest$ac_exeext
  17652. if { (ac_try="$ac_link"
  17653. case "(($ac_try" in
  17654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17655. *) ac_try_echo=$ac_try;;
  17656. esac
  17657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17658. (eval "$ac_link") 2>&5
  17659. ac_status=$?
  17660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17661. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17662. { (case "(($ac_try" in
  17663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17664. *) ac_try_echo=$ac_try;;
  17665. esac
  17666. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17667. (eval "$ac_try") 2>&5
  17668. ac_status=$?
  17669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17670. (exit $ac_status); }; }; then
  17671. ac_cv_func_stat_empty_string_bug=no
  17672. else
  17673. echo "$as_me: program exited with status $ac_status" >&5
  17674. echo "$as_me: failed program was:" >&5
  17675. sed 's/^/| /' conftest.$ac_ext >&5
  17676. ( exit $ac_status )
  17677. ac_cv_func_stat_empty_string_bug=yes
  17678. fi
  17679. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17680. fi
  17681. fi
  17682. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  17683. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  17684. if test $ac_cv_func_stat_empty_string_bug = yes; then
  17685. case " $LIBOBJS " in
  17686. *" stat.$ac_objext "* ) ;;
  17687. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  17688. ;;
  17689. esac
  17690. cat >>confdefs.h <<_ACEOF
  17691. #define HAVE_STAT_EMPTY_STRING_BUG 1
  17692. _ACEOF
  17693. fi
  17694. for ac_func in strftime
  17695. do
  17696. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17697. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17698. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17699. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17700. echo $ECHO_N "(cached) $ECHO_C" >&6
  17701. else
  17702. cat >conftest.$ac_ext <<_ACEOF
  17703. /* confdefs.h. */
  17704. _ACEOF
  17705. cat confdefs.h >>conftest.$ac_ext
  17706. cat >>conftest.$ac_ext <<_ACEOF
  17707. /* end confdefs.h. */
  17708. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17709. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17710. #define $ac_func innocuous_$ac_func
  17711. /* System header to define __stub macros and hopefully few prototypes,
  17712. which can conflict with char $ac_func (); below.
  17713. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17714. <limits.h> exists even on freestanding compilers. */
  17715. #ifdef __STDC__
  17716. # include <limits.h>
  17717. #else
  17718. # include <assert.h>
  17719. #endif
  17720. #undef $ac_func
  17721. /* Override any GCC internal prototype to avoid an error.
  17722. Use char because int might match the return type of a GCC
  17723. builtin and then its argument prototype would still apply. */
  17724. #ifdef __cplusplus
  17725. extern "C"
  17726. #endif
  17727. char $ac_func ();
  17728. /* The GNU C library defines this for functions which it implements
  17729. to always fail with ENOSYS. Some functions are actually named
  17730. something starting with __ and the normal name is an alias. */
  17731. #if defined __stub_$ac_func || defined __stub___$ac_func
  17732. choke me
  17733. #endif
  17734. int
  17735. main ()
  17736. {
  17737. return $ac_func ();
  17738. ;
  17739. return 0;
  17740. }
  17741. _ACEOF
  17742. rm -f conftest.$ac_objext conftest$ac_exeext
  17743. if { (ac_try="$ac_link"
  17744. case "(($ac_try" in
  17745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17746. *) ac_try_echo=$ac_try;;
  17747. esac
  17748. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17749. (eval "$ac_link") 2>conftest.er1
  17750. ac_status=$?
  17751. grep -v '^ *+' conftest.er1 >conftest.err
  17752. rm -f conftest.er1
  17753. cat conftest.err >&5
  17754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17755. (exit $ac_status); } && {
  17756. test -z "$ac_cxx_werror_flag" ||
  17757. test ! -s conftest.err
  17758. } && test -s conftest$ac_exeext &&
  17759. $as_test_x conftest$ac_exeext; then
  17760. eval "$as_ac_var=yes"
  17761. else
  17762. echo "$as_me: failed program was:" >&5
  17763. sed 's/^/| /' conftest.$ac_ext >&5
  17764. eval "$as_ac_var=no"
  17765. fi
  17766. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17767. conftest$ac_exeext conftest.$ac_ext
  17768. fi
  17769. ac_res=`eval echo '${'$as_ac_var'}'`
  17770. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17771. echo "${ECHO_T}$ac_res" >&6; }
  17772. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17773. cat >>confdefs.h <<_ACEOF
  17774. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17775. _ACEOF
  17776. else
  17777. # strftime is in -lintl on SCO UNIX.
  17778. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  17779. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  17780. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  17781. echo $ECHO_N "(cached) $ECHO_C" >&6
  17782. else
  17783. ac_check_lib_save_LIBS=$LIBS
  17784. LIBS="-lintl $LIBS"
  17785. cat >conftest.$ac_ext <<_ACEOF
  17786. /* confdefs.h. */
  17787. _ACEOF
  17788. cat confdefs.h >>conftest.$ac_ext
  17789. cat >>conftest.$ac_ext <<_ACEOF
  17790. /* end confdefs.h. */
  17791. /* Override any GCC internal prototype to avoid an error.
  17792. Use char because int might match the return type of a GCC
  17793. builtin and then its argument prototype would still apply. */
  17794. #ifdef __cplusplus
  17795. extern "C"
  17796. #endif
  17797. char strftime ();
  17798. int
  17799. main ()
  17800. {
  17801. return strftime ();
  17802. ;
  17803. return 0;
  17804. }
  17805. _ACEOF
  17806. rm -f conftest.$ac_objext conftest$ac_exeext
  17807. if { (ac_try="$ac_link"
  17808. case "(($ac_try" in
  17809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17810. *) ac_try_echo=$ac_try;;
  17811. esac
  17812. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17813. (eval "$ac_link") 2>conftest.er1
  17814. ac_status=$?
  17815. grep -v '^ *+' conftest.er1 >conftest.err
  17816. rm -f conftest.er1
  17817. cat conftest.err >&5
  17818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17819. (exit $ac_status); } && {
  17820. test -z "$ac_cxx_werror_flag" ||
  17821. test ! -s conftest.err
  17822. } && test -s conftest$ac_exeext &&
  17823. $as_test_x conftest$ac_exeext; then
  17824. ac_cv_lib_intl_strftime=yes
  17825. else
  17826. echo "$as_me: failed program was:" >&5
  17827. sed 's/^/| /' conftest.$ac_ext >&5
  17828. ac_cv_lib_intl_strftime=no
  17829. fi
  17830. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17831. conftest$ac_exeext conftest.$ac_ext
  17832. LIBS=$ac_check_lib_save_LIBS
  17833. fi
  17834. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  17835. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  17836. if test $ac_cv_lib_intl_strftime = yes; then
  17837. cat >>confdefs.h <<\_ACEOF
  17838. #define HAVE_STRFTIME 1
  17839. _ACEOF
  17840. LIBS="-lintl $LIBS"
  17841. fi
  17842. fi
  17843. done
  17844. for ac_func in vprintf
  17845. do
  17846. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17847. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17848. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17849. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17850. echo $ECHO_N "(cached) $ECHO_C" >&6
  17851. else
  17852. cat >conftest.$ac_ext <<_ACEOF
  17853. /* confdefs.h. */
  17854. _ACEOF
  17855. cat confdefs.h >>conftest.$ac_ext
  17856. cat >>conftest.$ac_ext <<_ACEOF
  17857. /* end confdefs.h. */
  17858. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17859. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17860. #define $ac_func innocuous_$ac_func
  17861. /* System header to define __stub macros and hopefully few prototypes,
  17862. which can conflict with char $ac_func (); below.
  17863. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17864. <limits.h> exists even on freestanding compilers. */
  17865. #ifdef __STDC__
  17866. # include <limits.h>
  17867. #else
  17868. # include <assert.h>
  17869. #endif
  17870. #undef $ac_func
  17871. /* Override any GCC internal prototype to avoid an error.
  17872. Use char because int might match the return type of a GCC
  17873. builtin and then its argument prototype would still apply. */
  17874. #ifdef __cplusplus
  17875. extern "C"
  17876. #endif
  17877. char $ac_func ();
  17878. /* The GNU C library defines this for functions which it implements
  17879. to always fail with ENOSYS. Some functions are actually named
  17880. something starting with __ and the normal name is an alias. */
  17881. #if defined __stub_$ac_func || defined __stub___$ac_func
  17882. choke me
  17883. #endif
  17884. int
  17885. main ()
  17886. {
  17887. return $ac_func ();
  17888. ;
  17889. return 0;
  17890. }
  17891. _ACEOF
  17892. rm -f conftest.$ac_objext conftest$ac_exeext
  17893. if { (ac_try="$ac_link"
  17894. case "(($ac_try" in
  17895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17896. *) ac_try_echo=$ac_try;;
  17897. esac
  17898. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17899. (eval "$ac_link") 2>conftest.er1
  17900. ac_status=$?
  17901. grep -v '^ *+' conftest.er1 >conftest.err
  17902. rm -f conftest.er1
  17903. cat conftest.err >&5
  17904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17905. (exit $ac_status); } && {
  17906. test -z "$ac_cxx_werror_flag" ||
  17907. test ! -s conftest.err
  17908. } && test -s conftest$ac_exeext &&
  17909. $as_test_x conftest$ac_exeext; then
  17910. eval "$as_ac_var=yes"
  17911. else
  17912. echo "$as_me: failed program was:" >&5
  17913. sed 's/^/| /' conftest.$ac_ext >&5
  17914. eval "$as_ac_var=no"
  17915. fi
  17916. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17917. conftest$ac_exeext conftest.$ac_ext
  17918. fi
  17919. ac_res=`eval echo '${'$as_ac_var'}'`
  17920. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17921. echo "${ECHO_T}$ac_res" >&6; }
  17922. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17923. cat >>confdefs.h <<_ACEOF
  17924. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17925. _ACEOF
  17926. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  17927. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  17928. if test "${ac_cv_func__doprnt+set}" = set; then
  17929. echo $ECHO_N "(cached) $ECHO_C" >&6
  17930. else
  17931. cat >conftest.$ac_ext <<_ACEOF
  17932. /* confdefs.h. */
  17933. _ACEOF
  17934. cat confdefs.h >>conftest.$ac_ext
  17935. cat >>conftest.$ac_ext <<_ACEOF
  17936. /* end confdefs.h. */
  17937. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  17938. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17939. #define _doprnt innocuous__doprnt
  17940. /* System header to define __stub macros and hopefully few prototypes,
  17941. which can conflict with char _doprnt (); below.
  17942. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17943. <limits.h> exists even on freestanding compilers. */
  17944. #ifdef __STDC__
  17945. # include <limits.h>
  17946. #else
  17947. # include <assert.h>
  17948. #endif
  17949. #undef _doprnt
  17950. /* Override any GCC internal prototype to avoid an error.
  17951. Use char because int might match the return type of a GCC
  17952. builtin and then its argument prototype would still apply. */
  17953. #ifdef __cplusplus
  17954. extern "C"
  17955. #endif
  17956. char _doprnt ();
  17957. /* The GNU C library defines this for functions which it implements
  17958. to always fail with ENOSYS. Some functions are actually named
  17959. something starting with __ and the normal name is an alias. */
  17960. #if defined __stub__doprnt || defined __stub____doprnt
  17961. choke me
  17962. #endif
  17963. int
  17964. main ()
  17965. {
  17966. return _doprnt ();
  17967. ;
  17968. return 0;
  17969. }
  17970. _ACEOF
  17971. rm -f conftest.$ac_objext conftest$ac_exeext
  17972. if { (ac_try="$ac_link"
  17973. case "(($ac_try" in
  17974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17975. *) ac_try_echo=$ac_try;;
  17976. esac
  17977. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17978. (eval "$ac_link") 2>conftest.er1
  17979. ac_status=$?
  17980. grep -v '^ *+' conftest.er1 >conftest.err
  17981. rm -f conftest.er1
  17982. cat conftest.err >&5
  17983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17984. (exit $ac_status); } && {
  17985. test -z "$ac_cxx_werror_flag" ||
  17986. test ! -s conftest.err
  17987. } && test -s conftest$ac_exeext &&
  17988. $as_test_x conftest$ac_exeext; then
  17989. ac_cv_func__doprnt=yes
  17990. else
  17991. echo "$as_me: failed program was:" >&5
  17992. sed 's/^/| /' conftest.$ac_ext >&5
  17993. ac_cv_func__doprnt=no
  17994. fi
  17995. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17996. conftest$ac_exeext conftest.$ac_ext
  17997. fi
  17998. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  17999. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  18000. if test $ac_cv_func__doprnt = yes; then
  18001. cat >>confdefs.h <<\_ACEOF
  18002. #define HAVE_DOPRNT 1
  18003. _ACEOF
  18004. fi
  18005. fi
  18006. done
  18007. for ac_func in __argz_count \
  18008. __argz_next \
  18009. __argz_stringify \
  18010. atexit \
  18011. daemon \
  18012. ftruncate \
  18013. getcwd \
  18014. gethostbyaddr \
  18015. gethostbyname \
  18016. getpagesize \
  18017. inet_ntoa \
  18018. memchr \
  18019. memmove \
  18020. mempcpy \
  18021. memset \
  18022. mkdir \
  18023. munmap \
  18024. nl_langinfo \
  18025. posix_memalign \
  18026. putenv \
  18027. rmdir \
  18028. select \
  18029. setlocale \
  18030. sleep \
  18031. socket \
  18032. stpcpy \
  18033. strcasecmp \
  18034. strchr \
  18035. strcspn \
  18036. strdup \
  18037. strerror \
  18038. strncasecmp \
  18039. strstr \
  18040. strtol \
  18041. strtoul \
  18042. strtoull \
  18043. tzset \
  18044. unsetenv \
  18045. usleep
  18046. do
  18047. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18048. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18049. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18050. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18051. echo $ECHO_N "(cached) $ECHO_C" >&6
  18052. else
  18053. cat >conftest.$ac_ext <<_ACEOF
  18054. /* confdefs.h. */
  18055. _ACEOF
  18056. cat confdefs.h >>conftest.$ac_ext
  18057. cat >>conftest.$ac_ext <<_ACEOF
  18058. /* end confdefs.h. */
  18059. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18060. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18061. #define $ac_func innocuous_$ac_func
  18062. /* System header to define __stub macros and hopefully few prototypes,
  18063. which can conflict with char $ac_func (); below.
  18064. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18065. <limits.h> exists even on freestanding compilers. */
  18066. #ifdef __STDC__
  18067. # include <limits.h>
  18068. #else
  18069. # include <assert.h>
  18070. #endif
  18071. #undef $ac_func
  18072. /* Override any GCC internal prototype to avoid an error.
  18073. Use char because int might match the return type of a GCC
  18074. builtin and then its argument prototype would still apply. */
  18075. #ifdef __cplusplus
  18076. extern "C"
  18077. #endif
  18078. char $ac_func ();
  18079. /* The GNU C library defines this for functions which it implements
  18080. to always fail with ENOSYS. Some functions are actually named
  18081. something starting with __ and the normal name is an alias. */
  18082. #if defined __stub_$ac_func || defined __stub___$ac_func
  18083. choke me
  18084. #endif
  18085. int
  18086. main ()
  18087. {
  18088. return $ac_func ();
  18089. ;
  18090. return 0;
  18091. }
  18092. _ACEOF
  18093. rm -f conftest.$ac_objext conftest$ac_exeext
  18094. if { (ac_try="$ac_link"
  18095. case "(($ac_try" in
  18096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18097. *) ac_try_echo=$ac_try;;
  18098. esac
  18099. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18100. (eval "$ac_link") 2>conftest.er1
  18101. ac_status=$?
  18102. grep -v '^ *+' conftest.er1 >conftest.err
  18103. rm -f conftest.er1
  18104. cat conftest.err >&5
  18105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18106. (exit $ac_status); } && {
  18107. test -z "$ac_cxx_werror_flag" ||
  18108. test ! -s conftest.err
  18109. } && test -s conftest$ac_exeext &&
  18110. $as_test_x conftest$ac_exeext; then
  18111. eval "$as_ac_var=yes"
  18112. else
  18113. echo "$as_me: failed program was:" >&5
  18114. sed 's/^/| /' conftest.$ac_ext >&5
  18115. eval "$as_ac_var=no"
  18116. fi
  18117. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18118. conftest$ac_exeext conftest.$ac_ext
  18119. fi
  18120. ac_res=`eval echo '${'$as_ac_var'}'`
  18121. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18122. echo "${ECHO_T}$ac_res" >&6; }
  18123. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18124. cat >>confdefs.h <<_ACEOF
  18125. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18126. _ACEOF
  18127. fi
  18128. done
  18129. if test "x$enable_epoll" = "xyes"; then
  18130. for ac_func in epoll_create
  18131. do
  18132. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18133. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18134. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18135. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18136. echo $ECHO_N "(cached) $ECHO_C" >&6
  18137. else
  18138. cat >conftest.$ac_ext <<_ACEOF
  18139. /* confdefs.h. */
  18140. _ACEOF
  18141. cat confdefs.h >>conftest.$ac_ext
  18142. cat >>conftest.$ac_ext <<_ACEOF
  18143. /* end confdefs.h. */
  18144. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18145. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18146. #define $ac_func innocuous_$ac_func
  18147. /* System header to define __stub macros and hopefully few prototypes,
  18148. which can conflict with char $ac_func (); below.
  18149. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18150. <limits.h> exists even on freestanding compilers. */
  18151. #ifdef __STDC__
  18152. # include <limits.h>
  18153. #else
  18154. # include <assert.h>
  18155. #endif
  18156. #undef $ac_func
  18157. /* Override any GCC internal prototype to avoid an error.
  18158. Use char because int might match the return type of a GCC
  18159. builtin and then its argument prototype would still apply. */
  18160. #ifdef __cplusplus
  18161. extern "C"
  18162. #endif
  18163. char $ac_func ();
  18164. /* The GNU C library defines this for functions which it implements
  18165. to always fail with ENOSYS. Some functions are actually named
  18166. something starting with __ and the normal name is an alias. */
  18167. #if defined __stub_$ac_func || defined __stub___$ac_func
  18168. choke me
  18169. #endif
  18170. int
  18171. main ()
  18172. {
  18173. return $ac_func ();
  18174. ;
  18175. return 0;
  18176. }
  18177. _ACEOF
  18178. rm -f conftest.$ac_objext conftest$ac_exeext
  18179. if { (ac_try="$ac_link"
  18180. case "(($ac_try" in
  18181. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18182. *) ac_try_echo=$ac_try;;
  18183. esac
  18184. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18185. (eval "$ac_link") 2>conftest.er1
  18186. ac_status=$?
  18187. grep -v '^ *+' conftest.er1 >conftest.err
  18188. rm -f conftest.er1
  18189. cat conftest.err >&5
  18190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18191. (exit $ac_status); } && {
  18192. test -z "$ac_cxx_werror_flag" ||
  18193. test ! -s conftest.err
  18194. } && test -s conftest$ac_exeext &&
  18195. $as_test_x conftest$ac_exeext; then
  18196. eval "$as_ac_var=yes"
  18197. else
  18198. echo "$as_me: failed program was:" >&5
  18199. sed 's/^/| /' conftest.$ac_ext >&5
  18200. eval "$as_ac_var=no"
  18201. fi
  18202. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18203. conftest$ac_exeext conftest.$ac_ext
  18204. fi
  18205. ac_res=`eval echo '${'$as_ac_var'}'`
  18206. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18207. echo "${ECHO_T}$ac_res" >&6; }
  18208. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18209. cat >>confdefs.h <<_ACEOF
  18210. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18211. _ACEOF
  18212. fi
  18213. done
  18214. fi
  18215. for ac_func in asctime_r
  18216. do
  18217. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18218. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18219. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18220. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18221. echo $ECHO_N "(cached) $ECHO_C" >&6
  18222. else
  18223. cat >conftest.$ac_ext <<_ACEOF
  18224. /* confdefs.h. */
  18225. _ACEOF
  18226. cat confdefs.h >>conftest.$ac_ext
  18227. cat >>conftest.$ac_ext <<_ACEOF
  18228. /* end confdefs.h. */
  18229. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18230. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18231. #define $ac_func innocuous_$ac_func
  18232. /* System header to define __stub macros and hopefully few prototypes,
  18233. which can conflict with char $ac_func (); below.
  18234. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18235. <limits.h> exists even on freestanding compilers. */
  18236. #ifdef __STDC__
  18237. # include <limits.h>
  18238. #else
  18239. # include <assert.h>
  18240. #endif
  18241. #undef $ac_func
  18242. /* Override any GCC internal prototype to avoid an error.
  18243. Use char because int might match the return type of a GCC
  18244. builtin and then its argument prototype would still apply. */
  18245. #ifdef __cplusplus
  18246. extern "C"
  18247. #endif
  18248. char $ac_func ();
  18249. /* The GNU C library defines this for functions which it implements
  18250. to always fail with ENOSYS. Some functions are actually named
  18251. something starting with __ and the normal name is an alias. */
  18252. #if defined __stub_$ac_func || defined __stub___$ac_func
  18253. choke me
  18254. #endif
  18255. int
  18256. main ()
  18257. {
  18258. return $ac_func ();
  18259. ;
  18260. return 0;
  18261. }
  18262. _ACEOF
  18263. rm -f conftest.$ac_objext conftest$ac_exeext
  18264. if { (ac_try="$ac_link"
  18265. case "(($ac_try" in
  18266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18267. *) ac_try_echo=$ac_try;;
  18268. esac
  18269. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18270. (eval "$ac_link") 2>conftest.er1
  18271. ac_status=$?
  18272. grep -v '^ *+' conftest.er1 >conftest.err
  18273. rm -f conftest.er1
  18274. cat conftest.err >&5
  18275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18276. (exit $ac_status); } && {
  18277. test -z "$ac_cxx_werror_flag" ||
  18278. test ! -s conftest.err
  18279. } && test -s conftest$ac_exeext &&
  18280. $as_test_x conftest$ac_exeext; then
  18281. eval "$as_ac_var=yes"
  18282. else
  18283. echo "$as_me: failed program was:" >&5
  18284. sed 's/^/| /' conftest.$ac_ext >&5
  18285. eval "$as_ac_var=no"
  18286. fi
  18287. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18288. conftest$ac_exeext conftest.$ac_ext
  18289. fi
  18290. ac_res=`eval echo '${'$as_ac_var'}'`
  18291. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18292. echo "${ECHO_T}$ac_res" >&6; }
  18293. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18294. cat >>confdefs.h <<_ACEOF
  18295. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18296. _ACEOF
  18297. if true; then
  18298. HAVE_ASCTIME_R_TRUE=
  18299. HAVE_ASCTIME_R_FALSE='#'
  18300. else
  18301. HAVE_ASCTIME_R_TRUE='#'
  18302. HAVE_ASCTIME_R_FALSE=
  18303. fi
  18304. else
  18305. if false; then
  18306. HAVE_ASCTIME_R_TRUE=
  18307. HAVE_ASCTIME_R_FALSE='#'
  18308. else
  18309. HAVE_ASCTIME_R_TRUE='#'
  18310. HAVE_ASCTIME_R_FALSE=
  18311. fi
  18312. fi
  18313. done
  18314. for ac_func in basename
  18315. do
  18316. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18317. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18318. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18319. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18320. echo $ECHO_N "(cached) $ECHO_C" >&6
  18321. else
  18322. cat >conftest.$ac_ext <<_ACEOF
  18323. /* confdefs.h. */
  18324. _ACEOF
  18325. cat confdefs.h >>conftest.$ac_ext
  18326. cat >>conftest.$ac_ext <<_ACEOF
  18327. /* end confdefs.h. */
  18328. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18329. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18330. #define $ac_func innocuous_$ac_func
  18331. /* System header to define __stub macros and hopefully few prototypes,
  18332. which can conflict with char $ac_func (); below.
  18333. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18334. <limits.h> exists even on freestanding compilers. */
  18335. #ifdef __STDC__
  18336. # include <limits.h>
  18337. #else
  18338. # include <assert.h>
  18339. #endif
  18340. #undef $ac_func
  18341. /* Override any GCC internal prototype to avoid an error.
  18342. Use char because int might match the return type of a GCC
  18343. builtin and then its argument prototype would still apply. */
  18344. #ifdef __cplusplus
  18345. extern "C"
  18346. #endif
  18347. char $ac_func ();
  18348. /* The GNU C library defines this for functions which it implements
  18349. to always fail with ENOSYS. Some functions are actually named
  18350. something starting with __ and the normal name is an alias. */
  18351. #if defined __stub_$ac_func || defined __stub___$ac_func
  18352. choke me
  18353. #endif
  18354. int
  18355. main ()
  18356. {
  18357. return $ac_func ();
  18358. ;
  18359. return 0;
  18360. }
  18361. _ACEOF
  18362. rm -f conftest.$ac_objext conftest$ac_exeext
  18363. if { (ac_try="$ac_link"
  18364. case "(($ac_try" in
  18365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18366. *) ac_try_echo=$ac_try;;
  18367. esac
  18368. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18369. (eval "$ac_link") 2>conftest.er1
  18370. ac_status=$?
  18371. grep -v '^ *+' conftest.er1 >conftest.err
  18372. rm -f conftest.er1
  18373. cat conftest.err >&5
  18374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18375. (exit $ac_status); } && {
  18376. test -z "$ac_cxx_werror_flag" ||
  18377. test ! -s conftest.err
  18378. } && test -s conftest$ac_exeext &&
  18379. $as_test_x conftest$ac_exeext; then
  18380. eval "$as_ac_var=yes"
  18381. else
  18382. echo "$as_me: failed program was:" >&5
  18383. sed 's/^/| /' conftest.$ac_ext >&5
  18384. eval "$as_ac_var=no"
  18385. fi
  18386. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18387. conftest$ac_exeext conftest.$ac_ext
  18388. fi
  18389. ac_res=`eval echo '${'$as_ac_var'}'`
  18390. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18391. echo "${ECHO_T}$ac_res" >&6; }
  18392. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18393. cat >>confdefs.h <<_ACEOF
  18394. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18395. _ACEOF
  18396. if true; then
  18397. HAVE_BASENAME_TRUE=
  18398. HAVE_BASENAME_FALSE='#'
  18399. else
  18400. HAVE_BASENAME_TRUE='#'
  18401. HAVE_BASENAME_FALSE=
  18402. fi
  18403. else
  18404. if false; then
  18405. HAVE_BASENAME_TRUE=
  18406. HAVE_BASENAME_FALSE='#'
  18407. else
  18408. HAVE_BASENAME_TRUE='#'
  18409. HAVE_BASENAME_FALSE=
  18410. fi
  18411. fi
  18412. done
  18413. for ac_func in gai_strerror
  18414. do
  18415. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18416. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18417. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18418. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18419. echo $ECHO_N "(cached) $ECHO_C" >&6
  18420. else
  18421. cat >conftest.$ac_ext <<_ACEOF
  18422. /* confdefs.h. */
  18423. _ACEOF
  18424. cat confdefs.h >>conftest.$ac_ext
  18425. cat >>conftest.$ac_ext <<_ACEOF
  18426. /* end confdefs.h. */
  18427. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18428. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18429. #define $ac_func innocuous_$ac_func
  18430. /* System header to define __stub macros and hopefully few prototypes,
  18431. which can conflict with char $ac_func (); below.
  18432. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18433. <limits.h> exists even on freestanding compilers. */
  18434. #ifdef __STDC__
  18435. # include <limits.h>
  18436. #else
  18437. # include <assert.h>
  18438. #endif
  18439. #undef $ac_func
  18440. /* Override any GCC internal prototype to avoid an error.
  18441. Use char because int might match the return type of a GCC
  18442. builtin and then its argument prototype would still apply. */
  18443. #ifdef __cplusplus
  18444. extern "C"
  18445. #endif
  18446. char $ac_func ();
  18447. /* The GNU C library defines this for functions which it implements
  18448. to always fail with ENOSYS. Some functions are actually named
  18449. something starting with __ and the normal name is an alias. */
  18450. #if defined __stub_$ac_func || defined __stub___$ac_func
  18451. choke me
  18452. #endif
  18453. int
  18454. main ()
  18455. {
  18456. return $ac_func ();
  18457. ;
  18458. return 0;
  18459. }
  18460. _ACEOF
  18461. rm -f conftest.$ac_objext conftest$ac_exeext
  18462. if { (ac_try="$ac_link"
  18463. case "(($ac_try" in
  18464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18465. *) ac_try_echo=$ac_try;;
  18466. esac
  18467. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18468. (eval "$ac_link") 2>conftest.er1
  18469. ac_status=$?
  18470. grep -v '^ *+' conftest.er1 >conftest.err
  18471. rm -f conftest.er1
  18472. cat conftest.err >&5
  18473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18474. (exit $ac_status); } && {
  18475. test -z "$ac_cxx_werror_flag" ||
  18476. test ! -s conftest.err
  18477. } && test -s conftest$ac_exeext &&
  18478. $as_test_x conftest$ac_exeext; then
  18479. eval "$as_ac_var=yes"
  18480. else
  18481. echo "$as_me: failed program was:" >&5
  18482. sed 's/^/| /' conftest.$ac_ext >&5
  18483. eval "$as_ac_var=no"
  18484. fi
  18485. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18486. conftest$ac_exeext conftest.$ac_ext
  18487. fi
  18488. ac_res=`eval echo '${'$as_ac_var'}'`
  18489. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18490. echo "${ECHO_T}$ac_res" >&6; }
  18491. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18492. cat >>confdefs.h <<_ACEOF
  18493. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18494. _ACEOF
  18495. if true; then
  18496. HAVE_GAI_STRERROR_TRUE=
  18497. HAVE_GAI_STRERROR_FALSE='#'
  18498. else
  18499. HAVE_GAI_STRERROR_TRUE='#'
  18500. HAVE_GAI_STRERROR_FALSE=
  18501. fi
  18502. else
  18503. if false; then
  18504. HAVE_GAI_STRERROR_TRUE=
  18505. HAVE_GAI_STRERROR_FALSE='#'
  18506. else
  18507. HAVE_GAI_STRERROR_TRUE='#'
  18508. HAVE_GAI_STRERROR_FALSE=
  18509. fi
  18510. fi
  18511. done
  18512. for ac_func in getaddrinfo
  18513. do
  18514. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18515. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18516. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18517. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18518. echo $ECHO_N "(cached) $ECHO_C" >&6
  18519. else
  18520. cat >conftest.$ac_ext <<_ACEOF
  18521. /* confdefs.h. */
  18522. _ACEOF
  18523. cat confdefs.h >>conftest.$ac_ext
  18524. cat >>conftest.$ac_ext <<_ACEOF
  18525. /* end confdefs.h. */
  18526. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18527. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18528. #define $ac_func innocuous_$ac_func
  18529. /* System header to define __stub macros and hopefully few prototypes,
  18530. which can conflict with char $ac_func (); below.
  18531. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18532. <limits.h> exists even on freestanding compilers. */
  18533. #ifdef __STDC__
  18534. # include <limits.h>
  18535. #else
  18536. # include <assert.h>
  18537. #endif
  18538. #undef $ac_func
  18539. /* Override any GCC internal prototype to avoid an error.
  18540. Use char because int might match the return type of a GCC
  18541. builtin and then its argument prototype would still apply. */
  18542. #ifdef __cplusplus
  18543. extern "C"
  18544. #endif
  18545. char $ac_func ();
  18546. /* The GNU C library defines this for functions which it implements
  18547. to always fail with ENOSYS. Some functions are actually named
  18548. something starting with __ and the normal name is an alias. */
  18549. #if defined __stub_$ac_func || defined __stub___$ac_func
  18550. choke me
  18551. #endif
  18552. int
  18553. main ()
  18554. {
  18555. return $ac_func ();
  18556. ;
  18557. return 0;
  18558. }
  18559. _ACEOF
  18560. rm -f conftest.$ac_objext conftest$ac_exeext
  18561. if { (ac_try="$ac_link"
  18562. case "(($ac_try" in
  18563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18564. *) ac_try_echo=$ac_try;;
  18565. esac
  18566. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18567. (eval "$ac_link") 2>conftest.er1
  18568. ac_status=$?
  18569. grep -v '^ *+' conftest.er1 >conftest.err
  18570. rm -f conftest.er1
  18571. cat conftest.err >&5
  18572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18573. (exit $ac_status); } && {
  18574. test -z "$ac_cxx_werror_flag" ||
  18575. test ! -s conftest.err
  18576. } && test -s conftest$ac_exeext &&
  18577. $as_test_x conftest$ac_exeext; then
  18578. eval "$as_ac_var=yes"
  18579. else
  18580. echo "$as_me: failed program was:" >&5
  18581. sed 's/^/| /' conftest.$ac_ext >&5
  18582. eval "$as_ac_var=no"
  18583. fi
  18584. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18585. conftest$ac_exeext conftest.$ac_ext
  18586. fi
  18587. ac_res=`eval echo '${'$as_ac_var'}'`
  18588. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18589. echo "${ECHO_T}$ac_res" >&6; }
  18590. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18591. cat >>confdefs.h <<_ACEOF
  18592. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18593. _ACEOF
  18594. if true; then
  18595. HAVE_GETADDRINFO_TRUE=
  18596. HAVE_GETADDRINFO_FALSE='#'
  18597. else
  18598. HAVE_GETADDRINFO_TRUE='#'
  18599. HAVE_GETADDRINFO_FALSE=
  18600. fi
  18601. else
  18602. if false; then
  18603. HAVE_GETADDRINFO_TRUE=
  18604. HAVE_GETADDRINFO_FALSE='#'
  18605. else
  18606. HAVE_GETADDRINFO_TRUE='#'
  18607. HAVE_GETADDRINFO_FALSE=
  18608. fi
  18609. fi
  18610. done
  18611. for ac_func in gettimeofday
  18612. do
  18613. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18614. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18615. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18616. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18617. echo $ECHO_N "(cached) $ECHO_C" >&6
  18618. else
  18619. cat >conftest.$ac_ext <<_ACEOF
  18620. /* confdefs.h. */
  18621. _ACEOF
  18622. cat confdefs.h >>conftest.$ac_ext
  18623. cat >>conftest.$ac_ext <<_ACEOF
  18624. /* end confdefs.h. */
  18625. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18626. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18627. #define $ac_func innocuous_$ac_func
  18628. /* System header to define __stub macros and hopefully few prototypes,
  18629. which can conflict with char $ac_func (); below.
  18630. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18631. <limits.h> exists even on freestanding compilers. */
  18632. #ifdef __STDC__
  18633. # include <limits.h>
  18634. #else
  18635. # include <assert.h>
  18636. #endif
  18637. #undef $ac_func
  18638. /* Override any GCC internal prototype to avoid an error.
  18639. Use char because int might match the return type of a GCC
  18640. builtin and then its argument prototype would still apply. */
  18641. #ifdef __cplusplus
  18642. extern "C"
  18643. #endif
  18644. char $ac_func ();
  18645. /* The GNU C library defines this for functions which it implements
  18646. to always fail with ENOSYS. Some functions are actually named
  18647. something starting with __ and the normal name is an alias. */
  18648. #if defined __stub_$ac_func || defined __stub___$ac_func
  18649. choke me
  18650. #endif
  18651. int
  18652. main ()
  18653. {
  18654. return $ac_func ();
  18655. ;
  18656. return 0;
  18657. }
  18658. _ACEOF
  18659. rm -f conftest.$ac_objext conftest$ac_exeext
  18660. if { (ac_try="$ac_link"
  18661. case "(($ac_try" in
  18662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18663. *) ac_try_echo=$ac_try;;
  18664. esac
  18665. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18666. (eval "$ac_link") 2>conftest.er1
  18667. ac_status=$?
  18668. grep -v '^ *+' conftest.er1 >conftest.err
  18669. rm -f conftest.er1
  18670. cat conftest.err >&5
  18671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18672. (exit $ac_status); } && {
  18673. test -z "$ac_cxx_werror_flag" ||
  18674. test ! -s conftest.err
  18675. } && test -s conftest$ac_exeext &&
  18676. $as_test_x conftest$ac_exeext; then
  18677. eval "$as_ac_var=yes"
  18678. else
  18679. echo "$as_me: failed program was:" >&5
  18680. sed 's/^/| /' conftest.$ac_ext >&5
  18681. eval "$as_ac_var=no"
  18682. fi
  18683. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18684. conftest$ac_exeext conftest.$ac_ext
  18685. fi
  18686. ac_res=`eval echo '${'$as_ac_var'}'`
  18687. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18688. echo "${ECHO_T}$ac_res" >&6; }
  18689. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18690. cat >>confdefs.h <<_ACEOF
  18691. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18692. _ACEOF
  18693. if true; then
  18694. HAVE_GETTIMEOFDAY_TRUE=
  18695. HAVE_GETTIMEOFDAY_FALSE='#'
  18696. else
  18697. HAVE_GETTIMEOFDAY_TRUE='#'
  18698. HAVE_GETTIMEOFDAY_FALSE=
  18699. fi
  18700. else
  18701. if false; then
  18702. HAVE_GETTIMEOFDAY_TRUE=
  18703. HAVE_GETTIMEOFDAY_FALSE='#'
  18704. else
  18705. HAVE_GETTIMEOFDAY_TRUE='#'
  18706. HAVE_GETTIMEOFDAY_FALSE=
  18707. fi
  18708. fi
  18709. done
  18710. for ac_func in inet_aton
  18711. do
  18712. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18713. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18714. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18715. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18716. echo $ECHO_N "(cached) $ECHO_C" >&6
  18717. else
  18718. cat >conftest.$ac_ext <<_ACEOF
  18719. /* confdefs.h. */
  18720. _ACEOF
  18721. cat confdefs.h >>conftest.$ac_ext
  18722. cat >>conftest.$ac_ext <<_ACEOF
  18723. /* end confdefs.h. */
  18724. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18725. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18726. #define $ac_func innocuous_$ac_func
  18727. /* System header to define __stub macros and hopefully few prototypes,
  18728. which can conflict with char $ac_func (); below.
  18729. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18730. <limits.h> exists even on freestanding compilers. */
  18731. #ifdef __STDC__
  18732. # include <limits.h>
  18733. #else
  18734. # include <assert.h>
  18735. #endif
  18736. #undef $ac_func
  18737. /* Override any GCC internal prototype to avoid an error.
  18738. Use char because int might match the return type of a GCC
  18739. builtin and then its argument prototype would still apply. */
  18740. #ifdef __cplusplus
  18741. extern "C"
  18742. #endif
  18743. char $ac_func ();
  18744. /* The GNU C library defines this for functions which it implements
  18745. to always fail with ENOSYS. Some functions are actually named
  18746. something starting with __ and the normal name is an alias. */
  18747. #if defined __stub_$ac_func || defined __stub___$ac_func
  18748. choke me
  18749. #endif
  18750. int
  18751. main ()
  18752. {
  18753. return $ac_func ();
  18754. ;
  18755. return 0;
  18756. }
  18757. _ACEOF
  18758. rm -f conftest.$ac_objext conftest$ac_exeext
  18759. if { (ac_try="$ac_link"
  18760. case "(($ac_try" in
  18761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18762. *) ac_try_echo=$ac_try;;
  18763. esac
  18764. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18765. (eval "$ac_link") 2>conftest.er1
  18766. ac_status=$?
  18767. grep -v '^ *+' conftest.er1 >conftest.err
  18768. rm -f conftest.er1
  18769. cat conftest.err >&5
  18770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18771. (exit $ac_status); } && {
  18772. test -z "$ac_cxx_werror_flag" ||
  18773. test ! -s conftest.err
  18774. } && test -s conftest$ac_exeext &&
  18775. $as_test_x conftest$ac_exeext; then
  18776. eval "$as_ac_var=yes"
  18777. else
  18778. echo "$as_me: failed program was:" >&5
  18779. sed 's/^/| /' conftest.$ac_ext >&5
  18780. eval "$as_ac_var=no"
  18781. fi
  18782. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18783. conftest$ac_exeext conftest.$ac_ext
  18784. fi
  18785. ac_res=`eval echo '${'$as_ac_var'}'`
  18786. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18787. echo "${ECHO_T}$ac_res" >&6; }
  18788. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18789. cat >>confdefs.h <<_ACEOF
  18790. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18791. _ACEOF
  18792. if true; then
  18793. HAVE_INET_ATON_TRUE=
  18794. HAVE_INET_ATON_FALSE='#'
  18795. else
  18796. HAVE_INET_ATON_TRUE='#'
  18797. HAVE_INET_ATON_FALSE=
  18798. fi
  18799. else
  18800. if false; then
  18801. HAVE_INET_ATON_TRUE=
  18802. HAVE_INET_ATON_FALSE='#'
  18803. else
  18804. HAVE_INET_ATON_TRUE='#'
  18805. HAVE_INET_ATON_FALSE=
  18806. fi
  18807. fi
  18808. done
  18809. for ac_func in localtime_r
  18810. do
  18811. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18812. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18813. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18814. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18815. echo $ECHO_N "(cached) $ECHO_C" >&6
  18816. else
  18817. cat >conftest.$ac_ext <<_ACEOF
  18818. /* confdefs.h. */
  18819. _ACEOF
  18820. cat confdefs.h >>conftest.$ac_ext
  18821. cat >>conftest.$ac_ext <<_ACEOF
  18822. /* end confdefs.h. */
  18823. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18824. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18825. #define $ac_func innocuous_$ac_func
  18826. /* System header to define __stub macros and hopefully few prototypes,
  18827. which can conflict with char $ac_func (); below.
  18828. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18829. <limits.h> exists even on freestanding compilers. */
  18830. #ifdef __STDC__
  18831. # include <limits.h>
  18832. #else
  18833. # include <assert.h>
  18834. #endif
  18835. #undef $ac_func
  18836. /* Override any GCC internal prototype to avoid an error.
  18837. Use char because int might match the return type of a GCC
  18838. builtin and then its argument prototype would still apply. */
  18839. #ifdef __cplusplus
  18840. extern "C"
  18841. #endif
  18842. char $ac_func ();
  18843. /* The GNU C library defines this for functions which it implements
  18844. to always fail with ENOSYS. Some functions are actually named
  18845. something starting with __ and the normal name is an alias. */
  18846. #if defined __stub_$ac_func || defined __stub___$ac_func
  18847. choke me
  18848. #endif
  18849. int
  18850. main ()
  18851. {
  18852. return $ac_func ();
  18853. ;
  18854. return 0;
  18855. }
  18856. _ACEOF
  18857. rm -f conftest.$ac_objext conftest$ac_exeext
  18858. if { (ac_try="$ac_link"
  18859. case "(($ac_try" in
  18860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18861. *) ac_try_echo=$ac_try;;
  18862. esac
  18863. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18864. (eval "$ac_link") 2>conftest.er1
  18865. ac_status=$?
  18866. grep -v '^ *+' conftest.er1 >conftest.err
  18867. rm -f conftest.er1
  18868. cat conftest.err >&5
  18869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18870. (exit $ac_status); } && {
  18871. test -z "$ac_cxx_werror_flag" ||
  18872. test ! -s conftest.err
  18873. } && test -s conftest$ac_exeext &&
  18874. $as_test_x conftest$ac_exeext; then
  18875. eval "$as_ac_var=yes"
  18876. else
  18877. echo "$as_me: failed program was:" >&5
  18878. sed 's/^/| /' conftest.$ac_ext >&5
  18879. eval "$as_ac_var=no"
  18880. fi
  18881. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18882. conftest$ac_exeext conftest.$ac_ext
  18883. fi
  18884. ac_res=`eval echo '${'$as_ac_var'}'`
  18885. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18886. echo "${ECHO_T}$ac_res" >&6; }
  18887. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18888. cat >>confdefs.h <<_ACEOF
  18889. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18890. _ACEOF
  18891. if true; then
  18892. HAVE_LOCALTIME_R_TRUE=
  18893. HAVE_LOCALTIME_R_FALSE='#'
  18894. else
  18895. HAVE_LOCALTIME_R_TRUE='#'
  18896. HAVE_LOCALTIME_R_FALSE=
  18897. fi
  18898. else
  18899. if false; then
  18900. HAVE_LOCALTIME_R_TRUE=
  18901. HAVE_LOCALTIME_R_FALSE='#'
  18902. else
  18903. HAVE_LOCALTIME_R_TRUE='#'
  18904. HAVE_LOCALTIME_R_FALSE=
  18905. fi
  18906. fi
  18907. done
  18908. for ac_func in strptime
  18909. do
  18910. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18911. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18912. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18913. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18914. echo $ECHO_N "(cached) $ECHO_C" >&6
  18915. else
  18916. cat >conftest.$ac_ext <<_ACEOF
  18917. /* confdefs.h. */
  18918. _ACEOF
  18919. cat confdefs.h >>conftest.$ac_ext
  18920. cat >>conftest.$ac_ext <<_ACEOF
  18921. /* end confdefs.h. */
  18922. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18923. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18924. #define $ac_func innocuous_$ac_func
  18925. /* System header to define __stub macros and hopefully few prototypes,
  18926. which can conflict with char $ac_func (); below.
  18927. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18928. <limits.h> exists even on freestanding compilers. */
  18929. #ifdef __STDC__
  18930. # include <limits.h>
  18931. #else
  18932. # include <assert.h>
  18933. #endif
  18934. #undef $ac_func
  18935. /* Override any GCC internal prototype to avoid an error.
  18936. Use char because int might match the return type of a GCC
  18937. builtin and then its argument prototype would still apply. */
  18938. #ifdef __cplusplus
  18939. extern "C"
  18940. #endif
  18941. char $ac_func ();
  18942. /* The GNU C library defines this for functions which it implements
  18943. to always fail with ENOSYS. Some functions are actually named
  18944. something starting with __ and the normal name is an alias. */
  18945. #if defined __stub_$ac_func || defined __stub___$ac_func
  18946. choke me
  18947. #endif
  18948. int
  18949. main ()
  18950. {
  18951. return $ac_func ();
  18952. ;
  18953. return 0;
  18954. }
  18955. _ACEOF
  18956. rm -f conftest.$ac_objext conftest$ac_exeext
  18957. if { (ac_try="$ac_link"
  18958. case "(($ac_try" in
  18959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18960. *) ac_try_echo=$ac_try;;
  18961. esac
  18962. eval "echo \"\$as_me:$LINENO: $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. 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. $as_test_x conftest$ac_exeext; then
  18974. eval "$as_ac_var=yes"
  18975. else
  18976. echo "$as_me: failed program was:" >&5
  18977. sed 's/^/| /' conftest.$ac_ext >&5
  18978. eval "$as_ac_var=no"
  18979. fi
  18980. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18981. conftest$ac_exeext conftest.$ac_ext
  18982. fi
  18983. ac_res=`eval echo '${'$as_ac_var'}'`
  18984. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18985. echo "${ECHO_T}$ac_res" >&6; }
  18986. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18987. cat >>confdefs.h <<_ACEOF
  18988. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18989. _ACEOF
  18990. if true; then
  18991. HAVE_STRPTIME_TRUE=
  18992. HAVE_STRPTIME_FALSE='#'
  18993. else
  18994. HAVE_STRPTIME_TRUE='#'
  18995. HAVE_STRPTIME_FALSE=
  18996. fi
  18997. else
  18998. if false; then
  18999. HAVE_STRPTIME_TRUE=
  19000. HAVE_STRPTIME_FALSE='#'
  19001. else
  19002. HAVE_STRPTIME_TRUE='#'
  19003. HAVE_STRPTIME_FALSE=
  19004. fi
  19005. fi
  19006. done
  19007. for ac_func in timegm
  19008. do
  19009. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19010. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19011. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19012. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19013. echo $ECHO_N "(cached) $ECHO_C" >&6
  19014. else
  19015. cat >conftest.$ac_ext <<_ACEOF
  19016. /* confdefs.h. */
  19017. _ACEOF
  19018. cat confdefs.h >>conftest.$ac_ext
  19019. cat >>conftest.$ac_ext <<_ACEOF
  19020. /* end confdefs.h. */
  19021. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19022. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19023. #define $ac_func innocuous_$ac_func
  19024. /* System header to define __stub macros and hopefully few prototypes,
  19025. which can conflict with char $ac_func (); below.
  19026. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19027. <limits.h> exists even on freestanding compilers. */
  19028. #ifdef __STDC__
  19029. # include <limits.h>
  19030. #else
  19031. # include <assert.h>
  19032. #endif
  19033. #undef $ac_func
  19034. /* Override any GCC internal prototype to avoid an error.
  19035. Use char because int might match the return type of a GCC
  19036. builtin and then its argument prototype would still apply. */
  19037. #ifdef __cplusplus
  19038. extern "C"
  19039. #endif
  19040. char $ac_func ();
  19041. /* The GNU C library defines this for functions which it implements
  19042. to always fail with ENOSYS. Some functions are actually named
  19043. something starting with __ and the normal name is an alias. */
  19044. #if defined __stub_$ac_func || defined __stub___$ac_func
  19045. choke me
  19046. #endif
  19047. int
  19048. main ()
  19049. {
  19050. return $ac_func ();
  19051. ;
  19052. return 0;
  19053. }
  19054. _ACEOF
  19055. rm -f conftest.$ac_objext conftest$ac_exeext
  19056. if { (ac_try="$ac_link"
  19057. case "(($ac_try" in
  19058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19059. *) ac_try_echo=$ac_try;;
  19060. esac
  19061. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19062. (eval "$ac_link") 2>conftest.er1
  19063. ac_status=$?
  19064. grep -v '^ *+' conftest.er1 >conftest.err
  19065. rm -f conftest.er1
  19066. cat conftest.err >&5
  19067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19068. (exit $ac_status); } && {
  19069. test -z "$ac_cxx_werror_flag" ||
  19070. test ! -s conftest.err
  19071. } && test -s conftest$ac_exeext &&
  19072. $as_test_x conftest$ac_exeext; then
  19073. eval "$as_ac_var=yes"
  19074. else
  19075. echo "$as_me: failed program was:" >&5
  19076. sed 's/^/| /' conftest.$ac_ext >&5
  19077. eval "$as_ac_var=no"
  19078. fi
  19079. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19080. conftest$ac_exeext conftest.$ac_ext
  19081. fi
  19082. ac_res=`eval echo '${'$as_ac_var'}'`
  19083. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19084. echo "${ECHO_T}$ac_res" >&6; }
  19085. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19086. cat >>confdefs.h <<_ACEOF
  19087. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19088. _ACEOF
  19089. if true; then
  19090. HAVE_TIMEGM_TRUE=
  19091. HAVE_TIMEGM_FALSE='#'
  19092. else
  19093. HAVE_TIMEGM_TRUE='#'
  19094. HAVE_TIMEGM_FALSE=
  19095. fi
  19096. else
  19097. if false; then
  19098. HAVE_TIMEGM_TRUE=
  19099. HAVE_TIMEGM_FALSE='#'
  19100. else
  19101. HAVE_TIMEGM_TRUE='#'
  19102. HAVE_TIMEGM_FALSE=
  19103. fi
  19104. fi
  19105. done
  19106. case "$target" in
  19107. *mingw*)
  19108. if true; then
  19109. HAVE_GETADDRINFO_TRUE=
  19110. HAVE_GETADDRINFO_FALSE='#'
  19111. else
  19112. HAVE_GETADDRINFO_TRUE='#'
  19113. HAVE_GETADDRINFO_FALSE=
  19114. fi
  19115. if false; then
  19116. HAVE_GAI_STRERROR_TRUE=
  19117. HAVE_GAI_STRERROR_FALSE='#'
  19118. else
  19119. HAVE_GAI_STRERROR_TRUE='#'
  19120. HAVE_GAI_STRERROR_FALSE=
  19121. fi
  19122. ;;
  19123. esac
  19124. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  19125. cat >confcache <<\_ACEOF
  19126. # This file is a shell script that caches the results of configure
  19127. # tests run on this system so they can be shared between configure
  19128. # scripts and configure runs, see configure's option --config-cache.
  19129. # It is not useful on other systems. If it contains results you don't
  19130. # want to keep, you may remove or edit it.
  19131. #
  19132. # config.status only pays attention to the cache file if you give it
  19133. # the --recheck option to rerun configure.
  19134. #
  19135. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19136. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19137. # following values.
  19138. _ACEOF
  19139. # The following way of writing the cache mishandles newlines in values,
  19140. # but we know of no workaround that is simple, portable, and efficient.
  19141. # So, we kill variables containing newlines.
  19142. # Ultrix sh set writes to stderr and can't be redirected directly,
  19143. # and sets the high bit in the cache file unless we assign to the vars.
  19144. (
  19145. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19146. eval ac_val=\$$ac_var
  19147. case $ac_val in #(
  19148. *${as_nl}*)
  19149. case $ac_var in #(
  19150. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  19151. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  19152. esac
  19153. case $ac_var in #(
  19154. _ | IFS | as_nl) ;; #(
  19155. *) $as_unset $ac_var ;;
  19156. esac ;;
  19157. esac
  19158. done
  19159. (set) 2>&1 |
  19160. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19161. *${as_nl}ac_space=\ *)
  19162. # `set' does not quote correctly, so add quotes (double-quote
  19163. # substitution turns \\\\ into \\, and sed turns \\ into \).
  19164. sed -n \
  19165. "s/'/'\\\\''/g;
  19166. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19167. ;; #(
  19168. *)
  19169. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19170. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19171. ;;
  19172. esac |
  19173. sort
  19174. ) |
  19175. sed '
  19176. /^ac_cv_env_/b end
  19177. t clear
  19178. :clear
  19179. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19180. t end
  19181. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19182. :end' >>confcache
  19183. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19184. if test -w "$cache_file"; then
  19185. test "x$cache_file" != "x/dev/null" &&
  19186. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  19187. echo "$as_me: updating cache $cache_file" >&6;}
  19188. cat confcache >$cache_file
  19189. else
  19190. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  19191. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  19192. fi
  19193. fi
  19194. rm -f confcache
  19195. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19196. # Let make expand exec_prefix.
  19197. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19198. DEFS=-DHAVE_CONFIG_H
  19199. ac_libobjs=
  19200. ac_ltlibobjs=
  19201. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19202. # 1. Remove the extension, and $U if already installed.
  19203. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19204. ac_i=`echo "$ac_i" | sed "$ac_script"`
  19205. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19206. # will be set to the directory where LIBOBJS objects are built.
  19207. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19208. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  19209. done
  19210. LIBOBJS=$ac_libobjs
  19211. LTLIBOBJS=$ac_ltlibobjs
  19212. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  19213. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  19214. Usually this means the macro was only invoked conditionally." >&5
  19215. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  19216. Usually this means the macro was only invoked conditionally." >&2;}
  19217. { (exit 1); exit 1; }; }
  19218. fi
  19219. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  19220. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  19221. Usually this means the macro was only invoked conditionally." >&5
  19222. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  19223. Usually this means the macro was only invoked conditionally." >&2;}
  19224. { (exit 1); exit 1; }; }
  19225. fi
  19226. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  19227. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  19228. Usually this means the macro was only invoked conditionally." >&5
  19229. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  19230. Usually this means the macro was only invoked conditionally." >&2;}
  19231. { (exit 1); exit 1; }; }
  19232. fi
  19233. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19234. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19235. Usually this means the macro was only invoked conditionally." >&5
  19236. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19237. Usually this means the macro was only invoked conditionally." >&2;}
  19238. { (exit 1); exit 1; }; }
  19239. fi
  19240. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19241. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19242. Usually this means the macro was only invoked conditionally." >&5
  19243. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19244. Usually this means the macro was only invoked conditionally." >&2;}
  19245. { (exit 1); exit 1; }; }
  19246. fi
  19247. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19248. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19249. Usually this means the macro was only invoked conditionally." >&5
  19250. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19251. Usually this means the macro was only invoked conditionally." >&2;}
  19252. { (exit 1); exit 1; }; }
  19253. fi
  19254. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19255. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19256. Usually this means the macro was only invoked conditionally." >&5
  19257. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19258. Usually this means the macro was only invoked conditionally." >&2;}
  19259. { (exit 1); exit 1; }; }
  19260. fi
  19261. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19262. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19263. Usually this means the macro was only invoked conditionally." >&5
  19264. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19265. Usually this means the macro was only invoked conditionally." >&2;}
  19266. { (exit 1); exit 1; }; }
  19267. fi
  19268. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19269. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19270. Usually this means the macro was only invoked conditionally." >&5
  19271. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19272. Usually this means the macro was only invoked conditionally." >&2;}
  19273. { (exit 1); exit 1; }; }
  19274. fi
  19275. if test -z "${ENABLE_LIBXML2_TRUE}" && test -z "${ENABLE_LIBXML2_FALSE}"; then
  19276. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19277. Usually this means the macro was only invoked conditionally." >&5
  19278. echo "$as_me: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19279. Usually this means the macro was only invoked conditionally." >&2;}
  19280. { (exit 1); exit 1; }; }
  19281. fi
  19282. if test -z "${ENABLE_LIBEXPAT_TRUE}" && test -z "${ENABLE_LIBEXPAT_FALSE}"; then
  19283. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19284. Usually this means the macro was only invoked conditionally." >&5
  19285. echo "$as_me: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19286. Usually this means the macro was only invoked conditionally." >&2;}
  19287. { (exit 1); exit 1; }; }
  19288. fi
  19289. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19290. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19291. Usually this means the macro was only invoked conditionally." >&5
  19292. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19293. Usually this means the macro was only invoked conditionally." >&2;}
  19294. { (exit 1); exit 1; }; }
  19295. fi
  19296. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19297. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19298. Usually this means the macro was only invoked conditionally." >&5
  19299. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19300. Usually this means the macro was only invoked conditionally." >&2;}
  19301. { (exit 1); exit 1; }; }
  19302. fi
  19303. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  19304. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
  19305. Usually this means the macro was only invoked conditionally." >&5
  19306. echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
  19307. Usually this means the macro was only invoked conditionally." >&2;}
  19308. { (exit 1); exit 1; }; }
  19309. fi
  19310. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19311. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19312. Usually this means the macro was only invoked conditionally." >&5
  19313. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19314. Usually this means the macro was only invoked conditionally." >&2;}
  19315. { (exit 1); exit 1; }; }
  19316. fi
  19317. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19318. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19319. Usually this means the macro was only invoked conditionally." >&5
  19320. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19321. Usually this means the macro was only invoked conditionally." >&2;}
  19322. { (exit 1); exit 1; }; }
  19323. fi
  19324. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19325. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19326. Usually this means the macro was only invoked conditionally." >&5
  19327. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19328. Usually this means the macro was only invoked conditionally." >&2;}
  19329. { (exit 1); exit 1; }; }
  19330. fi
  19331. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19332. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19333. Usually this means the macro was only invoked conditionally." >&5
  19334. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19335. Usually this means the macro was only invoked conditionally." >&2;}
  19336. { (exit 1); exit 1; }; }
  19337. fi
  19338. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19339. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19340. Usually this means the macro was only invoked conditionally." >&5
  19341. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19342. Usually this means the macro was only invoked conditionally." >&2;}
  19343. { (exit 1); exit 1; }; }
  19344. fi
  19345. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19346. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19347. Usually this means the macro was only invoked conditionally." >&5
  19348. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19349. Usually this means the macro was only invoked conditionally." >&2;}
  19350. { (exit 1); exit 1; }; }
  19351. fi
  19352. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19353. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19354. Usually this means the macro was only invoked conditionally." >&5
  19355. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19356. Usually this means the macro was only invoked conditionally." >&2;}
  19357. { (exit 1); exit 1; }; }
  19358. fi
  19359. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19360. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19361. Usually this means the macro was only invoked conditionally." >&5
  19362. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19363. Usually this means the macro was only invoked conditionally." >&2;}
  19364. { (exit 1); exit 1; }; }
  19365. fi
  19366. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19367. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19368. Usually this means the macro was only invoked conditionally." >&5
  19369. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19370. Usually this means the macro was only invoked conditionally." >&2;}
  19371. { (exit 1); exit 1; }; }
  19372. fi
  19373. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19374. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19375. Usually this means the macro was only invoked conditionally." >&5
  19376. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19377. Usually this means the macro was only invoked conditionally." >&2;}
  19378. { (exit 1); exit 1; }; }
  19379. fi
  19380. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19381. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19382. Usually this means the macro was only invoked conditionally." >&5
  19383. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19384. Usually this means the macro was only invoked conditionally." >&2;}
  19385. { (exit 1); exit 1; }; }
  19386. fi
  19387. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19388. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19389. Usually this means the macro was only invoked conditionally." >&5
  19390. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19391. Usually this means the macro was only invoked conditionally." >&2;}
  19392. { (exit 1); exit 1; }; }
  19393. fi
  19394. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19395. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19396. Usually this means the macro was only invoked conditionally." >&5
  19397. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19398. Usually this means the macro was only invoked conditionally." >&2;}
  19399. { (exit 1); exit 1; }; }
  19400. fi
  19401. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19402. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19403. Usually this means the macro was only invoked conditionally." >&5
  19404. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19405. Usually this means the macro was only invoked conditionally." >&2;}
  19406. { (exit 1); exit 1; }; }
  19407. fi
  19408. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19409. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19410. Usually this means the macro was only invoked conditionally." >&5
  19411. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19412. Usually this means the macro was only invoked conditionally." >&2;}
  19413. { (exit 1); exit 1; }; }
  19414. fi
  19415. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19416. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19417. Usually this means the macro was only invoked conditionally." >&5
  19418. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19419. Usually this means the macro was only invoked conditionally." >&2;}
  19420. { (exit 1); exit 1; }; }
  19421. fi
  19422. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19423. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19424. Usually this means the macro was only invoked conditionally." >&5
  19425. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19426. Usually this means the macro was only invoked conditionally." >&2;}
  19427. { (exit 1); exit 1; }; }
  19428. fi
  19429. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19430. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19431. Usually this means the macro was only invoked conditionally." >&5
  19432. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19433. Usually this means the macro was only invoked conditionally." >&2;}
  19434. { (exit 1); exit 1; }; }
  19435. fi
  19436. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19437. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19438. Usually this means the macro was only invoked conditionally." >&5
  19439. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19440. Usually this means the macro was only invoked conditionally." >&2;}
  19441. { (exit 1); exit 1; }; }
  19442. fi
  19443. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19444. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19445. Usually this means the macro was only invoked conditionally." >&5
  19446. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19447. Usually this means the macro was only invoked conditionally." >&2;}
  19448. { (exit 1); exit 1; }; }
  19449. fi
  19450. : ${CONFIG_STATUS=./config.status}
  19451. ac_clean_files_save=$ac_clean_files
  19452. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19453. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  19454. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19455. cat >$CONFIG_STATUS <<_ACEOF
  19456. #! $SHELL
  19457. # Generated by $as_me.
  19458. # Run this file to recreate the current configuration.
  19459. # Compiler output produced by configure, useful for debugging
  19460. # configure, is in config.log if it exists.
  19461. debug=false
  19462. ac_cs_recheck=false
  19463. ac_cs_silent=false
  19464. SHELL=\${CONFIG_SHELL-$SHELL}
  19465. _ACEOF
  19466. cat >>$CONFIG_STATUS <<\_ACEOF
  19467. ## --------------------- ##
  19468. ## M4sh Initialization. ##
  19469. ## --------------------- ##
  19470. # Be more Bourne compatible
  19471. DUALCASE=1; export DUALCASE # for MKS sh
  19472. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  19473. emulate sh
  19474. NULLCMD=:
  19475. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19476. # is contrary to our usage. Disable this feature.
  19477. alias -g '${1+"$@"}'='"$@"'
  19478. setopt NO_GLOB_SUBST
  19479. else
  19480. case `(set -o) 2>/dev/null` in
  19481. *posix*) set -o posix ;;
  19482. esac
  19483. fi
  19484. # PATH needs CR
  19485. # Avoid depending upon Character Ranges.
  19486. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19487. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19488. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19489. as_cr_digits='0123456789'
  19490. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19491. # The user is always right.
  19492. if test "${PATH_SEPARATOR+set}" != set; then
  19493. echo "#! /bin/sh" >conf$$.sh
  19494. echo "exit 0" >>conf$$.sh
  19495. chmod +x conf$$.sh
  19496. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  19497. PATH_SEPARATOR=';'
  19498. else
  19499. PATH_SEPARATOR=:
  19500. fi
  19501. rm -f conf$$.sh
  19502. fi
  19503. # Support unset when possible.
  19504. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  19505. as_unset=unset
  19506. else
  19507. as_unset=false
  19508. fi
  19509. # IFS
  19510. # We need space, tab and new line, in precisely that order. Quoting is
  19511. # there to prevent editors from complaining about space-tab.
  19512. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  19513. # splitting by setting IFS to empty value.)
  19514. as_nl='
  19515. '
  19516. IFS=" "" $as_nl"
  19517. # Find who we are. Look in the path if we contain no directory separator.
  19518. case $0 in
  19519. *[\\/]* ) as_myself=$0 ;;
  19520. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19521. for as_dir in $PATH
  19522. do
  19523. IFS=$as_save_IFS
  19524. test -z "$as_dir" && as_dir=.
  19525. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19526. done
  19527. IFS=$as_save_IFS
  19528. ;;
  19529. esac
  19530. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19531. # in which case we are not to be found in the path.
  19532. if test "x$as_myself" = x; then
  19533. as_myself=$0
  19534. fi
  19535. if test ! -f "$as_myself"; then
  19536. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19537. { (exit 1); exit 1; }
  19538. fi
  19539. # Work around bugs in pre-3.0 UWIN ksh.
  19540. for as_var in ENV MAIL MAILPATH
  19541. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19542. done
  19543. PS1='$ '
  19544. PS2='> '
  19545. PS4='+ '
  19546. # NLS nuisances.
  19547. for as_var in \
  19548. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  19549. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  19550. LC_TELEPHONE LC_TIME
  19551. do
  19552. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  19553. eval $as_var=C; export $as_var
  19554. else
  19555. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19556. fi
  19557. done
  19558. # Required to use basename.
  19559. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19560. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19561. as_expr=expr
  19562. else
  19563. as_expr=false
  19564. fi
  19565. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  19566. as_basename=basename
  19567. else
  19568. as_basename=false
  19569. fi
  19570. # Name of the executable.
  19571. as_me=`$as_basename -- "$0" ||
  19572. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19573. X"$0" : 'X\(//\)$' \| \
  19574. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19575. echo X/"$0" |
  19576. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19577. s//\1/
  19578. q
  19579. }
  19580. /^X\/\(\/\/\)$/{
  19581. s//\1/
  19582. q
  19583. }
  19584. /^X\/\(\/\).*/{
  19585. s//\1/
  19586. q
  19587. }
  19588. s/.*/./; q'`
  19589. # CDPATH.
  19590. $as_unset CDPATH
  19591. as_lineno_1=$LINENO
  19592. as_lineno_2=$LINENO
  19593. test "x$as_lineno_1" != "x$as_lineno_2" &&
  19594. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  19595. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  19596. # uniformly replaced by the line number. The first 'sed' inserts a
  19597. # line-number line after each line using $LINENO; the second 'sed'
  19598. # does the real work. The second script uses 'N' to pair each
  19599. # line-number line with the line containing $LINENO, and appends
  19600. # trailing '-' during substitution so that $LINENO is not a special
  19601. # case at line end.
  19602. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  19603. # scripts with optimization help from Paolo Bonzini. Blame Lee
  19604. # E. McMahon (1931-1989) for sed's syntax. :-)
  19605. sed -n '
  19606. p
  19607. /[$]LINENO/=
  19608. ' <$as_myself |
  19609. sed '
  19610. s/[$]LINENO.*/&-/
  19611. t lineno
  19612. b
  19613. :lineno
  19614. N
  19615. :loop
  19616. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  19617. t loop
  19618. s/-\n.*//
  19619. ' >$as_me.lineno &&
  19620. chmod +x "$as_me.lineno" ||
  19621. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  19622. { (exit 1); exit 1; }; }
  19623. # Don't try to exec as it changes $[0], causing all sort of problems
  19624. # (the dirname of $[0] is not the place where we might find the
  19625. # original and so on. Autoconf is especially sensitive to this).
  19626. . "./$as_me.lineno"
  19627. # Exit status is that of the last command.
  19628. exit
  19629. }
  19630. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  19631. as_dirname=dirname
  19632. else
  19633. as_dirname=false
  19634. fi
  19635. ECHO_C= ECHO_N= ECHO_T=
  19636. case `echo -n x` in
  19637. -n*)
  19638. case `echo 'x\c'` in
  19639. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  19640. *) ECHO_C='\c';;
  19641. esac;;
  19642. *)
  19643. ECHO_N='-n';;
  19644. esac
  19645. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19646. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19647. as_expr=expr
  19648. else
  19649. as_expr=false
  19650. fi
  19651. rm -f conf$$ conf$$.exe conf$$.file
  19652. if test -d conf$$.dir; then
  19653. rm -f conf$$.dir/conf$$.file
  19654. else
  19655. rm -f conf$$.dir
  19656. mkdir conf$$.dir
  19657. fi
  19658. echo >conf$$.file
  19659. if ln -s conf$$.file conf$$ 2>/dev/null; then
  19660. as_ln_s='ln -s'
  19661. # ... but there are two gotchas:
  19662. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  19663. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  19664. # In both cases, we have to default to `cp -p'.
  19665. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  19666. as_ln_s='cp -p'
  19667. elif ln conf$$.file conf$$ 2>/dev/null; then
  19668. as_ln_s=ln
  19669. else
  19670. as_ln_s='cp -p'
  19671. fi
  19672. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  19673. rmdir conf$$.dir 2>/dev/null
  19674. if mkdir -p . 2>/dev/null; then
  19675. as_mkdir_p=:
  19676. else
  19677. test -d ./-p && rmdir ./-p
  19678. as_mkdir_p=false
  19679. fi
  19680. if test -x / >/dev/null 2>&1; then
  19681. as_test_x='test -x'
  19682. else
  19683. if ls -dL / >/dev/null 2>&1; then
  19684. as_ls_L_option=L
  19685. else
  19686. as_ls_L_option=
  19687. fi
  19688. as_test_x='
  19689. eval sh -c '\''
  19690. if test -d "$1"; then
  19691. test -d "$1/.";
  19692. else
  19693. case $1 in
  19694. -*)set "./$1";;
  19695. esac;
  19696. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  19697. ???[sx]*):;;*)false;;esac;fi
  19698. '\'' sh
  19699. '
  19700. fi
  19701. as_executable_p=$as_test_x
  19702. # Sed expression to map a string onto a valid CPP name.
  19703. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19704. # Sed expression to map a string onto a valid variable name.
  19705. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19706. exec 6>&1
  19707. # Save the log message, to keep $[0] and so on meaningful, and to
  19708. # report actual input values of CONFIG_FILES etc. instead of their
  19709. # values after options handling.
  19710. ac_log="
  19711. This file was extended by aria2c $as_me 0.15.1+2, which was
  19712. generated by GNU Autoconf 2.61. Invocation command line was
  19713. CONFIG_FILES = $CONFIG_FILES
  19714. CONFIG_HEADERS = $CONFIG_HEADERS
  19715. CONFIG_LINKS = $CONFIG_LINKS
  19716. CONFIG_COMMANDS = $CONFIG_COMMANDS
  19717. $ $0 $@
  19718. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  19719. "
  19720. _ACEOF
  19721. cat >>$CONFIG_STATUS <<_ACEOF
  19722. # Files that config.status was made for.
  19723. config_files="$ac_config_files"
  19724. config_headers="$ac_config_headers"
  19725. config_commands="$ac_config_commands"
  19726. _ACEOF
  19727. cat >>$CONFIG_STATUS <<\_ACEOF
  19728. ac_cs_usage="\
  19729. \`$as_me' instantiates files from templates according to the
  19730. current configuration.
  19731. Usage: $0 [OPTIONS] [FILE]...
  19732. -h, --help print this help, then exit
  19733. -V, --version print version number and configuration settings, then exit
  19734. -q, --quiet do not print progress messages
  19735. -d, --debug don't remove temporary files
  19736. --recheck update $as_me by reconfiguring in the same conditions
  19737. --file=FILE[:TEMPLATE]
  19738. instantiate the configuration file FILE
  19739. --header=FILE[:TEMPLATE]
  19740. instantiate the configuration header FILE
  19741. Configuration files:
  19742. $config_files
  19743. Configuration headers:
  19744. $config_headers
  19745. Configuration commands:
  19746. $config_commands
  19747. Report bugs to <bug-autoconf@gnu.org>."
  19748. _ACEOF
  19749. cat >>$CONFIG_STATUS <<_ACEOF
  19750. ac_cs_version="\\
  19751. aria2c config.status 0.15.1+2
  19752. configured by $0, generated by GNU Autoconf 2.61,
  19753. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  19754. Copyright (C) 2006 Free Software Foundation, Inc.
  19755. This config.status script is free software; the Free Software Foundation
  19756. gives unlimited permission to copy, distribute and modify it."
  19757. ac_pwd='$ac_pwd'
  19758. srcdir='$srcdir'
  19759. INSTALL='$INSTALL'
  19760. MKDIR_P='$MKDIR_P'
  19761. _ACEOF
  19762. cat >>$CONFIG_STATUS <<\_ACEOF
  19763. # If no file are specified by the user, then we need to provide default
  19764. # value. By we need to know if files were specified by the user.
  19765. ac_need_defaults=:
  19766. while test $# != 0
  19767. do
  19768. case $1 in
  19769. --*=*)
  19770. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19771. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  19772. ac_shift=:
  19773. ;;
  19774. *)
  19775. ac_option=$1
  19776. ac_optarg=$2
  19777. ac_shift=shift
  19778. ;;
  19779. esac
  19780. case $ac_option in
  19781. # Handling of the options.
  19782. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19783. ac_cs_recheck=: ;;
  19784. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  19785. echo "$ac_cs_version"; exit ;;
  19786. --debug | --debu | --deb | --de | --d | -d )
  19787. debug=: ;;
  19788. --file | --fil | --fi | --f )
  19789. $ac_shift
  19790. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  19791. ac_need_defaults=false;;
  19792. --header | --heade | --head | --hea )
  19793. $ac_shift
  19794. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  19795. ac_need_defaults=false;;
  19796. --he | --h)
  19797. # Conflict between --help and --header
  19798. { echo "$as_me: error: ambiguous option: $1
  19799. Try \`$0 --help' for more information." >&2
  19800. { (exit 1); exit 1; }; };;
  19801. --help | --hel | -h )
  19802. echo "$ac_cs_usage"; exit ;;
  19803. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19804. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19805. ac_cs_silent=: ;;
  19806. # This is an error.
  19807. -*) { echo "$as_me: error: unrecognized option: $1
  19808. Try \`$0 --help' for more information." >&2
  19809. { (exit 1); exit 1; }; } ;;
  19810. *) ac_config_targets="$ac_config_targets $1"
  19811. ac_need_defaults=false ;;
  19812. esac
  19813. shift
  19814. done
  19815. ac_configure_extra_args=
  19816. if $ac_cs_silent; then
  19817. exec 6>/dev/null
  19818. ac_configure_extra_args="$ac_configure_extra_args --silent"
  19819. fi
  19820. _ACEOF
  19821. cat >>$CONFIG_STATUS <<_ACEOF
  19822. if \$ac_cs_recheck; then
  19823. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  19824. CONFIG_SHELL=$SHELL
  19825. export CONFIG_SHELL
  19826. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19827. fi
  19828. _ACEOF
  19829. cat >>$CONFIG_STATUS <<\_ACEOF
  19830. exec 5>>config.log
  19831. {
  19832. echo
  19833. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19834. ## Running $as_me. ##
  19835. _ASBOX
  19836. echo "$ac_log"
  19837. } >&5
  19838. _ACEOF
  19839. cat >>$CONFIG_STATUS <<_ACEOF
  19840. #
  19841. # INIT-COMMANDS
  19842. #
  19843. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  19844. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  19845. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  19846. # from automake < 1.5.
  19847. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  19848. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  19849. LINGUAS="${LINGUAS-%UNSET%}"
  19850. _ACEOF
  19851. cat >>$CONFIG_STATUS <<\_ACEOF
  19852. # Handling of arguments.
  19853. for ac_config_target in $ac_config_targets
  19854. do
  19855. case $ac_config_target in
  19856. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19857. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19858. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  19859. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19860. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  19861. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  19862. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  19863. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  19864. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  19865. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  19866. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  19867. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  19868. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  19869. { (exit 1); exit 1; }; };;
  19870. esac
  19871. done
  19872. # If the user did not use the arguments to specify the items to instantiate,
  19873. # then the envvar interface is used. Set only those that are not.
  19874. # We use the long form for the default assignment because of an extremely
  19875. # bizarre bug on SunOS 4.1.3.
  19876. if $ac_need_defaults; then
  19877. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19878. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19879. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19880. fi
  19881. # Have a temporary directory for convenience. Make it in the build tree
  19882. # simply because there is no reason against having it here, and in addition,
  19883. # creating and moving files from /tmp can sometimes cause problems.
  19884. # Hook for its removal unless debugging.
  19885. # Note that there is a small window in which the directory will not be cleaned:
  19886. # after its creation but before its name has been assigned to `$tmp'.
  19887. $debug ||
  19888. {
  19889. tmp=
  19890. trap 'exit_status=$?
  19891. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  19892. ' 0
  19893. trap '{ (exit 1); exit 1; }' 1 2 13 15
  19894. }
  19895. # Create a (secure) tmp directory for tmp files.
  19896. {
  19897. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19898. test -n "$tmp" && test -d "$tmp"
  19899. } ||
  19900. {
  19901. tmp=./conf$$-$RANDOM
  19902. (umask 077 && mkdir "$tmp")
  19903. } ||
  19904. {
  19905. echo "$me: cannot create a temporary directory in ." >&2
  19906. { (exit 1); exit 1; }
  19907. }
  19908. #
  19909. # Set up the sed scripts for CONFIG_FILES section.
  19910. #
  19911. # No need to generate the scripts if there are no CONFIG_FILES.
  19912. # This happens for instance when ./config.status config.h
  19913. if test -n "$CONFIG_FILES"; then
  19914. _ACEOF
  19915. ac_delim='%!_!# '
  19916. for ac_last_try in false false false false false :; do
  19917. cat >conf$$subs.sed <<_ACEOF
  19918. SHELL!$SHELL$ac_delim
  19919. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  19920. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  19921. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  19922. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  19923. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  19924. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  19925. exec_prefix!$exec_prefix$ac_delim
  19926. prefix!$prefix$ac_delim
  19927. program_transform_name!$program_transform_name$ac_delim
  19928. bindir!$bindir$ac_delim
  19929. sbindir!$sbindir$ac_delim
  19930. libexecdir!$libexecdir$ac_delim
  19931. datarootdir!$datarootdir$ac_delim
  19932. datadir!$datadir$ac_delim
  19933. sysconfdir!$sysconfdir$ac_delim
  19934. sharedstatedir!$sharedstatedir$ac_delim
  19935. localstatedir!$localstatedir$ac_delim
  19936. includedir!$includedir$ac_delim
  19937. oldincludedir!$oldincludedir$ac_delim
  19938. docdir!$docdir$ac_delim
  19939. infodir!$infodir$ac_delim
  19940. htmldir!$htmldir$ac_delim
  19941. dvidir!$dvidir$ac_delim
  19942. pdfdir!$pdfdir$ac_delim
  19943. psdir!$psdir$ac_delim
  19944. libdir!$libdir$ac_delim
  19945. localedir!$localedir$ac_delim
  19946. mandir!$mandir$ac_delim
  19947. DEFS!$DEFS$ac_delim
  19948. ECHO_C!$ECHO_C$ac_delim
  19949. ECHO_N!$ECHO_N$ac_delim
  19950. ECHO_T!$ECHO_T$ac_delim
  19951. LIBS!$LIBS$ac_delim
  19952. build_alias!$build_alias$ac_delim
  19953. host_alias!$host_alias$ac_delim
  19954. target_alias!$target_alias$ac_delim
  19955. build!$build$ac_delim
  19956. build_cpu!$build_cpu$ac_delim
  19957. build_vendor!$build_vendor$ac_delim
  19958. build_os!$build_os$ac_delim
  19959. host!$host$ac_delim
  19960. host_cpu!$host_cpu$ac_delim
  19961. host_vendor!$host_vendor$ac_delim
  19962. host_os!$host_os$ac_delim
  19963. target!$target$ac_delim
  19964. target_cpu!$target_cpu$ac_delim
  19965. target_vendor!$target_vendor$ac_delim
  19966. target_os!$target_os$ac_delim
  19967. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  19968. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  19969. INSTALL_DATA!$INSTALL_DATA$ac_delim
  19970. am__isrc!$am__isrc$ac_delim
  19971. CYGPATH_W!$CYGPATH_W$ac_delim
  19972. PACKAGE!$PACKAGE$ac_delim
  19973. VERSION!$VERSION$ac_delim
  19974. ACLOCAL!$ACLOCAL$ac_delim
  19975. AUTOCONF!$AUTOCONF$ac_delim
  19976. AUTOMAKE!$AUTOMAKE$ac_delim
  19977. AUTOHEADER!$AUTOHEADER$ac_delim
  19978. MAKEINFO!$MAKEINFO$ac_delim
  19979. install_sh!$install_sh$ac_delim
  19980. STRIP!$STRIP$ac_delim
  19981. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  19982. mkdir_p!$mkdir_p$ac_delim
  19983. AWK!$AWK$ac_delim
  19984. SET_MAKE!$SET_MAKE$ac_delim
  19985. am__leading_dot!$am__leading_dot$ac_delim
  19986. AMTAR!$AMTAR$ac_delim
  19987. am__tar!$am__tar$ac_delim
  19988. am__untar!$am__untar$ac_delim
  19989. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  19990. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  19991. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  19992. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  19993. CXX!$CXX$ac_delim
  19994. CXXFLAGS!$CXXFLAGS$ac_delim
  19995. LDFLAGS!$LDFLAGS$ac_delim
  19996. CPPFLAGS!$CPPFLAGS$ac_delim
  19997. ac_ct_CXX!$ac_ct_CXX$ac_delim
  19998. EXEEXT!$EXEEXT$ac_delim
  19999. OBJEXT!$OBJEXT$ac_delim
  20000. DEPDIR!$DEPDIR$ac_delim
  20001. am__include!$am__include$ac_delim
  20002. am__quote!$am__quote$ac_delim
  20003. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  20004. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  20005. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  20006. CXXDEPMODE!$CXXDEPMODE$ac_delim
  20007. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  20008. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  20009. CC!$CC$ac_delim
  20010. CFLAGS!$CFLAGS$ac_delim
  20011. ac_ct_CC!$ac_ct_CC$ac_delim
  20012. CCDEPMODE!$CCDEPMODE$ac_delim
  20013. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  20014. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  20015. _ACEOF
  20016. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20017. break
  20018. elif $ac_last_try; then
  20019. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20020. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20021. { (exit 1); exit 1; }; }
  20022. else
  20023. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20024. fi
  20025. done
  20026. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20027. if test -n "$ac_eof"; then
  20028. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20029. ac_eof=`expr $ac_eof + 1`
  20030. fi
  20031. cat >>$CONFIG_STATUS <<_ACEOF
  20032. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  20033. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20034. _ACEOF
  20035. sed '
  20036. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20037. s/^/s,@/; s/!/@,|#_!!_#|/
  20038. :n
  20039. t n
  20040. s/'"$ac_delim"'$/,g/; t
  20041. s/$/\\/; p
  20042. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20043. ' >>$CONFIG_STATUS <conf$$subs.sed
  20044. rm -f conf$$subs.sed
  20045. cat >>$CONFIG_STATUS <<_ACEOF
  20046. CEOF$ac_eof
  20047. _ACEOF
  20048. ac_delim='%!_!# '
  20049. for ac_last_try in false false false false false :; do
  20050. cat >conf$$subs.sed <<_ACEOF
  20051. RANLIB!$RANLIB$ac_delim
  20052. YACC!$YACC$ac_delim
  20053. YFLAGS!$YFLAGS$ac_delim
  20054. CXXCPP!$CXXCPP$ac_delim
  20055. GREP!$GREP$ac_delim
  20056. EGREP!$EGREP$ac_delim
  20057. XML2_CONFIG!$XML2_CONFIG$ac_delim
  20058. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  20059. XML_LIBS!$XML_LIBS$ac_delim
  20060. LIBEXPAT_LIBS!$LIBEXPAT_LIBS$ac_delim
  20061. LIBEXPAT_CPPFLAGS!$LIBEXPAT_CPPFLAGS$ac_delim
  20062. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  20063. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  20064. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  20065. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  20066. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  20067. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  20068. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  20069. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  20070. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  20071. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  20072. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  20073. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  20074. LIBZ_LIBS!$LIBZ_LIBS$ac_delim
  20075. LIBZ_CPPFLAGS!$LIBZ_CPPFLAGS$ac_delim
  20076. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  20077. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  20078. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  20079. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  20080. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  20081. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  20082. ENABLE_LIBXML2_TRUE!$ENABLE_LIBXML2_TRUE$ac_delim
  20083. ENABLE_LIBXML2_FALSE!$ENABLE_LIBXML2_FALSE$ac_delim
  20084. ENABLE_LIBEXPAT_TRUE!$ENABLE_LIBEXPAT_TRUE$ac_delim
  20085. ENABLE_LIBEXPAT_FALSE!$ENABLE_LIBEXPAT_FALSE$ac_delim
  20086. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  20087. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  20088. HAVE_LIBZ_TRUE!$HAVE_LIBZ_TRUE$ac_delim
  20089. HAVE_LIBZ_FALSE!$HAVE_LIBZ_FALSE$ac_delim
  20090. ALLOCA!$ALLOCA$ac_delim
  20091. USE_NLS!$USE_NLS$ac_delim
  20092. GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
  20093. MSGFMT!$MSGFMT$ac_delim
  20094. GMSGFMT!$GMSGFMT$ac_delim
  20095. MSGFMT_015!$MSGFMT_015$ac_delim
  20096. GMSGFMT_015!$GMSGFMT_015$ac_delim
  20097. XGETTEXT!$XGETTEXT$ac_delim
  20098. XGETTEXT_015!$XGETTEXT_015$ac_delim
  20099. MSGMERGE!$MSGMERGE$ac_delim
  20100. XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
  20101. GLIBC2!$GLIBC2$ac_delim
  20102. CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
  20103. HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
  20104. PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
  20105. LIBPTH!$LIBPTH$ac_delim
  20106. LTLIBPTH!$LTLIBPTH$ac_delim
  20107. LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim
  20108. LIBTHREAD!$LIBTHREAD$ac_delim
  20109. LTLIBTHREAD!$LTLIBTHREAD$ac_delim
  20110. LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
  20111. LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
  20112. LIBICONV!$LIBICONV$ac_delim
  20113. LTLIBICONV!$LTLIBICONV$ac_delim
  20114. INTLBISON!$INTLBISON$ac_delim
  20115. GLIBC21!$GLIBC21$ac_delim
  20116. INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
  20117. HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
  20118. HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
  20119. HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
  20120. HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
  20121. WOE32DLL!$WOE32DLL$ac_delim
  20122. WOE32!$WOE32$ac_delim
  20123. WINDRES!$WINDRES$ac_delim
  20124. LTLIBC!$LTLIBC$ac_delim
  20125. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  20126. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  20127. CATOBJEXT!$CATOBJEXT$ac_delim
  20128. DATADIRNAME!$DATADIRNAME$ac_delim
  20129. INSTOBJEXT!$INSTOBJEXT$ac_delim
  20130. GENCAT!$GENCAT$ac_delim
  20131. INTLOBJS!$INTLOBJS$ac_delim
  20132. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  20133. INTLLIBS!$INTLLIBS$ac_delim
  20134. LIBINTL!$LIBINTL$ac_delim
  20135. LTLIBINTL!$LTLIBINTL$ac_delim
  20136. POSUB!$POSUB$ac_delim
  20137. LIBOBJS!$LIBOBJS$ac_delim
  20138. HAVE_ASCTIME_R_TRUE!$HAVE_ASCTIME_R_TRUE$ac_delim
  20139. HAVE_ASCTIME_R_FALSE!$HAVE_ASCTIME_R_FALSE$ac_delim
  20140. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  20141. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  20142. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  20143. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  20144. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  20145. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  20146. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  20147. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  20148. _ACEOF
  20149. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20150. break
  20151. elif $ac_last_try; then
  20152. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20153. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20154. { (exit 1); exit 1; }; }
  20155. else
  20156. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20157. fi
  20158. done
  20159. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20160. if test -n "$ac_eof"; then
  20161. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20162. ac_eof=`expr $ac_eof + 1`
  20163. fi
  20164. cat >>$CONFIG_STATUS <<_ACEOF
  20165. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  20166. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20167. _ACEOF
  20168. sed '
  20169. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20170. s/^/s,@/; s/!/@,|#_!!_#|/
  20171. :n
  20172. t n
  20173. s/'"$ac_delim"'$/,g/; t
  20174. s/$/\\/; p
  20175. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20176. ' >>$CONFIG_STATUS <conf$$subs.sed
  20177. rm -f conf$$subs.sed
  20178. cat >>$CONFIG_STATUS <<_ACEOF
  20179. CEOF$ac_eof
  20180. _ACEOF
  20181. ac_delim='%!_!# '
  20182. for ac_last_try in false false false false false :; do
  20183. cat >conf$$subs.sed <<_ACEOF
  20184. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  20185. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  20186. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  20187. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  20188. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  20189. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  20190. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  20191. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  20192. LTLIBOBJS!$LTLIBOBJS$ac_delim
  20193. _ACEOF
  20194. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
  20195. break
  20196. elif $ac_last_try; then
  20197. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20198. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20199. { (exit 1); exit 1; }; }
  20200. else
  20201. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20202. fi
  20203. done
  20204. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20205. if test -n "$ac_eof"; then
  20206. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20207. ac_eof=`expr $ac_eof + 1`
  20208. fi
  20209. cat >>$CONFIG_STATUS <<_ACEOF
  20210. cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
  20211. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  20212. _ACEOF
  20213. sed '
  20214. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20215. s/^/s,@/; s/!/@,|#_!!_#|/
  20216. :n
  20217. t n
  20218. s/'"$ac_delim"'$/,g/; t
  20219. s/$/\\/; p
  20220. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20221. ' >>$CONFIG_STATUS <conf$$subs.sed
  20222. rm -f conf$$subs.sed
  20223. cat >>$CONFIG_STATUS <<_ACEOF
  20224. :end
  20225. s/|#_!!_#|//g
  20226. CEOF$ac_eof
  20227. _ACEOF
  20228. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  20229. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  20230. # trailing colons and then remove the whole line if VPATH becomes empty
  20231. # (actually we leave an empty line to preserve line numbers).
  20232. if test "x$srcdir" = x.; then
  20233. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  20234. s/:*\$(srcdir):*/:/
  20235. s/:*\${srcdir}:*/:/
  20236. s/:*@srcdir@:*/:/
  20237. s/^\([^=]*=[ ]*\):*/\1/
  20238. s/:*$//
  20239. s/^[^=]*=[ ]*$//
  20240. }'
  20241. fi
  20242. cat >>$CONFIG_STATUS <<\_ACEOF
  20243. fi # test -n "$CONFIG_FILES"
  20244. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  20245. do
  20246. case $ac_tag in
  20247. :[FHLC]) ac_mode=$ac_tag; continue;;
  20248. esac
  20249. case $ac_mode$ac_tag in
  20250. :[FHL]*:*);;
  20251. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  20252. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  20253. { (exit 1); exit 1; }; };;
  20254. :[FH]-) ac_tag=-:-;;
  20255. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20256. esac
  20257. ac_save_IFS=$IFS
  20258. IFS=:
  20259. set x $ac_tag
  20260. IFS=$ac_save_IFS
  20261. shift
  20262. ac_file=$1
  20263. shift
  20264. case $ac_mode in
  20265. :L) ac_source=$1;;
  20266. :[FH])
  20267. ac_file_inputs=
  20268. for ac_f
  20269. do
  20270. case $ac_f in
  20271. -) ac_f="$tmp/stdin";;
  20272. *) # Look for the file first in the build tree, then in the source tree
  20273. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20274. # because $ac_f cannot contain `:'.
  20275. test -f "$ac_f" ||
  20276. case $ac_f in
  20277. [\\/$]*) false;;
  20278. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20279. esac ||
  20280. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  20281. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  20282. { (exit 1); exit 1; }; };;
  20283. esac
  20284. ac_file_inputs="$ac_file_inputs $ac_f"
  20285. done
  20286. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20287. # use $as_me), people would be surprised to read:
  20288. # /* config.h. Generated by config.status. */
  20289. configure_input="Generated from "`IFS=:
  20290. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  20291. if test x"$ac_file" != x-; then
  20292. configure_input="$ac_file. $configure_input"
  20293. { echo "$as_me:$LINENO: creating $ac_file" >&5
  20294. echo "$as_me: creating $ac_file" >&6;}
  20295. fi
  20296. case $ac_tag in
  20297. *:-:* | *:-) cat >"$tmp/stdin";;
  20298. esac
  20299. ;;
  20300. esac
  20301. ac_dir=`$as_dirname -- "$ac_file" ||
  20302. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20303. X"$ac_file" : 'X\(//\)[^/]' \| \
  20304. X"$ac_file" : 'X\(//\)$' \| \
  20305. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20306. echo X"$ac_file" |
  20307. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20308. s//\1/
  20309. q
  20310. }
  20311. /^X\(\/\/\)[^/].*/{
  20312. s//\1/
  20313. q
  20314. }
  20315. /^X\(\/\/\)$/{
  20316. s//\1/
  20317. q
  20318. }
  20319. /^X\(\/\).*/{
  20320. s//\1/
  20321. q
  20322. }
  20323. s/.*/./; q'`
  20324. { as_dir="$ac_dir"
  20325. case $as_dir in #(
  20326. -*) as_dir=./$as_dir;;
  20327. esac
  20328. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20329. as_dirs=
  20330. while :; do
  20331. case $as_dir in #(
  20332. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20333. *) as_qdir=$as_dir;;
  20334. esac
  20335. as_dirs="'$as_qdir' $as_dirs"
  20336. as_dir=`$as_dirname -- "$as_dir" ||
  20337. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20338. X"$as_dir" : 'X\(//\)[^/]' \| \
  20339. X"$as_dir" : 'X\(//\)$' \| \
  20340. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20341. echo X"$as_dir" |
  20342. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20343. s//\1/
  20344. q
  20345. }
  20346. /^X\(\/\/\)[^/].*/{
  20347. s//\1/
  20348. q
  20349. }
  20350. /^X\(\/\/\)$/{
  20351. s//\1/
  20352. q
  20353. }
  20354. /^X\(\/\).*/{
  20355. s//\1/
  20356. q
  20357. }
  20358. s/.*/./; q'`
  20359. test -d "$as_dir" && break
  20360. done
  20361. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20362. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20363. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20364. { (exit 1); exit 1; }; }; }
  20365. ac_builddir=.
  20366. case "$ac_dir" in
  20367. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20368. *)
  20369. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  20370. # A ".." for each directory in $ac_dir_suffix.
  20371. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  20372. case $ac_top_builddir_sub in
  20373. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20374. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20375. esac ;;
  20376. esac
  20377. ac_abs_top_builddir=$ac_pwd
  20378. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20379. # for backward compatibility:
  20380. ac_top_builddir=$ac_top_build_prefix
  20381. case $srcdir in
  20382. .) # We are building in place.
  20383. ac_srcdir=.
  20384. ac_top_srcdir=$ac_top_builddir_sub
  20385. ac_abs_top_srcdir=$ac_pwd ;;
  20386. [\\/]* | ?:[\\/]* ) # Absolute name.
  20387. ac_srcdir=$srcdir$ac_dir_suffix;
  20388. ac_top_srcdir=$srcdir
  20389. ac_abs_top_srcdir=$srcdir ;;
  20390. *) # Relative name.
  20391. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20392. ac_top_srcdir=$ac_top_build_prefix$srcdir
  20393. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20394. esac
  20395. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20396. case $ac_mode in
  20397. :F)
  20398. #
  20399. # CONFIG_FILE
  20400. #
  20401. case $INSTALL in
  20402. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20403. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  20404. esac
  20405. ac_MKDIR_P=$MKDIR_P
  20406. case $MKDIR_P in
  20407. [\\/$]* | ?:[\\/]* ) ;;
  20408. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  20409. esac
  20410. _ACEOF
  20411. cat >>$CONFIG_STATUS <<\_ACEOF
  20412. # If the template does not know about datarootdir, expand it.
  20413. # FIXME: This hack should be removed a few years after 2.60.
  20414. ac_datarootdir_hack=; ac_datarootdir_seen=
  20415. case `sed -n '/datarootdir/ {
  20416. p
  20417. q
  20418. }
  20419. /@datadir@/p
  20420. /@docdir@/p
  20421. /@infodir@/p
  20422. /@localedir@/p
  20423. /@mandir@/p
  20424. ' $ac_file_inputs` in
  20425. *datarootdir*) ac_datarootdir_seen=yes;;
  20426. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20427. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20428. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20429. _ACEOF
  20430. cat >>$CONFIG_STATUS <<_ACEOF
  20431. ac_datarootdir_hack='
  20432. s&@datadir@&$datadir&g
  20433. s&@docdir@&$docdir&g
  20434. s&@infodir@&$infodir&g
  20435. s&@localedir@&$localedir&g
  20436. s&@mandir@&$mandir&g
  20437. s&\\\${datarootdir}&$datarootdir&g' ;;
  20438. esac
  20439. _ACEOF
  20440. # Neutralize VPATH when `$srcdir' = `.'.
  20441. # Shell code in configure.ac might set extrasub.
  20442. # FIXME: do we really want to maintain this feature?
  20443. cat >>$CONFIG_STATUS <<_ACEOF
  20444. sed "$ac_vpsub
  20445. $extrasub
  20446. _ACEOF
  20447. cat >>$CONFIG_STATUS <<\_ACEOF
  20448. :t
  20449. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20450. s&@configure_input@&$configure_input&;t t
  20451. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20452. s&@srcdir@&$ac_srcdir&;t t
  20453. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20454. s&@top_srcdir@&$ac_top_srcdir&;t t
  20455. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20456. s&@builddir@&$ac_builddir&;t t
  20457. s&@abs_builddir@&$ac_abs_builddir&;t t
  20458. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20459. s&@INSTALL@&$ac_INSTALL&;t t
  20460. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  20461. $ac_datarootdir_hack
  20462. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
  20463. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20464. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  20465. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  20466. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20467. which seems to be undefined. Please make sure it is defined." >&5
  20468. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20469. which seems to be undefined. Please make sure it is defined." >&2;}
  20470. rm -f "$tmp/stdin"
  20471. case $ac_file in
  20472. -) cat "$tmp/out"; rm -f "$tmp/out";;
  20473. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  20474. esac
  20475. ;;
  20476. :H)
  20477. #
  20478. # CONFIG_HEADER
  20479. #
  20480. _ACEOF
  20481. # Transform confdefs.h into a sed script `conftest.defines', that
  20482. # substitutes the proper values into config.h.in to produce config.h.
  20483. rm -f conftest.defines conftest.tail
  20484. # First, append a space to every undef/define line, to ease matching.
  20485. echo 's/$/ /' >conftest.defines
  20486. # Then, protect against being on the right side of a sed subst, or in
  20487. # an unquoted here document, in config.status. If some macros were
  20488. # called several times there might be several #defines for the same
  20489. # symbol, which is useless. But do not sort them, since the last
  20490. # AC_DEFINE must be honored.
  20491. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  20492. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  20493. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  20494. # PARAMS is the parameter list in the macro definition--in most cases, it's
  20495. # just an empty string.
  20496. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  20497. ac_dB='\\)[ (].*,\\1define\\2'
  20498. ac_dC=' '
  20499. ac_dD=' ,'
  20500. uniq confdefs.h |
  20501. sed -n '
  20502. t rset
  20503. :rset
  20504. s/^[ ]*#[ ]*define[ ][ ]*//
  20505. t ok
  20506. d
  20507. :ok
  20508. s/[\\&,]/\\&/g
  20509. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  20510. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  20511. ' >>conftest.defines
  20512. # Remove the space that was appended to ease matching.
  20513. # Then replace #undef with comments. This is necessary, for
  20514. # example, in the case of _POSIX_SOURCE, which is predefined and required
  20515. # on some systems where configure will not decide to define it.
  20516. # (The regexp can be short, since the line contains either #define or #undef.)
  20517. echo 's/ $//
  20518. s,^[ #]*u.*,/* & */,' >>conftest.defines
  20519. # Break up conftest.defines:
  20520. ac_max_sed_lines=50
  20521. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  20522. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  20523. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  20524. # et cetera.
  20525. ac_in='$ac_file_inputs'
  20526. ac_out='"$tmp/out1"'
  20527. ac_nxt='"$tmp/out2"'
  20528. while :
  20529. do
  20530. # Write a here document:
  20531. cat >>$CONFIG_STATUS <<_ACEOF
  20532. # First, check the format of the line:
  20533. cat >"\$tmp/defines.sed" <<\\CEOF
  20534. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  20535. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  20536. b
  20537. :def
  20538. _ACEOF
  20539. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  20540. echo 'CEOF
  20541. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  20542. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  20543. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  20544. grep . conftest.tail >/dev/null || break
  20545. rm -f conftest.defines
  20546. mv conftest.tail conftest.defines
  20547. done
  20548. rm -f conftest.defines conftest.tail
  20549. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  20550. cat >>$CONFIG_STATUS <<\_ACEOF
  20551. if test x"$ac_file" != x-; then
  20552. echo "/* $configure_input */" >"$tmp/config.h"
  20553. cat "$ac_result" >>"$tmp/config.h"
  20554. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  20555. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  20556. echo "$as_me: $ac_file is unchanged" >&6;}
  20557. else
  20558. rm -f $ac_file
  20559. mv "$tmp/config.h" $ac_file
  20560. fi
  20561. else
  20562. echo "/* $configure_input */"
  20563. cat "$ac_result"
  20564. fi
  20565. rm -f "$tmp/out12"
  20566. # Compute $ac_file's index in $config_headers.
  20567. _am_arg=$ac_file
  20568. _am_stamp_count=1
  20569. for _am_header in $config_headers :; do
  20570. case $_am_header in
  20571. $_am_arg | $_am_arg:* )
  20572. break ;;
  20573. * )
  20574. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20575. esac
  20576. done
  20577. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  20578. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20579. X"$_am_arg" : 'X\(//\)[^/]' \| \
  20580. X"$_am_arg" : 'X\(//\)$' \| \
  20581. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  20582. echo X"$_am_arg" |
  20583. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20584. s//\1/
  20585. q
  20586. }
  20587. /^X\(\/\/\)[^/].*/{
  20588. s//\1/
  20589. q
  20590. }
  20591. /^X\(\/\/\)$/{
  20592. s//\1/
  20593. q
  20594. }
  20595. /^X\(\/\).*/{
  20596. s//\1/
  20597. q
  20598. }
  20599. s/.*/./; q'`/stamp-h$_am_stamp_count
  20600. ;;
  20601. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  20602. echo "$as_me: executing $ac_file commands" >&6;}
  20603. ;;
  20604. esac
  20605. case $ac_file$ac_mode in
  20606. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  20607. # Strip MF so we end up with the name of the file.
  20608. mf=`echo "$mf" | sed -e 's/:.*$//'`
  20609. # Check whether this is an Automake generated Makefile or not.
  20610. # We used to match only the files named `Makefile.in', but
  20611. # some people rename them; so instead we look at the file content.
  20612. # Grep'ing the first line is not enough: some people post-process
  20613. # each Makefile.in and add a new line on top of each file to say so.
  20614. # Grep'ing the whole file is not good either: AIX grep has a line
  20615. # limit of 2048, but all sed's we know have understand at least 4000.
  20616. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  20617. dirpart=`$as_dirname -- "$mf" ||
  20618. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20619. X"$mf" : 'X\(//\)[^/]' \| \
  20620. X"$mf" : 'X\(//\)$' \| \
  20621. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  20622. echo X"$mf" |
  20623. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20624. s//\1/
  20625. q
  20626. }
  20627. /^X\(\/\/\)[^/].*/{
  20628. s//\1/
  20629. q
  20630. }
  20631. /^X\(\/\/\)$/{
  20632. s//\1/
  20633. q
  20634. }
  20635. /^X\(\/\).*/{
  20636. s//\1/
  20637. q
  20638. }
  20639. s/.*/./; q'`
  20640. else
  20641. continue
  20642. fi
  20643. # Extract the definition of DEPDIR, am__include, and am__quote
  20644. # from the Makefile without running `make'.
  20645. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  20646. test -z "$DEPDIR" && continue
  20647. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  20648. test -z "am__include" && continue
  20649. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  20650. # When using ansi2knr, U may be empty or an underscore; expand it
  20651. U=`sed -n 's/^U = //p' < "$mf"`
  20652. # Find all dependency output files, they are included files with
  20653. # $(DEPDIR) in their names. We invoke sed twice because it is the
  20654. # simplest approach to changing $(DEPDIR) to its actual value in the
  20655. # expansion.
  20656. for file in `sed -n "
  20657. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  20658. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  20659. # Make sure the directory exists.
  20660. test -f "$dirpart/$file" && continue
  20661. fdir=`$as_dirname -- "$file" ||
  20662. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20663. X"$file" : 'X\(//\)[^/]' \| \
  20664. X"$file" : 'X\(//\)$' \| \
  20665. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  20666. echo X"$file" |
  20667. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20668. s//\1/
  20669. q
  20670. }
  20671. /^X\(\/\/\)[^/].*/{
  20672. s//\1/
  20673. q
  20674. }
  20675. /^X\(\/\/\)$/{
  20676. s//\1/
  20677. q
  20678. }
  20679. /^X\(\/\).*/{
  20680. s//\1/
  20681. q
  20682. }
  20683. s/.*/./; q'`
  20684. { as_dir=$dirpart/$fdir
  20685. case $as_dir in #(
  20686. -*) as_dir=./$as_dir;;
  20687. esac
  20688. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20689. as_dirs=
  20690. while :; do
  20691. case $as_dir in #(
  20692. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20693. *) as_qdir=$as_dir;;
  20694. esac
  20695. as_dirs="'$as_qdir' $as_dirs"
  20696. as_dir=`$as_dirname -- "$as_dir" ||
  20697. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20698. X"$as_dir" : 'X\(//\)[^/]' \| \
  20699. X"$as_dir" : 'X\(//\)$' \| \
  20700. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20701. echo X"$as_dir" |
  20702. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20703. s//\1/
  20704. q
  20705. }
  20706. /^X\(\/\/\)[^/].*/{
  20707. s//\1/
  20708. q
  20709. }
  20710. /^X\(\/\/\)$/{
  20711. s//\1/
  20712. q
  20713. }
  20714. /^X\(\/\).*/{
  20715. s//\1/
  20716. q
  20717. }
  20718. s/.*/./; q'`
  20719. test -d "$as_dir" && break
  20720. done
  20721. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20722. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20723. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20724. { (exit 1); exit 1; }; }; }
  20725. # echo "creating $dirpart/$file"
  20726. echo '# dummy' > "$dirpart/$file"
  20727. done
  20728. done
  20729. ;;
  20730. "po-directories":C)
  20731. for ac_file in $CONFIG_FILES; do
  20732. # Support "outfile[:infile[:infile...]]"
  20733. case "$ac_file" in
  20734. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  20735. esac
  20736. # PO directories have a Makefile.in generated from Makefile.in.in.
  20737. case "$ac_file" in */Makefile.in)
  20738. # Adjust a relative srcdir.
  20739. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  20740. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  20741. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  20742. # In autoconf-2.13 it is called $ac_given_srcdir.
  20743. # In autoconf-2.50 it is called $srcdir.
  20744. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  20745. case "$ac_given_srcdir" in
  20746. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  20747. /*) top_srcdir="$ac_given_srcdir" ;;
  20748. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  20749. esac
  20750. # Treat a directory as a PO directory if and only if it has a
  20751. # POTFILES.in file. This allows packages to have multiple PO
  20752. # directories under different names or in different locations.
  20753. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  20754. rm -f "$ac_dir/POTFILES"
  20755. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  20756. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  20757. POMAKEFILEDEPS="POTFILES.in"
  20758. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  20759. # on $ac_dir but don't depend on user-specified configuration
  20760. # parameters.
  20761. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  20762. # The LINGUAS file contains the set of available languages.
  20763. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  20764. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  20765. fi
  20766. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  20767. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  20768. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  20769. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  20770. else
  20771. # The set of available languages was given in configure.in.
  20772. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  20773. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  20774. fi
  20775. # Compute POFILES
  20776. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  20777. # Compute UPDATEPOFILES
  20778. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  20779. # Compute DUMMYPOFILES
  20780. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  20781. # Compute GMOFILES
  20782. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  20783. case "$ac_given_srcdir" in
  20784. .) srcdirpre= ;;
  20785. *) srcdirpre='$(srcdir)/' ;;
  20786. esac
  20787. POFILES=
  20788. UPDATEPOFILES=
  20789. DUMMYPOFILES=
  20790. GMOFILES=
  20791. for lang in $ALL_LINGUAS; do
  20792. POFILES="$POFILES $srcdirpre$lang.po"
  20793. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  20794. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  20795. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  20796. done
  20797. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  20798. # environment variable.
  20799. INST_LINGUAS=
  20800. if test -n "$ALL_LINGUAS"; then
  20801. for presentlang in $ALL_LINGUAS; do
  20802. useit=no
  20803. if test "%UNSET%" != "$LINGUAS"; then
  20804. desiredlanguages="$LINGUAS"
  20805. else
  20806. desiredlanguages="$ALL_LINGUAS"
  20807. fi
  20808. for desiredlang in $desiredlanguages; do
  20809. # Use the presentlang catalog if desiredlang is
  20810. # a. equal to presentlang, or
  20811. # b. a variant of presentlang (because in this case,
  20812. # presentlang can be used as a fallback for messages
  20813. # which are not translated in the desiredlang catalog).
  20814. case "$desiredlang" in
  20815. "$presentlang"*) useit=yes;;
  20816. esac
  20817. done
  20818. if test $useit = yes; then
  20819. INST_LINGUAS="$INST_LINGUAS $presentlang"
  20820. fi
  20821. done
  20822. fi
  20823. CATALOGS=
  20824. if test -n "$INST_LINGUAS"; then
  20825. for lang in $INST_LINGUAS; do
  20826. CATALOGS="$CATALOGS $lang.gmo"
  20827. done
  20828. fi
  20829. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  20830. 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"
  20831. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  20832. if test -f "$f"; then
  20833. case "$f" in
  20834. *.orig | *.bak | *~) ;;
  20835. *) cat "$f" >> "$ac_dir/Makefile" ;;
  20836. esac
  20837. fi
  20838. done
  20839. fi
  20840. ;;
  20841. esac
  20842. done ;;
  20843. esac
  20844. done # for ac_tag
  20845. { (exit 0); exit 0; }
  20846. _ACEOF
  20847. chmod +x $CONFIG_STATUS
  20848. ac_clean_files=$ac_clean_files_save
  20849. # configure is writing to config.log, and then calls config.status.
  20850. # config.status does its own redirection, appending to config.log.
  20851. # Unfortunately, on DOS this fails, as config.log is still kept open
  20852. # by configure, so config.status won't be able to write to it; its
  20853. # output is simply discarded. So we exec the FD to /dev/null,
  20854. # effectively closing config.log, so it can be properly (re)opened and
  20855. # appended to by config.status. When coming back to configure, we
  20856. # need to make the FD available again.
  20857. if test "$no_create" != yes; then
  20858. ac_cs_success=:
  20859. ac_config_status_args=
  20860. test "$silent" = yes &&
  20861. ac_config_status_args="$ac_config_status_args --quiet"
  20862. exec 5>/dev/null
  20863. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20864. exec 5>>config.log
  20865. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20866. # would make configure fail if this is the last instruction.
  20867. $ac_cs_success || { (exit 1); exit 1; }
  20868. fi
  20869. echo " "
  20870. echo "Build: $build"
  20871. echo "Target: $target"
  20872. echo "Install prefix: $prefix"
  20873. echo "CFLAGS: $CFLAGS"
  20874. echo "CPPFLAGS: $CPPFLAGS"
  20875. echo "LDFLAGS: $LDFLAGS"
  20876. echo "LIBS: $LIBS"
  20877. echo "GnuTLS: $have_libgnutls"
  20878. echo "OpenSSL: $have_openssl"
  20879. echo "LibXML2: $have_libxml2"
  20880. echo "LibExpat: $have_libexpat"
  20881. echo "LibAres: $have_libares"
  20882. echo "LibCares: $have_libcares"
  20883. echo "Libz: $have_libz"
  20884. echo "Bittorrent: $enable_bittorrent"
  20885. echo "Metalink: $enable_metalink"