configure 647 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 0.15.0dev.
  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.0dev'
  496. PACKAGE_STRING='aria2c 0.15.0dev'
  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. ENABLE_MESSAGE_DIGEST_TRUE
  658. ENABLE_MESSAGE_DIGEST_FALSE
  659. ENABLE_BITTORRENT_TRUE
  660. ENABLE_BITTORRENT_FALSE
  661. ENABLE_METALINK_TRUE
  662. ENABLE_METALINK_FALSE
  663. ENABLE_LIBXML2_TRUE
  664. ENABLE_LIBXML2_FALSE
  665. ENABLE_LIBEXPAT_TRUE
  666. ENABLE_LIBEXPAT_FALSE
  667. ENABLE_ASYNC_DNS_TRUE
  668. ENABLE_ASYNC_DNS_FALSE
  669. ALLOCA
  670. USE_NLS
  671. GETTEXT_MACRO_VERSION
  672. MSGFMT
  673. GMSGFMT
  674. MSGFMT_015
  675. GMSGFMT_015
  676. XGETTEXT
  677. XGETTEXT_015
  678. MSGMERGE
  679. XGETTEXT_EXTRA_OPTIONS
  680. GLIBC2
  681. CFLAG_VISIBILITY
  682. HAVE_VISIBILITY
  683. PRI_MACROS_BROKEN
  684. LIBPTH
  685. LTLIBPTH
  686. LIBPTH_PREFIX
  687. LIBTHREAD
  688. LTLIBTHREAD
  689. LIBMULTITHREAD
  690. LTLIBMULTITHREAD
  691. LIBICONV
  692. LTLIBICONV
  693. INTLBISON
  694. GLIBC21
  695. INTL_MACOSX_LIBS
  696. HAVE_POSIX_PRINTF
  697. HAVE_ASPRINTF
  698. HAVE_SNPRINTF
  699. HAVE_WPRINTF
  700. WOE32DLL
  701. WOE32
  702. WINDRES
  703. LTLIBC
  704. BUILD_INCLUDED_LIBINTL
  705. USE_INCLUDED_LIBINTL
  706. CATOBJEXT
  707. DATADIRNAME
  708. INSTOBJEXT
  709. GENCAT
  710. INTLOBJS
  711. INTL_LIBTOOL_SUFFIX_PREFIX
  712. INTLLIBS
  713. LIBINTL
  714. LTLIBINTL
  715. POSUB
  716. LIBOBJS
  717. HAVE_ASCTIME_R_TRUE
  718. HAVE_ASCTIME_R_FALSE
  719. HAVE_BASENAME_TRUE
  720. HAVE_BASENAME_FALSE
  721. HAVE_GAI_STRERROR_TRUE
  722. HAVE_GAI_STRERROR_FALSE
  723. HAVE_GETADDRINFO_TRUE
  724. HAVE_GETADDRINFO_FALSE
  725. HAVE_GETTIMEOFDAY_TRUE
  726. HAVE_GETTIMEOFDAY_FALSE
  727. HAVE_INET_ATON_TRUE
  728. HAVE_INET_ATON_FALSE
  729. HAVE_LOCALTIME_R_TRUE
  730. HAVE_LOCALTIME_R_FALSE
  731. HAVE_STRPTIME_TRUE
  732. HAVE_STRPTIME_FALSE
  733. HAVE_TIMEGM_TRUE
  734. HAVE_TIMEGM_FALSE
  735. LTLIBOBJS'
  736. ac_subst_files=''
  737. ac_precious_vars='build_alias
  738. host_alias
  739. target_alias
  740. CXX
  741. CXXFLAGS
  742. LDFLAGS
  743. LIBS
  744. CPPFLAGS
  745. CCC
  746. CC
  747. CFLAGS
  748. YACC
  749. YFLAGS
  750. CXXCPP'
  751. # Initialize some variables set by options.
  752. ac_init_help=
  753. ac_init_version=false
  754. # The variables have the same names as the options, with
  755. # dashes changed to underlines.
  756. cache_file=/dev/null
  757. exec_prefix=NONE
  758. no_create=
  759. no_recursion=
  760. prefix=NONE
  761. program_prefix=NONE
  762. program_suffix=NONE
  763. program_transform_name=s,x,x,
  764. silent=
  765. site=
  766. srcdir=
  767. verbose=
  768. x_includes=NONE
  769. x_libraries=NONE
  770. # Installation directory options.
  771. # These are left unexpanded so users can "make install exec_prefix=/foo"
  772. # and all the variables that are supposed to be based on exec_prefix
  773. # by default will actually change.
  774. # Use braces instead of parens because sh, perl, etc. also accept them.
  775. # (The list follows the same order as the GNU Coding Standards.)
  776. bindir='${exec_prefix}/bin'
  777. sbindir='${exec_prefix}/sbin'
  778. libexecdir='${exec_prefix}/libexec'
  779. datarootdir='${prefix}/share'
  780. datadir='${datarootdir}'
  781. sysconfdir='${prefix}/etc'
  782. sharedstatedir='${prefix}/com'
  783. localstatedir='${prefix}/var'
  784. includedir='${prefix}/include'
  785. oldincludedir='/usr/include'
  786. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  787. infodir='${datarootdir}/info'
  788. htmldir='${docdir}'
  789. dvidir='${docdir}'
  790. pdfdir='${docdir}'
  791. psdir='${docdir}'
  792. libdir='${exec_prefix}/lib'
  793. localedir='${datarootdir}/locale'
  794. mandir='${datarootdir}/man'
  795. ac_prev=
  796. ac_dashdash=
  797. for ac_option
  798. do
  799. # If the previous option needs an argument, assign it.
  800. if test -n "$ac_prev"; then
  801. eval $ac_prev=\$ac_option
  802. ac_prev=
  803. continue
  804. fi
  805. case $ac_option in
  806. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  807. *) ac_optarg=yes ;;
  808. esac
  809. # Accept the important Cygnus configure options, so we can diagnose typos.
  810. case $ac_dashdash$ac_option in
  811. --)
  812. ac_dashdash=yes ;;
  813. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  814. ac_prev=bindir ;;
  815. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  816. bindir=$ac_optarg ;;
  817. -build | --build | --buil | --bui | --bu)
  818. ac_prev=build_alias ;;
  819. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  820. build_alias=$ac_optarg ;;
  821. -cache-file | --cache-file | --cache-fil | --cache-fi \
  822. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  823. ac_prev=cache_file ;;
  824. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  825. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  826. cache_file=$ac_optarg ;;
  827. --config-cache | -C)
  828. cache_file=config.cache ;;
  829. -datadir | --datadir | --datadi | --datad)
  830. ac_prev=datadir ;;
  831. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  832. datadir=$ac_optarg ;;
  833. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  834. | --dataroo | --dataro | --datar)
  835. ac_prev=datarootdir ;;
  836. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  837. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  838. datarootdir=$ac_optarg ;;
  839. -disable-* | --disable-*)
  840. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  841. # Reject names that are not valid shell variable names.
  842. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  843. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  844. { (exit 1); exit 1; }; }
  845. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  846. eval enable_$ac_feature=no ;;
  847. -docdir | --docdir | --docdi | --doc | --do)
  848. ac_prev=docdir ;;
  849. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  850. docdir=$ac_optarg ;;
  851. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  852. ac_prev=dvidir ;;
  853. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  854. dvidir=$ac_optarg ;;
  855. -enable-* | --enable-*)
  856. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  857. # Reject names that are not valid shell variable names.
  858. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  859. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  860. { (exit 1); exit 1; }; }
  861. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  862. eval enable_$ac_feature=\$ac_optarg ;;
  863. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  864. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  865. | --exec | --exe | --ex)
  866. ac_prev=exec_prefix ;;
  867. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  868. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  869. | --exec=* | --exe=* | --ex=*)
  870. exec_prefix=$ac_optarg ;;
  871. -gas | --gas | --ga | --g)
  872. # Obsolete; use --with-gas.
  873. with_gas=yes ;;
  874. -help | --help | --hel | --he | -h)
  875. ac_init_help=long ;;
  876. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  877. ac_init_help=recursive ;;
  878. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  879. ac_init_help=short ;;
  880. -host | --host | --hos | --ho)
  881. ac_prev=host_alias ;;
  882. -host=* | --host=* | --hos=* | --ho=*)
  883. host_alias=$ac_optarg ;;
  884. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  885. ac_prev=htmldir ;;
  886. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  887. | --ht=*)
  888. htmldir=$ac_optarg ;;
  889. -includedir | --includedir | --includedi | --included | --include \
  890. | --includ | --inclu | --incl | --inc)
  891. ac_prev=includedir ;;
  892. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  893. | --includ=* | --inclu=* | --incl=* | --inc=*)
  894. includedir=$ac_optarg ;;
  895. -infodir | --infodir | --infodi | --infod | --info | --inf)
  896. ac_prev=infodir ;;
  897. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  898. infodir=$ac_optarg ;;
  899. -libdir | --libdir | --libdi | --libd)
  900. ac_prev=libdir ;;
  901. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  902. libdir=$ac_optarg ;;
  903. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  904. | --libexe | --libex | --libe)
  905. ac_prev=libexecdir ;;
  906. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  907. | --libexe=* | --libex=* | --libe=*)
  908. libexecdir=$ac_optarg ;;
  909. -localedir | --localedir | --localedi | --localed | --locale)
  910. ac_prev=localedir ;;
  911. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  912. localedir=$ac_optarg ;;
  913. -localstatedir | --localstatedir | --localstatedi | --localstated \
  914. | --localstate | --localstat | --localsta | --localst | --locals)
  915. ac_prev=localstatedir ;;
  916. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  917. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  918. localstatedir=$ac_optarg ;;
  919. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  920. ac_prev=mandir ;;
  921. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  922. mandir=$ac_optarg ;;
  923. -nfp | --nfp | --nf)
  924. # Obsolete; use --without-fp.
  925. with_fp=no ;;
  926. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  927. | --no-cr | --no-c | -n)
  928. no_create=yes ;;
  929. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  930. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  931. no_recursion=yes ;;
  932. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  933. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  934. | --oldin | --oldi | --old | --ol | --o)
  935. ac_prev=oldincludedir ;;
  936. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  937. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  938. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  939. oldincludedir=$ac_optarg ;;
  940. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  941. ac_prev=prefix ;;
  942. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  943. prefix=$ac_optarg ;;
  944. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  945. | --program-pre | --program-pr | --program-p)
  946. ac_prev=program_prefix ;;
  947. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  948. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  949. program_prefix=$ac_optarg ;;
  950. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  951. | --program-suf | --program-su | --program-s)
  952. ac_prev=program_suffix ;;
  953. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  954. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  955. program_suffix=$ac_optarg ;;
  956. -program-transform-name | --program-transform-name \
  957. | --program-transform-nam | --program-transform-na \
  958. | --program-transform-n | --program-transform- \
  959. | --program-transform | --program-transfor \
  960. | --program-transfo | --program-transf \
  961. | --program-trans | --program-tran \
  962. | --progr-tra | --program-tr | --program-t)
  963. ac_prev=program_transform_name ;;
  964. -program-transform-name=* | --program-transform-name=* \
  965. | --program-transform-nam=* | --program-transform-na=* \
  966. | --program-transform-n=* | --program-transform-=* \
  967. | --program-transform=* | --program-transfor=* \
  968. | --program-transfo=* | --program-transf=* \
  969. | --program-trans=* | --program-tran=* \
  970. | --progr-tra=* | --program-tr=* | --program-t=*)
  971. program_transform_name=$ac_optarg ;;
  972. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  973. ac_prev=pdfdir ;;
  974. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  975. pdfdir=$ac_optarg ;;
  976. -psdir | --psdir | --psdi | --psd | --ps)
  977. ac_prev=psdir ;;
  978. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  979. psdir=$ac_optarg ;;
  980. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  981. | -silent | --silent | --silen | --sile | --sil)
  982. silent=yes ;;
  983. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  984. ac_prev=sbindir ;;
  985. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  986. | --sbi=* | --sb=*)
  987. sbindir=$ac_optarg ;;
  988. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  989. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  990. | --sharedst | --shareds | --shared | --share | --shar \
  991. | --sha | --sh)
  992. ac_prev=sharedstatedir ;;
  993. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  994. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  995. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  996. | --sha=* | --sh=*)
  997. sharedstatedir=$ac_optarg ;;
  998. -site | --site | --sit)
  999. ac_prev=site ;;
  1000. -site=* | --site=* | --sit=*)
  1001. site=$ac_optarg ;;
  1002. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1003. ac_prev=srcdir ;;
  1004. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1005. srcdir=$ac_optarg ;;
  1006. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1007. | --syscon | --sysco | --sysc | --sys | --sy)
  1008. ac_prev=sysconfdir ;;
  1009. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1010. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1011. sysconfdir=$ac_optarg ;;
  1012. -target | --target | --targe | --targ | --tar | --ta | --t)
  1013. ac_prev=target_alias ;;
  1014. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1015. target_alias=$ac_optarg ;;
  1016. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1017. verbose=yes ;;
  1018. -version | --version | --versio | --versi | --vers | -V)
  1019. ac_init_version=: ;;
  1020. -with-* | --with-*)
  1021. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1022. # Reject names that are not valid shell variable names.
  1023. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1024. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1025. { (exit 1); exit 1; }; }
  1026. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1027. eval with_$ac_package=\$ac_optarg ;;
  1028. -without-* | --without-*)
  1029. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1030. # Reject names that are not valid shell variable names.
  1031. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1032. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1033. { (exit 1); exit 1; }; }
  1034. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1035. eval with_$ac_package=no ;;
  1036. --x)
  1037. # Obsolete; use --with-x.
  1038. with_x=yes ;;
  1039. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1040. | --x-incl | --x-inc | --x-in | --x-i)
  1041. ac_prev=x_includes ;;
  1042. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1043. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1044. x_includes=$ac_optarg ;;
  1045. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1046. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1047. ac_prev=x_libraries ;;
  1048. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1049. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1050. x_libraries=$ac_optarg ;;
  1051. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1052. Try \`$0 --help' for more information." >&2
  1053. { (exit 1); exit 1; }; }
  1054. ;;
  1055. *=*)
  1056. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1057. # Reject names that are not valid shell variable names.
  1058. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1059. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1060. { (exit 1); exit 1; }; }
  1061. eval $ac_envvar=\$ac_optarg
  1062. export $ac_envvar ;;
  1063. *)
  1064. # FIXME: should be removed in autoconf 3.0.
  1065. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1066. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1067. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1068. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1069. ;;
  1070. esac
  1071. done
  1072. if test -n "$ac_prev"; then
  1073. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1074. { echo "$as_me: error: missing argument to $ac_option" >&2
  1075. { (exit 1); exit 1; }; }
  1076. fi
  1077. # Be sure to have absolute directory names.
  1078. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1079. datadir sysconfdir sharedstatedir localstatedir includedir \
  1080. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1081. libdir localedir mandir
  1082. do
  1083. eval ac_val=\$$ac_var
  1084. case $ac_val in
  1085. [\\/$]* | ?:[\\/]* ) continue;;
  1086. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1087. esac
  1088. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1089. { (exit 1); exit 1; }; }
  1090. done
  1091. # There might be people who depend on the old broken behavior: `$host'
  1092. # used to hold the argument of --host etc.
  1093. # FIXME: To remove some day.
  1094. build=$build_alias
  1095. host=$host_alias
  1096. target=$target_alias
  1097. # FIXME: To remove some day.
  1098. if test "x$host_alias" != x; then
  1099. if test "x$build_alias" = x; then
  1100. cross_compiling=maybe
  1101. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1102. If a cross compiler is detected then cross compile mode will be used." >&2
  1103. elif test "x$build_alias" != "x$host_alias"; then
  1104. cross_compiling=yes
  1105. fi
  1106. fi
  1107. ac_tool_prefix=
  1108. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1109. test "$silent" = yes && exec 6>/dev/null
  1110. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1111. ac_ls_di=`ls -di .` &&
  1112. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1113. { echo "$as_me: error: Working directory cannot be determined" >&2
  1114. { (exit 1); exit 1; }; }
  1115. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1116. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1117. { (exit 1); exit 1; }; }
  1118. # Find the source files, if location was not specified.
  1119. if test -z "$srcdir"; then
  1120. ac_srcdir_defaulted=yes
  1121. # Try the directory containing this script, then the parent directory.
  1122. ac_confdir=`$as_dirname -- "$0" ||
  1123. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1124. X"$0" : 'X\(//\)[^/]' \| \
  1125. X"$0" : 'X\(//\)$' \| \
  1126. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1127. echo X"$0" |
  1128. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1129. s//\1/
  1130. q
  1131. }
  1132. /^X\(\/\/\)[^/].*/{
  1133. s//\1/
  1134. q
  1135. }
  1136. /^X\(\/\/\)$/{
  1137. s//\1/
  1138. q
  1139. }
  1140. /^X\(\/\).*/{
  1141. s//\1/
  1142. q
  1143. }
  1144. s/.*/./; q'`
  1145. srcdir=$ac_confdir
  1146. if test ! -r "$srcdir/$ac_unique_file"; then
  1147. srcdir=..
  1148. fi
  1149. else
  1150. ac_srcdir_defaulted=no
  1151. fi
  1152. if test ! -r "$srcdir/$ac_unique_file"; then
  1153. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1154. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1155. { (exit 1); exit 1; }; }
  1156. fi
  1157. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1158. ac_abs_confdir=`(
  1159. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1160. { (exit 1); exit 1; }; }
  1161. pwd)`
  1162. # When building in place, set srcdir=.
  1163. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1164. srcdir=.
  1165. fi
  1166. # Remove unnecessary trailing slashes from srcdir.
  1167. # Double slashes in file names in object file debugging info
  1168. # mess up M-x gdb in Emacs.
  1169. case $srcdir in
  1170. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1171. esac
  1172. for ac_var in $ac_precious_vars; do
  1173. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1174. eval ac_env_${ac_var}_value=\$${ac_var}
  1175. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1176. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1177. done
  1178. #
  1179. # Report the --help message.
  1180. #
  1181. if test "$ac_init_help" = "long"; then
  1182. # Omit some internal or obsolete options to make the list less imposing.
  1183. # This message is too long to be a string in the A/UX 3.1 sh.
  1184. cat <<_ACEOF
  1185. \`configure' configures aria2c 0.15.0dev to adapt to many kinds of systems.
  1186. Usage: $0 [OPTION]... [VAR=VALUE]...
  1187. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1188. VAR=VALUE. See below for descriptions of some of the useful variables.
  1189. Defaults for the options are specified in brackets.
  1190. Configuration:
  1191. -h, --help display this help and exit
  1192. --help=short display options specific to this package
  1193. --help=recursive display the short help of all the included packages
  1194. -V, --version display version information and exit
  1195. -q, --quiet, --silent do not print \`checking...' messages
  1196. --cache-file=FILE cache test results in FILE [disabled]
  1197. -C, --config-cache alias for \`--cache-file=config.cache'
  1198. -n, --no-create do not create output files
  1199. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1200. Installation directories:
  1201. --prefix=PREFIX install architecture-independent files in PREFIX
  1202. [$ac_default_prefix]
  1203. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1204. [PREFIX]
  1205. By default, \`make install' will install all the files in
  1206. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1207. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1208. for instance \`--prefix=\$HOME'.
  1209. For better control, use the options below.
  1210. Fine tuning of the installation directories:
  1211. --bindir=DIR user executables [EPREFIX/bin]
  1212. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1213. --libexecdir=DIR program executables [EPREFIX/libexec]
  1214. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1215. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1216. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1217. --libdir=DIR object code libraries [EPREFIX/lib]
  1218. --includedir=DIR C header files [PREFIX/include]
  1219. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1220. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1221. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1222. --infodir=DIR info documentation [DATAROOTDIR/info]
  1223. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1224. --mandir=DIR man documentation [DATAROOTDIR/man]
  1225. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2c]
  1226. --htmldir=DIR html documentation [DOCDIR]
  1227. --dvidir=DIR dvi documentation [DOCDIR]
  1228. --pdfdir=DIR pdf documentation [DOCDIR]
  1229. --psdir=DIR ps documentation [DOCDIR]
  1230. _ACEOF
  1231. cat <<\_ACEOF
  1232. Program names:
  1233. --program-prefix=PREFIX prepend PREFIX to installed program names
  1234. --program-suffix=SUFFIX append SUFFIX to installed program names
  1235. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1236. System types:
  1237. --build=BUILD configure for building on BUILD [guessed]
  1238. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1239. --target=TARGET configure for building compilers for TARGET [HOST]
  1240. _ACEOF
  1241. fi
  1242. if test -n "$ac_init_help"; then
  1243. case $ac_init_help in
  1244. short | recursive ) echo "Configuration of aria2c 0.15.0dev:";;
  1245. esac
  1246. cat <<\_ACEOF
  1247. Optional Features:
  1248. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1249. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1250. --enable-bittorrent enable BitTorrent support. Default: yes
  1251. --enable-metalink enable Metalink support. Default: yes
  1252. --enable-epoll enable epoll support. Default: yes
  1253. --disable-dependency-tracking speeds up one-time build
  1254. --enable-dependency-tracking do not reject slow dependency extractors
  1255. --disable-xmltest Do not try to compile and run a test LIBXML program
  1256. --disable-largefile omit support for large files
  1257. --disable-nls do not use Native Language Support
  1258. --enable-threads={posix|solaris|pth|win32}
  1259. specify multithreading API
  1260. --disable-threads build without multithread safety
  1261. --disable-rpath do not hardcode runtime library paths
  1262. Optional Packages:
  1263. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1264. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1265. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1266. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1267. --with-gnutls use gnutls library if installed. Default: yes
  1268. --with-openssl use openssl library if installed. Default: yes
  1269. --with-libxml2 use libxml2 library if installed. Default: yes
  1270. --with-libexpat use libexpat library if installed. Default: yes
  1271. --with-libares use ares library if installed. Default: yes
  1272. --with-libcares use c-ares library if installed. Default: yes
  1273. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1274. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1275. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1276. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1277. --with-libgcrypt-prefix=PFX
  1278. prefix where LIBGCRYPT is installed (optional)
  1279. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1280. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1281. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  1282. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1283. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1284. --without-libpth-prefix don't search for libpth in includedir and libdir
  1285. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1286. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1287. --with-included-gettext use the GNU gettext library included here
  1288. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1289. --without-libintl-prefix don't search for libintl in includedir and libdir
  1290. Some influential environment variables:
  1291. CXX C++ compiler command
  1292. CXXFLAGS C++ compiler flags
  1293. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1294. nonstandard directory <lib dir>
  1295. LIBS libraries to pass to the linker, e.g. -l<library>
  1296. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1297. you have headers in a nonstandard directory <include dir>
  1298. CC C compiler command
  1299. CFLAGS C compiler flags
  1300. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1301. the first program found out of: `bison -y', `byacc', `yacc'.
  1302. YFLAGS The list of arguments that will be passed by default to $YACC.
  1303. This script will default YFLAGS to the empty string to avoid a
  1304. default value of `-d' given by some make applications.
  1305. CXXCPP C++ preprocessor
  1306. Use these variables to override the choices made by `configure' or to help
  1307. it to find libraries and programs with nonstandard names/locations.
  1308. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1309. _ACEOF
  1310. ac_status=$?
  1311. fi
  1312. if test "$ac_init_help" = "recursive"; then
  1313. # If there are subdirs, report their specific --help.
  1314. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1315. test -d "$ac_dir" || continue
  1316. ac_builddir=.
  1317. case "$ac_dir" in
  1318. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1319. *)
  1320. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1321. # A ".." for each directory in $ac_dir_suffix.
  1322. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1323. case $ac_top_builddir_sub in
  1324. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1325. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1326. esac ;;
  1327. esac
  1328. ac_abs_top_builddir=$ac_pwd
  1329. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1330. # for backward compatibility:
  1331. ac_top_builddir=$ac_top_build_prefix
  1332. case $srcdir in
  1333. .) # We are building in place.
  1334. ac_srcdir=.
  1335. ac_top_srcdir=$ac_top_builddir_sub
  1336. ac_abs_top_srcdir=$ac_pwd ;;
  1337. [\\/]* | ?:[\\/]* ) # Absolute name.
  1338. ac_srcdir=$srcdir$ac_dir_suffix;
  1339. ac_top_srcdir=$srcdir
  1340. ac_abs_top_srcdir=$srcdir ;;
  1341. *) # Relative name.
  1342. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1343. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1344. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1345. esac
  1346. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1347. cd "$ac_dir" || { ac_status=$?; continue; }
  1348. # Check for guested configure.
  1349. if test -f "$ac_srcdir/configure.gnu"; then
  1350. echo &&
  1351. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1352. elif test -f "$ac_srcdir/configure"; then
  1353. echo &&
  1354. $SHELL "$ac_srcdir/configure" --help=recursive
  1355. else
  1356. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1357. fi || ac_status=$?
  1358. cd "$ac_pwd" || { ac_status=$?; break; }
  1359. done
  1360. fi
  1361. test -n "$ac_init_help" && exit $ac_status
  1362. if $ac_init_version; then
  1363. cat <<\_ACEOF
  1364. aria2c configure 0.15.0dev
  1365. generated by GNU Autoconf 2.61
  1366. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1367. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1368. This configure script is free software; the Free Software Foundation
  1369. gives unlimited permission to copy, distribute and modify it.
  1370. _ACEOF
  1371. exit
  1372. fi
  1373. cat >config.log <<_ACEOF
  1374. This file contains any messages produced by compilers while
  1375. running configure, to aid debugging if configure makes a mistake.
  1376. It was created by aria2c $as_me 0.15.0dev, which was
  1377. generated by GNU Autoconf 2.61. Invocation command line was
  1378. $ $0 $@
  1379. _ACEOF
  1380. exec 5>>config.log
  1381. {
  1382. cat <<_ASUNAME
  1383. ## --------- ##
  1384. ## Platform. ##
  1385. ## --------- ##
  1386. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1387. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1388. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1389. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1390. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1391. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1392. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1393. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1394. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1395. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1396. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1397. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1398. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1399. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1400. _ASUNAME
  1401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1402. for as_dir in $PATH
  1403. do
  1404. IFS=$as_save_IFS
  1405. test -z "$as_dir" && as_dir=.
  1406. echo "PATH: $as_dir"
  1407. done
  1408. IFS=$as_save_IFS
  1409. } >&5
  1410. cat >&5 <<_ACEOF
  1411. ## ----------- ##
  1412. ## Core tests. ##
  1413. ## ----------- ##
  1414. _ACEOF
  1415. # Keep a trace of the command line.
  1416. # Strip out --no-create and --no-recursion so they do not pile up.
  1417. # Strip out --silent because we don't want to record it for future runs.
  1418. # Also quote any args containing shell meta-characters.
  1419. # Make two passes to allow for proper duplicate-argument suppression.
  1420. ac_configure_args=
  1421. ac_configure_args0=
  1422. ac_configure_args1=
  1423. ac_must_keep_next=false
  1424. for ac_pass in 1 2
  1425. do
  1426. for ac_arg
  1427. do
  1428. case $ac_arg in
  1429. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1430. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1431. | -silent | --silent | --silen | --sile | --sil)
  1432. continue ;;
  1433. *\'*)
  1434. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1435. esac
  1436. case $ac_pass in
  1437. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1438. 2)
  1439. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1440. if test $ac_must_keep_next = true; then
  1441. ac_must_keep_next=false # Got value, back to normal.
  1442. else
  1443. case $ac_arg in
  1444. *=* | --config-cache | -C | -disable-* | --disable-* \
  1445. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1446. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1447. | -with-* | --with-* | -without-* | --without-* | --x)
  1448. case "$ac_configure_args0 " in
  1449. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1450. esac
  1451. ;;
  1452. -* ) ac_must_keep_next=true ;;
  1453. esac
  1454. fi
  1455. ac_configure_args="$ac_configure_args '$ac_arg'"
  1456. ;;
  1457. esac
  1458. done
  1459. done
  1460. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1461. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1462. # When interrupted or exit'd, cleanup temporary files, and complete
  1463. # config.log. We remove comments because anyway the quotes in there
  1464. # would cause problems or look ugly.
  1465. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1466. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1467. trap 'exit_status=$?
  1468. # Save into config.log some information that might help in debugging.
  1469. {
  1470. echo
  1471. cat <<\_ASBOX
  1472. ## ---------------- ##
  1473. ## Cache variables. ##
  1474. ## ---------------- ##
  1475. _ASBOX
  1476. echo
  1477. # The following way of writing the cache mishandles newlines in values,
  1478. (
  1479. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1480. eval ac_val=\$$ac_var
  1481. case $ac_val in #(
  1482. *${as_nl}*)
  1483. case $ac_var in #(
  1484. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1485. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1486. esac
  1487. case $ac_var in #(
  1488. _ | IFS | as_nl) ;; #(
  1489. *) $as_unset $ac_var ;;
  1490. esac ;;
  1491. esac
  1492. done
  1493. (set) 2>&1 |
  1494. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1495. *${as_nl}ac_space=\ *)
  1496. sed -n \
  1497. "s/'\''/'\''\\\\'\'''\''/g;
  1498. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1499. ;; #(
  1500. *)
  1501. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1502. ;;
  1503. esac |
  1504. sort
  1505. )
  1506. echo
  1507. cat <<\_ASBOX
  1508. ## ----------------- ##
  1509. ## Output variables. ##
  1510. ## ----------------- ##
  1511. _ASBOX
  1512. echo
  1513. for ac_var in $ac_subst_vars
  1514. do
  1515. eval ac_val=\$$ac_var
  1516. case $ac_val in
  1517. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1518. esac
  1519. echo "$ac_var='\''$ac_val'\''"
  1520. done | sort
  1521. echo
  1522. if test -n "$ac_subst_files"; then
  1523. cat <<\_ASBOX
  1524. ## ------------------- ##
  1525. ## File substitutions. ##
  1526. ## ------------------- ##
  1527. _ASBOX
  1528. echo
  1529. for ac_var in $ac_subst_files
  1530. do
  1531. eval ac_val=\$$ac_var
  1532. case $ac_val in
  1533. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1534. esac
  1535. echo "$ac_var='\''$ac_val'\''"
  1536. done | sort
  1537. echo
  1538. fi
  1539. if test -s confdefs.h; then
  1540. cat <<\_ASBOX
  1541. ## ----------- ##
  1542. ## confdefs.h. ##
  1543. ## ----------- ##
  1544. _ASBOX
  1545. echo
  1546. cat confdefs.h
  1547. echo
  1548. fi
  1549. test "$ac_signal" != 0 &&
  1550. echo "$as_me: caught signal $ac_signal"
  1551. echo "$as_me: exit $exit_status"
  1552. } >&5
  1553. rm -f core *.core core.conftest.* &&
  1554. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1555. exit $exit_status
  1556. ' 0
  1557. for ac_signal in 1 2 13 15; do
  1558. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1559. done
  1560. ac_signal=0
  1561. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1562. rm -f -r conftest* confdefs.h
  1563. # Predefined preprocessor variables.
  1564. cat >>confdefs.h <<_ACEOF
  1565. #define PACKAGE_NAME "$PACKAGE_NAME"
  1566. _ACEOF
  1567. cat >>confdefs.h <<_ACEOF
  1568. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1569. _ACEOF
  1570. cat >>confdefs.h <<_ACEOF
  1571. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1572. _ACEOF
  1573. cat >>confdefs.h <<_ACEOF
  1574. #define PACKAGE_STRING "$PACKAGE_STRING"
  1575. _ACEOF
  1576. cat >>confdefs.h <<_ACEOF
  1577. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1578. _ACEOF
  1579. # Let the site file select an alternate cache file if it wants to.
  1580. # Prefer explicitly selected file to automatically selected ones.
  1581. if test -n "$CONFIG_SITE"; then
  1582. set x "$CONFIG_SITE"
  1583. elif test "x$prefix" != xNONE; then
  1584. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1585. else
  1586. set x "$ac_default_prefix/share/config.site" \
  1587. "$ac_default_prefix/etc/config.site"
  1588. fi
  1589. shift
  1590. for ac_site_file
  1591. do
  1592. if test -r "$ac_site_file"; then
  1593. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1594. echo "$as_me: loading site script $ac_site_file" >&6;}
  1595. sed 's/^/| /' "$ac_site_file" >&5
  1596. . "$ac_site_file"
  1597. fi
  1598. done
  1599. if test -r "$cache_file"; then
  1600. # Some versions of bash will fail to source /dev/null (special
  1601. # files actually), so we avoid doing that.
  1602. if test -f "$cache_file"; then
  1603. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1604. echo "$as_me: loading cache $cache_file" >&6;}
  1605. case $cache_file in
  1606. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1607. *) . "./$cache_file";;
  1608. esac
  1609. fi
  1610. else
  1611. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1612. echo "$as_me: creating cache $cache_file" >&6;}
  1613. >$cache_file
  1614. fi
  1615. gt_needs="$gt_needs "
  1616. ac_header_list="$ac_header_list sys/time.h"
  1617. ac_header_list="$ac_header_list unistd.h"
  1618. ac_func_list="$ac_func_list alarm"
  1619. # Check that the precious variables saved in the cache have kept the same
  1620. # value.
  1621. ac_cache_corrupted=false
  1622. for ac_var in $ac_precious_vars; do
  1623. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1624. eval ac_new_set=\$ac_env_${ac_var}_set
  1625. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1626. eval ac_new_val=\$ac_env_${ac_var}_value
  1627. case $ac_old_set,$ac_new_set in
  1628. set,)
  1629. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1630. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1631. ac_cache_corrupted=: ;;
  1632. ,set)
  1633. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1634. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1635. ac_cache_corrupted=: ;;
  1636. ,);;
  1637. *)
  1638. if test "x$ac_old_val" != "x$ac_new_val"; then
  1639. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1640. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1641. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1642. echo "$as_me: former value: $ac_old_val" >&2;}
  1643. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1644. echo "$as_me: current value: $ac_new_val" >&2;}
  1645. ac_cache_corrupted=:
  1646. fi;;
  1647. esac
  1648. # Pass precious variables to config.status.
  1649. if test "$ac_new_set" = set; then
  1650. case $ac_new_val in
  1651. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1652. *) ac_arg=$ac_var=$ac_new_val ;;
  1653. esac
  1654. case " $ac_configure_args " in
  1655. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1656. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1657. esac
  1658. fi
  1659. done
  1660. if $ac_cache_corrupted; then
  1661. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1662. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1663. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1664. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1665. { (exit 1); exit 1; }; }
  1666. fi
  1667. ac_ext=c
  1668. ac_cpp='$CPP $CPPFLAGS'
  1669. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1670. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1671. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1672. ac_aux_dir=
  1673. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1674. if test -f "$ac_dir/install-sh"; then
  1675. ac_aux_dir=$ac_dir
  1676. ac_install_sh="$ac_aux_dir/install-sh -c"
  1677. break
  1678. elif test -f "$ac_dir/install.sh"; then
  1679. ac_aux_dir=$ac_dir
  1680. ac_install_sh="$ac_aux_dir/install.sh -c"
  1681. break
  1682. elif test -f "$ac_dir/shtool"; then
  1683. ac_aux_dir=$ac_dir
  1684. ac_install_sh="$ac_aux_dir/shtool install -c"
  1685. break
  1686. fi
  1687. done
  1688. if test -z "$ac_aux_dir"; then
  1689. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1690. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1691. { (exit 1); exit 1; }; }
  1692. fi
  1693. # These three variables are undocumented and unsupported,
  1694. # and are intended to be withdrawn in a future Autoconf release.
  1695. # They can cause serious problems if a builder's source tree is in a directory
  1696. # whose full name contains unusual characters.
  1697. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1698. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1699. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1700. # Make sure we can run config.sub.
  1701. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1702. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1703. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1704. { (exit 1); exit 1; }; }
  1705. { echo "$as_me:$LINENO: checking build system type" >&5
  1706. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1707. if test "${ac_cv_build+set}" = set; then
  1708. echo $ECHO_N "(cached) $ECHO_C" >&6
  1709. else
  1710. ac_build_alias=$build_alias
  1711. test "x$ac_build_alias" = x &&
  1712. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1713. test "x$ac_build_alias" = x &&
  1714. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1715. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1716. { (exit 1); exit 1; }; }
  1717. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1718. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1719. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1720. { (exit 1); exit 1; }; }
  1721. fi
  1722. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1723. echo "${ECHO_T}$ac_cv_build" >&6; }
  1724. case $ac_cv_build in
  1725. *-*-*) ;;
  1726. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1727. echo "$as_me: error: invalid value of canonical build" >&2;}
  1728. { (exit 1); exit 1; }; };;
  1729. esac
  1730. build=$ac_cv_build
  1731. ac_save_IFS=$IFS; IFS='-'
  1732. set x $ac_cv_build
  1733. shift
  1734. build_cpu=$1
  1735. build_vendor=$2
  1736. shift; shift
  1737. # Remember, the first character of IFS is used to create $*,
  1738. # except with old shells:
  1739. build_os=$*
  1740. IFS=$ac_save_IFS
  1741. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1742. { echo "$as_me:$LINENO: checking host system type" >&5
  1743. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1744. if test "${ac_cv_host+set}" = set; then
  1745. echo $ECHO_N "(cached) $ECHO_C" >&6
  1746. else
  1747. if test "x$host_alias" = x; then
  1748. ac_cv_host=$ac_cv_build
  1749. else
  1750. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1751. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1752. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1753. { (exit 1); exit 1; }; }
  1754. fi
  1755. fi
  1756. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1757. echo "${ECHO_T}$ac_cv_host" >&6; }
  1758. case $ac_cv_host in
  1759. *-*-*) ;;
  1760. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1761. echo "$as_me: error: invalid value of canonical host" >&2;}
  1762. { (exit 1); exit 1; }; };;
  1763. esac
  1764. host=$ac_cv_host
  1765. ac_save_IFS=$IFS; IFS='-'
  1766. set x $ac_cv_host
  1767. shift
  1768. host_cpu=$1
  1769. host_vendor=$2
  1770. shift; shift
  1771. # Remember, the first character of IFS is used to create $*,
  1772. # except with old shells:
  1773. host_os=$*
  1774. IFS=$ac_save_IFS
  1775. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1776. { echo "$as_me:$LINENO: checking target system type" >&5
  1777. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1778. if test "${ac_cv_target+set}" = set; then
  1779. echo $ECHO_N "(cached) $ECHO_C" >&6
  1780. else
  1781. if test "x$target_alias" = x; then
  1782. ac_cv_target=$ac_cv_host
  1783. else
  1784. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1785. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1786. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1787. { (exit 1); exit 1; }; }
  1788. fi
  1789. fi
  1790. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1791. echo "${ECHO_T}$ac_cv_target" >&6; }
  1792. case $ac_cv_target in
  1793. *-*-*) ;;
  1794. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1795. echo "$as_me: error: invalid value of canonical target" >&2;}
  1796. { (exit 1); exit 1; }; };;
  1797. esac
  1798. target=$ac_cv_target
  1799. ac_save_IFS=$IFS; IFS='-'
  1800. set x $ac_cv_target
  1801. shift
  1802. target_cpu=$1
  1803. target_vendor=$2
  1804. shift; shift
  1805. # Remember, the first character of IFS is used to create $*,
  1806. # except with old shells:
  1807. target_os=$*
  1808. IFS=$ac_save_IFS
  1809. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1810. # The aliases save the names the user supplied, while $host etc.
  1811. # will get canonicalized.
  1812. test -n "$target_alias" &&
  1813. test "$program_prefix$program_suffix$program_transform_name" = \
  1814. NONENONEs,x,x, &&
  1815. program_prefix=${target_alias}-
  1816. am__api_version='1.10'
  1817. # Find a good install program. We prefer a C program (faster),
  1818. # so one script is as good as another. But avoid the broken or
  1819. # incompatible versions:
  1820. # SysV /etc/install, /usr/sbin/install
  1821. # SunOS /usr/etc/install
  1822. # IRIX /sbin/install
  1823. # AIX /bin/install
  1824. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1825. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1826. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1827. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1828. # OS/2's system install, which has a completely different semantic
  1829. # ./install, which can be erroneously created by make from ./install.sh.
  1830. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1831. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1832. if test -z "$INSTALL"; then
  1833. if test "${ac_cv_path_install+set}" = set; then
  1834. echo $ECHO_N "(cached) $ECHO_C" >&6
  1835. else
  1836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1837. for as_dir in $PATH
  1838. do
  1839. IFS=$as_save_IFS
  1840. test -z "$as_dir" && as_dir=.
  1841. # Account for people who put trailing slashes in PATH elements.
  1842. case $as_dir/ in
  1843. ./ | .// | /cC/* | \
  1844. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1845. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1846. /usr/ucb/* ) ;;
  1847. *)
  1848. # OSF1 and SCO ODT 3.0 have their own names for install.
  1849. # Don't use installbsd from OSF since it installs stuff as root
  1850. # by default.
  1851. for ac_prog in ginstall scoinst install; do
  1852. for ac_exec_ext in '' $ac_executable_extensions; do
  1853. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1854. if test $ac_prog = install &&
  1855. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1856. # AIX install. It has an incompatible calling convention.
  1857. :
  1858. elif test $ac_prog = install &&
  1859. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1860. # program-specific install script used by HP pwplus--don't use.
  1861. :
  1862. else
  1863. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1864. break 3
  1865. fi
  1866. fi
  1867. done
  1868. done
  1869. ;;
  1870. esac
  1871. done
  1872. IFS=$as_save_IFS
  1873. fi
  1874. if test "${ac_cv_path_install+set}" = set; then
  1875. INSTALL=$ac_cv_path_install
  1876. else
  1877. # As a last resort, use the slow shell script. Don't cache a
  1878. # value for INSTALL within a source directory, because that will
  1879. # break other packages using the cache if that directory is
  1880. # removed, or if the value is a relative name.
  1881. INSTALL=$ac_install_sh
  1882. fi
  1883. fi
  1884. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1885. echo "${ECHO_T}$INSTALL" >&6; }
  1886. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1887. # It thinks the first close brace ends the variable substitution.
  1888. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1889. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1890. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1891. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1892. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1893. # Just in case
  1894. sleep 1
  1895. echo timestamp > conftest.file
  1896. # Do `set' in a subshell so we don't clobber the current shell's
  1897. # arguments. Must try -L first in case configure is actually a
  1898. # symlink; some systems play weird games with the mod time of symlinks
  1899. # (eg FreeBSD returns the mod time of the symlink's containing
  1900. # directory).
  1901. if (
  1902. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1903. if test "$*" = "X"; then
  1904. # -L didn't work.
  1905. set X `ls -t $srcdir/configure conftest.file`
  1906. fi
  1907. rm -f conftest.file
  1908. if test "$*" != "X $srcdir/configure conftest.file" \
  1909. && test "$*" != "X conftest.file $srcdir/configure"; then
  1910. # If neither matched, then we have a broken ls. This can happen
  1911. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1912. # broken ls alias from the environment. This has actually
  1913. # happened. Such a system could not be considered "sane".
  1914. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1915. alias in your environment" >&5
  1916. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1917. alias in your environment" >&2;}
  1918. { (exit 1); exit 1; }; }
  1919. fi
  1920. test "$2" = conftest.file
  1921. )
  1922. then
  1923. # Ok.
  1924. :
  1925. else
  1926. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1927. Check your system clock" >&5
  1928. echo "$as_me: error: newly created file is older than distributed files!
  1929. Check your system clock" >&2;}
  1930. { (exit 1); exit 1; }; }
  1931. fi
  1932. { echo "$as_me:$LINENO: result: yes" >&5
  1933. echo "${ECHO_T}yes" >&6; }
  1934. test "$program_prefix" != NONE &&
  1935. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1936. # Use a double $ so make ignores it.
  1937. test "$program_suffix" != NONE &&
  1938. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1939. # Double any \ or $. echo might interpret backslashes.
  1940. # By default was `s,x,x', remove it if useless.
  1941. cat <<\_ACEOF >conftest.sed
  1942. s/[\\$]/&&/g;s/;s,x,x,$//
  1943. _ACEOF
  1944. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1945. rm -f conftest.sed
  1946. # expand $ac_aux_dir to an absolute path
  1947. am_aux_dir=`cd $ac_aux_dir && pwd`
  1948. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1949. # Use eval to expand $SHELL
  1950. if eval "$MISSING --run true"; then
  1951. am_missing_run="$MISSING --run "
  1952. else
  1953. am_missing_run=
  1954. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1955. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1956. fi
  1957. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1958. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  1959. if test -z "$MKDIR_P"; then
  1960. if test "${ac_cv_path_mkdir+set}" = set; then
  1961. echo $ECHO_N "(cached) $ECHO_C" >&6
  1962. else
  1963. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1964. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1965. do
  1966. IFS=$as_save_IFS
  1967. test -z "$as_dir" && as_dir=.
  1968. for ac_prog in mkdir gmkdir; do
  1969. for ac_exec_ext in '' $ac_executable_extensions; do
  1970. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1971. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1972. 'mkdir (GNU coreutils) '* | \
  1973. 'mkdir (coreutils) '* | \
  1974. 'mkdir (fileutils) '4.1*)
  1975. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1976. break 3;;
  1977. esac
  1978. done
  1979. done
  1980. done
  1981. IFS=$as_save_IFS
  1982. fi
  1983. if test "${ac_cv_path_mkdir+set}" = set; then
  1984. MKDIR_P="$ac_cv_path_mkdir -p"
  1985. else
  1986. # As a last resort, use the slow shell script. Don't cache a
  1987. # value for MKDIR_P within a source directory, because that will
  1988. # break other packages using the cache if that directory is
  1989. # removed, or if the value is a relative name.
  1990. test -d ./--version && rmdir ./--version
  1991. MKDIR_P="$ac_install_sh -d"
  1992. fi
  1993. fi
  1994. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  1995. echo "${ECHO_T}$MKDIR_P" >&6; }
  1996. mkdir_p="$MKDIR_P"
  1997. case $mkdir_p in
  1998. [\\/$]* | ?:[\\/]*) ;;
  1999. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2000. esac
  2001. for ac_prog in gawk mawk nawk awk
  2002. do
  2003. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2004. set dummy $ac_prog; ac_word=$2
  2005. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2006. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2007. if test "${ac_cv_prog_AWK+set}" = set; then
  2008. echo $ECHO_N "(cached) $ECHO_C" >&6
  2009. else
  2010. if test -n "$AWK"; then
  2011. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2012. else
  2013. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2014. for as_dir in $PATH
  2015. do
  2016. IFS=$as_save_IFS
  2017. test -z "$as_dir" && as_dir=.
  2018. for ac_exec_ext in '' $ac_executable_extensions; do
  2019. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2020. ac_cv_prog_AWK="$ac_prog"
  2021. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2022. break 2
  2023. fi
  2024. done
  2025. done
  2026. IFS=$as_save_IFS
  2027. fi
  2028. fi
  2029. AWK=$ac_cv_prog_AWK
  2030. if test -n "$AWK"; then
  2031. { echo "$as_me:$LINENO: result: $AWK" >&5
  2032. echo "${ECHO_T}$AWK" >&6; }
  2033. else
  2034. { echo "$as_me:$LINENO: result: no" >&5
  2035. echo "${ECHO_T}no" >&6; }
  2036. fi
  2037. test -n "$AWK" && break
  2038. done
  2039. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2040. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2041. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2042. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2043. echo $ECHO_N "(cached) $ECHO_C" >&6
  2044. else
  2045. cat >conftest.make <<\_ACEOF
  2046. SHELL = /bin/sh
  2047. all:
  2048. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2049. _ACEOF
  2050. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2051. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2052. *@@@%%%=?*=@@@%%%*)
  2053. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2054. *)
  2055. eval ac_cv_prog_make_${ac_make}_set=no;;
  2056. esac
  2057. rm -f conftest.make
  2058. fi
  2059. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2060. { echo "$as_me:$LINENO: result: yes" >&5
  2061. echo "${ECHO_T}yes" >&6; }
  2062. SET_MAKE=
  2063. else
  2064. { echo "$as_me:$LINENO: result: no" >&5
  2065. echo "${ECHO_T}no" >&6; }
  2066. SET_MAKE="MAKE=${MAKE-make}"
  2067. fi
  2068. rm -rf .tst 2>/dev/null
  2069. mkdir .tst 2>/dev/null
  2070. if test -d .tst; then
  2071. am__leading_dot=.
  2072. else
  2073. am__leading_dot=_
  2074. fi
  2075. rmdir .tst 2>/dev/null
  2076. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2077. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2078. # is not polluted with repeated "-I."
  2079. am__isrc=' -I$(srcdir)'
  2080. # test to see if srcdir already configured
  2081. if test -f $srcdir/config.status; then
  2082. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2083. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2084. { (exit 1); exit 1; }; }
  2085. fi
  2086. fi
  2087. # test whether we have cygpath
  2088. if test -z "$CYGPATH_W"; then
  2089. if (cygpath --version) >/dev/null 2>/dev/null; then
  2090. CYGPATH_W='cygpath -w'
  2091. else
  2092. CYGPATH_W=echo
  2093. fi
  2094. fi
  2095. # Define the identity of the package.
  2096. PACKAGE='aria2c'
  2097. VERSION='0.15.0dev'
  2098. cat >>confdefs.h <<_ACEOF
  2099. #define PACKAGE "$PACKAGE"
  2100. _ACEOF
  2101. cat >>confdefs.h <<_ACEOF
  2102. #define VERSION "$VERSION"
  2103. _ACEOF
  2104. # Some tools Automake needs.
  2105. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2106. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2107. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2108. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2109. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2110. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2111. # Installed binaries are usually stripped using `strip' when the user
  2112. # run `make install-strip'. However `strip' might not be the right
  2113. # tool to use in cross-compilation environments, therefore Automake
  2114. # will honor the `STRIP' environment variable to overrule this program.
  2115. if test "$cross_compiling" != no; then
  2116. if test -n "$ac_tool_prefix"; then
  2117. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2118. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2119. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2120. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2121. if test "${ac_cv_prog_STRIP+set}" = set; then
  2122. echo $ECHO_N "(cached) $ECHO_C" >&6
  2123. else
  2124. if test -n "$STRIP"; then
  2125. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2126. else
  2127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2128. for as_dir in $PATH
  2129. do
  2130. IFS=$as_save_IFS
  2131. test -z "$as_dir" && as_dir=.
  2132. for ac_exec_ext in '' $ac_executable_extensions; do
  2133. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2134. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2135. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2136. break 2
  2137. fi
  2138. done
  2139. done
  2140. IFS=$as_save_IFS
  2141. fi
  2142. fi
  2143. STRIP=$ac_cv_prog_STRIP
  2144. if test -n "$STRIP"; then
  2145. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2146. echo "${ECHO_T}$STRIP" >&6; }
  2147. else
  2148. { echo "$as_me:$LINENO: result: no" >&5
  2149. echo "${ECHO_T}no" >&6; }
  2150. fi
  2151. fi
  2152. if test -z "$ac_cv_prog_STRIP"; then
  2153. ac_ct_STRIP=$STRIP
  2154. # Extract the first word of "strip", so it can be a program name with args.
  2155. set dummy strip; ac_word=$2
  2156. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2157. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2158. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2159. echo $ECHO_N "(cached) $ECHO_C" >&6
  2160. else
  2161. if test -n "$ac_ct_STRIP"; then
  2162. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2163. else
  2164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2165. for as_dir in $PATH
  2166. do
  2167. IFS=$as_save_IFS
  2168. test -z "$as_dir" && as_dir=.
  2169. for ac_exec_ext in '' $ac_executable_extensions; do
  2170. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2171. ac_cv_prog_ac_ct_STRIP="strip"
  2172. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2173. break 2
  2174. fi
  2175. done
  2176. done
  2177. IFS=$as_save_IFS
  2178. fi
  2179. fi
  2180. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2181. if test -n "$ac_ct_STRIP"; then
  2182. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2183. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2184. else
  2185. { echo "$as_me:$LINENO: result: no" >&5
  2186. echo "${ECHO_T}no" >&6; }
  2187. fi
  2188. if test "x$ac_ct_STRIP" = x; then
  2189. STRIP=":"
  2190. else
  2191. case $cross_compiling:$ac_tool_warned in
  2192. yes:)
  2193. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2194. whose name does not start with the host triplet. If you think this
  2195. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2196. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2197. whose name does not start with the host triplet. If you think this
  2198. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2199. ac_tool_warned=yes ;;
  2200. esac
  2201. STRIP=$ac_ct_STRIP
  2202. fi
  2203. else
  2204. STRIP="$ac_cv_prog_STRIP"
  2205. fi
  2206. fi
  2207. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2208. # We need awk for the "check" target. The system "awk" is bad on
  2209. # some platforms.
  2210. # Always define AMTAR for backward compatibility.
  2211. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2212. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2213. # Check whether --with-cppunit-prefix was given.
  2214. if test "${with_cppunit_prefix+set}" = set; then
  2215. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2216. else
  2217. cppunit_config_prefix=""
  2218. fi
  2219. # Check whether --with-cppunit-exec-prefix was given.
  2220. if test "${with_cppunit_exec_prefix+set}" = set; then
  2221. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2222. else
  2223. cppunit_config_exec_prefix=""
  2224. fi
  2225. if test x$cppunit_config_exec_prefix != x ; then
  2226. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2227. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2228. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2229. fi
  2230. fi
  2231. if test x$cppunit_config_prefix != x ; then
  2232. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2233. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2234. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2235. fi
  2236. fi
  2237. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2238. set dummy cppunit-config; ac_word=$2
  2239. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2240. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2241. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2242. echo $ECHO_N "(cached) $ECHO_C" >&6
  2243. else
  2244. case $CPPUNIT_CONFIG in
  2245. [\\/]* | ?:[\\/]*)
  2246. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2247. ;;
  2248. *)
  2249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2250. for as_dir in $PATH
  2251. do
  2252. IFS=$as_save_IFS
  2253. test -z "$as_dir" && as_dir=.
  2254. for ac_exec_ext in '' $ac_executable_extensions; do
  2255. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2256. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2257. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2258. break 2
  2259. fi
  2260. done
  2261. done
  2262. IFS=$as_save_IFS
  2263. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2264. ;;
  2265. esac
  2266. fi
  2267. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2268. if test -n "$CPPUNIT_CONFIG"; then
  2269. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2270. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2271. else
  2272. { echo "$as_me:$LINENO: result: no" >&5
  2273. echo "${ECHO_T}no" >&6; }
  2274. fi
  2275. cppunit_version_min=1.10.2
  2276. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2277. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2278. no_cppunit=""
  2279. if test "$CPPUNIT_CONFIG" = "no" ; then
  2280. { echo "$as_me:$LINENO: result: no" >&5
  2281. echo "${ECHO_T}no" >&6; }
  2282. no_cppunit=yes
  2283. else
  2284. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2285. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2286. cppunit_version=`$CPPUNIT_CONFIG --version`
  2287. cppunit_major_version=`echo $cppunit_version | \
  2288. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2289. cppunit_minor_version=`echo $cppunit_version | \
  2290. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2291. cppunit_micro_version=`echo $cppunit_version | \
  2292. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2293. cppunit_major_min=`echo $cppunit_version_min | \
  2294. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2295. if test "x${cppunit_major_min}" = "x" ; then
  2296. cppunit_major_min=0
  2297. fi
  2298. cppunit_minor_min=`echo $cppunit_version_min | \
  2299. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2300. if test "x${cppunit_minor_min}" = "x" ; then
  2301. cppunit_minor_min=0
  2302. fi
  2303. cppunit_micro_min=`echo $cppunit_version_min | \
  2304. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2305. if test "x${cppunit_micro_min}" = "x" ; then
  2306. cppunit_micro_min=0
  2307. fi
  2308. cppunit_version_proper=`expr \
  2309. $cppunit_major_version \> $cppunit_major_min \| \
  2310. $cppunit_major_version \= $cppunit_major_min \& \
  2311. $cppunit_minor_version \> $cppunit_minor_min \| \
  2312. $cppunit_major_version \= $cppunit_major_min \& \
  2313. $cppunit_minor_version \= $cppunit_minor_min \& \
  2314. $cppunit_micro_version \>= $cppunit_micro_min `
  2315. if test "$cppunit_version_proper" = "1" ; then
  2316. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2317. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2318. else
  2319. { echo "$as_me:$LINENO: result: no" >&5
  2320. echo "${ECHO_T}no" >&6; }
  2321. no_cppunit=yes
  2322. fi
  2323. fi
  2324. if test "x$no_cppunit" = x ; then
  2325. :
  2326. else
  2327. CPPUNIT_CFLAGS=""
  2328. CPPUNIT_LIBS=""
  2329. :
  2330. fi
  2331. ac_config_headers="$ac_config_headers config.h"
  2332. case "$target" in
  2333. *mingw*|*cygwin*)
  2334. WINSOCK_LIBS="-lws2_32 -lpthread"
  2335. ;;
  2336. esac
  2337. cat >>confdefs.h <<_ACEOF
  2338. #define TARGET "$target"
  2339. _ACEOF
  2340. # Set localedir
  2341. localedir=${datadir}/locale
  2342. # Checks for arguments.
  2343. # Check whether --with-gnutls was given.
  2344. if test "${with_gnutls+set}" = set; then
  2345. withval=$with_gnutls; with_gnutls=$withval
  2346. else
  2347. with_gnutls=yes
  2348. fi
  2349. # Check whether --with-openssl was given.
  2350. if test "${with_openssl+set}" = set; then
  2351. withval=$with_openssl; with_openssl=$withval
  2352. else
  2353. with_openssl=yes
  2354. fi
  2355. # Check whether --with-libxml2 was given.
  2356. if test "${with_libxml2+set}" = set; then
  2357. withval=$with_libxml2; with_libxml2=$withval
  2358. else
  2359. with_libxml2=yes
  2360. fi
  2361. # Check whether --with-libexpat was given.
  2362. if test "${with_libexpat+set}" = set; then
  2363. withval=$with_libexpat; with_libexpat=$withval
  2364. else
  2365. with_libexpat=yes
  2366. fi
  2367. # Check whether --with-libares was given.
  2368. if test "${with_libares+set}" = set; then
  2369. withval=$with_libares; with_libares=$withval
  2370. else
  2371. with_libares=yes
  2372. fi
  2373. # Check whether --with-libcares was given.
  2374. if test "${with_libcares+set}" = set; then
  2375. withval=$with_libcares; with_libcares=$withval
  2376. else
  2377. with_libcares=yes
  2378. fi
  2379. # Check whether --enable-bittorrent was given.
  2380. if test "${enable_bittorrent+set}" = set; then
  2381. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2382. else
  2383. enable_bittorrent=yes
  2384. fi
  2385. # Check whether --enable-metalink was given.
  2386. if test "${enable_metalink+set}" = set; then
  2387. enableval=$enable_metalink; enable_metalink=$enableval
  2388. else
  2389. enable_metalink=yes
  2390. fi
  2391. # Check whether --enable-epoll was given.
  2392. if test "${enable_epoll+set}" = set; then
  2393. enableval=$enable_epoll; enable_epoll=$enableval
  2394. else
  2395. enable_epoll=yes
  2396. fi
  2397. # Checks for programs.
  2398. ac_ext=cpp
  2399. ac_cpp='$CXXCPP $CPPFLAGS'
  2400. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2401. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2402. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2403. if test -z "$CXX"; then
  2404. if test -n "$CCC"; then
  2405. CXX=$CCC
  2406. else
  2407. if test -n "$ac_tool_prefix"; then
  2408. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2409. do
  2410. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2411. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2412. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2413. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2414. if test "${ac_cv_prog_CXX+set}" = set; then
  2415. echo $ECHO_N "(cached) $ECHO_C" >&6
  2416. else
  2417. if test -n "$CXX"; then
  2418. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2419. else
  2420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2421. for as_dir in $PATH
  2422. do
  2423. IFS=$as_save_IFS
  2424. test -z "$as_dir" && as_dir=.
  2425. for ac_exec_ext in '' $ac_executable_extensions; do
  2426. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2427. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2428. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2429. break 2
  2430. fi
  2431. done
  2432. done
  2433. IFS=$as_save_IFS
  2434. fi
  2435. fi
  2436. CXX=$ac_cv_prog_CXX
  2437. if test -n "$CXX"; then
  2438. { echo "$as_me:$LINENO: result: $CXX" >&5
  2439. echo "${ECHO_T}$CXX" >&6; }
  2440. else
  2441. { echo "$as_me:$LINENO: result: no" >&5
  2442. echo "${ECHO_T}no" >&6; }
  2443. fi
  2444. test -n "$CXX" && break
  2445. done
  2446. fi
  2447. if test -z "$CXX"; then
  2448. ac_ct_CXX=$CXX
  2449. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2450. do
  2451. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2452. set dummy $ac_prog; ac_word=$2
  2453. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2454. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2455. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2456. echo $ECHO_N "(cached) $ECHO_C" >&6
  2457. else
  2458. if test -n "$ac_ct_CXX"; then
  2459. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2460. else
  2461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2462. for as_dir in $PATH
  2463. do
  2464. IFS=$as_save_IFS
  2465. test -z "$as_dir" && as_dir=.
  2466. for ac_exec_ext in '' $ac_executable_extensions; do
  2467. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2468. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2469. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2470. break 2
  2471. fi
  2472. done
  2473. done
  2474. IFS=$as_save_IFS
  2475. fi
  2476. fi
  2477. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2478. if test -n "$ac_ct_CXX"; then
  2479. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2480. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2481. else
  2482. { echo "$as_me:$LINENO: result: no" >&5
  2483. echo "${ECHO_T}no" >&6; }
  2484. fi
  2485. test -n "$ac_ct_CXX" && break
  2486. done
  2487. if test "x$ac_ct_CXX" = x; then
  2488. CXX="g++"
  2489. else
  2490. case $cross_compiling:$ac_tool_warned in
  2491. yes:)
  2492. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2493. whose name does not start with the host triplet. If you think this
  2494. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2495. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2496. whose name does not start with the host triplet. If you think this
  2497. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2498. ac_tool_warned=yes ;;
  2499. esac
  2500. CXX=$ac_ct_CXX
  2501. fi
  2502. fi
  2503. fi
  2504. fi
  2505. # Provide some information about the compiler.
  2506. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2507. ac_compiler=`set X $ac_compile; echo $2`
  2508. { (ac_try="$ac_compiler --version >&5"
  2509. case "(($ac_try" in
  2510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2511. *) ac_try_echo=$ac_try;;
  2512. esac
  2513. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2514. (eval "$ac_compiler --version >&5") 2>&5
  2515. ac_status=$?
  2516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2517. (exit $ac_status); }
  2518. { (ac_try="$ac_compiler -v >&5"
  2519. case "(($ac_try" in
  2520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2521. *) ac_try_echo=$ac_try;;
  2522. esac
  2523. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2524. (eval "$ac_compiler -v >&5") 2>&5
  2525. ac_status=$?
  2526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2527. (exit $ac_status); }
  2528. { (ac_try="$ac_compiler -V >&5"
  2529. case "(($ac_try" in
  2530. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2531. *) ac_try_echo=$ac_try;;
  2532. esac
  2533. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2534. (eval "$ac_compiler -V >&5") 2>&5
  2535. ac_status=$?
  2536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2537. (exit $ac_status); }
  2538. cat >conftest.$ac_ext <<_ACEOF
  2539. /* confdefs.h. */
  2540. _ACEOF
  2541. cat confdefs.h >>conftest.$ac_ext
  2542. cat >>conftest.$ac_ext <<_ACEOF
  2543. /* end confdefs.h. */
  2544. int
  2545. main ()
  2546. {
  2547. ;
  2548. return 0;
  2549. }
  2550. _ACEOF
  2551. ac_clean_files_save=$ac_clean_files
  2552. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2553. # Try to create an executable without -o first, disregard a.out.
  2554. # It will help us diagnose broken compilers, and finding out an intuition
  2555. # of exeext.
  2556. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2557. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2558. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2559. #
  2560. # List of possible output files, starting from the most likely.
  2561. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2562. # only as a last resort. b.out is created by i960 compilers.
  2563. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2564. #
  2565. # The IRIX 6 linker writes into existing files which may not be
  2566. # executable, retaining their permissions. Remove them first so a
  2567. # subsequent execution test works.
  2568. ac_rmfiles=
  2569. for ac_file in $ac_files
  2570. do
  2571. case $ac_file in
  2572. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2573. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2574. esac
  2575. done
  2576. rm -f $ac_rmfiles
  2577. if { (ac_try="$ac_link_default"
  2578. case "(($ac_try" in
  2579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2580. *) ac_try_echo=$ac_try;;
  2581. esac
  2582. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2583. (eval "$ac_link_default") 2>&5
  2584. ac_status=$?
  2585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2586. (exit $ac_status); }; then
  2587. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2588. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2589. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2590. # so that the user can short-circuit this test for compilers unknown to
  2591. # Autoconf.
  2592. for ac_file in $ac_files ''
  2593. do
  2594. test -f "$ac_file" || continue
  2595. case $ac_file in
  2596. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2597. ;;
  2598. [ab].out )
  2599. # We found the default executable, but exeext='' is most
  2600. # certainly right.
  2601. break;;
  2602. *.* )
  2603. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2604. then :; else
  2605. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2606. fi
  2607. # We set ac_cv_exeext here because the later test for it is not
  2608. # safe: cross compilers may not add the suffix if given an `-o'
  2609. # argument, so we may need to know it at that point already.
  2610. # Even if this section looks crufty: it has the advantage of
  2611. # actually working.
  2612. break;;
  2613. * )
  2614. break;;
  2615. esac
  2616. done
  2617. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2618. else
  2619. ac_file=''
  2620. fi
  2621. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2622. echo "${ECHO_T}$ac_file" >&6; }
  2623. if test -z "$ac_file"; then
  2624. echo "$as_me: failed program was:" >&5
  2625. sed 's/^/| /' conftest.$ac_ext >&5
  2626. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2627. See \`config.log' for more details." >&5
  2628. echo "$as_me: error: C++ compiler cannot create executables
  2629. See \`config.log' for more details." >&2;}
  2630. { (exit 77); exit 77; }; }
  2631. fi
  2632. ac_exeext=$ac_cv_exeext
  2633. # Check that the compiler produces executables we can run. If not, either
  2634. # the compiler is broken, or we cross compile.
  2635. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2636. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2637. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2638. # If not cross compiling, check that we can run a simple program.
  2639. if test "$cross_compiling" != yes; then
  2640. if { ac_try='./$ac_file'
  2641. { (case "(($ac_try" in
  2642. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2643. *) ac_try_echo=$ac_try;;
  2644. esac
  2645. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2646. (eval "$ac_try") 2>&5
  2647. ac_status=$?
  2648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2649. (exit $ac_status); }; }; then
  2650. cross_compiling=no
  2651. else
  2652. if test "$cross_compiling" = maybe; then
  2653. cross_compiling=yes
  2654. else
  2655. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2656. If you meant to cross compile, use \`--host'.
  2657. See \`config.log' for more details." >&5
  2658. echo "$as_me: error: cannot run C++ compiled programs.
  2659. If you meant to cross compile, use \`--host'.
  2660. See \`config.log' for more details." >&2;}
  2661. { (exit 1); exit 1; }; }
  2662. fi
  2663. fi
  2664. fi
  2665. { echo "$as_me:$LINENO: result: yes" >&5
  2666. echo "${ECHO_T}yes" >&6; }
  2667. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2668. ac_clean_files=$ac_clean_files_save
  2669. # Check that the compiler produces executables we can run. If not, either
  2670. # the compiler is broken, or we cross compile.
  2671. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2672. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2673. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2674. echo "${ECHO_T}$cross_compiling" >&6; }
  2675. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2676. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2677. if { (ac_try="$ac_link"
  2678. case "(($ac_try" in
  2679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2680. *) ac_try_echo=$ac_try;;
  2681. esac
  2682. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2683. (eval "$ac_link") 2>&5
  2684. ac_status=$?
  2685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2686. (exit $ac_status); }; then
  2687. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2688. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2689. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2690. # `rm'.
  2691. for ac_file in conftest.exe conftest conftest.*; do
  2692. test -f "$ac_file" || continue
  2693. case $ac_file in
  2694. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2695. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2696. break;;
  2697. * ) break;;
  2698. esac
  2699. done
  2700. else
  2701. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2702. See \`config.log' for more details." >&5
  2703. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2704. See \`config.log' for more details." >&2;}
  2705. { (exit 1); exit 1; }; }
  2706. fi
  2707. rm -f conftest$ac_cv_exeext
  2708. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2709. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2710. rm -f conftest.$ac_ext
  2711. EXEEXT=$ac_cv_exeext
  2712. ac_exeext=$EXEEXT
  2713. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2714. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2715. if test "${ac_cv_objext+set}" = set; then
  2716. echo $ECHO_N "(cached) $ECHO_C" >&6
  2717. else
  2718. cat >conftest.$ac_ext <<_ACEOF
  2719. /* confdefs.h. */
  2720. _ACEOF
  2721. cat confdefs.h >>conftest.$ac_ext
  2722. cat >>conftest.$ac_ext <<_ACEOF
  2723. /* end confdefs.h. */
  2724. int
  2725. main ()
  2726. {
  2727. ;
  2728. return 0;
  2729. }
  2730. _ACEOF
  2731. rm -f conftest.o conftest.obj
  2732. if { (ac_try="$ac_compile"
  2733. case "(($ac_try" in
  2734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2735. *) ac_try_echo=$ac_try;;
  2736. esac
  2737. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2738. (eval "$ac_compile") 2>&5
  2739. ac_status=$?
  2740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2741. (exit $ac_status); }; then
  2742. for ac_file in conftest.o conftest.obj conftest.*; do
  2743. test -f "$ac_file" || continue;
  2744. case $ac_file in
  2745. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2746. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2747. break;;
  2748. esac
  2749. done
  2750. else
  2751. echo "$as_me: failed program was:" >&5
  2752. sed 's/^/| /' conftest.$ac_ext >&5
  2753. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2754. See \`config.log' for more details." >&5
  2755. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2756. See \`config.log' for more details." >&2;}
  2757. { (exit 1); exit 1; }; }
  2758. fi
  2759. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2760. fi
  2761. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2762. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2763. OBJEXT=$ac_cv_objext
  2764. ac_objext=$OBJEXT
  2765. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2766. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2767. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2768. echo $ECHO_N "(cached) $ECHO_C" >&6
  2769. else
  2770. cat >conftest.$ac_ext <<_ACEOF
  2771. /* confdefs.h. */
  2772. _ACEOF
  2773. cat confdefs.h >>conftest.$ac_ext
  2774. cat >>conftest.$ac_ext <<_ACEOF
  2775. /* end confdefs.h. */
  2776. int
  2777. main ()
  2778. {
  2779. #ifndef __GNUC__
  2780. choke me
  2781. #endif
  2782. ;
  2783. return 0;
  2784. }
  2785. _ACEOF
  2786. rm -f conftest.$ac_objext
  2787. if { (ac_try="$ac_compile"
  2788. case "(($ac_try" in
  2789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2790. *) ac_try_echo=$ac_try;;
  2791. esac
  2792. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2793. (eval "$ac_compile") 2>conftest.er1
  2794. ac_status=$?
  2795. grep -v '^ *+' conftest.er1 >conftest.err
  2796. rm -f conftest.er1
  2797. cat conftest.err >&5
  2798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2799. (exit $ac_status); } && {
  2800. test -z "$ac_cxx_werror_flag" ||
  2801. test ! -s conftest.err
  2802. } && test -s conftest.$ac_objext; then
  2803. ac_compiler_gnu=yes
  2804. else
  2805. echo "$as_me: failed program was:" >&5
  2806. sed 's/^/| /' conftest.$ac_ext >&5
  2807. ac_compiler_gnu=no
  2808. fi
  2809. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2810. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2811. fi
  2812. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2813. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2814. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2815. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2816. ac_save_CXXFLAGS=$CXXFLAGS
  2817. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2818. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2819. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2820. echo $ECHO_N "(cached) $ECHO_C" >&6
  2821. else
  2822. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2823. ac_cxx_werror_flag=yes
  2824. ac_cv_prog_cxx_g=no
  2825. CXXFLAGS="-g"
  2826. cat >conftest.$ac_ext <<_ACEOF
  2827. /* confdefs.h. */
  2828. _ACEOF
  2829. cat confdefs.h >>conftest.$ac_ext
  2830. cat >>conftest.$ac_ext <<_ACEOF
  2831. /* end confdefs.h. */
  2832. int
  2833. main ()
  2834. {
  2835. ;
  2836. return 0;
  2837. }
  2838. _ACEOF
  2839. rm -f conftest.$ac_objext
  2840. if { (ac_try="$ac_compile"
  2841. case "(($ac_try" in
  2842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2843. *) ac_try_echo=$ac_try;;
  2844. esac
  2845. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2846. (eval "$ac_compile") 2>conftest.er1
  2847. ac_status=$?
  2848. grep -v '^ *+' conftest.er1 >conftest.err
  2849. rm -f conftest.er1
  2850. cat conftest.err >&5
  2851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2852. (exit $ac_status); } && {
  2853. test -z "$ac_cxx_werror_flag" ||
  2854. test ! -s conftest.err
  2855. } && test -s conftest.$ac_objext; then
  2856. ac_cv_prog_cxx_g=yes
  2857. else
  2858. echo "$as_me: failed program was:" >&5
  2859. sed 's/^/| /' conftest.$ac_ext >&5
  2860. CXXFLAGS=""
  2861. cat >conftest.$ac_ext <<_ACEOF
  2862. /* confdefs.h. */
  2863. _ACEOF
  2864. cat confdefs.h >>conftest.$ac_ext
  2865. cat >>conftest.$ac_ext <<_ACEOF
  2866. /* end confdefs.h. */
  2867. int
  2868. main ()
  2869. {
  2870. ;
  2871. return 0;
  2872. }
  2873. _ACEOF
  2874. rm -f conftest.$ac_objext
  2875. if { (ac_try="$ac_compile"
  2876. case "(($ac_try" in
  2877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2878. *) ac_try_echo=$ac_try;;
  2879. esac
  2880. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2881. (eval "$ac_compile") 2>conftest.er1
  2882. ac_status=$?
  2883. grep -v '^ *+' conftest.er1 >conftest.err
  2884. rm -f conftest.er1
  2885. cat conftest.err >&5
  2886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2887. (exit $ac_status); } && {
  2888. test -z "$ac_cxx_werror_flag" ||
  2889. test ! -s conftest.err
  2890. } && test -s conftest.$ac_objext; then
  2891. :
  2892. else
  2893. echo "$as_me: failed program was:" >&5
  2894. sed 's/^/| /' conftest.$ac_ext >&5
  2895. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2896. CXXFLAGS="-g"
  2897. cat >conftest.$ac_ext <<_ACEOF
  2898. /* confdefs.h. */
  2899. _ACEOF
  2900. cat confdefs.h >>conftest.$ac_ext
  2901. cat >>conftest.$ac_ext <<_ACEOF
  2902. /* end confdefs.h. */
  2903. int
  2904. main ()
  2905. {
  2906. ;
  2907. return 0;
  2908. }
  2909. _ACEOF
  2910. rm -f conftest.$ac_objext
  2911. if { (ac_try="$ac_compile"
  2912. case "(($ac_try" in
  2913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2914. *) ac_try_echo=$ac_try;;
  2915. esac
  2916. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2917. (eval "$ac_compile") 2>conftest.er1
  2918. ac_status=$?
  2919. grep -v '^ *+' conftest.er1 >conftest.err
  2920. rm -f conftest.er1
  2921. cat conftest.err >&5
  2922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2923. (exit $ac_status); } && {
  2924. test -z "$ac_cxx_werror_flag" ||
  2925. test ! -s conftest.err
  2926. } && test -s conftest.$ac_objext; then
  2927. ac_cv_prog_cxx_g=yes
  2928. else
  2929. echo "$as_me: failed program was:" >&5
  2930. sed 's/^/| /' conftest.$ac_ext >&5
  2931. fi
  2932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2933. fi
  2934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2935. fi
  2936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2937. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2938. fi
  2939. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2940. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2941. if test "$ac_test_CXXFLAGS" = set; then
  2942. CXXFLAGS=$ac_save_CXXFLAGS
  2943. elif test $ac_cv_prog_cxx_g = yes; then
  2944. if test "$GXX" = yes; then
  2945. CXXFLAGS="-g -O2"
  2946. else
  2947. CXXFLAGS="-g"
  2948. fi
  2949. else
  2950. if test "$GXX" = yes; then
  2951. CXXFLAGS="-O2"
  2952. else
  2953. CXXFLAGS=
  2954. fi
  2955. fi
  2956. ac_ext=c
  2957. ac_cpp='$CPP $CPPFLAGS'
  2958. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2959. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2960. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2961. DEPDIR="${am__leading_dot}deps"
  2962. ac_config_commands="$ac_config_commands depfiles"
  2963. am_make=${MAKE-make}
  2964. cat > confinc << 'END'
  2965. am__doit:
  2966. @echo done
  2967. .PHONY: am__doit
  2968. END
  2969. # If we don't find an include directive, just comment out the code.
  2970. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2971. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2972. am__include="#"
  2973. am__quote=
  2974. _am_result=none
  2975. # First try GNU make style include.
  2976. echo "include confinc" > confmf
  2977. # We grep out `Entering directory' and `Leaving directory'
  2978. # messages which can occur if `w' ends up in MAKEFLAGS.
  2979. # In particular we don't look at `^make:' because GNU make might
  2980. # be invoked under some other name (usually "gmake"), in which
  2981. # case it prints its new name instead of `make'.
  2982. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2983. am__include=include
  2984. am__quote=
  2985. _am_result=GNU
  2986. fi
  2987. # Now try BSD make style include.
  2988. if test "$am__include" = "#"; then
  2989. echo '.include "confinc"' > confmf
  2990. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2991. am__include=.include
  2992. am__quote="\""
  2993. _am_result=BSD
  2994. fi
  2995. fi
  2996. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2997. echo "${ECHO_T}$_am_result" >&6; }
  2998. rm -f confinc confmf
  2999. # Check whether --enable-dependency-tracking was given.
  3000. if test "${enable_dependency_tracking+set}" = set; then
  3001. enableval=$enable_dependency_tracking;
  3002. fi
  3003. if test "x$enable_dependency_tracking" != xno; then
  3004. am_depcomp="$ac_aux_dir/depcomp"
  3005. AMDEPBACKSLASH='\'
  3006. fi
  3007. if test "x$enable_dependency_tracking" != xno; then
  3008. AMDEP_TRUE=
  3009. AMDEP_FALSE='#'
  3010. else
  3011. AMDEP_TRUE='#'
  3012. AMDEP_FALSE=
  3013. fi
  3014. depcc="$CXX" am_compiler_list=
  3015. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3016. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3017. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3018. echo $ECHO_N "(cached) $ECHO_C" >&6
  3019. else
  3020. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3021. # We make a subdir and do the tests there. Otherwise we can end up
  3022. # making bogus files that we don't know about and never remove. For
  3023. # instance it was reported that on HP-UX the gcc test will end up
  3024. # making a dummy file named `D' -- because `-MD' means `put the output
  3025. # in D'.
  3026. mkdir conftest.dir
  3027. # Copy depcomp to subdir because otherwise we won't find it if we're
  3028. # using a relative directory.
  3029. cp "$am_depcomp" conftest.dir
  3030. cd conftest.dir
  3031. # We will build objects and dependencies in a subdirectory because
  3032. # it helps to detect inapplicable dependency modes. For instance
  3033. # both Tru64's cc and ICC support -MD to output dependencies as a
  3034. # side effect of compilation, but ICC will put the dependencies in
  3035. # the current directory while Tru64 will put them in the object
  3036. # directory.
  3037. mkdir sub
  3038. am_cv_CXX_dependencies_compiler_type=none
  3039. if test "$am_compiler_list" = ""; then
  3040. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3041. fi
  3042. for depmode in $am_compiler_list; do
  3043. # Setup a source with many dependencies, because some compilers
  3044. # like to wrap large dependency lists on column 80 (with \), and
  3045. # we should not choose a depcomp mode which is confused by this.
  3046. #
  3047. # We need to recreate these files for each test, as the compiler may
  3048. # overwrite some of them when testing with obscure command lines.
  3049. # This happens at least with the AIX C compiler.
  3050. : > sub/conftest.c
  3051. for i in 1 2 3 4 5 6; do
  3052. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3053. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3054. # Solaris 8's {/usr,}/bin/sh.
  3055. touch sub/conftst$i.h
  3056. done
  3057. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3058. case $depmode in
  3059. nosideeffect)
  3060. # after this tag, mechanisms are not by side-effect, so they'll
  3061. # only be used when explicitly requested
  3062. if test "x$enable_dependency_tracking" = xyes; then
  3063. continue
  3064. else
  3065. break
  3066. fi
  3067. ;;
  3068. none) break ;;
  3069. esac
  3070. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3071. # mode. It turns out that the SunPro C++ compiler does not properly
  3072. # handle `-M -o', and we need to detect this.
  3073. if depmode=$depmode \
  3074. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3075. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3076. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3077. >/dev/null 2>conftest.err &&
  3078. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3079. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3080. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3081. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3082. # icc doesn't choke on unknown options, it will just issue warnings
  3083. # or remarks (even with -Werror). So we grep stderr for any message
  3084. # that says an option was ignored or not supported.
  3085. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3086. # icc: Command line warning: ignoring option '-M'; no argument required
  3087. # The diagnosis changed in icc 8.0:
  3088. # icc: Command line remark: option '-MP' not supported
  3089. if (grep 'ignoring option' conftest.err ||
  3090. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3091. am_cv_CXX_dependencies_compiler_type=$depmode
  3092. break
  3093. fi
  3094. fi
  3095. done
  3096. cd ..
  3097. rm -rf conftest.dir
  3098. else
  3099. am_cv_CXX_dependencies_compiler_type=none
  3100. fi
  3101. fi
  3102. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3103. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3104. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3105. if
  3106. test "x$enable_dependency_tracking" != xno \
  3107. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3108. am__fastdepCXX_TRUE=
  3109. am__fastdepCXX_FALSE='#'
  3110. else
  3111. am__fastdepCXX_TRUE='#'
  3112. am__fastdepCXX_FALSE=
  3113. fi
  3114. ac_ext=c
  3115. ac_cpp='$CPP $CPPFLAGS'
  3116. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3117. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3118. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3119. if test -n "$ac_tool_prefix"; then
  3120. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3121. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3122. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3123. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3124. if test "${ac_cv_prog_CC+set}" = set; then
  3125. echo $ECHO_N "(cached) $ECHO_C" >&6
  3126. else
  3127. if test -n "$CC"; then
  3128. ac_cv_prog_CC="$CC" # Let the user override the test.
  3129. else
  3130. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3131. for as_dir in $PATH
  3132. do
  3133. IFS=$as_save_IFS
  3134. test -z "$as_dir" && as_dir=.
  3135. for ac_exec_ext in '' $ac_executable_extensions; do
  3136. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3137. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3138. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3139. break 2
  3140. fi
  3141. done
  3142. done
  3143. IFS=$as_save_IFS
  3144. fi
  3145. fi
  3146. CC=$ac_cv_prog_CC
  3147. if test -n "$CC"; then
  3148. { echo "$as_me:$LINENO: result: $CC" >&5
  3149. echo "${ECHO_T}$CC" >&6; }
  3150. else
  3151. { echo "$as_me:$LINENO: result: no" >&5
  3152. echo "${ECHO_T}no" >&6; }
  3153. fi
  3154. fi
  3155. if test -z "$ac_cv_prog_CC"; then
  3156. ac_ct_CC=$CC
  3157. # Extract the first word of "gcc", so it can be a program name with args.
  3158. set dummy gcc; ac_word=$2
  3159. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3160. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3161. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3162. echo $ECHO_N "(cached) $ECHO_C" >&6
  3163. else
  3164. if test -n "$ac_ct_CC"; then
  3165. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3166. else
  3167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3168. for as_dir in $PATH
  3169. do
  3170. IFS=$as_save_IFS
  3171. test -z "$as_dir" && as_dir=.
  3172. for ac_exec_ext in '' $ac_executable_extensions; do
  3173. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3174. ac_cv_prog_ac_ct_CC="gcc"
  3175. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3176. break 2
  3177. fi
  3178. done
  3179. done
  3180. IFS=$as_save_IFS
  3181. fi
  3182. fi
  3183. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3184. if test -n "$ac_ct_CC"; then
  3185. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3186. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3187. else
  3188. { echo "$as_me:$LINENO: result: no" >&5
  3189. echo "${ECHO_T}no" >&6; }
  3190. fi
  3191. if test "x$ac_ct_CC" = x; then
  3192. CC=""
  3193. else
  3194. case $cross_compiling:$ac_tool_warned in
  3195. yes:)
  3196. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3197. whose name does not start with the host triplet. If you think this
  3198. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3199. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3200. whose name does not start with the host triplet. If you think this
  3201. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3202. ac_tool_warned=yes ;;
  3203. esac
  3204. CC=$ac_ct_CC
  3205. fi
  3206. else
  3207. CC="$ac_cv_prog_CC"
  3208. fi
  3209. if test -z "$CC"; then
  3210. if test -n "$ac_tool_prefix"; then
  3211. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3212. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3213. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3214. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3215. if test "${ac_cv_prog_CC+set}" = set; then
  3216. echo $ECHO_N "(cached) $ECHO_C" >&6
  3217. else
  3218. if test -n "$CC"; then
  3219. ac_cv_prog_CC="$CC" # Let the user override the test.
  3220. else
  3221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3222. for as_dir in $PATH
  3223. do
  3224. IFS=$as_save_IFS
  3225. test -z "$as_dir" && as_dir=.
  3226. for ac_exec_ext in '' $ac_executable_extensions; do
  3227. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3228. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3229. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3230. break 2
  3231. fi
  3232. done
  3233. done
  3234. IFS=$as_save_IFS
  3235. fi
  3236. fi
  3237. CC=$ac_cv_prog_CC
  3238. if test -n "$CC"; then
  3239. { echo "$as_me:$LINENO: result: $CC" >&5
  3240. echo "${ECHO_T}$CC" >&6; }
  3241. else
  3242. { echo "$as_me:$LINENO: result: no" >&5
  3243. echo "${ECHO_T}no" >&6; }
  3244. fi
  3245. fi
  3246. fi
  3247. if test -z "$CC"; then
  3248. # Extract the first word of "cc", so it can be a program name with args.
  3249. set dummy cc; ac_word=$2
  3250. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3251. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3252. if test "${ac_cv_prog_CC+set}" = set; then
  3253. echo $ECHO_N "(cached) $ECHO_C" >&6
  3254. else
  3255. if test -n "$CC"; then
  3256. ac_cv_prog_CC="$CC" # Let the user override the test.
  3257. else
  3258. ac_prog_rejected=no
  3259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3260. for as_dir in $PATH
  3261. do
  3262. IFS=$as_save_IFS
  3263. test -z "$as_dir" && as_dir=.
  3264. for ac_exec_ext in '' $ac_executable_extensions; do
  3265. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3266. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3267. ac_prog_rejected=yes
  3268. continue
  3269. fi
  3270. ac_cv_prog_CC="cc"
  3271. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3272. break 2
  3273. fi
  3274. done
  3275. done
  3276. IFS=$as_save_IFS
  3277. if test $ac_prog_rejected = yes; then
  3278. # We found a bogon in the path, so make sure we never use it.
  3279. set dummy $ac_cv_prog_CC
  3280. shift
  3281. if test $# != 0; then
  3282. # We chose a different compiler from the bogus one.
  3283. # However, it has the same basename, so the bogon will be chosen
  3284. # first if we set CC to just the basename; use the full file name.
  3285. shift
  3286. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3287. fi
  3288. fi
  3289. fi
  3290. fi
  3291. CC=$ac_cv_prog_CC
  3292. if test -n "$CC"; then
  3293. { echo "$as_me:$LINENO: result: $CC" >&5
  3294. echo "${ECHO_T}$CC" >&6; }
  3295. else
  3296. { echo "$as_me:$LINENO: result: no" >&5
  3297. echo "${ECHO_T}no" >&6; }
  3298. fi
  3299. fi
  3300. if test -z "$CC"; then
  3301. if test -n "$ac_tool_prefix"; then
  3302. for ac_prog in cl.exe
  3303. do
  3304. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3305. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3306. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3307. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3308. if test "${ac_cv_prog_CC+set}" = set; then
  3309. echo $ECHO_N "(cached) $ECHO_C" >&6
  3310. else
  3311. if test -n "$CC"; then
  3312. ac_cv_prog_CC="$CC" # Let the user override the test.
  3313. else
  3314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3315. for as_dir in $PATH
  3316. do
  3317. IFS=$as_save_IFS
  3318. test -z "$as_dir" && as_dir=.
  3319. for ac_exec_ext in '' $ac_executable_extensions; do
  3320. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3321. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3322. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3323. break 2
  3324. fi
  3325. done
  3326. done
  3327. IFS=$as_save_IFS
  3328. fi
  3329. fi
  3330. CC=$ac_cv_prog_CC
  3331. if test -n "$CC"; then
  3332. { echo "$as_me:$LINENO: result: $CC" >&5
  3333. echo "${ECHO_T}$CC" >&6; }
  3334. else
  3335. { echo "$as_me:$LINENO: result: no" >&5
  3336. echo "${ECHO_T}no" >&6; }
  3337. fi
  3338. test -n "$CC" && break
  3339. done
  3340. fi
  3341. if test -z "$CC"; then
  3342. ac_ct_CC=$CC
  3343. for ac_prog in cl.exe
  3344. do
  3345. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3346. set dummy $ac_prog; ac_word=$2
  3347. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3348. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3349. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3350. echo $ECHO_N "(cached) $ECHO_C" >&6
  3351. else
  3352. if test -n "$ac_ct_CC"; then
  3353. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3354. else
  3355. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3356. for as_dir in $PATH
  3357. do
  3358. IFS=$as_save_IFS
  3359. test -z "$as_dir" && as_dir=.
  3360. for ac_exec_ext in '' $ac_executable_extensions; do
  3361. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3362. ac_cv_prog_ac_ct_CC="$ac_prog"
  3363. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3364. break 2
  3365. fi
  3366. done
  3367. done
  3368. IFS=$as_save_IFS
  3369. fi
  3370. fi
  3371. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3372. if test -n "$ac_ct_CC"; then
  3373. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3374. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3375. else
  3376. { echo "$as_me:$LINENO: result: no" >&5
  3377. echo "${ECHO_T}no" >&6; }
  3378. fi
  3379. test -n "$ac_ct_CC" && break
  3380. done
  3381. if test "x$ac_ct_CC" = x; then
  3382. CC=""
  3383. else
  3384. case $cross_compiling:$ac_tool_warned in
  3385. yes:)
  3386. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3387. whose name does not start with the host triplet. If you think this
  3388. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3389. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3390. whose name does not start with the host triplet. If you think this
  3391. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3392. ac_tool_warned=yes ;;
  3393. esac
  3394. CC=$ac_ct_CC
  3395. fi
  3396. fi
  3397. fi
  3398. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3399. See \`config.log' for more details." >&5
  3400. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3401. See \`config.log' for more details." >&2;}
  3402. { (exit 1); exit 1; }; }
  3403. # Provide some information about the compiler.
  3404. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3405. ac_compiler=`set X $ac_compile; echo $2`
  3406. { (ac_try="$ac_compiler --version >&5"
  3407. case "(($ac_try" in
  3408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3409. *) ac_try_echo=$ac_try;;
  3410. esac
  3411. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3412. (eval "$ac_compiler --version >&5") 2>&5
  3413. ac_status=$?
  3414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3415. (exit $ac_status); }
  3416. { (ac_try="$ac_compiler -v >&5"
  3417. case "(($ac_try" in
  3418. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3419. *) ac_try_echo=$ac_try;;
  3420. esac
  3421. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3422. (eval "$ac_compiler -v >&5") 2>&5
  3423. ac_status=$?
  3424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3425. (exit $ac_status); }
  3426. { (ac_try="$ac_compiler -V >&5"
  3427. case "(($ac_try" in
  3428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3429. *) ac_try_echo=$ac_try;;
  3430. esac
  3431. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3432. (eval "$ac_compiler -V >&5") 2>&5
  3433. ac_status=$?
  3434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3435. (exit $ac_status); }
  3436. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3437. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3438. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3439. echo $ECHO_N "(cached) $ECHO_C" >&6
  3440. else
  3441. cat >conftest.$ac_ext <<_ACEOF
  3442. /* confdefs.h. */
  3443. _ACEOF
  3444. cat confdefs.h >>conftest.$ac_ext
  3445. cat >>conftest.$ac_ext <<_ACEOF
  3446. /* end confdefs.h. */
  3447. int
  3448. main ()
  3449. {
  3450. #ifndef __GNUC__
  3451. choke me
  3452. #endif
  3453. ;
  3454. return 0;
  3455. }
  3456. _ACEOF
  3457. rm -f conftest.$ac_objext
  3458. if { (ac_try="$ac_compile"
  3459. case "(($ac_try" in
  3460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3461. *) ac_try_echo=$ac_try;;
  3462. esac
  3463. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3464. (eval "$ac_compile") 2>conftest.er1
  3465. ac_status=$?
  3466. grep -v '^ *+' conftest.er1 >conftest.err
  3467. rm -f conftest.er1
  3468. cat conftest.err >&5
  3469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3470. (exit $ac_status); } && {
  3471. test -z "$ac_c_werror_flag" ||
  3472. test ! -s conftest.err
  3473. } && test -s conftest.$ac_objext; then
  3474. ac_compiler_gnu=yes
  3475. else
  3476. echo "$as_me: failed program was:" >&5
  3477. sed 's/^/| /' conftest.$ac_ext >&5
  3478. ac_compiler_gnu=no
  3479. fi
  3480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3481. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3482. fi
  3483. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3484. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3485. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3486. ac_test_CFLAGS=${CFLAGS+set}
  3487. ac_save_CFLAGS=$CFLAGS
  3488. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3489. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3490. if test "${ac_cv_prog_cc_g+set}" = set; then
  3491. echo $ECHO_N "(cached) $ECHO_C" >&6
  3492. else
  3493. ac_save_c_werror_flag=$ac_c_werror_flag
  3494. ac_c_werror_flag=yes
  3495. ac_cv_prog_cc_g=no
  3496. CFLAGS="-g"
  3497. cat >conftest.$ac_ext <<_ACEOF
  3498. /* confdefs.h. */
  3499. _ACEOF
  3500. cat confdefs.h >>conftest.$ac_ext
  3501. cat >>conftest.$ac_ext <<_ACEOF
  3502. /* end confdefs.h. */
  3503. int
  3504. main ()
  3505. {
  3506. ;
  3507. return 0;
  3508. }
  3509. _ACEOF
  3510. rm -f conftest.$ac_objext
  3511. if { (ac_try="$ac_compile"
  3512. case "(($ac_try" in
  3513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3514. *) ac_try_echo=$ac_try;;
  3515. esac
  3516. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3517. (eval "$ac_compile") 2>conftest.er1
  3518. ac_status=$?
  3519. grep -v '^ *+' conftest.er1 >conftest.err
  3520. rm -f conftest.er1
  3521. cat conftest.err >&5
  3522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3523. (exit $ac_status); } && {
  3524. test -z "$ac_c_werror_flag" ||
  3525. test ! -s conftest.err
  3526. } && test -s conftest.$ac_objext; then
  3527. ac_cv_prog_cc_g=yes
  3528. else
  3529. echo "$as_me: failed program was:" >&5
  3530. sed 's/^/| /' conftest.$ac_ext >&5
  3531. CFLAGS=""
  3532. cat >conftest.$ac_ext <<_ACEOF
  3533. /* confdefs.h. */
  3534. _ACEOF
  3535. cat confdefs.h >>conftest.$ac_ext
  3536. cat >>conftest.$ac_ext <<_ACEOF
  3537. /* end confdefs.h. */
  3538. int
  3539. main ()
  3540. {
  3541. ;
  3542. return 0;
  3543. }
  3544. _ACEOF
  3545. rm -f conftest.$ac_objext
  3546. if { (ac_try="$ac_compile"
  3547. case "(($ac_try" in
  3548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3549. *) ac_try_echo=$ac_try;;
  3550. esac
  3551. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3552. (eval "$ac_compile") 2>conftest.er1
  3553. ac_status=$?
  3554. grep -v '^ *+' conftest.er1 >conftest.err
  3555. rm -f conftest.er1
  3556. cat conftest.err >&5
  3557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3558. (exit $ac_status); } && {
  3559. test -z "$ac_c_werror_flag" ||
  3560. test ! -s conftest.err
  3561. } && test -s conftest.$ac_objext; then
  3562. :
  3563. else
  3564. echo "$as_me: failed program was:" >&5
  3565. sed 's/^/| /' conftest.$ac_ext >&5
  3566. ac_c_werror_flag=$ac_save_c_werror_flag
  3567. CFLAGS="-g"
  3568. cat >conftest.$ac_ext <<_ACEOF
  3569. /* confdefs.h. */
  3570. _ACEOF
  3571. cat confdefs.h >>conftest.$ac_ext
  3572. cat >>conftest.$ac_ext <<_ACEOF
  3573. /* end confdefs.h. */
  3574. int
  3575. main ()
  3576. {
  3577. ;
  3578. return 0;
  3579. }
  3580. _ACEOF
  3581. rm -f conftest.$ac_objext
  3582. if { (ac_try="$ac_compile"
  3583. case "(($ac_try" in
  3584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3585. *) ac_try_echo=$ac_try;;
  3586. esac
  3587. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3588. (eval "$ac_compile") 2>conftest.er1
  3589. ac_status=$?
  3590. grep -v '^ *+' conftest.er1 >conftest.err
  3591. rm -f conftest.er1
  3592. cat conftest.err >&5
  3593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3594. (exit $ac_status); } && {
  3595. test -z "$ac_c_werror_flag" ||
  3596. test ! -s conftest.err
  3597. } && test -s conftest.$ac_objext; then
  3598. ac_cv_prog_cc_g=yes
  3599. else
  3600. echo "$as_me: failed program was:" >&5
  3601. sed 's/^/| /' conftest.$ac_ext >&5
  3602. fi
  3603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3604. fi
  3605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3606. fi
  3607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3608. ac_c_werror_flag=$ac_save_c_werror_flag
  3609. fi
  3610. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3611. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3612. if test "$ac_test_CFLAGS" = set; then
  3613. CFLAGS=$ac_save_CFLAGS
  3614. elif test $ac_cv_prog_cc_g = yes; then
  3615. if test "$GCC" = yes; then
  3616. CFLAGS="-g -O2"
  3617. else
  3618. CFLAGS="-g"
  3619. fi
  3620. else
  3621. if test "$GCC" = yes; then
  3622. CFLAGS="-O2"
  3623. else
  3624. CFLAGS=
  3625. fi
  3626. fi
  3627. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3628. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3629. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3630. echo $ECHO_N "(cached) $ECHO_C" >&6
  3631. else
  3632. ac_cv_prog_cc_c89=no
  3633. ac_save_CC=$CC
  3634. cat >conftest.$ac_ext <<_ACEOF
  3635. /* confdefs.h. */
  3636. _ACEOF
  3637. cat confdefs.h >>conftest.$ac_ext
  3638. cat >>conftest.$ac_ext <<_ACEOF
  3639. /* end confdefs.h. */
  3640. #include <stdarg.h>
  3641. #include <stdio.h>
  3642. #include <sys/types.h>
  3643. #include <sys/stat.h>
  3644. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3645. struct buf { int x; };
  3646. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3647. static char *e (p, i)
  3648. char **p;
  3649. int i;
  3650. {
  3651. return p[i];
  3652. }
  3653. static char *f (char * (*g) (char **, int), char **p, ...)
  3654. {
  3655. char *s;
  3656. va_list v;
  3657. va_start (v,p);
  3658. s = g (p, va_arg (v,int));
  3659. va_end (v);
  3660. return s;
  3661. }
  3662. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3663. function prototypes and stuff, but not '\xHH' hex character constants.
  3664. These don't provoke an error unfortunately, instead are silently treated
  3665. as 'x'. The following induces an error, until -std is added to get
  3666. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3667. array size at least. It's necessary to write '\x00'==0 to get something
  3668. that's true only with -std. */
  3669. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3670. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3671. inside strings and character constants. */
  3672. #define FOO(x) 'x'
  3673. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3674. int test (int i, double x);
  3675. struct s1 {int (*f) (int a);};
  3676. struct s2 {int (*f) (double a);};
  3677. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3678. int argc;
  3679. char **argv;
  3680. int
  3681. main ()
  3682. {
  3683. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3684. ;
  3685. return 0;
  3686. }
  3687. _ACEOF
  3688. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3689. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3690. do
  3691. CC="$ac_save_CC $ac_arg"
  3692. rm -f conftest.$ac_objext
  3693. if { (ac_try="$ac_compile"
  3694. case "(($ac_try" in
  3695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3696. *) ac_try_echo=$ac_try;;
  3697. esac
  3698. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3699. (eval "$ac_compile") 2>conftest.er1
  3700. ac_status=$?
  3701. grep -v '^ *+' conftest.er1 >conftest.err
  3702. rm -f conftest.er1
  3703. cat conftest.err >&5
  3704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3705. (exit $ac_status); } && {
  3706. test -z "$ac_c_werror_flag" ||
  3707. test ! -s conftest.err
  3708. } && test -s conftest.$ac_objext; then
  3709. ac_cv_prog_cc_c89=$ac_arg
  3710. else
  3711. echo "$as_me: failed program was:" >&5
  3712. sed 's/^/| /' conftest.$ac_ext >&5
  3713. fi
  3714. rm -f core conftest.err conftest.$ac_objext
  3715. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3716. done
  3717. rm -f conftest.$ac_ext
  3718. CC=$ac_save_CC
  3719. fi
  3720. # AC_CACHE_VAL
  3721. case "x$ac_cv_prog_cc_c89" in
  3722. x)
  3723. { echo "$as_me:$LINENO: result: none needed" >&5
  3724. echo "${ECHO_T}none needed" >&6; } ;;
  3725. xno)
  3726. { echo "$as_me:$LINENO: result: unsupported" >&5
  3727. echo "${ECHO_T}unsupported" >&6; } ;;
  3728. *)
  3729. CC="$CC $ac_cv_prog_cc_c89"
  3730. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3731. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3732. esac
  3733. ac_ext=c
  3734. ac_cpp='$CPP $CPPFLAGS'
  3735. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3736. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3737. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3738. depcc="$CC" am_compiler_list=
  3739. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3740. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3741. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3742. echo $ECHO_N "(cached) $ECHO_C" >&6
  3743. else
  3744. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3745. # We make a subdir and do the tests there. Otherwise we can end up
  3746. # making bogus files that we don't know about and never remove. For
  3747. # instance it was reported that on HP-UX the gcc test will end up
  3748. # making a dummy file named `D' -- because `-MD' means `put the output
  3749. # in D'.
  3750. mkdir conftest.dir
  3751. # Copy depcomp to subdir because otherwise we won't find it if we're
  3752. # using a relative directory.
  3753. cp "$am_depcomp" conftest.dir
  3754. cd conftest.dir
  3755. # We will build objects and dependencies in a subdirectory because
  3756. # it helps to detect inapplicable dependency modes. For instance
  3757. # both Tru64's cc and ICC support -MD to output dependencies as a
  3758. # side effect of compilation, but ICC will put the dependencies in
  3759. # the current directory while Tru64 will put them in the object
  3760. # directory.
  3761. mkdir sub
  3762. am_cv_CC_dependencies_compiler_type=none
  3763. if test "$am_compiler_list" = ""; then
  3764. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3765. fi
  3766. for depmode in $am_compiler_list; do
  3767. # Setup a source with many dependencies, because some compilers
  3768. # like to wrap large dependency lists on column 80 (with \), and
  3769. # we should not choose a depcomp mode which is confused by this.
  3770. #
  3771. # We need to recreate these files for each test, as the compiler may
  3772. # overwrite some of them when testing with obscure command lines.
  3773. # This happens at least with the AIX C compiler.
  3774. : > sub/conftest.c
  3775. for i in 1 2 3 4 5 6; do
  3776. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3777. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3778. # Solaris 8's {/usr,}/bin/sh.
  3779. touch sub/conftst$i.h
  3780. done
  3781. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3782. case $depmode in
  3783. nosideeffect)
  3784. # after this tag, mechanisms are not by side-effect, so they'll
  3785. # only be used when explicitly requested
  3786. if test "x$enable_dependency_tracking" = xyes; then
  3787. continue
  3788. else
  3789. break
  3790. fi
  3791. ;;
  3792. none) break ;;
  3793. esac
  3794. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3795. # mode. It turns out that the SunPro C++ compiler does not properly
  3796. # handle `-M -o', and we need to detect this.
  3797. if depmode=$depmode \
  3798. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3799. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3800. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3801. >/dev/null 2>conftest.err &&
  3802. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3803. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3804. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3805. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3806. # icc doesn't choke on unknown options, it will just issue warnings
  3807. # or remarks (even with -Werror). So we grep stderr for any message
  3808. # that says an option was ignored or not supported.
  3809. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3810. # icc: Command line warning: ignoring option '-M'; no argument required
  3811. # The diagnosis changed in icc 8.0:
  3812. # icc: Command line remark: option '-MP' not supported
  3813. if (grep 'ignoring option' conftest.err ||
  3814. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3815. am_cv_CC_dependencies_compiler_type=$depmode
  3816. break
  3817. fi
  3818. fi
  3819. done
  3820. cd ..
  3821. rm -rf conftest.dir
  3822. else
  3823. am_cv_CC_dependencies_compiler_type=none
  3824. fi
  3825. fi
  3826. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3827. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3828. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3829. if
  3830. test "x$enable_dependency_tracking" != xno \
  3831. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3832. am__fastdepCC_TRUE=
  3833. am__fastdepCC_FALSE='#'
  3834. else
  3835. am__fastdepCC_TRUE='#'
  3836. am__fastdepCC_FALSE=
  3837. fi
  3838. # Find a good install program. We prefer a C program (faster),
  3839. # so one script is as good as another. But avoid the broken or
  3840. # incompatible versions:
  3841. # SysV /etc/install, /usr/sbin/install
  3842. # SunOS /usr/etc/install
  3843. # IRIX /sbin/install
  3844. # AIX /bin/install
  3845. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3846. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3847. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3848. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3849. # OS/2's system install, which has a completely different semantic
  3850. # ./install, which can be erroneously created by make from ./install.sh.
  3851. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3852. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3853. if test -z "$INSTALL"; then
  3854. if test "${ac_cv_path_install+set}" = set; then
  3855. echo $ECHO_N "(cached) $ECHO_C" >&6
  3856. else
  3857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3858. for as_dir in $PATH
  3859. do
  3860. IFS=$as_save_IFS
  3861. test -z "$as_dir" && as_dir=.
  3862. # Account for people who put trailing slashes in PATH elements.
  3863. case $as_dir/ in
  3864. ./ | .// | /cC/* | \
  3865. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3866. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3867. /usr/ucb/* ) ;;
  3868. *)
  3869. # OSF1 and SCO ODT 3.0 have their own names for install.
  3870. # Don't use installbsd from OSF since it installs stuff as root
  3871. # by default.
  3872. for ac_prog in ginstall scoinst install; do
  3873. for ac_exec_ext in '' $ac_executable_extensions; do
  3874. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3875. if test $ac_prog = install &&
  3876. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3877. # AIX install. It has an incompatible calling convention.
  3878. :
  3879. elif test $ac_prog = install &&
  3880. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3881. # program-specific install script used by HP pwplus--don't use.
  3882. :
  3883. else
  3884. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3885. break 3
  3886. fi
  3887. fi
  3888. done
  3889. done
  3890. ;;
  3891. esac
  3892. done
  3893. IFS=$as_save_IFS
  3894. fi
  3895. if test "${ac_cv_path_install+set}" = set; then
  3896. INSTALL=$ac_cv_path_install
  3897. else
  3898. # As a last resort, use the slow shell script. Don't cache a
  3899. # value for INSTALL within a source directory, because that will
  3900. # break other packages using the cache if that directory is
  3901. # removed, or if the value is a relative name.
  3902. INSTALL=$ac_install_sh
  3903. fi
  3904. fi
  3905. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3906. echo "${ECHO_T}$INSTALL" >&6; }
  3907. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3908. # It thinks the first close brace ends the variable substitution.
  3909. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3910. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3911. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3912. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  3913. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  3914. if test -z "$MKDIR_P"; then
  3915. if test "${ac_cv_path_mkdir+set}" = set; then
  3916. echo $ECHO_N "(cached) $ECHO_C" >&6
  3917. else
  3918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3919. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3920. do
  3921. IFS=$as_save_IFS
  3922. test -z "$as_dir" && as_dir=.
  3923. for ac_prog in mkdir gmkdir; do
  3924. for ac_exec_ext in '' $ac_executable_extensions; do
  3925. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3926. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3927. 'mkdir (GNU coreutils) '* | \
  3928. 'mkdir (coreutils) '* | \
  3929. 'mkdir (fileutils) '4.1*)
  3930. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3931. break 3;;
  3932. esac
  3933. done
  3934. done
  3935. done
  3936. IFS=$as_save_IFS
  3937. fi
  3938. if test "${ac_cv_path_mkdir+set}" = set; then
  3939. MKDIR_P="$ac_cv_path_mkdir -p"
  3940. else
  3941. # As a last resort, use the slow shell script. Don't cache a
  3942. # value for MKDIR_P within a source directory, because that will
  3943. # break other packages using the cache if that directory is
  3944. # removed, or if the value is a relative name.
  3945. test -d ./--version && rmdir ./--version
  3946. MKDIR_P="$ac_install_sh -d"
  3947. fi
  3948. fi
  3949. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  3950. echo "${ECHO_T}$MKDIR_P" >&6; }
  3951. if test -n "$ac_tool_prefix"; then
  3952. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3953. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3954. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3955. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3956. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3957. echo $ECHO_N "(cached) $ECHO_C" >&6
  3958. else
  3959. if test -n "$RANLIB"; then
  3960. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3961. else
  3962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3963. for as_dir in $PATH
  3964. do
  3965. IFS=$as_save_IFS
  3966. test -z "$as_dir" && as_dir=.
  3967. for ac_exec_ext in '' $ac_executable_extensions; do
  3968. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3969. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3970. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3971. break 2
  3972. fi
  3973. done
  3974. done
  3975. IFS=$as_save_IFS
  3976. fi
  3977. fi
  3978. RANLIB=$ac_cv_prog_RANLIB
  3979. if test -n "$RANLIB"; then
  3980. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  3981. echo "${ECHO_T}$RANLIB" >&6; }
  3982. else
  3983. { echo "$as_me:$LINENO: result: no" >&5
  3984. echo "${ECHO_T}no" >&6; }
  3985. fi
  3986. fi
  3987. if test -z "$ac_cv_prog_RANLIB"; then
  3988. ac_ct_RANLIB=$RANLIB
  3989. # Extract the first word of "ranlib", so it can be a program name with args.
  3990. set dummy ranlib; ac_word=$2
  3991. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3992. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3993. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3994. echo $ECHO_N "(cached) $ECHO_C" >&6
  3995. else
  3996. if test -n "$ac_ct_RANLIB"; then
  3997. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3998. else
  3999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4000. for as_dir in $PATH
  4001. do
  4002. IFS=$as_save_IFS
  4003. test -z "$as_dir" && as_dir=.
  4004. for ac_exec_ext in '' $ac_executable_extensions; do
  4005. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4006. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4007. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4008. break 2
  4009. fi
  4010. done
  4011. done
  4012. IFS=$as_save_IFS
  4013. fi
  4014. fi
  4015. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4016. if test -n "$ac_ct_RANLIB"; then
  4017. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4018. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  4019. else
  4020. { echo "$as_me:$LINENO: result: no" >&5
  4021. echo "${ECHO_T}no" >&6; }
  4022. fi
  4023. if test "x$ac_ct_RANLIB" = x; then
  4024. RANLIB=":"
  4025. else
  4026. case $cross_compiling:$ac_tool_warned in
  4027. yes:)
  4028. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4029. whose name does not start with the host triplet. If you think this
  4030. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4031. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4032. whose name does not start with the host triplet. If you think this
  4033. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4034. ac_tool_warned=yes ;;
  4035. esac
  4036. RANLIB=$ac_ct_RANLIB
  4037. fi
  4038. else
  4039. RANLIB="$ac_cv_prog_RANLIB"
  4040. fi
  4041. for ac_prog in 'bison -y' byacc
  4042. do
  4043. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4044. set dummy $ac_prog; ac_word=$2
  4045. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4046. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4047. if test "${ac_cv_prog_YACC+set}" = set; then
  4048. echo $ECHO_N "(cached) $ECHO_C" >&6
  4049. else
  4050. if test -n "$YACC"; then
  4051. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4052. else
  4053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4054. for as_dir in $PATH
  4055. do
  4056. IFS=$as_save_IFS
  4057. test -z "$as_dir" && as_dir=.
  4058. for ac_exec_ext in '' $ac_executable_extensions; do
  4059. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4060. ac_cv_prog_YACC="$ac_prog"
  4061. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4062. break 2
  4063. fi
  4064. done
  4065. done
  4066. IFS=$as_save_IFS
  4067. fi
  4068. fi
  4069. YACC=$ac_cv_prog_YACC
  4070. if test -n "$YACC"; then
  4071. { echo "$as_me:$LINENO: result: $YACC" >&5
  4072. echo "${ECHO_T}$YACC" >&6; }
  4073. else
  4074. { echo "$as_me:$LINENO: result: no" >&5
  4075. echo "${ECHO_T}no" >&6; }
  4076. fi
  4077. test -n "$YACC" && break
  4078. done
  4079. test -n "$YACC" || YACC="yacc"
  4080. # Setting language choice
  4081. ac_ext=cpp
  4082. ac_cpp='$CXXCPP $CPPFLAGS'
  4083. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4084. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4085. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4086. # Check for GNU library
  4087. cat >>confdefs.h <<\_ACEOF
  4088. #define _GNU_SOURCE 1
  4089. _ACEOF
  4090. # Enable system extensions
  4091. ac_ext=cpp
  4092. ac_cpp='$CXXCPP $CPPFLAGS'
  4093. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4094. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4095. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4096. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4097. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  4098. if test -z "$CXXCPP"; then
  4099. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4100. echo $ECHO_N "(cached) $ECHO_C" >&6
  4101. else
  4102. # Double quotes because CXXCPP needs to be expanded
  4103. for CXXCPP in "$CXX -E" "/lib/cpp"
  4104. do
  4105. ac_preproc_ok=false
  4106. for ac_cxx_preproc_warn_flag in '' yes
  4107. do
  4108. # Use a header file that comes with gcc, so configuring glibc
  4109. # with a fresh cross-compiler works.
  4110. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4111. # <limits.h> exists even on freestanding compilers.
  4112. # On the NeXT, cc -E runs the code through the compiler's parser,
  4113. # not just through cpp. "Syntax error" is here to catch this case.
  4114. cat >conftest.$ac_ext <<_ACEOF
  4115. /* confdefs.h. */
  4116. _ACEOF
  4117. cat confdefs.h >>conftest.$ac_ext
  4118. cat >>conftest.$ac_ext <<_ACEOF
  4119. /* end confdefs.h. */
  4120. #ifdef __STDC__
  4121. # include <limits.h>
  4122. #else
  4123. # include <assert.h>
  4124. #endif
  4125. Syntax error
  4126. _ACEOF
  4127. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4128. case "(($ac_try" in
  4129. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4130. *) ac_try_echo=$ac_try;;
  4131. esac
  4132. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4133. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4134. ac_status=$?
  4135. grep -v '^ *+' conftest.er1 >conftest.err
  4136. rm -f conftest.er1
  4137. cat conftest.err >&5
  4138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4139. (exit $ac_status); } >/dev/null && {
  4140. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4141. test ! -s conftest.err
  4142. }; then
  4143. :
  4144. else
  4145. echo "$as_me: failed program was:" >&5
  4146. sed 's/^/| /' conftest.$ac_ext >&5
  4147. # Broken: fails on valid input.
  4148. continue
  4149. fi
  4150. rm -f conftest.err conftest.$ac_ext
  4151. # OK, works on sane cases. Now check whether nonexistent headers
  4152. # can be detected and how.
  4153. cat >conftest.$ac_ext <<_ACEOF
  4154. /* confdefs.h. */
  4155. _ACEOF
  4156. cat confdefs.h >>conftest.$ac_ext
  4157. cat >>conftest.$ac_ext <<_ACEOF
  4158. /* end confdefs.h. */
  4159. #include <ac_nonexistent.h>
  4160. _ACEOF
  4161. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4162. case "(($ac_try" in
  4163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4164. *) ac_try_echo=$ac_try;;
  4165. esac
  4166. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4167. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4168. ac_status=$?
  4169. grep -v '^ *+' conftest.er1 >conftest.err
  4170. rm -f conftest.er1
  4171. cat conftest.err >&5
  4172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4173. (exit $ac_status); } >/dev/null && {
  4174. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4175. test ! -s conftest.err
  4176. }; then
  4177. # Broken: success on invalid input.
  4178. continue
  4179. else
  4180. echo "$as_me: failed program was:" >&5
  4181. sed 's/^/| /' conftest.$ac_ext >&5
  4182. # Passes both tests.
  4183. ac_preproc_ok=:
  4184. break
  4185. fi
  4186. rm -f conftest.err conftest.$ac_ext
  4187. done
  4188. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4189. rm -f conftest.err conftest.$ac_ext
  4190. if $ac_preproc_ok; then
  4191. break
  4192. fi
  4193. done
  4194. ac_cv_prog_CXXCPP=$CXXCPP
  4195. fi
  4196. CXXCPP=$ac_cv_prog_CXXCPP
  4197. else
  4198. ac_cv_prog_CXXCPP=$CXXCPP
  4199. fi
  4200. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4201. echo "${ECHO_T}$CXXCPP" >&6; }
  4202. ac_preproc_ok=false
  4203. for ac_cxx_preproc_warn_flag in '' yes
  4204. do
  4205. # Use a header file that comes with gcc, so configuring glibc
  4206. # with a fresh cross-compiler works.
  4207. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4208. # <limits.h> exists even on freestanding compilers.
  4209. # On the NeXT, cc -E runs the code through the compiler's parser,
  4210. # not just through cpp. "Syntax error" is here to catch this case.
  4211. cat >conftest.$ac_ext <<_ACEOF
  4212. /* confdefs.h. */
  4213. _ACEOF
  4214. cat confdefs.h >>conftest.$ac_ext
  4215. cat >>conftest.$ac_ext <<_ACEOF
  4216. /* end confdefs.h. */
  4217. #ifdef __STDC__
  4218. # include <limits.h>
  4219. #else
  4220. # include <assert.h>
  4221. #endif
  4222. Syntax error
  4223. _ACEOF
  4224. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4225. case "(($ac_try" in
  4226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4227. *) ac_try_echo=$ac_try;;
  4228. esac
  4229. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4230. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4231. ac_status=$?
  4232. grep -v '^ *+' conftest.er1 >conftest.err
  4233. rm -f conftest.er1
  4234. cat conftest.err >&5
  4235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4236. (exit $ac_status); } >/dev/null && {
  4237. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4238. test ! -s conftest.err
  4239. }; then
  4240. :
  4241. else
  4242. echo "$as_me: failed program was:" >&5
  4243. sed 's/^/| /' conftest.$ac_ext >&5
  4244. # Broken: fails on valid input.
  4245. continue
  4246. fi
  4247. rm -f conftest.err conftest.$ac_ext
  4248. # OK, works on sane cases. Now check whether nonexistent headers
  4249. # can be detected and how.
  4250. cat >conftest.$ac_ext <<_ACEOF
  4251. /* confdefs.h. */
  4252. _ACEOF
  4253. cat confdefs.h >>conftest.$ac_ext
  4254. cat >>conftest.$ac_ext <<_ACEOF
  4255. /* end confdefs.h. */
  4256. #include <ac_nonexistent.h>
  4257. _ACEOF
  4258. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4259. case "(($ac_try" in
  4260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4261. *) ac_try_echo=$ac_try;;
  4262. esac
  4263. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4264. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4265. ac_status=$?
  4266. grep -v '^ *+' conftest.er1 >conftest.err
  4267. rm -f conftest.er1
  4268. cat conftest.err >&5
  4269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4270. (exit $ac_status); } >/dev/null && {
  4271. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4272. test ! -s conftest.err
  4273. }; then
  4274. # Broken: success on invalid input.
  4275. continue
  4276. else
  4277. echo "$as_me: failed program was:" >&5
  4278. sed 's/^/| /' conftest.$ac_ext >&5
  4279. # Passes both tests.
  4280. ac_preproc_ok=:
  4281. break
  4282. fi
  4283. rm -f conftest.err conftest.$ac_ext
  4284. done
  4285. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4286. rm -f conftest.err conftest.$ac_ext
  4287. if $ac_preproc_ok; then
  4288. :
  4289. else
  4290. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4291. See \`config.log' for more details." >&5
  4292. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4293. See \`config.log' for more details." >&2;}
  4294. { (exit 1); exit 1; }; }
  4295. fi
  4296. ac_ext=cpp
  4297. ac_cpp='$CXXCPP $CPPFLAGS'
  4298. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4299. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4300. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4301. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4302. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4303. if test "${ac_cv_path_GREP+set}" = set; then
  4304. echo $ECHO_N "(cached) $ECHO_C" >&6
  4305. else
  4306. # Extract the first word of "grep ggrep" to use in msg output
  4307. if test -z "$GREP"; then
  4308. set dummy grep ggrep; ac_prog_name=$2
  4309. if test "${ac_cv_path_GREP+set}" = set; then
  4310. echo $ECHO_N "(cached) $ECHO_C" >&6
  4311. else
  4312. ac_path_GREP_found=false
  4313. # Loop through the user's path and test for each of PROGNAME-LIST
  4314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4315. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4316. do
  4317. IFS=$as_save_IFS
  4318. test -z "$as_dir" && as_dir=.
  4319. for ac_prog in grep ggrep; do
  4320. for ac_exec_ext in '' $ac_executable_extensions; do
  4321. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4322. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4323. # Check for GNU ac_path_GREP and select it if it is found.
  4324. # Check for GNU $ac_path_GREP
  4325. case `"$ac_path_GREP" --version 2>&1` in
  4326. *GNU*)
  4327. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4328. *)
  4329. ac_count=0
  4330. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4331. while :
  4332. do
  4333. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4334. mv "conftest.tmp" "conftest.in"
  4335. cp "conftest.in" "conftest.nl"
  4336. echo 'GREP' >> "conftest.nl"
  4337. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4338. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4339. ac_count=`expr $ac_count + 1`
  4340. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4341. # Best one so far, save it but keep looking for a better one
  4342. ac_cv_path_GREP="$ac_path_GREP"
  4343. ac_path_GREP_max=$ac_count
  4344. fi
  4345. # 10*(2^10) chars as input seems more than enough
  4346. test $ac_count -gt 10 && break
  4347. done
  4348. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4349. esac
  4350. $ac_path_GREP_found && break 3
  4351. done
  4352. done
  4353. done
  4354. IFS=$as_save_IFS
  4355. fi
  4356. GREP="$ac_cv_path_GREP"
  4357. if test -z "$GREP"; then
  4358. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4359. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4360. { (exit 1); exit 1; }; }
  4361. fi
  4362. else
  4363. ac_cv_path_GREP=$GREP
  4364. fi
  4365. fi
  4366. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4367. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4368. GREP="$ac_cv_path_GREP"
  4369. { echo "$as_me:$LINENO: checking for egrep" >&5
  4370. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4371. if test "${ac_cv_path_EGREP+set}" = set; then
  4372. echo $ECHO_N "(cached) $ECHO_C" >&6
  4373. else
  4374. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4375. then ac_cv_path_EGREP="$GREP -E"
  4376. else
  4377. # Extract the first word of "egrep" to use in msg output
  4378. if test -z "$EGREP"; then
  4379. set dummy egrep; ac_prog_name=$2
  4380. if test "${ac_cv_path_EGREP+set}" = set; then
  4381. echo $ECHO_N "(cached) $ECHO_C" >&6
  4382. else
  4383. ac_path_EGREP_found=false
  4384. # Loop through the user's path and test for each of PROGNAME-LIST
  4385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4386. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4387. do
  4388. IFS=$as_save_IFS
  4389. test -z "$as_dir" && as_dir=.
  4390. for ac_prog in egrep; do
  4391. for ac_exec_ext in '' $ac_executable_extensions; do
  4392. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4393. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4394. # Check for GNU ac_path_EGREP and select it if it is found.
  4395. # Check for GNU $ac_path_EGREP
  4396. case `"$ac_path_EGREP" --version 2>&1` in
  4397. *GNU*)
  4398. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4399. *)
  4400. ac_count=0
  4401. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4402. while :
  4403. do
  4404. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4405. mv "conftest.tmp" "conftest.in"
  4406. cp "conftest.in" "conftest.nl"
  4407. echo 'EGREP' >> "conftest.nl"
  4408. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4409. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4410. ac_count=`expr $ac_count + 1`
  4411. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4412. # Best one so far, save it but keep looking for a better one
  4413. ac_cv_path_EGREP="$ac_path_EGREP"
  4414. ac_path_EGREP_max=$ac_count
  4415. fi
  4416. # 10*(2^10) chars as input seems more than enough
  4417. test $ac_count -gt 10 && break
  4418. done
  4419. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4420. esac
  4421. $ac_path_EGREP_found && break 3
  4422. done
  4423. done
  4424. done
  4425. IFS=$as_save_IFS
  4426. fi
  4427. EGREP="$ac_cv_path_EGREP"
  4428. if test -z "$EGREP"; then
  4429. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4430. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4431. { (exit 1); exit 1; }; }
  4432. fi
  4433. else
  4434. ac_cv_path_EGREP=$EGREP
  4435. fi
  4436. fi
  4437. fi
  4438. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4439. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4440. EGREP="$ac_cv_path_EGREP"
  4441. { echo "$as_me:$LINENO: checking for AIX" >&5
  4442. echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
  4443. cat >conftest.$ac_ext <<_ACEOF
  4444. /* confdefs.h. */
  4445. _ACEOF
  4446. cat confdefs.h >>conftest.$ac_ext
  4447. cat >>conftest.$ac_ext <<_ACEOF
  4448. /* end confdefs.h. */
  4449. #ifdef _AIX
  4450. yes
  4451. #endif
  4452. _ACEOF
  4453. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4454. $EGREP "yes" >/dev/null 2>&1; then
  4455. { echo "$as_me:$LINENO: result: yes" >&5
  4456. echo "${ECHO_T}yes" >&6; }
  4457. cat >>confdefs.h <<\_ACEOF
  4458. #define _ALL_SOURCE 1
  4459. _ACEOF
  4460. else
  4461. { echo "$as_me:$LINENO: result: no" >&5
  4462. echo "${ECHO_T}no" >&6; }
  4463. fi
  4464. rm -f conftest*
  4465. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4466. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4467. if test "${ac_cv_header_stdc+set}" = set; then
  4468. echo $ECHO_N "(cached) $ECHO_C" >&6
  4469. else
  4470. cat >conftest.$ac_ext <<_ACEOF
  4471. /* confdefs.h. */
  4472. _ACEOF
  4473. cat confdefs.h >>conftest.$ac_ext
  4474. cat >>conftest.$ac_ext <<_ACEOF
  4475. /* end confdefs.h. */
  4476. #include <stdlib.h>
  4477. #include <stdarg.h>
  4478. #include <string.h>
  4479. #include <float.h>
  4480. int
  4481. main ()
  4482. {
  4483. ;
  4484. return 0;
  4485. }
  4486. _ACEOF
  4487. rm -f conftest.$ac_objext
  4488. if { (ac_try="$ac_compile"
  4489. case "(($ac_try" in
  4490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4491. *) ac_try_echo=$ac_try;;
  4492. esac
  4493. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4494. (eval "$ac_compile") 2>conftest.er1
  4495. ac_status=$?
  4496. grep -v '^ *+' conftest.er1 >conftest.err
  4497. rm -f conftest.er1
  4498. cat conftest.err >&5
  4499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4500. (exit $ac_status); } && {
  4501. test -z "$ac_cxx_werror_flag" ||
  4502. test ! -s conftest.err
  4503. } && test -s conftest.$ac_objext; then
  4504. ac_cv_header_stdc=yes
  4505. else
  4506. echo "$as_me: failed program was:" >&5
  4507. sed 's/^/| /' conftest.$ac_ext >&5
  4508. ac_cv_header_stdc=no
  4509. fi
  4510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4511. if test $ac_cv_header_stdc = yes; then
  4512. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4513. cat >conftest.$ac_ext <<_ACEOF
  4514. /* confdefs.h. */
  4515. _ACEOF
  4516. cat confdefs.h >>conftest.$ac_ext
  4517. cat >>conftest.$ac_ext <<_ACEOF
  4518. /* end confdefs.h. */
  4519. #include <string.h>
  4520. _ACEOF
  4521. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4522. $EGREP "memchr" >/dev/null 2>&1; then
  4523. :
  4524. else
  4525. ac_cv_header_stdc=no
  4526. fi
  4527. rm -f conftest*
  4528. fi
  4529. if test $ac_cv_header_stdc = yes; then
  4530. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4531. cat >conftest.$ac_ext <<_ACEOF
  4532. /* confdefs.h. */
  4533. _ACEOF
  4534. cat confdefs.h >>conftest.$ac_ext
  4535. cat >>conftest.$ac_ext <<_ACEOF
  4536. /* end confdefs.h. */
  4537. #include <stdlib.h>
  4538. _ACEOF
  4539. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4540. $EGREP "free" >/dev/null 2>&1; then
  4541. :
  4542. else
  4543. ac_cv_header_stdc=no
  4544. fi
  4545. rm -f conftest*
  4546. fi
  4547. if test $ac_cv_header_stdc = yes; then
  4548. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4549. if test "$cross_compiling" = yes; then
  4550. :
  4551. else
  4552. cat >conftest.$ac_ext <<_ACEOF
  4553. /* confdefs.h. */
  4554. _ACEOF
  4555. cat confdefs.h >>conftest.$ac_ext
  4556. cat >>conftest.$ac_ext <<_ACEOF
  4557. /* end confdefs.h. */
  4558. #include <ctype.h>
  4559. #include <stdlib.h>
  4560. #if ((' ' & 0x0FF) == 0x020)
  4561. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4562. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4563. #else
  4564. # define ISLOWER(c) \
  4565. (('a' <= (c) && (c) <= 'i') \
  4566. || ('j' <= (c) && (c) <= 'r') \
  4567. || ('s' <= (c) && (c) <= 'z'))
  4568. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4569. #endif
  4570. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4571. int
  4572. main ()
  4573. {
  4574. int i;
  4575. for (i = 0; i < 256; i++)
  4576. if (XOR (islower (i), ISLOWER (i))
  4577. || toupper (i) != TOUPPER (i))
  4578. return 2;
  4579. return 0;
  4580. }
  4581. _ACEOF
  4582. rm -f conftest$ac_exeext
  4583. if { (ac_try="$ac_link"
  4584. case "(($ac_try" in
  4585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4586. *) ac_try_echo=$ac_try;;
  4587. esac
  4588. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4589. (eval "$ac_link") 2>&5
  4590. ac_status=$?
  4591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4592. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4593. { (case "(($ac_try" in
  4594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4595. *) ac_try_echo=$ac_try;;
  4596. esac
  4597. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4598. (eval "$ac_try") 2>&5
  4599. ac_status=$?
  4600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4601. (exit $ac_status); }; }; then
  4602. :
  4603. else
  4604. echo "$as_me: program exited with status $ac_status" >&5
  4605. echo "$as_me: failed program was:" >&5
  4606. sed 's/^/| /' conftest.$ac_ext >&5
  4607. ( exit $ac_status )
  4608. ac_cv_header_stdc=no
  4609. fi
  4610. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4611. fi
  4612. fi
  4613. fi
  4614. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4615. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4616. if test $ac_cv_header_stdc = yes; then
  4617. cat >>confdefs.h <<\_ACEOF
  4618. #define STDC_HEADERS 1
  4619. _ACEOF
  4620. fi
  4621. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4622. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4623. inttypes.h stdint.h unistd.h
  4624. do
  4625. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4626. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4627. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4628. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4629. echo $ECHO_N "(cached) $ECHO_C" >&6
  4630. else
  4631. cat >conftest.$ac_ext <<_ACEOF
  4632. /* confdefs.h. */
  4633. _ACEOF
  4634. cat confdefs.h >>conftest.$ac_ext
  4635. cat >>conftest.$ac_ext <<_ACEOF
  4636. /* end confdefs.h. */
  4637. $ac_includes_default
  4638. #include <$ac_header>
  4639. _ACEOF
  4640. rm -f conftest.$ac_objext
  4641. if { (ac_try="$ac_compile"
  4642. case "(($ac_try" in
  4643. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4644. *) ac_try_echo=$ac_try;;
  4645. esac
  4646. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4647. (eval "$ac_compile") 2>conftest.er1
  4648. ac_status=$?
  4649. grep -v '^ *+' conftest.er1 >conftest.err
  4650. rm -f conftest.er1
  4651. cat conftest.err >&5
  4652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4653. (exit $ac_status); } && {
  4654. test -z "$ac_cxx_werror_flag" ||
  4655. test ! -s conftest.err
  4656. } && test -s conftest.$ac_objext; then
  4657. eval "$as_ac_Header=yes"
  4658. else
  4659. echo "$as_me: failed program was:" >&5
  4660. sed 's/^/| /' conftest.$ac_ext >&5
  4661. eval "$as_ac_Header=no"
  4662. fi
  4663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4664. fi
  4665. ac_res=`eval echo '${'$as_ac_Header'}'`
  4666. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4667. echo "${ECHO_T}$ac_res" >&6; }
  4668. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4669. cat >>confdefs.h <<_ACEOF
  4670. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4671. _ACEOF
  4672. fi
  4673. done
  4674. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4675. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4676. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4677. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4678. echo $ECHO_N "(cached) $ECHO_C" >&6
  4679. fi
  4680. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4681. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4682. else
  4683. # Is the header compilable?
  4684. { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4685. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
  4686. cat >conftest.$ac_ext <<_ACEOF
  4687. /* confdefs.h. */
  4688. _ACEOF
  4689. cat confdefs.h >>conftest.$ac_ext
  4690. cat >>conftest.$ac_ext <<_ACEOF
  4691. /* end confdefs.h. */
  4692. $ac_includes_default
  4693. #include <minix/config.h>
  4694. _ACEOF
  4695. rm -f conftest.$ac_objext
  4696. if { (ac_try="$ac_compile"
  4697. case "(($ac_try" in
  4698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4699. *) ac_try_echo=$ac_try;;
  4700. esac
  4701. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4702. (eval "$ac_compile") 2>conftest.er1
  4703. ac_status=$?
  4704. grep -v '^ *+' conftest.er1 >conftest.err
  4705. rm -f conftest.er1
  4706. cat conftest.err >&5
  4707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4708. (exit $ac_status); } && {
  4709. test -z "$ac_cxx_werror_flag" ||
  4710. test ! -s conftest.err
  4711. } && test -s conftest.$ac_objext; then
  4712. ac_header_compiler=yes
  4713. else
  4714. echo "$as_me: failed program was:" >&5
  4715. sed 's/^/| /' conftest.$ac_ext >&5
  4716. ac_header_compiler=no
  4717. fi
  4718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4719. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4720. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4721. # Is the header present?
  4722. { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4723. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
  4724. cat >conftest.$ac_ext <<_ACEOF
  4725. /* confdefs.h. */
  4726. _ACEOF
  4727. cat confdefs.h >>conftest.$ac_ext
  4728. cat >>conftest.$ac_ext <<_ACEOF
  4729. /* end confdefs.h. */
  4730. #include <minix/config.h>
  4731. _ACEOF
  4732. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4733. case "(($ac_try" in
  4734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4735. *) ac_try_echo=$ac_try;;
  4736. esac
  4737. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4738. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4739. ac_status=$?
  4740. grep -v '^ *+' conftest.er1 >conftest.err
  4741. rm -f conftest.er1
  4742. cat conftest.err >&5
  4743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4744. (exit $ac_status); } >/dev/null && {
  4745. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4746. test ! -s conftest.err
  4747. }; then
  4748. ac_header_preproc=yes
  4749. else
  4750. echo "$as_me: failed program was:" >&5
  4751. sed 's/^/| /' conftest.$ac_ext >&5
  4752. ac_header_preproc=no
  4753. fi
  4754. rm -f conftest.err conftest.$ac_ext
  4755. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4756. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4757. # So? What about this header?
  4758. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4759. yes:no: )
  4760. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4761. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4762. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4763. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4764. ac_header_preproc=yes
  4765. ;;
  4766. no:yes:* )
  4767. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4768. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4769. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4770. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4771. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4772. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4773. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4774. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4775. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4776. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4777. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4778. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4779. ( cat <<\_ASBOX
  4780. ## ----------------------------------------------- ##
  4781. ## Report this to t-tujikawa@users.sourceforge.net ##
  4782. ## ----------------------------------------------- ##
  4783. _ASBOX
  4784. ) | sed "s/^/$as_me: WARNING: /" >&2
  4785. ;;
  4786. esac
  4787. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4788. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4789. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4790. echo $ECHO_N "(cached) $ECHO_C" >&6
  4791. else
  4792. ac_cv_header_minix_config_h=$ac_header_preproc
  4793. fi
  4794. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4795. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4796. fi
  4797. if test $ac_cv_header_minix_config_h = yes; then
  4798. MINIX=yes
  4799. else
  4800. MINIX=
  4801. fi
  4802. if test "$MINIX" = yes; then
  4803. cat >>confdefs.h <<\_ACEOF
  4804. #define _POSIX_SOURCE 1
  4805. _ACEOF
  4806. cat >>confdefs.h <<\_ACEOF
  4807. #define _POSIX_1_SOURCE 2
  4808. _ACEOF
  4809. cat >>confdefs.h <<\_ACEOF
  4810. #define _MINIX 1
  4811. _ACEOF
  4812. fi
  4813. { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  4814. echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
  4815. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  4816. echo $ECHO_N "(cached) $ECHO_C" >&6
  4817. else
  4818. cat >conftest.$ac_ext <<_ACEOF
  4819. /* confdefs.h. */
  4820. _ACEOF
  4821. cat confdefs.h >>conftest.$ac_ext
  4822. cat >>conftest.$ac_ext <<_ACEOF
  4823. /* end confdefs.h. */
  4824. # define __EXTENSIONS__ 1
  4825. $ac_includes_default
  4826. int
  4827. main ()
  4828. {
  4829. ;
  4830. return 0;
  4831. }
  4832. _ACEOF
  4833. rm -f conftest.$ac_objext
  4834. if { (ac_try="$ac_compile"
  4835. case "(($ac_try" in
  4836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4837. *) ac_try_echo=$ac_try;;
  4838. esac
  4839. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4840. (eval "$ac_compile") 2>conftest.er1
  4841. ac_status=$?
  4842. grep -v '^ *+' conftest.er1 >conftest.err
  4843. rm -f conftest.er1
  4844. cat conftest.err >&5
  4845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4846. (exit $ac_status); } && {
  4847. test -z "$ac_cxx_werror_flag" ||
  4848. test ! -s conftest.err
  4849. } && test -s conftest.$ac_objext; then
  4850. ac_cv_safe_to_define___extensions__=yes
  4851. else
  4852. echo "$as_me: failed program was:" >&5
  4853. sed 's/^/| /' conftest.$ac_ext >&5
  4854. ac_cv_safe_to_define___extensions__=no
  4855. fi
  4856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4857. fi
  4858. { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  4859. echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
  4860. test $ac_cv_safe_to_define___extensions__ = yes &&
  4861. cat >>confdefs.h <<\_ACEOF
  4862. #define __EXTENSIONS__ 1
  4863. _ACEOF
  4864. cat >>confdefs.h <<\_ACEOF
  4865. #define _POSIX_PTHREAD_SEMANTICS 1
  4866. _ACEOF
  4867. cat >>confdefs.h <<\_ACEOF
  4868. #define _TANDEM_SOURCE 1
  4869. _ACEOF
  4870. # Checks for libraries.
  4871. if test "x$with_libxml2" = "xyes"; then
  4872. # Check whether --with-xml-prefix was given.
  4873. if test "${with_xml_prefix+set}" = set; then
  4874. withval=$with_xml_prefix; xml_config_prefix="$withval"
  4875. else
  4876. xml_config_prefix=""
  4877. fi
  4878. # Check whether --with-xml-exec-prefix was given.
  4879. if test "${with_xml_exec_prefix+set}" = set; then
  4880. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  4881. else
  4882. xml_config_exec_prefix=""
  4883. fi
  4884. # Check whether --enable-xmltest was given.
  4885. if test "${enable_xmltest+set}" = set; then
  4886. enableval=$enable_xmltest;
  4887. else
  4888. enable_xmltest=yes
  4889. fi
  4890. if test x$xml_config_exec_prefix != x ; then
  4891. xml_config_args="$xml_config_args"
  4892. if test x${XML2_CONFIG+set} != xset ; then
  4893. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  4894. fi
  4895. fi
  4896. if test x$xml_config_prefix != x ; then
  4897. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  4898. if test x${XML2_CONFIG+set} != xset ; then
  4899. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  4900. fi
  4901. fi
  4902. # Extract the first word of "xml2-config", so it can be a program name with args.
  4903. set dummy xml2-config; ac_word=$2
  4904. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4905. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4906. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  4907. echo $ECHO_N "(cached) $ECHO_C" >&6
  4908. else
  4909. case $XML2_CONFIG in
  4910. [\\/]* | ?:[\\/]*)
  4911. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  4912. ;;
  4913. *)
  4914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4915. for as_dir in $PATH
  4916. do
  4917. IFS=$as_save_IFS
  4918. test -z "$as_dir" && as_dir=.
  4919. for ac_exec_ext in '' $ac_executable_extensions; do
  4920. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4921. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4922. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4923. break 2
  4924. fi
  4925. done
  4926. done
  4927. IFS=$as_save_IFS
  4928. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4929. ;;
  4930. esac
  4931. fi
  4932. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4933. if test -n "$XML2_CONFIG"; then
  4934. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  4935. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  4936. else
  4937. { echo "$as_me:$LINENO: result: no" >&5
  4938. echo "${ECHO_T}no" >&6; }
  4939. fi
  4940. min_xml_version=2.6.24
  4941. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  4942. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  4943. no_xml=""
  4944. if test "$XML2_CONFIG" = "no" ; then
  4945. no_xml=yes
  4946. else
  4947. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4948. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4949. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4950. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4951. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4952. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4953. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4954. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4955. if test "x$enable_xmltest" = "xyes" ; then
  4956. ac_save_CPPFLAGS="$CPPFLAGS"
  4957. ac_save_LIBS="$LIBS"
  4958. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4959. LIBS="$XML_LIBS $LIBS"
  4960. rm -f conf.xmltest
  4961. if test "$cross_compiling" = yes; then
  4962. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4963. else
  4964. cat >conftest.$ac_ext <<_ACEOF
  4965. /* confdefs.h. */
  4966. _ACEOF
  4967. cat confdefs.h >>conftest.$ac_ext
  4968. cat >>conftest.$ac_ext <<_ACEOF
  4969. /* end confdefs.h. */
  4970. #include <stdlib.h>
  4971. #include <stdio.h>
  4972. #include <string.h>
  4973. #include <libxml/xmlversion.h>
  4974. int
  4975. main()
  4976. {
  4977. int xml_major_version, xml_minor_version, xml_micro_version;
  4978. int major, minor, micro;
  4979. char *tmp_version;
  4980. system("touch conf.xmltest");
  4981. /* Capture xml2-config output via autoconf/configure variables */
  4982. /* HP/UX 9 (%@#!) writes to sscanf strings */
  4983. tmp_version = (char *)strdup("$min_xml_version");
  4984. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  4985. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  4986. exit(1);
  4987. }
  4988. free(tmp_version);
  4989. /* Capture the version information from the header files */
  4990. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  4991. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  4992. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  4993. exit(1);
  4994. }
  4995. free(tmp_version);
  4996. /* Compare xml2-config output to the libxml headers */
  4997. if ((xml_major_version != $xml_config_major_version) ||
  4998. (xml_minor_version != $xml_config_minor_version) ||
  4999. (xml_micro_version != $xml_config_micro_version))
  5000. {
  5001. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5002. xml_major_version, xml_minor_version, xml_micro_version);
  5003. printf("*** xml2-config (version %d.%d.%d)\n",
  5004. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5005. return 1;
  5006. }
  5007. /* Compare the headers to the library to make sure we match */
  5008. /* Less than ideal -- doesn't provide us with return value feedback,
  5009. * only exits if there's a serious mismatch between header and library.
  5010. */
  5011. LIBXML_TEST_VERSION;
  5012. /* Test that the library is greater than our minimum version */
  5013. if ((xml_major_version > major) ||
  5014. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5015. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5016. (xml_micro_version >= micro)))
  5017. {
  5018. return 0;
  5019. }
  5020. else
  5021. {
  5022. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5023. xml_major_version, xml_minor_version, xml_micro_version);
  5024. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5025. major, minor, micro);
  5026. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5027. printf("***\n");
  5028. printf("*** If you have already installed a sufficiently new version, this error\n");
  5029. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5030. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5031. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5032. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5033. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5034. printf("*** so that the correct libraries are found at run-time))\n");
  5035. }
  5036. return 1;
  5037. }
  5038. _ACEOF
  5039. rm -f conftest$ac_exeext
  5040. if { (ac_try="$ac_link"
  5041. case "(($ac_try" in
  5042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5043. *) ac_try_echo=$ac_try;;
  5044. esac
  5045. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5046. (eval "$ac_link") 2>&5
  5047. ac_status=$?
  5048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5049. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5050. { (case "(($ac_try" in
  5051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5052. *) ac_try_echo=$ac_try;;
  5053. esac
  5054. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5055. (eval "$ac_try") 2>&5
  5056. ac_status=$?
  5057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5058. (exit $ac_status); }; }; then
  5059. :
  5060. else
  5061. echo "$as_me: program exited with status $ac_status" >&5
  5062. echo "$as_me: failed program was:" >&5
  5063. sed 's/^/| /' conftest.$ac_ext >&5
  5064. ( exit $ac_status )
  5065. no_xml=yes
  5066. fi
  5067. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5068. fi
  5069. CPPFLAGS="$ac_save_CPPFLAGS"
  5070. LIBS="$ac_save_LIBS"
  5071. fi
  5072. fi
  5073. if test "x$no_xml" = x ; then
  5074. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5075. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5076. have_libxml2=yes
  5077. else
  5078. { echo "$as_me:$LINENO: result: no" >&5
  5079. echo "${ECHO_T}no" >&6; }
  5080. if test "$XML2_CONFIG" = "no" ; then
  5081. echo "*** The xml2-config script installed by LIBXML could not be found"
  5082. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5083. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5084. echo "*** full path to xml2-config."
  5085. else
  5086. if test -f conf.xmltest ; then
  5087. :
  5088. else
  5089. echo "*** Could not run libxml test program, checking why..."
  5090. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5091. LIBS="$LIBS $XML_LIBS"
  5092. cat >conftest.$ac_ext <<_ACEOF
  5093. /* confdefs.h. */
  5094. _ACEOF
  5095. cat confdefs.h >>conftest.$ac_ext
  5096. cat >>conftest.$ac_ext <<_ACEOF
  5097. /* end confdefs.h. */
  5098. #include <libxml/xmlversion.h>
  5099. #include <stdio.h>
  5100. int
  5101. main ()
  5102. {
  5103. LIBXML_TEST_VERSION; return 0;
  5104. ;
  5105. return 0;
  5106. }
  5107. _ACEOF
  5108. rm -f conftest.$ac_objext conftest$ac_exeext
  5109. if { (ac_try="$ac_link"
  5110. case "(($ac_try" in
  5111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5112. *) ac_try_echo=$ac_try;;
  5113. esac
  5114. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5115. (eval "$ac_link") 2>conftest.er1
  5116. ac_status=$?
  5117. grep -v '^ *+' conftest.er1 >conftest.err
  5118. rm -f conftest.er1
  5119. cat conftest.err >&5
  5120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5121. (exit $ac_status); } && {
  5122. test -z "$ac_cxx_werror_flag" ||
  5123. test ! -s conftest.err
  5124. } && test -s conftest$ac_exeext &&
  5125. $as_test_x conftest$ac_exeext; then
  5126. echo "*** The test program compiled, but did not run. This usually means"
  5127. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5128. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5129. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5130. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5131. echo "*** is required on your system"
  5132. echo "***"
  5133. echo "*** If you have an old version installed, it is best to remove it, although"
  5134. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5135. else
  5136. echo "$as_me: failed program was:" >&5
  5137. sed 's/^/| /' conftest.$ac_ext >&5
  5138. echo "*** The test program failed to compile or link. See the file config.log for the"
  5139. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5140. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5141. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5142. fi
  5143. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5144. conftest$ac_exeext conftest.$ac_ext
  5145. CPPFLAGS="$ac_save_CPPFLAGS"
  5146. LIBS="$ac_save_LIBS"
  5147. fi
  5148. fi
  5149. XML_CPPFLAGS=""
  5150. XML_LIBS=""
  5151. :
  5152. fi
  5153. rm -f conf.xmltest
  5154. if test "x$have_libxml2" = "xyes"; then
  5155. cat >>confdefs.h <<\_ACEOF
  5156. #define HAVE_LIBXML2 1
  5157. _ACEOF
  5158. fi
  5159. fi
  5160. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5161. # Check whether --with-libexpat-prefix was given.
  5162. if test "${with_libexpat_prefix+set}" = set; then
  5163. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5164. else
  5165. libexpat_prefix=""
  5166. fi
  5167. if test "x$libexpat_prefix" = "x"; then
  5168. libexpat_prefix="/usr"
  5169. fi
  5170. libexpat_prefix_lib=$libexpat_prefix/lib
  5171. libexpat_prefix_include=$libexpat_prefix/include
  5172. LIBS_save=$LIBS
  5173. CPPFLAGS_save=$CPPFLAGS
  5174. LIBS="-L$libexpat_prefix_lib $LIBS"
  5175. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5176. { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
  5177. echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
  5178. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
  5179. echo $ECHO_N "(cached) $ECHO_C" >&6
  5180. else
  5181. ac_check_lib_save_LIBS=$LIBS
  5182. LIBS="-lexpat $LIBS"
  5183. cat >conftest.$ac_ext <<_ACEOF
  5184. /* confdefs.h. */
  5185. _ACEOF
  5186. cat confdefs.h >>conftest.$ac_ext
  5187. cat >>conftest.$ac_ext <<_ACEOF
  5188. /* end confdefs.h. */
  5189. /* Override any GCC internal prototype to avoid an error.
  5190. Use char because int might match the return type of a GCC
  5191. builtin and then its argument prototype would still apply. */
  5192. #ifdef __cplusplus
  5193. extern "C"
  5194. #endif
  5195. char XML_ParserCreate ();
  5196. int
  5197. main ()
  5198. {
  5199. return XML_ParserCreate ();
  5200. ;
  5201. return 0;
  5202. }
  5203. _ACEOF
  5204. rm -f conftest.$ac_objext conftest$ac_exeext
  5205. if { (ac_try="$ac_link"
  5206. case "(($ac_try" in
  5207. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5208. *) ac_try_echo=$ac_try;;
  5209. esac
  5210. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5211. (eval "$ac_link") 2>conftest.er1
  5212. ac_status=$?
  5213. grep -v '^ *+' conftest.er1 >conftest.err
  5214. rm -f conftest.er1
  5215. cat conftest.err >&5
  5216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5217. (exit $ac_status); } && {
  5218. test -z "$ac_cxx_werror_flag" ||
  5219. test ! -s conftest.err
  5220. } && test -s conftest$ac_exeext &&
  5221. $as_test_x conftest$ac_exeext; then
  5222. ac_cv_lib_expat_XML_ParserCreate=yes
  5223. else
  5224. echo "$as_me: failed program was:" >&5
  5225. sed 's/^/| /' conftest.$ac_ext >&5
  5226. ac_cv_lib_expat_XML_ParserCreate=no
  5227. fi
  5228. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5229. conftest$ac_exeext conftest.$ac_ext
  5230. LIBS=$ac_check_lib_save_LIBS
  5231. fi
  5232. { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5233. echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5234. if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
  5235. have_libexpat=yes
  5236. fi
  5237. if test "x$have_libexpat" = "xyes"; then
  5238. cat >>confdefs.h <<\_ACEOF
  5239. #define HAVE_LIBEXPAT 1
  5240. _ACEOF
  5241. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5242. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5243. fi
  5244. LIBS=$LIBS_save
  5245. CPPFLAGS=$CPPFLAGS_save
  5246. fi
  5247. if test "x$with_gnutls" = "xyes"; then
  5248. # Check whether --with-libgnutls-prefix was given.
  5249. if test "${with_libgnutls_prefix+set}" = set; then
  5250. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5251. else
  5252. libgnutls_config_prefix=""
  5253. fi
  5254. if test x$libgnutls_config_prefix != x ; then
  5255. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5256. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5257. fi
  5258. fi
  5259. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5260. set dummy libgnutls-config; ac_word=$2
  5261. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5262. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5263. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  5264. echo $ECHO_N "(cached) $ECHO_C" >&6
  5265. else
  5266. case $LIBGNUTLS_CONFIG in
  5267. [\\/]* | ?:[\\/]*)
  5268. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5269. ;;
  5270. *)
  5271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5272. for as_dir in $PATH
  5273. do
  5274. IFS=$as_save_IFS
  5275. test -z "$as_dir" && as_dir=.
  5276. for ac_exec_ext in '' $ac_executable_extensions; do
  5277. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5278. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5279. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5280. break 2
  5281. fi
  5282. done
  5283. done
  5284. IFS=$as_save_IFS
  5285. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5286. ;;
  5287. esac
  5288. fi
  5289. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5290. if test -n "$LIBGNUTLS_CONFIG"; then
  5291. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  5292. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  5293. else
  5294. { echo "$as_me:$LINENO: result: no" >&5
  5295. echo "${ECHO_T}no" >&6; }
  5296. fi
  5297. min_libgnutls_version=1.2.9
  5298. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5299. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  5300. no_libgnutls=""
  5301. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5302. no_libgnutls=yes
  5303. else
  5304. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5305. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5306. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5307. ac_save_CFLAGS="$CFLAGS"
  5308. ac_save_LIBS="$LIBS"
  5309. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5310. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5311. rm -f conf.libgnutlstest
  5312. if test "$cross_compiling" = yes; then
  5313. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5314. else
  5315. cat >conftest.$ac_ext <<_ACEOF
  5316. /* confdefs.h. */
  5317. _ACEOF
  5318. cat confdefs.h >>conftest.$ac_ext
  5319. cat >>conftest.$ac_ext <<_ACEOF
  5320. /* end confdefs.h. */
  5321. #include <stdio.h>
  5322. #include <stdlib.h>
  5323. #include <string.h>
  5324. #include <gnutls/gnutls.h>
  5325. int
  5326. main ()
  5327. {
  5328. system ("touch conf.libgnutlstest");
  5329. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5330. {
  5331. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5332. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5333. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5334. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5335. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5336. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5337. printf("*** required on your system.\n");
  5338. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5339. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5340. printf("*** before re-running configure\n");
  5341. }
  5342. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5343. {
  5344. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5345. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5346. }
  5347. else
  5348. {
  5349. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5350. {
  5351. return 0;
  5352. }
  5353. else
  5354. {
  5355. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5356. gnutls_check_version(NULL) );
  5357. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5358. "$min_libgnutls_version" );
  5359. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5360. printf("*** \n");
  5361. printf("*** If you have already installed a sufficiently new version, this error\n");
  5362. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5363. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5364. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5365. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5366. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5367. printf("*** so that the correct libraries are found at run-time))\n");
  5368. }
  5369. }
  5370. return 1;
  5371. }
  5372. _ACEOF
  5373. rm -f conftest$ac_exeext
  5374. if { (ac_try="$ac_link"
  5375. case "(($ac_try" in
  5376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5377. *) ac_try_echo=$ac_try;;
  5378. esac
  5379. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5380. (eval "$ac_link") 2>&5
  5381. ac_status=$?
  5382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5383. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5384. { (case "(($ac_try" in
  5385. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5386. *) ac_try_echo=$ac_try;;
  5387. esac
  5388. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5389. (eval "$ac_try") 2>&5
  5390. ac_status=$?
  5391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5392. (exit $ac_status); }; }; then
  5393. :
  5394. else
  5395. echo "$as_me: program exited with status $ac_status" >&5
  5396. echo "$as_me: failed program was:" >&5
  5397. sed 's/^/| /' conftest.$ac_ext >&5
  5398. ( exit $ac_status )
  5399. no_libgnutls=yes
  5400. fi
  5401. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5402. fi
  5403. CFLAGS="$ac_save_CFLAGS"
  5404. LIBS="$ac_save_LIBS"
  5405. fi
  5406. if test "x$no_libgnutls" = x ; then
  5407. { echo "$as_me:$LINENO: result: yes" >&5
  5408. echo "${ECHO_T}yes" >&6; }
  5409. have_libgnutls=yes
  5410. else
  5411. if test -f conf.libgnutlstest ; then
  5412. :
  5413. else
  5414. { echo "$as_me:$LINENO: result: no" >&5
  5415. echo "${ECHO_T}no" >&6; }
  5416. fi
  5417. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5418. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5419. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5420. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5421. echo "*** full path to libgnutls-config."
  5422. else
  5423. if test -f conf.libgnutlstest ; then
  5424. :
  5425. else
  5426. echo "*** Could not run libgnutls test program, checking why..."
  5427. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5428. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5429. cat >conftest.$ac_ext <<_ACEOF
  5430. /* confdefs.h. */
  5431. _ACEOF
  5432. cat confdefs.h >>conftest.$ac_ext
  5433. cat >>conftest.$ac_ext <<_ACEOF
  5434. /* end confdefs.h. */
  5435. #include <stdio.h>
  5436. #include <stdlib.h>
  5437. #include <string.h>
  5438. #include <gnutls/gnutls.h>
  5439. int
  5440. main ()
  5441. {
  5442. return !!gnutls_check_version(NULL);
  5443. ;
  5444. return 0;
  5445. }
  5446. _ACEOF
  5447. rm -f conftest.$ac_objext conftest$ac_exeext
  5448. if { (ac_try="$ac_link"
  5449. case "(($ac_try" in
  5450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5451. *) ac_try_echo=$ac_try;;
  5452. esac
  5453. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5454. (eval "$ac_link") 2>conftest.er1
  5455. ac_status=$?
  5456. grep -v '^ *+' conftest.er1 >conftest.err
  5457. rm -f conftest.er1
  5458. cat conftest.err >&5
  5459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5460. (exit $ac_status); } && {
  5461. test -z "$ac_cxx_werror_flag" ||
  5462. test ! -s conftest.err
  5463. } && test -s conftest$ac_exeext &&
  5464. $as_test_x conftest$ac_exeext; then
  5465. echo "*** The test program compiled, but did not run. This usually means"
  5466. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5467. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5468. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5469. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5470. echo "*** is required on your system"
  5471. echo "***"
  5472. echo "*** If you have an old version installed, it is best to remove it, although"
  5473. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5474. echo "***"
  5475. else
  5476. echo "$as_me: failed program was:" >&5
  5477. sed 's/^/| /' conftest.$ac_ext >&5
  5478. echo "*** The test program failed to compile or link. See the file config.log for the"
  5479. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5480. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5481. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5482. fi
  5483. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5484. conftest$ac_exeext conftest.$ac_ext
  5485. CFLAGS="$ac_save_CFLAGS"
  5486. LIBS="$ac_save_LIBS"
  5487. fi
  5488. fi
  5489. LIBGNUTLS_CFLAGS=""
  5490. LIBGNUTLS_LIBS=""
  5491. :
  5492. fi
  5493. rm -f conf.libgnutlstest
  5494. if test "x$have_libgnutls" = "xyes"; then
  5495. cat >>confdefs.h <<\_ACEOF
  5496. #define HAVE_LIBGNUTLS 1
  5497. _ACEOF
  5498. fi
  5499. fi
  5500. if test "x$have_libgnutls" = "xyes"; then
  5501. # Check whether --with-libgcrypt-prefix was given.
  5502. if test "${with_libgcrypt_prefix+set}" = set; then
  5503. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5504. else
  5505. libgcrypt_config_prefix=""
  5506. fi
  5507. if test x$libgcrypt_config_prefix != x ; then
  5508. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5509. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5510. fi
  5511. fi
  5512. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5513. set dummy libgcrypt-config; ac_word=$2
  5514. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5515. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5516. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  5517. echo $ECHO_N "(cached) $ECHO_C" >&6
  5518. else
  5519. case $LIBGCRYPT_CONFIG in
  5520. [\\/]* | ?:[\\/]*)
  5521. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5522. ;;
  5523. *)
  5524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5525. for as_dir in $PATH
  5526. do
  5527. IFS=$as_save_IFS
  5528. test -z "$as_dir" && as_dir=.
  5529. for ac_exec_ext in '' $ac_executable_extensions; do
  5530. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5531. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5532. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5533. break 2
  5534. fi
  5535. done
  5536. done
  5537. IFS=$as_save_IFS
  5538. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5539. ;;
  5540. esac
  5541. fi
  5542. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5543. if test -n "$LIBGCRYPT_CONFIG"; then
  5544. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  5545. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  5546. else
  5547. { echo "$as_me:$LINENO: result: no" >&5
  5548. echo "${ECHO_T}no" >&6; }
  5549. fi
  5550. tmp=1.2.2
  5551. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5552. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5553. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5554. else
  5555. req_libgcrypt_api=0
  5556. min_libgcrypt_version="$tmp"
  5557. fi
  5558. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5559. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  5560. ok=no
  5561. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5562. req_major=`echo $min_libgcrypt_version | \
  5563. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5564. req_minor=`echo $min_libgcrypt_version | \
  5565. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5566. req_micro=`echo $min_libgcrypt_version | \
  5567. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5568. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5569. major=`echo $libgcrypt_config_version | \
  5570. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  5571. minor=`echo $libgcrypt_config_version | \
  5572. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  5573. micro=`echo $libgcrypt_config_version | \
  5574. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  5575. if test "$major" -gt "$req_major"; then
  5576. ok=yes
  5577. else
  5578. if test "$major" -eq "$req_major"; then
  5579. if test "$minor" -gt "$req_minor"; then
  5580. ok=yes
  5581. else
  5582. if test "$minor" -eq "$req_minor"; then
  5583. if test "$micro" -ge "$req_micro"; then
  5584. ok=yes
  5585. fi
  5586. fi
  5587. fi
  5588. fi
  5589. fi
  5590. fi
  5591. if test $ok = yes; then
  5592. { echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
  5593. echo "${ECHO_T}yes ($libgcrypt_config_version)" >&6; }
  5594. else
  5595. { echo "$as_me:$LINENO: result: no" >&5
  5596. echo "${ECHO_T}no" >&6; }
  5597. fi
  5598. if test $ok = yes; then
  5599. # If we have a recent libgcrypt, we should also check that the
  5600. # API is compatible
  5601. if test "$req_libgcrypt_api" -gt 0 ; then
  5602. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  5603. if test "$tmp" -gt 0 ; then
  5604. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  5605. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  5606. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  5607. { echo "$as_me:$LINENO: result: okay" >&5
  5608. echo "${ECHO_T}okay" >&6; }
  5609. else
  5610. ok=no
  5611. { echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  5612. echo "${ECHO_T}does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  5613. fi
  5614. fi
  5615. fi
  5616. fi
  5617. if test $ok = yes; then
  5618. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  5619. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  5620. have_libgcrypt=yes
  5621. else
  5622. LIBGCRYPT_CFLAGS=""
  5623. LIBGCRYPT_LIBS=""
  5624. :
  5625. fi
  5626. if test "x$have_libgcrypt" = "xyes"; then
  5627. cat >>confdefs.h <<\_ACEOF
  5628. #define HAVE_LIBGCRYPT 1
  5629. _ACEOF
  5630. fi
  5631. fi
  5632. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  5633. # Check whether --with-openssl-prefix was given.
  5634. if test "${with_openssl_prefix+set}" = set; then
  5635. withval=$with_openssl_prefix; openssl_prefix=$withval
  5636. else
  5637. openssl_prefix=""
  5638. fi
  5639. if test "x$openssl_prefix" = "x"; then
  5640. openssl_prefix="/usr/local"
  5641. fi
  5642. openssl_prefix_lib=$openssl_prefix/lib
  5643. openssl_prefix_include=$openssl_prefix/include
  5644. LIBS_save=$LIBS
  5645. CPPFLAGS_save=$CPPFLAGS
  5646. LIBS="-L$openssl_prefix_lib $LIBS"
  5647. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  5648. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  5649. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  5650. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  5651. echo $ECHO_N "(cached) $ECHO_C" >&6
  5652. else
  5653. ac_check_lib_save_LIBS=$LIBS
  5654. LIBS="-lssl $LIBS"
  5655. cat >conftest.$ac_ext <<_ACEOF
  5656. /* confdefs.h. */
  5657. _ACEOF
  5658. cat confdefs.h >>conftest.$ac_ext
  5659. cat >>conftest.$ac_ext <<_ACEOF
  5660. /* end confdefs.h. */
  5661. /* Override any GCC internal prototype to avoid an error.
  5662. Use char because int might match the return type of a GCC
  5663. builtin and then its argument prototype would still apply. */
  5664. #ifdef __cplusplus
  5665. extern "C"
  5666. #endif
  5667. char SSL_library_init ();
  5668. int
  5669. main ()
  5670. {
  5671. return SSL_library_init ();
  5672. ;
  5673. return 0;
  5674. }
  5675. _ACEOF
  5676. rm -f conftest.$ac_objext conftest$ac_exeext
  5677. if { (ac_try="$ac_link"
  5678. case "(($ac_try" in
  5679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5680. *) ac_try_echo=$ac_try;;
  5681. esac
  5682. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5683. (eval "$ac_link") 2>conftest.er1
  5684. ac_status=$?
  5685. grep -v '^ *+' conftest.er1 >conftest.err
  5686. rm -f conftest.er1
  5687. cat conftest.err >&5
  5688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5689. (exit $ac_status); } && {
  5690. test -z "$ac_cxx_werror_flag" ||
  5691. test ! -s conftest.err
  5692. } && test -s conftest$ac_exeext &&
  5693. $as_test_x conftest$ac_exeext; then
  5694. ac_cv_lib_ssl_SSL_library_init=yes
  5695. else
  5696. echo "$as_me: failed program was:" >&5
  5697. sed 's/^/| /' conftest.$ac_ext >&5
  5698. ac_cv_lib_ssl_SSL_library_init=no
  5699. fi
  5700. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5701. conftest$ac_exeext conftest.$ac_ext
  5702. LIBS=$ac_check_lib_save_LIBS
  5703. fi
  5704. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  5705. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  5706. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  5707. have_openssl=yes; LIBS="-lssl $LIBS"
  5708. fi
  5709. if test "x$have_openssl" = "xyes"; then
  5710. have_openssl=no
  5711. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  5712. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  5713. if test "${ac_cv_lib_crypto_main+set}" = set; then
  5714. echo $ECHO_N "(cached) $ECHO_C" >&6
  5715. else
  5716. ac_check_lib_save_LIBS=$LIBS
  5717. LIBS="-lcrypto $LIBS"
  5718. cat >conftest.$ac_ext <<_ACEOF
  5719. /* confdefs.h. */
  5720. _ACEOF
  5721. cat confdefs.h >>conftest.$ac_ext
  5722. cat >>conftest.$ac_ext <<_ACEOF
  5723. /* end confdefs.h. */
  5724. int
  5725. main ()
  5726. {
  5727. return main ();
  5728. ;
  5729. return 0;
  5730. }
  5731. _ACEOF
  5732. rm -f conftest.$ac_objext conftest$ac_exeext
  5733. if { (ac_try="$ac_link"
  5734. case "(($ac_try" in
  5735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5736. *) ac_try_echo=$ac_try;;
  5737. esac
  5738. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5739. (eval "$ac_link") 2>conftest.er1
  5740. ac_status=$?
  5741. grep -v '^ *+' conftest.er1 >conftest.err
  5742. rm -f conftest.er1
  5743. cat conftest.err >&5
  5744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5745. (exit $ac_status); } && {
  5746. test -z "$ac_cxx_werror_flag" ||
  5747. test ! -s conftest.err
  5748. } && test -s conftest$ac_exeext &&
  5749. $as_test_x conftest$ac_exeext; then
  5750. ac_cv_lib_crypto_main=yes
  5751. else
  5752. echo "$as_me: failed program was:" >&5
  5753. sed 's/^/| /' conftest.$ac_ext >&5
  5754. ac_cv_lib_crypto_main=no
  5755. fi
  5756. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5757. conftest$ac_exeext conftest.$ac_ext
  5758. LIBS=$ac_check_lib_save_LIBS
  5759. fi
  5760. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  5761. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  5762. if test $ac_cv_lib_crypto_main = yes; then
  5763. have_openssl=yes; LIBS="-lcrypto $LIBS"
  5764. fi
  5765. if test "x$have_openssl" = "xyes"; then
  5766. cat >>confdefs.h <<\_ACEOF
  5767. #define HAVE_LIBSSL 1
  5768. _ACEOF
  5769. for ac_func in EVP_DigestInit_ex
  5770. do
  5771. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5772. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5773. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5774. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5775. echo $ECHO_N "(cached) $ECHO_C" >&6
  5776. else
  5777. cat >conftest.$ac_ext <<_ACEOF
  5778. /* confdefs.h. */
  5779. _ACEOF
  5780. cat confdefs.h >>conftest.$ac_ext
  5781. cat >>conftest.$ac_ext <<_ACEOF
  5782. /* end confdefs.h. */
  5783. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5784. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5785. #define $ac_func innocuous_$ac_func
  5786. /* System header to define __stub macros and hopefully few prototypes,
  5787. which can conflict with char $ac_func (); below.
  5788. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5789. <limits.h> exists even on freestanding compilers. */
  5790. #ifdef __STDC__
  5791. # include <limits.h>
  5792. #else
  5793. # include <assert.h>
  5794. #endif
  5795. #undef $ac_func
  5796. /* Override any GCC internal prototype to avoid an error.
  5797. Use char because int might match the return type of a GCC
  5798. builtin and then its argument prototype would still apply. */
  5799. #ifdef __cplusplus
  5800. extern "C"
  5801. #endif
  5802. char $ac_func ();
  5803. /* The GNU C library defines this for functions which it implements
  5804. to always fail with ENOSYS. Some functions are actually named
  5805. something starting with __ and the normal name is an alias. */
  5806. #if defined __stub_$ac_func || defined __stub___$ac_func
  5807. choke me
  5808. #endif
  5809. int
  5810. main ()
  5811. {
  5812. return $ac_func ();
  5813. ;
  5814. return 0;
  5815. }
  5816. _ACEOF
  5817. rm -f conftest.$ac_objext conftest$ac_exeext
  5818. if { (ac_try="$ac_link"
  5819. case "(($ac_try" in
  5820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5821. *) ac_try_echo=$ac_try;;
  5822. esac
  5823. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5824. (eval "$ac_link") 2>conftest.er1
  5825. ac_status=$?
  5826. grep -v '^ *+' conftest.er1 >conftest.err
  5827. rm -f conftest.er1
  5828. cat conftest.err >&5
  5829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5830. (exit $ac_status); } && {
  5831. test -z "$ac_cxx_werror_flag" ||
  5832. test ! -s conftest.err
  5833. } && test -s conftest$ac_exeext &&
  5834. $as_test_x conftest$ac_exeext; then
  5835. eval "$as_ac_var=yes"
  5836. else
  5837. echo "$as_me: failed program was:" >&5
  5838. sed 's/^/| /' conftest.$ac_ext >&5
  5839. eval "$as_ac_var=no"
  5840. fi
  5841. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5842. conftest$ac_exeext conftest.$ac_ext
  5843. fi
  5844. ac_res=`eval echo '${'$as_ac_var'}'`
  5845. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5846. echo "${ECHO_T}$ac_res" >&6; }
  5847. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5848. cat >>confdefs.h <<_ACEOF
  5849. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5850. _ACEOF
  5851. have_digestinit_ex=yes
  5852. fi
  5853. done
  5854. if test "x$have_digestinit_ex" = "x"; then
  5855. cat >>confdefs.h <<\_ACEOF
  5856. #define HAVE_OLD_LIBSSL 1
  5857. _ACEOF
  5858. fi
  5859. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  5860. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  5861. for ac_func in EVP_sha256
  5862. do
  5863. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5864. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5865. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5866. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5867. echo $ECHO_N "(cached) $ECHO_C" >&6
  5868. else
  5869. cat >conftest.$ac_ext <<_ACEOF
  5870. /* confdefs.h. */
  5871. _ACEOF
  5872. cat confdefs.h >>conftest.$ac_ext
  5873. cat >>conftest.$ac_ext <<_ACEOF
  5874. /* end confdefs.h. */
  5875. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5876. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5877. #define $ac_func innocuous_$ac_func
  5878. /* System header to define __stub macros and hopefully few prototypes,
  5879. which can conflict with char $ac_func (); below.
  5880. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5881. <limits.h> exists even on freestanding compilers. */
  5882. #ifdef __STDC__
  5883. # include <limits.h>
  5884. #else
  5885. # include <assert.h>
  5886. #endif
  5887. #undef $ac_func
  5888. /* Override any GCC internal prototype to avoid an error.
  5889. Use char because int might match the return type of a GCC
  5890. builtin and then its argument prototype would still apply. */
  5891. #ifdef __cplusplus
  5892. extern "C"
  5893. #endif
  5894. char $ac_func ();
  5895. /* The GNU C library defines this for functions which it implements
  5896. to always fail with ENOSYS. Some functions are actually named
  5897. something starting with __ and the normal name is an alias. */
  5898. #if defined __stub_$ac_func || defined __stub___$ac_func
  5899. choke me
  5900. #endif
  5901. int
  5902. main ()
  5903. {
  5904. return $ac_func ();
  5905. ;
  5906. return 0;
  5907. }
  5908. _ACEOF
  5909. rm -f conftest.$ac_objext conftest$ac_exeext
  5910. if { (ac_try="$ac_link"
  5911. case "(($ac_try" in
  5912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5913. *) ac_try_echo=$ac_try;;
  5914. esac
  5915. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5916. (eval "$ac_link") 2>conftest.er1
  5917. ac_status=$?
  5918. grep -v '^ *+' conftest.er1 >conftest.err
  5919. rm -f conftest.er1
  5920. cat conftest.err >&5
  5921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5922. (exit $ac_status); } && {
  5923. test -z "$ac_cxx_werror_flag" ||
  5924. test ! -s conftest.err
  5925. } && test -s conftest$ac_exeext &&
  5926. $as_test_x conftest$ac_exeext; then
  5927. eval "$as_ac_var=yes"
  5928. else
  5929. echo "$as_me: failed program was:" >&5
  5930. sed 's/^/| /' conftest.$ac_ext >&5
  5931. eval "$as_ac_var=no"
  5932. fi
  5933. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5934. conftest$ac_exeext conftest.$ac_ext
  5935. fi
  5936. ac_res=`eval echo '${'$as_ac_var'}'`
  5937. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5938. echo "${ECHO_T}$ac_res" >&6; }
  5939. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5940. cat >>confdefs.h <<_ACEOF
  5941. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5942. _ACEOF
  5943. fi
  5944. done
  5945. fi
  5946. fi
  5947. LIBS=$LIBS_save
  5948. CPPFLAGS=$CPPFLAGS_save
  5949. fi
  5950. if test "x$with_libcares" = "xyes"; then
  5951. # Check whether --with-libcares-prefix was given.
  5952. if test "${with_libcares_prefix+set}" = set; then
  5953. withval=$with_libcares_prefix; libcares_prefix=$withval
  5954. else
  5955. libcares_prefix=""
  5956. fi
  5957. if test "x$libcares_prefix" = "x"; then
  5958. libcares_prefix="/usr"
  5959. fi
  5960. libcares_prefix_lib=$libcares_prefix/lib
  5961. libcares_prefix_include=$libcares_prefix/include
  5962. LIBS_save=$LIBS
  5963. CPPFLAGS_save=$CPPFLAGS
  5964. LIBS="-L$libcares_prefix_lib $LIBS"
  5965. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  5966. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  5967. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  5968. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  5969. echo $ECHO_N "(cached) $ECHO_C" >&6
  5970. else
  5971. ac_check_lib_save_LIBS=$LIBS
  5972. LIBS="-lcares $LIBS"
  5973. cat >conftest.$ac_ext <<_ACEOF
  5974. /* confdefs.h. */
  5975. _ACEOF
  5976. cat confdefs.h >>conftest.$ac_ext
  5977. cat >>conftest.$ac_ext <<_ACEOF
  5978. /* end confdefs.h. */
  5979. /* Override any GCC internal prototype to avoid an error.
  5980. Use char because int might match the return type of a GCC
  5981. builtin and then its argument prototype would still apply. */
  5982. #ifdef __cplusplus
  5983. extern "C"
  5984. #endif
  5985. char ares_init ();
  5986. int
  5987. main ()
  5988. {
  5989. return ares_init ();
  5990. ;
  5991. return 0;
  5992. }
  5993. _ACEOF
  5994. rm -f conftest.$ac_objext conftest$ac_exeext
  5995. if { (ac_try="$ac_link"
  5996. case "(($ac_try" in
  5997. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5998. *) ac_try_echo=$ac_try;;
  5999. esac
  6000. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6001. (eval "$ac_link") 2>conftest.er1
  6002. ac_status=$?
  6003. grep -v '^ *+' conftest.er1 >conftest.err
  6004. rm -f conftest.er1
  6005. cat conftest.err >&5
  6006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6007. (exit $ac_status); } && {
  6008. test -z "$ac_cxx_werror_flag" ||
  6009. test ! -s conftest.err
  6010. } && test -s conftest$ac_exeext &&
  6011. $as_test_x conftest$ac_exeext; then
  6012. ac_cv_lib_cares_ares_init=yes
  6013. else
  6014. echo "$as_me: failed program was:" >&5
  6015. sed 's/^/| /' conftest.$ac_ext >&5
  6016. ac_cv_lib_cares_ares_init=no
  6017. fi
  6018. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6019. conftest$ac_exeext conftest.$ac_ext
  6020. LIBS=$ac_check_lib_save_LIBS
  6021. fi
  6022. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6023. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  6024. if test $ac_cv_lib_cares_ares_init = yes; then
  6025. have_libcares=yes
  6026. fi
  6027. if test "x$have_libcares" = "xyes"; then
  6028. { echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6029. echo $ECHO_N "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... $ECHO_C" >&6; }
  6030. cat >conftest.$ac_ext <<_ACEOF
  6031. /* confdefs.h. */
  6032. _ACEOF
  6033. cat confdefs.h >>conftest.$ac_ext
  6034. cat >>conftest.$ac_ext <<_ACEOF
  6035. /* end confdefs.h. */
  6036. #include <ares.h>
  6037. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6038. int
  6039. main ()
  6040. {
  6041. ares_channel channel;
  6042. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6043. ;
  6044. return 0;
  6045. }
  6046. _ACEOF
  6047. rm -f conftest.$ac_objext
  6048. if { (ac_try="$ac_compile"
  6049. case "(($ac_try" in
  6050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6051. *) ac_try_echo=$ac_try;;
  6052. esac
  6053. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6054. (eval "$ac_compile") 2>conftest.er1
  6055. ac_status=$?
  6056. grep -v '^ *+' conftest.er1 >conftest.err
  6057. rm -f conftest.er1
  6058. cat conftest.err >&5
  6059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6060. (exit $ac_status); } && {
  6061. test -z "$ac_cxx_werror_flag" ||
  6062. test ! -s conftest.err
  6063. } && test -s conftest.$ac_objext; then
  6064. have_libcares1_5=yes
  6065. else
  6066. echo "$as_me: failed program was:" >&5
  6067. sed 's/^/| /' conftest.$ac_ext >&5
  6068. have_libcares1_5=no
  6069. fi
  6070. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6071. { echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  6072. echo "${ECHO_T}$have_libcares1_5" >&6; }
  6073. if test "x$have_libcares1_5" = "xyes"; then
  6074. cat >>confdefs.h <<\_ACEOF
  6075. #define HAVE_LIBCARES1_5 1
  6076. _ACEOF
  6077. fi
  6078. cat >>confdefs.h <<\_ACEOF
  6079. #define HAVE_LIBCARES 1
  6080. _ACEOF
  6081. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6082. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6083. fi
  6084. LIBS=$LIBS_save
  6085. CPPFLAGS=$CPPFLAGS_save
  6086. fi
  6087. if test "x$have_libcares" = "x"; then
  6088. if test "x$with_libares" = "xyes"; then
  6089. # Check whether --with-libares-prefix was given.
  6090. if test "${with_libares_prefix+set}" = set; then
  6091. withval=$with_libares_prefix; libares_prefix=$withval
  6092. else
  6093. libares_prefix=""
  6094. fi
  6095. if test "x$libares_prefix" = "x"; then
  6096. libares_prefix="/usr"
  6097. fi
  6098. libares_prefix_lib=$libares_prefix/lib
  6099. libares_prefix_include=$libares_prefix/include
  6100. LIBS_save=$LIBS
  6101. CPPFLAGS_save=$CPPFLAGS
  6102. LIBS="-L$libares_prefix_lib $LIBS"
  6103. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  6104. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  6105. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  6106. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  6107. echo $ECHO_N "(cached) $ECHO_C" >&6
  6108. else
  6109. ac_check_lib_save_LIBS=$LIBS
  6110. LIBS="-lares $LIBS"
  6111. cat >conftest.$ac_ext <<_ACEOF
  6112. /* confdefs.h. */
  6113. _ACEOF
  6114. cat confdefs.h >>conftest.$ac_ext
  6115. cat >>conftest.$ac_ext <<_ACEOF
  6116. /* end confdefs.h. */
  6117. /* Override any GCC internal prototype to avoid an error.
  6118. Use char because int might match the return type of a GCC
  6119. builtin and then its argument prototype would still apply. */
  6120. #ifdef __cplusplus
  6121. extern "C"
  6122. #endif
  6123. char ares_init ();
  6124. int
  6125. main ()
  6126. {
  6127. return ares_init ();
  6128. ;
  6129. return 0;
  6130. }
  6131. _ACEOF
  6132. rm -f conftest.$ac_objext conftest$ac_exeext
  6133. if { (ac_try="$ac_link"
  6134. case "(($ac_try" in
  6135. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6136. *) ac_try_echo=$ac_try;;
  6137. esac
  6138. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6139. (eval "$ac_link") 2>conftest.er1
  6140. ac_status=$?
  6141. grep -v '^ *+' conftest.er1 >conftest.err
  6142. rm -f conftest.er1
  6143. cat conftest.err >&5
  6144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6145. (exit $ac_status); } && {
  6146. test -z "$ac_cxx_werror_flag" ||
  6147. test ! -s conftest.err
  6148. } && test -s conftest$ac_exeext &&
  6149. $as_test_x conftest$ac_exeext; then
  6150. ac_cv_lib_ares_ares_init=yes
  6151. else
  6152. echo "$as_me: failed program was:" >&5
  6153. sed 's/^/| /' conftest.$ac_ext >&5
  6154. ac_cv_lib_ares_ares_init=no
  6155. fi
  6156. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6157. conftest$ac_exeext conftest.$ac_ext
  6158. LIBS=$ac_check_lib_save_LIBS
  6159. fi
  6160. { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  6161. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  6162. if test $ac_cv_lib_ares_ares_init = yes; then
  6163. have_libares=yes
  6164. fi
  6165. if test "x$have_libares" = "xyes"; then
  6166. cat >>confdefs.h <<\_ACEOF
  6167. #define HAVE_LIBARES 1
  6168. _ACEOF
  6169. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  6170. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  6171. fi
  6172. LIBS=$LIBS_save
  6173. CPPFLAGS=$CPPFLAGS_save
  6174. fi
  6175. fi
  6176. # Define variables based on the result of the checks for libraries.
  6177. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6178. cat >>confdefs.h <<\_ACEOF
  6179. #define ENABLE_SSL 1
  6180. _ACEOF
  6181. fi
  6182. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6183. cat >>confdefs.h <<\_ACEOF
  6184. #define ENABLE_MESSAGE_DIGEST 1
  6185. _ACEOF
  6186. if true; then
  6187. ENABLE_MESSAGE_DIGEST_TRUE=
  6188. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6189. else
  6190. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6191. ENABLE_MESSAGE_DIGEST_FALSE=
  6192. fi
  6193. enable_message_digest=yes
  6194. else
  6195. if false; then
  6196. ENABLE_MESSAGE_DIGEST_TRUE=
  6197. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6198. else
  6199. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6200. ENABLE_MESSAGE_DIGEST_FALSE=
  6201. fi
  6202. fi
  6203. if test "x$enable_bittorrent" = "xyes" && test "x$enable_message_digest" = "xyes"; then
  6204. cat >>confdefs.h <<\_ACEOF
  6205. #define ENABLE_BITTORRENT 1
  6206. _ACEOF
  6207. if true; then
  6208. ENABLE_BITTORRENT_TRUE=
  6209. ENABLE_BITTORRENT_FALSE='#'
  6210. else
  6211. ENABLE_BITTORRENT_TRUE='#'
  6212. ENABLE_BITTORRENT_FALSE=
  6213. fi
  6214. else
  6215. enable_bittorrent=no
  6216. if false; then
  6217. ENABLE_BITTORRENT_TRUE=
  6218. ENABLE_BITTORRENT_FALSE='#'
  6219. else
  6220. ENABLE_BITTORRENT_TRUE='#'
  6221. ENABLE_BITTORRENT_FALSE=
  6222. fi
  6223. fi
  6224. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") && test "x$enable_metalink" = "xyes"; then
  6225. cat >>confdefs.h <<\_ACEOF
  6226. #define ENABLE_METALINK 1
  6227. _ACEOF
  6228. if true; then
  6229. ENABLE_METALINK_TRUE=
  6230. ENABLE_METALINK_FALSE='#'
  6231. else
  6232. ENABLE_METALINK_TRUE='#'
  6233. ENABLE_METALINK_FALSE=
  6234. fi
  6235. else
  6236. enable_metalink=no
  6237. if false; then
  6238. ENABLE_METALINK_TRUE=
  6239. ENABLE_METALINK_FALSE='#'
  6240. else
  6241. ENABLE_METALINK_TRUE='#'
  6242. ENABLE_METALINK_FALSE=
  6243. fi
  6244. fi
  6245. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6246. ENABLE_LIBXML2_TRUE=
  6247. ENABLE_LIBXML2_FALSE='#'
  6248. else
  6249. ENABLE_LIBXML2_TRUE='#'
  6250. ENABLE_LIBXML2_FALSE=
  6251. fi
  6252. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6253. ENABLE_LIBEXPAT_TRUE=
  6254. ENABLE_LIBEXPAT_FALSE='#'
  6255. else
  6256. ENABLE_LIBEXPAT_TRUE='#'
  6257. ENABLE_LIBEXPAT_FALSE=
  6258. fi
  6259. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  6260. cat >>confdefs.h <<\_ACEOF
  6261. #define ENABLE_ASYNC_DNS 1
  6262. _ACEOF
  6263. if true; then
  6264. ENABLE_ASYNC_DNS_TRUE=
  6265. ENABLE_ASYNC_DNS_FALSE='#'
  6266. else
  6267. ENABLE_ASYNC_DNS_TRUE='#'
  6268. ENABLE_ASYNC_DNS_FALSE=
  6269. fi
  6270. else
  6271. if false; then
  6272. ENABLE_ASYNC_DNS_TRUE=
  6273. ENABLE_ASYNC_DNS_FALSE='#'
  6274. else
  6275. ENABLE_ASYNC_DNS_TRUE='#'
  6276. ENABLE_ASYNC_DNS_FALSE=
  6277. fi
  6278. fi
  6279. # Checks for header files.
  6280. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6281. # for constant arguments. Useless!
  6282. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  6283. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  6284. if test "${ac_cv_working_alloca_h+set}" = set; then
  6285. echo $ECHO_N "(cached) $ECHO_C" >&6
  6286. else
  6287. cat >conftest.$ac_ext <<_ACEOF
  6288. /* confdefs.h. */
  6289. _ACEOF
  6290. cat confdefs.h >>conftest.$ac_ext
  6291. cat >>conftest.$ac_ext <<_ACEOF
  6292. /* end confdefs.h. */
  6293. #include <alloca.h>
  6294. int
  6295. main ()
  6296. {
  6297. char *p = (char *) alloca (2 * sizeof (int));
  6298. if (p) return 0;
  6299. ;
  6300. return 0;
  6301. }
  6302. _ACEOF
  6303. rm -f conftest.$ac_objext conftest$ac_exeext
  6304. if { (ac_try="$ac_link"
  6305. case "(($ac_try" in
  6306. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6307. *) ac_try_echo=$ac_try;;
  6308. esac
  6309. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6310. (eval "$ac_link") 2>conftest.er1
  6311. ac_status=$?
  6312. grep -v '^ *+' conftest.er1 >conftest.err
  6313. rm -f conftest.er1
  6314. cat conftest.err >&5
  6315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6316. (exit $ac_status); } && {
  6317. test -z "$ac_cxx_werror_flag" ||
  6318. test ! -s conftest.err
  6319. } && test -s conftest$ac_exeext &&
  6320. $as_test_x conftest$ac_exeext; then
  6321. ac_cv_working_alloca_h=yes
  6322. else
  6323. echo "$as_me: failed program was:" >&5
  6324. sed 's/^/| /' conftest.$ac_ext >&5
  6325. ac_cv_working_alloca_h=no
  6326. fi
  6327. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6328. conftest$ac_exeext conftest.$ac_ext
  6329. fi
  6330. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6331. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  6332. if test $ac_cv_working_alloca_h = yes; then
  6333. cat >>confdefs.h <<\_ACEOF
  6334. #define HAVE_ALLOCA_H 1
  6335. _ACEOF
  6336. fi
  6337. { echo "$as_me:$LINENO: checking for alloca" >&5
  6338. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  6339. if test "${ac_cv_func_alloca_works+set}" = set; then
  6340. echo $ECHO_N "(cached) $ECHO_C" >&6
  6341. else
  6342. cat >conftest.$ac_ext <<_ACEOF
  6343. /* confdefs.h. */
  6344. _ACEOF
  6345. cat confdefs.h >>conftest.$ac_ext
  6346. cat >>conftest.$ac_ext <<_ACEOF
  6347. /* end confdefs.h. */
  6348. #ifdef __GNUC__
  6349. # define alloca __builtin_alloca
  6350. #else
  6351. # ifdef _MSC_VER
  6352. # include <malloc.h>
  6353. # define alloca _alloca
  6354. # else
  6355. # ifdef HAVE_ALLOCA_H
  6356. # include <alloca.h>
  6357. # else
  6358. # ifdef _AIX
  6359. #pragma alloca
  6360. # else
  6361. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6362. char *alloca ();
  6363. # endif
  6364. # endif
  6365. # endif
  6366. # endif
  6367. #endif
  6368. int
  6369. main ()
  6370. {
  6371. char *p = (char *) alloca (1);
  6372. if (p) return 0;
  6373. ;
  6374. return 0;
  6375. }
  6376. _ACEOF
  6377. rm -f conftest.$ac_objext conftest$ac_exeext
  6378. if { (ac_try="$ac_link"
  6379. case "(($ac_try" in
  6380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6381. *) ac_try_echo=$ac_try;;
  6382. esac
  6383. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6384. (eval "$ac_link") 2>conftest.er1
  6385. ac_status=$?
  6386. grep -v '^ *+' conftest.er1 >conftest.err
  6387. rm -f conftest.er1
  6388. cat conftest.err >&5
  6389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6390. (exit $ac_status); } && {
  6391. test -z "$ac_cxx_werror_flag" ||
  6392. test ! -s conftest.err
  6393. } && test -s conftest$ac_exeext &&
  6394. $as_test_x conftest$ac_exeext; then
  6395. ac_cv_func_alloca_works=yes
  6396. else
  6397. echo "$as_me: failed program was:" >&5
  6398. sed 's/^/| /' conftest.$ac_ext >&5
  6399. ac_cv_func_alloca_works=no
  6400. fi
  6401. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6402. conftest$ac_exeext conftest.$ac_ext
  6403. fi
  6404. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  6405. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  6406. if test $ac_cv_func_alloca_works = yes; then
  6407. cat >>confdefs.h <<\_ACEOF
  6408. #define HAVE_ALLOCA 1
  6409. _ACEOF
  6410. else
  6411. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6412. # that cause trouble. Some versions do not even contain alloca or
  6413. # contain a buggy version. If you still want to use their alloca,
  6414. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6415. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6416. cat >>confdefs.h <<\_ACEOF
  6417. #define C_ALLOCA 1
  6418. _ACEOF
  6419. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  6420. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  6421. if test "${ac_cv_os_cray+set}" = set; then
  6422. echo $ECHO_N "(cached) $ECHO_C" >&6
  6423. else
  6424. cat >conftest.$ac_ext <<_ACEOF
  6425. /* confdefs.h. */
  6426. _ACEOF
  6427. cat confdefs.h >>conftest.$ac_ext
  6428. cat >>conftest.$ac_ext <<_ACEOF
  6429. /* end confdefs.h. */
  6430. #if defined CRAY && ! defined CRAY2
  6431. webecray
  6432. #else
  6433. wenotbecray
  6434. #endif
  6435. _ACEOF
  6436. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6437. $EGREP "webecray" >/dev/null 2>&1; then
  6438. ac_cv_os_cray=yes
  6439. else
  6440. ac_cv_os_cray=no
  6441. fi
  6442. rm -f conftest*
  6443. fi
  6444. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  6445. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  6446. if test $ac_cv_os_cray = yes; then
  6447. for ac_func in _getb67 GETB67 getb67; do
  6448. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6449. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6450. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6451. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6452. echo $ECHO_N "(cached) $ECHO_C" >&6
  6453. else
  6454. cat >conftest.$ac_ext <<_ACEOF
  6455. /* confdefs.h. */
  6456. _ACEOF
  6457. cat confdefs.h >>conftest.$ac_ext
  6458. cat >>conftest.$ac_ext <<_ACEOF
  6459. /* end confdefs.h. */
  6460. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6461. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6462. #define $ac_func innocuous_$ac_func
  6463. /* System header to define __stub macros and hopefully few prototypes,
  6464. which can conflict with char $ac_func (); below.
  6465. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6466. <limits.h> exists even on freestanding compilers. */
  6467. #ifdef __STDC__
  6468. # include <limits.h>
  6469. #else
  6470. # include <assert.h>
  6471. #endif
  6472. #undef $ac_func
  6473. /* Override any GCC internal prototype to avoid an error.
  6474. Use char because int might match the return type of a GCC
  6475. builtin and then its argument prototype would still apply. */
  6476. #ifdef __cplusplus
  6477. extern "C"
  6478. #endif
  6479. char $ac_func ();
  6480. /* The GNU C library defines this for functions which it implements
  6481. to always fail with ENOSYS. Some functions are actually named
  6482. something starting with __ and the normal name is an alias. */
  6483. #if defined __stub_$ac_func || defined __stub___$ac_func
  6484. choke me
  6485. #endif
  6486. int
  6487. main ()
  6488. {
  6489. return $ac_func ();
  6490. ;
  6491. return 0;
  6492. }
  6493. _ACEOF
  6494. rm -f conftest.$ac_objext conftest$ac_exeext
  6495. if { (ac_try="$ac_link"
  6496. case "(($ac_try" in
  6497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6498. *) ac_try_echo=$ac_try;;
  6499. esac
  6500. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6501. (eval "$ac_link") 2>conftest.er1
  6502. ac_status=$?
  6503. grep -v '^ *+' conftest.er1 >conftest.err
  6504. rm -f conftest.er1
  6505. cat conftest.err >&5
  6506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6507. (exit $ac_status); } && {
  6508. test -z "$ac_cxx_werror_flag" ||
  6509. test ! -s conftest.err
  6510. } && test -s conftest$ac_exeext &&
  6511. $as_test_x conftest$ac_exeext; then
  6512. eval "$as_ac_var=yes"
  6513. else
  6514. echo "$as_me: failed program was:" >&5
  6515. sed 's/^/| /' conftest.$ac_ext >&5
  6516. eval "$as_ac_var=no"
  6517. fi
  6518. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6519. conftest$ac_exeext conftest.$ac_ext
  6520. fi
  6521. ac_res=`eval echo '${'$as_ac_var'}'`
  6522. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6523. echo "${ECHO_T}$ac_res" >&6; }
  6524. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6525. cat >>confdefs.h <<_ACEOF
  6526. #define CRAY_STACKSEG_END $ac_func
  6527. _ACEOF
  6528. break
  6529. fi
  6530. done
  6531. fi
  6532. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6533. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6534. if test "${ac_cv_c_stack_direction+set}" = set; then
  6535. echo $ECHO_N "(cached) $ECHO_C" >&6
  6536. else
  6537. if test "$cross_compiling" = yes; then
  6538. ac_cv_c_stack_direction=0
  6539. else
  6540. cat >conftest.$ac_ext <<_ACEOF
  6541. /* confdefs.h. */
  6542. _ACEOF
  6543. cat confdefs.h >>conftest.$ac_ext
  6544. cat >>conftest.$ac_ext <<_ACEOF
  6545. /* end confdefs.h. */
  6546. $ac_includes_default
  6547. int
  6548. find_stack_direction ()
  6549. {
  6550. static char *addr = 0;
  6551. auto char dummy;
  6552. if (addr == 0)
  6553. {
  6554. addr = &dummy;
  6555. return find_stack_direction ();
  6556. }
  6557. else
  6558. return (&dummy > addr) ? 1 : -1;
  6559. }
  6560. int
  6561. main ()
  6562. {
  6563. return find_stack_direction () < 0;
  6564. }
  6565. _ACEOF
  6566. rm -f conftest$ac_exeext
  6567. if { (ac_try="$ac_link"
  6568. case "(($ac_try" in
  6569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6570. *) ac_try_echo=$ac_try;;
  6571. esac
  6572. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6573. (eval "$ac_link") 2>&5
  6574. ac_status=$?
  6575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6576. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6577. { (case "(($ac_try" in
  6578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6579. *) ac_try_echo=$ac_try;;
  6580. esac
  6581. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6582. (eval "$ac_try") 2>&5
  6583. ac_status=$?
  6584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6585. (exit $ac_status); }; }; then
  6586. ac_cv_c_stack_direction=1
  6587. else
  6588. echo "$as_me: program exited with status $ac_status" >&5
  6589. echo "$as_me: failed program was:" >&5
  6590. sed 's/^/| /' conftest.$ac_ext >&5
  6591. ( exit $ac_status )
  6592. ac_cv_c_stack_direction=-1
  6593. fi
  6594. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6595. fi
  6596. fi
  6597. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6598. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  6599. cat >>confdefs.h <<_ACEOF
  6600. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6601. _ACEOF
  6602. fi
  6603. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6604. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  6605. if test "${ac_cv_header_stdc+set}" = set; then
  6606. echo $ECHO_N "(cached) $ECHO_C" >&6
  6607. else
  6608. cat >conftest.$ac_ext <<_ACEOF
  6609. /* confdefs.h. */
  6610. _ACEOF
  6611. cat confdefs.h >>conftest.$ac_ext
  6612. cat >>conftest.$ac_ext <<_ACEOF
  6613. /* end confdefs.h. */
  6614. #include <stdlib.h>
  6615. #include <stdarg.h>
  6616. #include <string.h>
  6617. #include <float.h>
  6618. int
  6619. main ()
  6620. {
  6621. ;
  6622. return 0;
  6623. }
  6624. _ACEOF
  6625. rm -f conftest.$ac_objext
  6626. if { (ac_try="$ac_compile"
  6627. case "(($ac_try" in
  6628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6629. *) ac_try_echo=$ac_try;;
  6630. esac
  6631. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6632. (eval "$ac_compile") 2>conftest.er1
  6633. ac_status=$?
  6634. grep -v '^ *+' conftest.er1 >conftest.err
  6635. rm -f conftest.er1
  6636. cat conftest.err >&5
  6637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6638. (exit $ac_status); } && {
  6639. test -z "$ac_cxx_werror_flag" ||
  6640. test ! -s conftest.err
  6641. } && test -s conftest.$ac_objext; then
  6642. ac_cv_header_stdc=yes
  6643. else
  6644. echo "$as_me: failed program was:" >&5
  6645. sed 's/^/| /' conftest.$ac_ext >&5
  6646. ac_cv_header_stdc=no
  6647. fi
  6648. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6649. if test $ac_cv_header_stdc = yes; then
  6650. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6651. cat >conftest.$ac_ext <<_ACEOF
  6652. /* confdefs.h. */
  6653. _ACEOF
  6654. cat confdefs.h >>conftest.$ac_ext
  6655. cat >>conftest.$ac_ext <<_ACEOF
  6656. /* end confdefs.h. */
  6657. #include <string.h>
  6658. _ACEOF
  6659. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6660. $EGREP "memchr" >/dev/null 2>&1; then
  6661. :
  6662. else
  6663. ac_cv_header_stdc=no
  6664. fi
  6665. rm -f conftest*
  6666. fi
  6667. if test $ac_cv_header_stdc = yes; then
  6668. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6669. cat >conftest.$ac_ext <<_ACEOF
  6670. /* confdefs.h. */
  6671. _ACEOF
  6672. cat confdefs.h >>conftest.$ac_ext
  6673. cat >>conftest.$ac_ext <<_ACEOF
  6674. /* end confdefs.h. */
  6675. #include <stdlib.h>
  6676. _ACEOF
  6677. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6678. $EGREP "free" >/dev/null 2>&1; then
  6679. :
  6680. else
  6681. ac_cv_header_stdc=no
  6682. fi
  6683. rm -f conftest*
  6684. fi
  6685. if test $ac_cv_header_stdc = yes; then
  6686. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6687. if test "$cross_compiling" = yes; then
  6688. :
  6689. else
  6690. cat >conftest.$ac_ext <<_ACEOF
  6691. /* confdefs.h. */
  6692. _ACEOF
  6693. cat confdefs.h >>conftest.$ac_ext
  6694. cat >>conftest.$ac_ext <<_ACEOF
  6695. /* end confdefs.h. */
  6696. #include <ctype.h>
  6697. #include <stdlib.h>
  6698. #if ((' ' & 0x0FF) == 0x020)
  6699. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6700. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6701. #else
  6702. # define ISLOWER(c) \
  6703. (('a' <= (c) && (c) <= 'i') \
  6704. || ('j' <= (c) && (c) <= 'r') \
  6705. || ('s' <= (c) && (c) <= 'z'))
  6706. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6707. #endif
  6708. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6709. int
  6710. main ()
  6711. {
  6712. int i;
  6713. for (i = 0; i < 256; i++)
  6714. if (XOR (islower (i), ISLOWER (i))
  6715. || toupper (i) != TOUPPER (i))
  6716. return 2;
  6717. return 0;
  6718. }
  6719. _ACEOF
  6720. rm -f conftest$ac_exeext
  6721. if { (ac_try="$ac_link"
  6722. case "(($ac_try" in
  6723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6724. *) ac_try_echo=$ac_try;;
  6725. esac
  6726. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6727. (eval "$ac_link") 2>&5
  6728. ac_status=$?
  6729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6730. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6731. { (case "(($ac_try" in
  6732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6733. *) ac_try_echo=$ac_try;;
  6734. esac
  6735. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6736. (eval "$ac_try") 2>&5
  6737. ac_status=$?
  6738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6739. (exit $ac_status); }; }; then
  6740. :
  6741. else
  6742. echo "$as_me: program exited with status $ac_status" >&5
  6743. echo "$as_me: failed program was:" >&5
  6744. sed 's/^/| /' conftest.$ac_ext >&5
  6745. ( exit $ac_status )
  6746. ac_cv_header_stdc=no
  6747. fi
  6748. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6749. fi
  6750. fi
  6751. fi
  6752. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6753. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  6754. if test $ac_cv_header_stdc = yes; then
  6755. cat >>confdefs.h <<\_ACEOF
  6756. #define STDC_HEADERS 1
  6757. _ACEOF
  6758. fi
  6759. for ac_header in winsock2.h ws2tcpip.h argz.h arpa/inet.h fcntl.h float.h inttypes.h io.h langinfo.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h termios.h unistd.h wchar.h
  6760. do
  6761. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6762. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6763. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6764. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6765. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6766. echo $ECHO_N "(cached) $ECHO_C" >&6
  6767. fi
  6768. ac_res=`eval echo '${'$as_ac_Header'}'`
  6769. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6770. echo "${ECHO_T}$ac_res" >&6; }
  6771. else
  6772. # Is the header compilable?
  6773. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6774. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6775. cat >conftest.$ac_ext <<_ACEOF
  6776. /* confdefs.h. */
  6777. _ACEOF
  6778. cat confdefs.h >>conftest.$ac_ext
  6779. cat >>conftest.$ac_ext <<_ACEOF
  6780. /* end confdefs.h. */
  6781. $ac_includes_default
  6782. #include <$ac_header>
  6783. _ACEOF
  6784. rm -f conftest.$ac_objext
  6785. if { (ac_try="$ac_compile"
  6786. case "(($ac_try" in
  6787. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6788. *) ac_try_echo=$ac_try;;
  6789. esac
  6790. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6791. (eval "$ac_compile") 2>conftest.er1
  6792. ac_status=$?
  6793. grep -v '^ *+' conftest.er1 >conftest.err
  6794. rm -f conftest.er1
  6795. cat conftest.err >&5
  6796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6797. (exit $ac_status); } && {
  6798. test -z "$ac_cxx_werror_flag" ||
  6799. test ! -s conftest.err
  6800. } && test -s conftest.$ac_objext; then
  6801. ac_header_compiler=yes
  6802. else
  6803. echo "$as_me: failed program was:" >&5
  6804. sed 's/^/| /' conftest.$ac_ext >&5
  6805. ac_header_compiler=no
  6806. fi
  6807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6808. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6809. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6810. # Is the header present?
  6811. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6812. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6813. cat >conftest.$ac_ext <<_ACEOF
  6814. /* confdefs.h. */
  6815. _ACEOF
  6816. cat confdefs.h >>conftest.$ac_ext
  6817. cat >>conftest.$ac_ext <<_ACEOF
  6818. /* end confdefs.h. */
  6819. #include <$ac_header>
  6820. _ACEOF
  6821. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6822. case "(($ac_try" in
  6823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6824. *) ac_try_echo=$ac_try;;
  6825. esac
  6826. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6827. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6828. ac_status=$?
  6829. grep -v '^ *+' conftest.er1 >conftest.err
  6830. rm -f conftest.er1
  6831. cat conftest.err >&5
  6832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6833. (exit $ac_status); } >/dev/null && {
  6834. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  6835. test ! -s conftest.err
  6836. }; then
  6837. ac_header_preproc=yes
  6838. else
  6839. echo "$as_me: failed program was:" >&5
  6840. sed 's/^/| /' conftest.$ac_ext >&5
  6841. ac_header_preproc=no
  6842. fi
  6843. rm -f conftest.err conftest.$ac_ext
  6844. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6845. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6846. # So? What about this header?
  6847. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  6848. yes:no: )
  6849. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6850. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6851. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6852. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6853. ac_header_preproc=yes
  6854. ;;
  6855. no:yes:* )
  6856. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6857. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6858. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6859. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6860. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6861. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6862. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6863. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6864. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6865. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6866. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6867. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6868. ( cat <<\_ASBOX
  6869. ## ----------------------------------------------- ##
  6870. ## Report this to t-tujikawa@users.sourceforge.net ##
  6871. ## ----------------------------------------------- ##
  6872. _ASBOX
  6873. ) | sed "s/^/$as_me: WARNING: /" >&2
  6874. ;;
  6875. esac
  6876. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6877. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6878. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6879. echo $ECHO_N "(cached) $ECHO_C" >&6
  6880. else
  6881. eval "$as_ac_Header=\$ac_header_preproc"
  6882. fi
  6883. ac_res=`eval echo '${'$as_ac_Header'}'`
  6884. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6885. echo "${ECHO_T}$ac_res" >&6; }
  6886. fi
  6887. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6888. cat >>confdefs.h <<_ACEOF
  6889. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6890. _ACEOF
  6891. fi
  6892. done
  6893. # Checks for typedefs, structures, and compiler characteristics.
  6894. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  6895. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  6896. if test "${ac_cv_header_stdbool_h+set}" = set; then
  6897. echo $ECHO_N "(cached) $ECHO_C" >&6
  6898. else
  6899. cat >conftest.$ac_ext <<_ACEOF
  6900. /* confdefs.h. */
  6901. _ACEOF
  6902. cat confdefs.h >>conftest.$ac_ext
  6903. cat >>conftest.$ac_ext <<_ACEOF
  6904. /* end confdefs.h. */
  6905. #include <stdbool.h>
  6906. #ifndef bool
  6907. "error: bool is not defined"
  6908. #endif
  6909. #ifndef false
  6910. "error: false is not defined"
  6911. #endif
  6912. #if false
  6913. "error: false is not 0"
  6914. #endif
  6915. #ifndef true
  6916. "error: true is not defined"
  6917. #endif
  6918. #if true != 1
  6919. "error: true is not 1"
  6920. #endif
  6921. #ifndef __bool_true_false_are_defined
  6922. "error: __bool_true_false_are_defined is not defined"
  6923. #endif
  6924. struct s { _Bool s: 1; _Bool t; } s;
  6925. char a[true == 1 ? 1 : -1];
  6926. char b[false == 0 ? 1 : -1];
  6927. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  6928. char d[(bool) 0.5 == true ? 1 : -1];
  6929. bool e = &s;
  6930. char f[(_Bool) 0.0 == false ? 1 : -1];
  6931. char g[true];
  6932. char h[sizeof (_Bool)];
  6933. char i[sizeof s.t];
  6934. enum { j = false, k = true, l = false * true, m = true * 256 };
  6935. _Bool n[m];
  6936. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  6937. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  6938. # if defined __xlc__ || defined __GNUC__
  6939. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  6940. reported by James Lemley on 2005-10-05; see
  6941. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  6942. This test is not quite right, since xlc is allowed to
  6943. reject this program, as the initializer for xlcbug is
  6944. not one of the forms that C requires support for.
  6945. However, doing the test right would require a runtime
  6946. test, and that would make cross-compilation harder.
  6947. Let us hope that IBM fixes the xlc bug, and also adds
  6948. support for this kind of constant expression. In the
  6949. meantime, this test will reject xlc, which is OK, since
  6950. our stdbool.h substitute should suffice. We also test
  6951. this with GCC, where it should work, to detect more
  6952. quickly whether someone messes up the test in the
  6953. future. */
  6954. char digs[] = "0123456789";
  6955. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  6956. # endif
  6957. /* Catch a bug in an HP-UX C compiler. See
  6958. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  6959. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  6960. */
  6961. _Bool q = true;
  6962. _Bool *pq = &q;
  6963. int
  6964. main ()
  6965. {
  6966. *pq |= q;
  6967. *pq |= ! q;
  6968. /* Refer to every declared value, to avoid compiler optimizations. */
  6969. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  6970. + !m + !n + !o + !p + !q + !pq);
  6971. ;
  6972. return 0;
  6973. }
  6974. _ACEOF
  6975. rm -f conftest.$ac_objext
  6976. if { (ac_try="$ac_compile"
  6977. case "(($ac_try" in
  6978. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6979. *) ac_try_echo=$ac_try;;
  6980. esac
  6981. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6982. (eval "$ac_compile") 2>conftest.er1
  6983. ac_status=$?
  6984. grep -v '^ *+' conftest.er1 >conftest.err
  6985. rm -f conftest.er1
  6986. cat conftest.err >&5
  6987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6988. (exit $ac_status); } && {
  6989. test -z "$ac_cxx_werror_flag" ||
  6990. test ! -s conftest.err
  6991. } && test -s conftest.$ac_objext; then
  6992. ac_cv_header_stdbool_h=yes
  6993. else
  6994. echo "$as_me: failed program was:" >&5
  6995. sed 's/^/| /' conftest.$ac_ext >&5
  6996. ac_cv_header_stdbool_h=no
  6997. fi
  6998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6999. fi
  7000. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  7001. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  7002. { echo "$as_me:$LINENO: checking for _Bool" >&5
  7003. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  7004. if test "${ac_cv_type__Bool+set}" = set; then
  7005. echo $ECHO_N "(cached) $ECHO_C" >&6
  7006. else
  7007. cat >conftest.$ac_ext <<_ACEOF
  7008. /* confdefs.h. */
  7009. _ACEOF
  7010. cat confdefs.h >>conftest.$ac_ext
  7011. cat >>conftest.$ac_ext <<_ACEOF
  7012. /* end confdefs.h. */
  7013. $ac_includes_default
  7014. typedef _Bool ac__type_new_;
  7015. int
  7016. main ()
  7017. {
  7018. if ((ac__type_new_ *) 0)
  7019. return 0;
  7020. if (sizeof (ac__type_new_))
  7021. return 0;
  7022. ;
  7023. return 0;
  7024. }
  7025. _ACEOF
  7026. rm -f conftest.$ac_objext
  7027. if { (ac_try="$ac_compile"
  7028. case "(($ac_try" in
  7029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7030. *) ac_try_echo=$ac_try;;
  7031. esac
  7032. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7033. (eval "$ac_compile") 2>conftest.er1
  7034. ac_status=$?
  7035. grep -v '^ *+' conftest.er1 >conftest.err
  7036. rm -f conftest.er1
  7037. cat conftest.err >&5
  7038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7039. (exit $ac_status); } && {
  7040. test -z "$ac_cxx_werror_flag" ||
  7041. test ! -s conftest.err
  7042. } && test -s conftest.$ac_objext; then
  7043. ac_cv_type__Bool=yes
  7044. else
  7045. echo "$as_me: failed program was:" >&5
  7046. sed 's/^/| /' conftest.$ac_ext >&5
  7047. ac_cv_type__Bool=no
  7048. fi
  7049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7050. fi
  7051. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  7052. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  7053. if test $ac_cv_type__Bool = yes; then
  7054. cat >>confdefs.h <<_ACEOF
  7055. #define HAVE__BOOL 1
  7056. _ACEOF
  7057. fi
  7058. if test $ac_cv_header_stdbool_h = yes; then
  7059. cat >>confdefs.h <<\_ACEOF
  7060. #define HAVE_STDBOOL_H 1
  7061. _ACEOF
  7062. fi
  7063. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  7064. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  7065. if test "${ac_cv_c_const+set}" = set; then
  7066. echo $ECHO_N "(cached) $ECHO_C" >&6
  7067. else
  7068. cat >conftest.$ac_ext <<_ACEOF
  7069. /* confdefs.h. */
  7070. _ACEOF
  7071. cat confdefs.h >>conftest.$ac_ext
  7072. cat >>conftest.$ac_ext <<_ACEOF
  7073. /* end confdefs.h. */
  7074. int
  7075. main ()
  7076. {
  7077. /* FIXME: Include the comments suggested by Paul. */
  7078. #ifndef __cplusplus
  7079. /* Ultrix mips cc rejects this. */
  7080. typedef int charset[2];
  7081. const charset cs;
  7082. /* SunOS 4.1.1 cc rejects this. */
  7083. char const *const *pcpcc;
  7084. char **ppc;
  7085. /* NEC SVR4.0.2 mips cc rejects this. */
  7086. struct point {int x, y;};
  7087. static struct point const zero = {0,0};
  7088. /* AIX XL C 1.02.0.0 rejects this.
  7089. It does not let you subtract one const X* pointer from another in
  7090. an arm of an if-expression whose if-part is not a constant
  7091. expression */
  7092. const char *g = "string";
  7093. pcpcc = &g + (g ? g-g : 0);
  7094. /* HPUX 7.0 cc rejects these. */
  7095. ++pcpcc;
  7096. ppc = (char**) pcpcc;
  7097. pcpcc = (char const *const *) ppc;
  7098. { /* SCO 3.2v4 cc rejects this. */
  7099. char *t;
  7100. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7101. *t++ = 0;
  7102. if (s) return 0;
  7103. }
  7104. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7105. int x[] = {25, 17};
  7106. const int *foo = &x[0];
  7107. ++foo;
  7108. }
  7109. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7110. typedef const int *iptr;
  7111. iptr p = 0;
  7112. ++p;
  7113. }
  7114. { /* AIX XL C 1.02.0.0 rejects this saying
  7115. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7116. struct s { int j; const int *ap[3]; };
  7117. struct s *b; b->j = 5;
  7118. }
  7119. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7120. const int foo = 10;
  7121. if (!foo) return 0;
  7122. }
  7123. return !cs[0] && !zero.x;
  7124. #endif
  7125. ;
  7126. return 0;
  7127. }
  7128. _ACEOF
  7129. rm -f conftest.$ac_objext
  7130. if { (ac_try="$ac_compile"
  7131. case "(($ac_try" in
  7132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7133. *) ac_try_echo=$ac_try;;
  7134. esac
  7135. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7136. (eval "$ac_compile") 2>conftest.er1
  7137. ac_status=$?
  7138. grep -v '^ *+' conftest.er1 >conftest.err
  7139. rm -f conftest.er1
  7140. cat conftest.err >&5
  7141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7142. (exit $ac_status); } && {
  7143. test -z "$ac_cxx_werror_flag" ||
  7144. test ! -s conftest.err
  7145. } && test -s conftest.$ac_objext; then
  7146. ac_cv_c_const=yes
  7147. else
  7148. echo "$as_me: failed program was:" >&5
  7149. sed 's/^/| /' conftest.$ac_ext >&5
  7150. ac_cv_c_const=no
  7151. fi
  7152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7153. fi
  7154. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  7155. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  7156. if test $ac_cv_c_const = no; then
  7157. cat >>confdefs.h <<\_ACEOF
  7158. #define const
  7159. _ACEOF
  7160. fi
  7161. { echo "$as_me:$LINENO: checking for inline" >&5
  7162. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  7163. if test "${ac_cv_c_inline+set}" = set; then
  7164. echo $ECHO_N "(cached) $ECHO_C" >&6
  7165. else
  7166. ac_cv_c_inline=no
  7167. for ac_kw in inline __inline__ __inline; do
  7168. cat >conftest.$ac_ext <<_ACEOF
  7169. /* confdefs.h. */
  7170. _ACEOF
  7171. cat confdefs.h >>conftest.$ac_ext
  7172. cat >>conftest.$ac_ext <<_ACEOF
  7173. /* end confdefs.h. */
  7174. #ifndef __cplusplus
  7175. typedef int foo_t;
  7176. static $ac_kw foo_t static_foo () {return 0; }
  7177. $ac_kw foo_t foo () {return 0; }
  7178. #endif
  7179. _ACEOF
  7180. rm -f conftest.$ac_objext
  7181. if { (ac_try="$ac_compile"
  7182. case "(($ac_try" in
  7183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7184. *) ac_try_echo=$ac_try;;
  7185. esac
  7186. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7187. (eval "$ac_compile") 2>conftest.er1
  7188. ac_status=$?
  7189. grep -v '^ *+' conftest.er1 >conftest.err
  7190. rm -f conftest.er1
  7191. cat conftest.err >&5
  7192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7193. (exit $ac_status); } && {
  7194. test -z "$ac_cxx_werror_flag" ||
  7195. test ! -s conftest.err
  7196. } && test -s conftest.$ac_objext; then
  7197. ac_cv_c_inline=$ac_kw
  7198. else
  7199. echo "$as_me: failed program was:" >&5
  7200. sed 's/^/| /' conftest.$ac_ext >&5
  7201. fi
  7202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7203. test "$ac_cv_c_inline" != no && break
  7204. done
  7205. fi
  7206. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  7207. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  7208. case $ac_cv_c_inline in
  7209. inline | yes) ;;
  7210. *)
  7211. case $ac_cv_c_inline in
  7212. no) ac_val=;;
  7213. *) ac_val=$ac_cv_c_inline;;
  7214. esac
  7215. cat >>confdefs.h <<_ACEOF
  7216. #ifndef __cplusplus
  7217. #define inline $ac_val
  7218. #endif
  7219. _ACEOF
  7220. ;;
  7221. esac
  7222. { echo "$as_me:$LINENO: checking for int16_t" >&5
  7223. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  7224. if test "${ac_cv_c_int16_t+set}" = set; then
  7225. echo $ECHO_N "(cached) $ECHO_C" >&6
  7226. else
  7227. ac_cv_c_int16_t=no
  7228. for ac_type in 'int16_t' 'int' 'long int' \
  7229. 'long long int' 'short int' 'signed char'; do
  7230. cat >conftest.$ac_ext <<_ACEOF
  7231. /* confdefs.h. */
  7232. _ACEOF
  7233. cat confdefs.h >>conftest.$ac_ext
  7234. cat >>conftest.$ac_ext <<_ACEOF
  7235. /* end confdefs.h. */
  7236. $ac_includes_default
  7237. int
  7238. main ()
  7239. {
  7240. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  7241. test_array [0] = 0
  7242. ;
  7243. return 0;
  7244. }
  7245. _ACEOF
  7246. rm -f conftest.$ac_objext
  7247. if { (ac_try="$ac_compile"
  7248. case "(($ac_try" in
  7249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7250. *) ac_try_echo=$ac_try;;
  7251. esac
  7252. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7253. (eval "$ac_compile") 2>conftest.er1
  7254. ac_status=$?
  7255. grep -v '^ *+' conftest.er1 >conftest.err
  7256. rm -f conftest.er1
  7257. cat conftest.err >&5
  7258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7259. (exit $ac_status); } && {
  7260. test -z "$ac_cxx_werror_flag" ||
  7261. test ! -s conftest.err
  7262. } && test -s conftest.$ac_objext; then
  7263. cat >conftest.$ac_ext <<_ACEOF
  7264. /* confdefs.h. */
  7265. _ACEOF
  7266. cat confdefs.h >>conftest.$ac_ext
  7267. cat >>conftest.$ac_ext <<_ACEOF
  7268. /* end confdefs.h. */
  7269. $ac_includes_default
  7270. int
  7271. main ()
  7272. {
  7273. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  7274. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  7275. test_array [0] = 0
  7276. ;
  7277. return 0;
  7278. }
  7279. _ACEOF
  7280. rm -f conftest.$ac_objext
  7281. if { (ac_try="$ac_compile"
  7282. case "(($ac_try" in
  7283. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7284. *) ac_try_echo=$ac_try;;
  7285. esac
  7286. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7287. (eval "$ac_compile") 2>conftest.er1
  7288. ac_status=$?
  7289. grep -v '^ *+' conftest.er1 >conftest.err
  7290. rm -f conftest.er1
  7291. cat conftest.err >&5
  7292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7293. (exit $ac_status); } && {
  7294. test -z "$ac_cxx_werror_flag" ||
  7295. test ! -s conftest.err
  7296. } && test -s conftest.$ac_objext; then
  7297. :
  7298. else
  7299. echo "$as_me: failed program was:" >&5
  7300. sed 's/^/| /' conftest.$ac_ext >&5
  7301. case $ac_type in
  7302. int16_t) ac_cv_c_int16_t=yes ;;
  7303. *) ac_cv_c_int16_t=$ac_type ;;
  7304. esac
  7305. fi
  7306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7307. else
  7308. echo "$as_me: failed program was:" >&5
  7309. sed 's/^/| /' conftest.$ac_ext >&5
  7310. fi
  7311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7312. test "$ac_cv_c_int16_t" != no && break
  7313. done
  7314. fi
  7315. { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  7316. echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
  7317. case $ac_cv_c_int16_t in #(
  7318. no|yes) ;; #(
  7319. *)
  7320. cat >>confdefs.h <<_ACEOF
  7321. #define int16_t $ac_cv_c_int16_t
  7322. _ACEOF
  7323. ;;
  7324. esac
  7325. { echo "$as_me:$LINENO: checking for int32_t" >&5
  7326. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  7327. if test "${ac_cv_c_int32_t+set}" = set; then
  7328. echo $ECHO_N "(cached) $ECHO_C" >&6
  7329. else
  7330. ac_cv_c_int32_t=no
  7331. for ac_type in 'int32_t' 'int' 'long int' \
  7332. 'long long int' 'short int' 'signed char'; do
  7333. cat >conftest.$ac_ext <<_ACEOF
  7334. /* confdefs.h. */
  7335. _ACEOF
  7336. cat confdefs.h >>conftest.$ac_ext
  7337. cat >>conftest.$ac_ext <<_ACEOF
  7338. /* end confdefs.h. */
  7339. $ac_includes_default
  7340. int
  7341. main ()
  7342. {
  7343. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  7344. test_array [0] = 0
  7345. ;
  7346. return 0;
  7347. }
  7348. _ACEOF
  7349. rm -f conftest.$ac_objext
  7350. if { (ac_try="$ac_compile"
  7351. case "(($ac_try" in
  7352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7353. *) ac_try_echo=$ac_try;;
  7354. esac
  7355. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7356. (eval "$ac_compile") 2>conftest.er1
  7357. ac_status=$?
  7358. grep -v '^ *+' conftest.er1 >conftest.err
  7359. rm -f conftest.er1
  7360. cat conftest.err >&5
  7361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7362. (exit $ac_status); } && {
  7363. test -z "$ac_cxx_werror_flag" ||
  7364. test ! -s conftest.err
  7365. } && test -s conftest.$ac_objext; then
  7366. cat >conftest.$ac_ext <<_ACEOF
  7367. /* confdefs.h. */
  7368. _ACEOF
  7369. cat confdefs.h >>conftest.$ac_ext
  7370. cat >>conftest.$ac_ext <<_ACEOF
  7371. /* end confdefs.h. */
  7372. $ac_includes_default
  7373. int
  7374. main ()
  7375. {
  7376. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  7377. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  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. :
  7401. else
  7402. echo "$as_me: failed program was:" >&5
  7403. sed 's/^/| /' conftest.$ac_ext >&5
  7404. case $ac_type in
  7405. int32_t) ac_cv_c_int32_t=yes ;;
  7406. *) ac_cv_c_int32_t=$ac_type ;;
  7407. esac
  7408. fi
  7409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7410. else
  7411. echo "$as_me: failed program was:" >&5
  7412. sed 's/^/| /' conftest.$ac_ext >&5
  7413. fi
  7414. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7415. test "$ac_cv_c_int32_t" != no && break
  7416. done
  7417. fi
  7418. { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  7419. echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
  7420. case $ac_cv_c_int32_t in #(
  7421. no|yes) ;; #(
  7422. *)
  7423. cat >>confdefs.h <<_ACEOF
  7424. #define int32_t $ac_cv_c_int32_t
  7425. _ACEOF
  7426. ;;
  7427. esac
  7428. { echo "$as_me:$LINENO: checking for int64_t" >&5
  7429. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  7430. if test "${ac_cv_c_int64_t+set}" = set; then
  7431. echo $ECHO_N "(cached) $ECHO_C" >&6
  7432. else
  7433. ac_cv_c_int64_t=no
  7434. for ac_type in 'int64_t' 'int' 'long int' \
  7435. 'long long int' 'short int' 'signed char'; do
  7436. cat >conftest.$ac_ext <<_ACEOF
  7437. /* confdefs.h. */
  7438. _ACEOF
  7439. cat confdefs.h >>conftest.$ac_ext
  7440. cat >>conftest.$ac_ext <<_ACEOF
  7441. /* end confdefs.h. */
  7442. $ac_includes_default
  7443. int
  7444. main ()
  7445. {
  7446. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  7447. test_array [0] = 0
  7448. ;
  7449. return 0;
  7450. }
  7451. _ACEOF
  7452. rm -f conftest.$ac_objext
  7453. if { (ac_try="$ac_compile"
  7454. case "(($ac_try" in
  7455. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7456. *) ac_try_echo=$ac_try;;
  7457. esac
  7458. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7459. (eval "$ac_compile") 2>conftest.er1
  7460. ac_status=$?
  7461. grep -v '^ *+' conftest.er1 >conftest.err
  7462. rm -f conftest.er1
  7463. cat conftest.err >&5
  7464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7465. (exit $ac_status); } && {
  7466. test -z "$ac_cxx_werror_flag" ||
  7467. test ! -s conftest.err
  7468. } && test -s conftest.$ac_objext; then
  7469. cat >conftest.$ac_ext <<_ACEOF
  7470. /* confdefs.h. */
  7471. _ACEOF
  7472. cat confdefs.h >>conftest.$ac_ext
  7473. cat >>conftest.$ac_ext <<_ACEOF
  7474. /* end confdefs.h. */
  7475. $ac_includes_default
  7476. int
  7477. main ()
  7478. {
  7479. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  7480. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  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. :
  7504. else
  7505. echo "$as_me: failed program was:" >&5
  7506. sed 's/^/| /' conftest.$ac_ext >&5
  7507. case $ac_type in
  7508. int64_t) ac_cv_c_int64_t=yes ;;
  7509. *) ac_cv_c_int64_t=$ac_type ;;
  7510. esac
  7511. fi
  7512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7513. else
  7514. echo "$as_me: failed program was:" >&5
  7515. sed 's/^/| /' conftest.$ac_ext >&5
  7516. fi
  7517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7518. test "$ac_cv_c_int64_t" != no && break
  7519. done
  7520. fi
  7521. { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  7522. echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
  7523. case $ac_cv_c_int64_t in #(
  7524. no|yes) ;; #(
  7525. *)
  7526. cat >>confdefs.h <<_ACEOF
  7527. #define int64_t $ac_cv_c_int64_t
  7528. _ACEOF
  7529. ;;
  7530. esac
  7531. { echo "$as_me:$LINENO: checking for int8_t" >&5
  7532. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  7533. if test "${ac_cv_c_int8_t+set}" = set; then
  7534. echo $ECHO_N "(cached) $ECHO_C" >&6
  7535. else
  7536. ac_cv_c_int8_t=no
  7537. for ac_type in 'int8_t' 'int' 'long int' \
  7538. 'long long int' 'short int' 'signed char'; do
  7539. cat >conftest.$ac_ext <<_ACEOF
  7540. /* confdefs.h. */
  7541. _ACEOF
  7542. cat confdefs.h >>conftest.$ac_ext
  7543. cat >>conftest.$ac_ext <<_ACEOF
  7544. /* end confdefs.h. */
  7545. $ac_includes_default
  7546. int
  7547. main ()
  7548. {
  7549. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  7550. test_array [0] = 0
  7551. ;
  7552. return 0;
  7553. }
  7554. _ACEOF
  7555. rm -f conftest.$ac_objext
  7556. if { (ac_try="$ac_compile"
  7557. case "(($ac_try" in
  7558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7559. *) ac_try_echo=$ac_try;;
  7560. esac
  7561. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7562. (eval "$ac_compile") 2>conftest.er1
  7563. ac_status=$?
  7564. grep -v '^ *+' conftest.er1 >conftest.err
  7565. rm -f conftest.er1
  7566. cat conftest.err >&5
  7567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7568. (exit $ac_status); } && {
  7569. test -z "$ac_cxx_werror_flag" ||
  7570. test ! -s conftest.err
  7571. } && test -s conftest.$ac_objext; then
  7572. cat >conftest.$ac_ext <<_ACEOF
  7573. /* confdefs.h. */
  7574. _ACEOF
  7575. cat confdefs.h >>conftest.$ac_ext
  7576. cat >>conftest.$ac_ext <<_ACEOF
  7577. /* end confdefs.h. */
  7578. $ac_includes_default
  7579. int
  7580. main ()
  7581. {
  7582. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  7583. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  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. :
  7607. else
  7608. echo "$as_me: failed program was:" >&5
  7609. sed 's/^/| /' conftest.$ac_ext >&5
  7610. case $ac_type in
  7611. int8_t) ac_cv_c_int8_t=yes ;;
  7612. *) ac_cv_c_int8_t=$ac_type ;;
  7613. esac
  7614. fi
  7615. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7616. else
  7617. echo "$as_me: failed program was:" >&5
  7618. sed 's/^/| /' conftest.$ac_ext >&5
  7619. fi
  7620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7621. test "$ac_cv_c_int8_t" != no && break
  7622. done
  7623. fi
  7624. { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  7625. echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
  7626. case $ac_cv_c_int8_t in #(
  7627. no|yes) ;; #(
  7628. *)
  7629. cat >>confdefs.h <<_ACEOF
  7630. #define int8_t $ac_cv_c_int8_t
  7631. _ACEOF
  7632. ;;
  7633. esac
  7634. { echo "$as_me:$LINENO: checking for mode_t" >&5
  7635. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
  7636. if test "${ac_cv_type_mode_t+set}" = set; then
  7637. echo $ECHO_N "(cached) $ECHO_C" >&6
  7638. else
  7639. cat >conftest.$ac_ext <<_ACEOF
  7640. /* confdefs.h. */
  7641. _ACEOF
  7642. cat confdefs.h >>conftest.$ac_ext
  7643. cat >>conftest.$ac_ext <<_ACEOF
  7644. /* end confdefs.h. */
  7645. $ac_includes_default
  7646. typedef mode_t ac__type_new_;
  7647. int
  7648. main ()
  7649. {
  7650. if ((ac__type_new_ *) 0)
  7651. return 0;
  7652. if (sizeof (ac__type_new_))
  7653. return 0;
  7654. ;
  7655. return 0;
  7656. }
  7657. _ACEOF
  7658. rm -f conftest.$ac_objext
  7659. if { (ac_try="$ac_compile"
  7660. case "(($ac_try" in
  7661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7662. *) ac_try_echo=$ac_try;;
  7663. esac
  7664. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7665. (eval "$ac_compile") 2>conftest.er1
  7666. ac_status=$?
  7667. grep -v '^ *+' conftest.er1 >conftest.err
  7668. rm -f conftest.er1
  7669. cat conftest.err >&5
  7670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7671. (exit $ac_status); } && {
  7672. test -z "$ac_cxx_werror_flag" ||
  7673. test ! -s conftest.err
  7674. } && test -s conftest.$ac_objext; then
  7675. ac_cv_type_mode_t=yes
  7676. else
  7677. echo "$as_me: failed program was:" >&5
  7678. sed 's/^/| /' conftest.$ac_ext >&5
  7679. ac_cv_type_mode_t=no
  7680. fi
  7681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7682. fi
  7683. { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  7684. echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
  7685. if test $ac_cv_type_mode_t = yes; then
  7686. :
  7687. else
  7688. cat >>confdefs.h <<_ACEOF
  7689. #define mode_t int
  7690. _ACEOF
  7691. fi
  7692. { echo "$as_me:$LINENO: checking for off_t" >&5
  7693. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  7694. if test "${ac_cv_type_off_t+set}" = set; then
  7695. echo $ECHO_N "(cached) $ECHO_C" >&6
  7696. else
  7697. cat >conftest.$ac_ext <<_ACEOF
  7698. /* confdefs.h. */
  7699. _ACEOF
  7700. cat confdefs.h >>conftest.$ac_ext
  7701. cat >>conftest.$ac_ext <<_ACEOF
  7702. /* end confdefs.h. */
  7703. $ac_includes_default
  7704. typedef off_t ac__type_new_;
  7705. int
  7706. main ()
  7707. {
  7708. if ((ac__type_new_ *) 0)
  7709. return 0;
  7710. if (sizeof (ac__type_new_))
  7711. return 0;
  7712. ;
  7713. return 0;
  7714. }
  7715. _ACEOF
  7716. rm -f conftest.$ac_objext
  7717. if { (ac_try="$ac_compile"
  7718. case "(($ac_try" in
  7719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7720. *) ac_try_echo=$ac_try;;
  7721. esac
  7722. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7723. (eval "$ac_compile") 2>conftest.er1
  7724. ac_status=$?
  7725. grep -v '^ *+' conftest.er1 >conftest.err
  7726. rm -f conftest.er1
  7727. cat conftest.err >&5
  7728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7729. (exit $ac_status); } && {
  7730. test -z "$ac_cxx_werror_flag" ||
  7731. test ! -s conftest.err
  7732. } && test -s conftest.$ac_objext; then
  7733. ac_cv_type_off_t=yes
  7734. else
  7735. echo "$as_me: failed program was:" >&5
  7736. sed 's/^/| /' conftest.$ac_ext >&5
  7737. ac_cv_type_off_t=no
  7738. fi
  7739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7740. fi
  7741. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  7742. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  7743. if test $ac_cv_type_off_t = yes; then
  7744. :
  7745. else
  7746. cat >>confdefs.h <<_ACEOF
  7747. #define off_t long int
  7748. _ACEOF
  7749. fi
  7750. { echo "$as_me:$LINENO: checking for size_t" >&5
  7751. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  7752. if test "${ac_cv_type_size_t+set}" = set; then
  7753. echo $ECHO_N "(cached) $ECHO_C" >&6
  7754. else
  7755. cat >conftest.$ac_ext <<_ACEOF
  7756. /* confdefs.h. */
  7757. _ACEOF
  7758. cat confdefs.h >>conftest.$ac_ext
  7759. cat >>conftest.$ac_ext <<_ACEOF
  7760. /* end confdefs.h. */
  7761. $ac_includes_default
  7762. typedef size_t ac__type_new_;
  7763. int
  7764. main ()
  7765. {
  7766. if ((ac__type_new_ *) 0)
  7767. return 0;
  7768. if (sizeof (ac__type_new_))
  7769. return 0;
  7770. ;
  7771. return 0;
  7772. }
  7773. _ACEOF
  7774. rm -f conftest.$ac_objext
  7775. if { (ac_try="$ac_compile"
  7776. case "(($ac_try" in
  7777. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7778. *) ac_try_echo=$ac_try;;
  7779. esac
  7780. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7781. (eval "$ac_compile") 2>conftest.er1
  7782. ac_status=$?
  7783. grep -v '^ *+' conftest.er1 >conftest.err
  7784. rm -f conftest.er1
  7785. cat conftest.err >&5
  7786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7787. (exit $ac_status); } && {
  7788. test -z "$ac_cxx_werror_flag" ||
  7789. test ! -s conftest.err
  7790. } && test -s conftest.$ac_objext; then
  7791. ac_cv_type_size_t=yes
  7792. else
  7793. echo "$as_me: failed program was:" >&5
  7794. sed 's/^/| /' conftest.$ac_ext >&5
  7795. ac_cv_type_size_t=no
  7796. fi
  7797. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7798. fi
  7799. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  7800. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  7801. if test $ac_cv_type_size_t = yes; then
  7802. :
  7803. else
  7804. cat >>confdefs.h <<_ACEOF
  7805. #define size_t unsigned int
  7806. _ACEOF
  7807. fi
  7808. { echo "$as_me:$LINENO: checking for ssize_t" >&5
  7809. echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
  7810. if test "${ac_cv_type_ssize_t+set}" = set; then
  7811. echo $ECHO_N "(cached) $ECHO_C" >&6
  7812. else
  7813. cat >conftest.$ac_ext <<_ACEOF
  7814. /* confdefs.h. */
  7815. _ACEOF
  7816. cat confdefs.h >>conftest.$ac_ext
  7817. cat >>conftest.$ac_ext <<_ACEOF
  7818. /* end confdefs.h. */
  7819. $ac_includes_default
  7820. typedef ssize_t ac__type_new_;
  7821. int
  7822. main ()
  7823. {
  7824. if ((ac__type_new_ *) 0)
  7825. return 0;
  7826. if (sizeof (ac__type_new_))
  7827. return 0;
  7828. ;
  7829. return 0;
  7830. }
  7831. _ACEOF
  7832. rm -f conftest.$ac_objext
  7833. if { (ac_try="$ac_compile"
  7834. case "(($ac_try" in
  7835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7836. *) ac_try_echo=$ac_try;;
  7837. esac
  7838. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7839. (eval "$ac_compile") 2>conftest.er1
  7840. ac_status=$?
  7841. grep -v '^ *+' conftest.er1 >conftest.err
  7842. rm -f conftest.er1
  7843. cat conftest.err >&5
  7844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7845. (exit $ac_status); } && {
  7846. test -z "$ac_cxx_werror_flag" ||
  7847. test ! -s conftest.err
  7848. } && test -s conftest.$ac_objext; then
  7849. ac_cv_type_ssize_t=yes
  7850. else
  7851. echo "$as_me: failed program was:" >&5
  7852. sed 's/^/| /' conftest.$ac_ext >&5
  7853. ac_cv_type_ssize_t=no
  7854. fi
  7855. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7856. fi
  7857. { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  7858. echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
  7859. if test $ac_cv_type_ssize_t = yes; then
  7860. :
  7861. else
  7862. cat >>confdefs.h <<_ACEOF
  7863. #define ssize_t int
  7864. _ACEOF
  7865. fi
  7866. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  7867. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  7868. if test "${ac_cv_header_time+set}" = set; then
  7869. echo $ECHO_N "(cached) $ECHO_C" >&6
  7870. else
  7871. cat >conftest.$ac_ext <<_ACEOF
  7872. /* confdefs.h. */
  7873. _ACEOF
  7874. cat confdefs.h >>conftest.$ac_ext
  7875. cat >>conftest.$ac_ext <<_ACEOF
  7876. /* end confdefs.h. */
  7877. #include <sys/types.h>
  7878. #include <sys/time.h>
  7879. #include <time.h>
  7880. int
  7881. main ()
  7882. {
  7883. if ((struct tm *) 0)
  7884. return 0;
  7885. ;
  7886. return 0;
  7887. }
  7888. _ACEOF
  7889. rm -f conftest.$ac_objext
  7890. if { (ac_try="$ac_compile"
  7891. case "(($ac_try" in
  7892. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7893. *) ac_try_echo=$ac_try;;
  7894. esac
  7895. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7896. (eval "$ac_compile") 2>conftest.er1
  7897. ac_status=$?
  7898. grep -v '^ *+' conftest.er1 >conftest.err
  7899. rm -f conftest.er1
  7900. cat conftest.err >&5
  7901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7902. (exit $ac_status); } && {
  7903. test -z "$ac_cxx_werror_flag" ||
  7904. test ! -s conftest.err
  7905. } && test -s conftest.$ac_objext; then
  7906. ac_cv_header_time=yes
  7907. else
  7908. echo "$as_me: failed program was:" >&5
  7909. sed 's/^/| /' conftest.$ac_ext >&5
  7910. ac_cv_header_time=no
  7911. fi
  7912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7913. fi
  7914. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  7915. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  7916. if test $ac_cv_header_time = yes; then
  7917. cat >>confdefs.h <<\_ACEOF
  7918. #define TIME_WITH_SYS_TIME 1
  7919. _ACEOF
  7920. fi
  7921. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7922. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  7923. if test "${ac_cv_struct_tm+set}" = set; then
  7924. echo $ECHO_N "(cached) $ECHO_C" >&6
  7925. else
  7926. cat >conftest.$ac_ext <<_ACEOF
  7927. /* confdefs.h. */
  7928. _ACEOF
  7929. cat confdefs.h >>conftest.$ac_ext
  7930. cat >>conftest.$ac_ext <<_ACEOF
  7931. /* end confdefs.h. */
  7932. #include <sys/types.h>
  7933. #include <time.h>
  7934. int
  7935. main ()
  7936. {
  7937. struct tm tm;
  7938. int *p = &tm.tm_sec;
  7939. return !p;
  7940. ;
  7941. return 0;
  7942. }
  7943. _ACEOF
  7944. rm -f conftest.$ac_objext
  7945. if { (ac_try="$ac_compile"
  7946. case "(($ac_try" in
  7947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7948. *) ac_try_echo=$ac_try;;
  7949. esac
  7950. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7951. (eval "$ac_compile") 2>conftest.er1
  7952. ac_status=$?
  7953. grep -v '^ *+' conftest.er1 >conftest.err
  7954. rm -f conftest.er1
  7955. cat conftest.err >&5
  7956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7957. (exit $ac_status); } && {
  7958. test -z "$ac_cxx_werror_flag" ||
  7959. test ! -s conftest.err
  7960. } && test -s conftest.$ac_objext; then
  7961. ac_cv_struct_tm=time.h
  7962. else
  7963. echo "$as_me: failed program was:" >&5
  7964. sed 's/^/| /' conftest.$ac_ext >&5
  7965. ac_cv_struct_tm=sys/time.h
  7966. fi
  7967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7968. fi
  7969. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7970. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  7971. if test $ac_cv_struct_tm = sys/time.h; then
  7972. cat >>confdefs.h <<\_ACEOF
  7973. #define TM_IN_SYS_TIME 1
  7974. _ACEOF
  7975. fi
  7976. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  7977. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  7978. if test "${ac_cv_c_uint16_t+set}" = set; then
  7979. echo $ECHO_N "(cached) $ECHO_C" >&6
  7980. else
  7981. ac_cv_c_uint16_t=no
  7982. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  7983. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  7984. cat >conftest.$ac_ext <<_ACEOF
  7985. /* confdefs.h. */
  7986. _ACEOF
  7987. cat confdefs.h >>conftest.$ac_ext
  7988. cat >>conftest.$ac_ext <<_ACEOF
  7989. /* end confdefs.h. */
  7990. $ac_includes_default
  7991. int
  7992. main ()
  7993. {
  7994. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  7995. test_array [0] = 0
  7996. ;
  7997. return 0;
  7998. }
  7999. _ACEOF
  8000. rm -f conftest.$ac_objext
  8001. if { (ac_try="$ac_compile"
  8002. case "(($ac_try" in
  8003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8004. *) ac_try_echo=$ac_try;;
  8005. esac
  8006. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8007. (eval "$ac_compile") 2>conftest.er1
  8008. ac_status=$?
  8009. grep -v '^ *+' conftest.er1 >conftest.err
  8010. rm -f conftest.er1
  8011. cat conftest.err >&5
  8012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8013. (exit $ac_status); } && {
  8014. test -z "$ac_cxx_werror_flag" ||
  8015. test ! -s conftest.err
  8016. } && test -s conftest.$ac_objext; then
  8017. case $ac_type in
  8018. uint16_t) ac_cv_c_uint16_t=yes ;;
  8019. *) ac_cv_c_uint16_t=$ac_type ;;
  8020. esac
  8021. else
  8022. echo "$as_me: failed program was:" >&5
  8023. sed 's/^/| /' conftest.$ac_ext >&5
  8024. fi
  8025. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8026. test "$ac_cv_c_uint16_t" != no && break
  8027. done
  8028. fi
  8029. { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  8030. echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
  8031. case $ac_cv_c_uint16_t in #(
  8032. no|yes) ;; #(
  8033. *)
  8034. cat >>confdefs.h <<_ACEOF
  8035. #define uint16_t $ac_cv_c_uint16_t
  8036. _ACEOF
  8037. ;;
  8038. esac
  8039. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  8040. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  8041. if test "${ac_cv_c_uint32_t+set}" = set; then
  8042. echo $ECHO_N "(cached) $ECHO_C" >&6
  8043. else
  8044. ac_cv_c_uint32_t=no
  8045. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  8046. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8047. cat >conftest.$ac_ext <<_ACEOF
  8048. /* confdefs.h. */
  8049. _ACEOF
  8050. cat confdefs.h >>conftest.$ac_ext
  8051. cat >>conftest.$ac_ext <<_ACEOF
  8052. /* end confdefs.h. */
  8053. $ac_includes_default
  8054. int
  8055. main ()
  8056. {
  8057. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  8058. test_array [0] = 0
  8059. ;
  8060. return 0;
  8061. }
  8062. _ACEOF
  8063. rm -f conftest.$ac_objext
  8064. if { (ac_try="$ac_compile"
  8065. case "(($ac_try" in
  8066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8067. *) ac_try_echo=$ac_try;;
  8068. esac
  8069. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8070. (eval "$ac_compile") 2>conftest.er1
  8071. ac_status=$?
  8072. grep -v '^ *+' conftest.er1 >conftest.err
  8073. rm -f conftest.er1
  8074. cat conftest.err >&5
  8075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8076. (exit $ac_status); } && {
  8077. test -z "$ac_cxx_werror_flag" ||
  8078. test ! -s conftest.err
  8079. } && test -s conftest.$ac_objext; then
  8080. case $ac_type in
  8081. uint32_t) ac_cv_c_uint32_t=yes ;;
  8082. *) ac_cv_c_uint32_t=$ac_type ;;
  8083. esac
  8084. else
  8085. echo "$as_me: failed program was:" >&5
  8086. sed 's/^/| /' conftest.$ac_ext >&5
  8087. fi
  8088. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8089. test "$ac_cv_c_uint32_t" != no && break
  8090. done
  8091. fi
  8092. { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  8093. echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
  8094. case $ac_cv_c_uint32_t in #(
  8095. no|yes) ;; #(
  8096. *)
  8097. cat >>confdefs.h <<\_ACEOF
  8098. #define _UINT32_T 1
  8099. _ACEOF
  8100. cat >>confdefs.h <<_ACEOF
  8101. #define uint32_t $ac_cv_c_uint32_t
  8102. _ACEOF
  8103. ;;
  8104. esac
  8105. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  8106. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  8107. if test "${ac_cv_c_uint64_t+set}" = set; then
  8108. echo $ECHO_N "(cached) $ECHO_C" >&6
  8109. else
  8110. ac_cv_c_uint64_t=no
  8111. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  8112. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8113. cat >conftest.$ac_ext <<_ACEOF
  8114. /* confdefs.h. */
  8115. _ACEOF
  8116. cat confdefs.h >>conftest.$ac_ext
  8117. cat >>conftest.$ac_ext <<_ACEOF
  8118. /* end confdefs.h. */
  8119. $ac_includes_default
  8120. int
  8121. main ()
  8122. {
  8123. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  8124. test_array [0] = 0
  8125. ;
  8126. return 0;
  8127. }
  8128. _ACEOF
  8129. rm -f conftest.$ac_objext
  8130. if { (ac_try="$ac_compile"
  8131. case "(($ac_try" in
  8132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8133. *) ac_try_echo=$ac_try;;
  8134. esac
  8135. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8136. (eval "$ac_compile") 2>conftest.er1
  8137. ac_status=$?
  8138. grep -v '^ *+' conftest.er1 >conftest.err
  8139. rm -f conftest.er1
  8140. cat conftest.err >&5
  8141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8142. (exit $ac_status); } && {
  8143. test -z "$ac_cxx_werror_flag" ||
  8144. test ! -s conftest.err
  8145. } && test -s conftest.$ac_objext; then
  8146. case $ac_type in
  8147. uint64_t) ac_cv_c_uint64_t=yes ;;
  8148. *) ac_cv_c_uint64_t=$ac_type ;;
  8149. esac
  8150. else
  8151. echo "$as_me: failed program was:" >&5
  8152. sed 's/^/| /' conftest.$ac_ext >&5
  8153. fi
  8154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8155. test "$ac_cv_c_uint64_t" != no && break
  8156. done
  8157. fi
  8158. { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  8159. echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
  8160. case $ac_cv_c_uint64_t in #(
  8161. no|yes) ;; #(
  8162. *)
  8163. cat >>confdefs.h <<\_ACEOF
  8164. #define _UINT64_T 1
  8165. _ACEOF
  8166. cat >>confdefs.h <<_ACEOF
  8167. #define uint64_t $ac_cv_c_uint64_t
  8168. _ACEOF
  8169. ;;
  8170. esac
  8171. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  8172. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  8173. if test "${ac_cv_c_uint8_t+set}" = set; then
  8174. echo $ECHO_N "(cached) $ECHO_C" >&6
  8175. else
  8176. ac_cv_c_uint8_t=no
  8177. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  8178. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8179. cat >conftest.$ac_ext <<_ACEOF
  8180. /* confdefs.h. */
  8181. _ACEOF
  8182. cat confdefs.h >>conftest.$ac_ext
  8183. cat >>conftest.$ac_ext <<_ACEOF
  8184. /* end confdefs.h. */
  8185. $ac_includes_default
  8186. int
  8187. main ()
  8188. {
  8189. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  8190. test_array [0] = 0
  8191. ;
  8192. return 0;
  8193. }
  8194. _ACEOF
  8195. rm -f conftest.$ac_objext
  8196. if { (ac_try="$ac_compile"
  8197. case "(($ac_try" in
  8198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8199. *) ac_try_echo=$ac_try;;
  8200. esac
  8201. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8202. (eval "$ac_compile") 2>conftest.er1
  8203. ac_status=$?
  8204. grep -v '^ *+' conftest.er1 >conftest.err
  8205. rm -f conftest.er1
  8206. cat conftest.err >&5
  8207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8208. (exit $ac_status); } && {
  8209. test -z "$ac_cxx_werror_flag" ||
  8210. test ! -s conftest.err
  8211. } && test -s conftest.$ac_objext; then
  8212. case $ac_type in
  8213. uint8_t) ac_cv_c_uint8_t=yes ;;
  8214. *) ac_cv_c_uint8_t=$ac_type ;;
  8215. esac
  8216. else
  8217. echo "$as_me: failed program was:" >&5
  8218. sed 's/^/| /' conftest.$ac_ext >&5
  8219. fi
  8220. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8221. test "$ac_cv_c_uint8_t" != no && break
  8222. done
  8223. fi
  8224. { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  8225. echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
  8226. case $ac_cv_c_uint8_t in #(
  8227. no|yes) ;; #(
  8228. *)
  8229. cat >>confdefs.h <<\_ACEOF
  8230. #define _UINT8_T 1
  8231. _ACEOF
  8232. cat >>confdefs.h <<_ACEOF
  8233. #define uint8_t $ac_cv_c_uint8_t
  8234. _ACEOF
  8235. ;;
  8236. esac
  8237. { echo "$as_me:$LINENO: checking for working volatile" >&5
  8238. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  8239. if test "${ac_cv_c_volatile+set}" = set; then
  8240. echo $ECHO_N "(cached) $ECHO_C" >&6
  8241. else
  8242. cat >conftest.$ac_ext <<_ACEOF
  8243. /* confdefs.h. */
  8244. _ACEOF
  8245. cat confdefs.h >>conftest.$ac_ext
  8246. cat >>conftest.$ac_ext <<_ACEOF
  8247. /* end confdefs.h. */
  8248. int
  8249. main ()
  8250. {
  8251. volatile int x;
  8252. int * volatile y = (int *) 0;
  8253. return !x && !y;
  8254. ;
  8255. return 0;
  8256. }
  8257. _ACEOF
  8258. rm -f conftest.$ac_objext
  8259. if { (ac_try="$ac_compile"
  8260. case "(($ac_try" in
  8261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8262. *) ac_try_echo=$ac_try;;
  8263. esac
  8264. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8265. (eval "$ac_compile") 2>conftest.er1
  8266. ac_status=$?
  8267. grep -v '^ *+' conftest.er1 >conftest.err
  8268. rm -f conftest.er1
  8269. cat conftest.err >&5
  8270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8271. (exit $ac_status); } && {
  8272. test -z "$ac_cxx_werror_flag" ||
  8273. test ! -s conftest.err
  8274. } && test -s conftest.$ac_objext; then
  8275. ac_cv_c_volatile=yes
  8276. else
  8277. echo "$as_me: failed program was:" >&5
  8278. sed 's/^/| /' conftest.$ac_ext >&5
  8279. ac_cv_c_volatile=no
  8280. fi
  8281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8282. fi
  8283. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  8284. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  8285. if test $ac_cv_c_volatile = no; then
  8286. cat >>confdefs.h <<\_ACEOF
  8287. #define volatile
  8288. _ACEOF
  8289. fi
  8290. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  8291. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  8292. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  8293. echo $ECHO_N "(cached) $ECHO_C" >&6
  8294. else
  8295. cat >conftest.$ac_ext <<_ACEOF
  8296. /* confdefs.h. */
  8297. _ACEOF
  8298. cat confdefs.h >>conftest.$ac_ext
  8299. cat >>conftest.$ac_ext <<_ACEOF
  8300. /* end confdefs.h. */
  8301. $ac_includes_default
  8302. typedef ptrdiff_t ac__type_new_;
  8303. int
  8304. main ()
  8305. {
  8306. if ((ac__type_new_ *) 0)
  8307. return 0;
  8308. if (sizeof (ac__type_new_))
  8309. return 0;
  8310. ;
  8311. return 0;
  8312. }
  8313. _ACEOF
  8314. rm -f conftest.$ac_objext
  8315. if { (ac_try="$ac_compile"
  8316. case "(($ac_try" in
  8317. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8318. *) ac_try_echo=$ac_try;;
  8319. esac
  8320. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8321. (eval "$ac_compile") 2>conftest.er1
  8322. ac_status=$?
  8323. grep -v '^ *+' conftest.er1 >conftest.err
  8324. rm -f conftest.er1
  8325. cat conftest.err >&5
  8326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8327. (exit $ac_status); } && {
  8328. test -z "$ac_cxx_werror_flag" ||
  8329. test ! -s conftest.err
  8330. } && test -s conftest.$ac_objext; then
  8331. ac_cv_type_ptrdiff_t=yes
  8332. else
  8333. echo "$as_me: failed program was:" >&5
  8334. sed 's/^/| /' conftest.$ac_ext >&5
  8335. ac_cv_type_ptrdiff_t=no
  8336. fi
  8337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8338. fi
  8339. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  8340. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  8341. if test $ac_cv_type_ptrdiff_t = yes; then
  8342. cat >>confdefs.h <<_ACEOF
  8343. #define HAVE_PTRDIFF_T 1
  8344. _ACEOF
  8345. fi
  8346. # Check whether --enable-largefile was given.
  8347. if test "${enable_largefile+set}" = set; then
  8348. enableval=$enable_largefile;
  8349. fi
  8350. if test "$enable_largefile" != no; then
  8351. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  8352. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  8353. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  8354. echo $ECHO_N "(cached) $ECHO_C" >&6
  8355. else
  8356. ac_cv_sys_largefile_CC=no
  8357. if test "$GCC" != yes; then
  8358. ac_save_CC=$CC
  8359. while :; do
  8360. # IRIX 6.2 and later do not support large files by default,
  8361. # so use the C compiler's -n32 option if that helps.
  8362. cat >conftest.$ac_ext <<_ACEOF
  8363. /* confdefs.h. */
  8364. _ACEOF
  8365. cat confdefs.h >>conftest.$ac_ext
  8366. cat >>conftest.$ac_ext <<_ACEOF
  8367. /* end confdefs.h. */
  8368. #include <sys/types.h>
  8369. /* Check that off_t can represent 2**63 - 1 correctly.
  8370. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8371. since some C++ compilers masquerading as C compilers
  8372. incorrectly reject 9223372036854775807. */
  8373. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8374. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8375. && LARGE_OFF_T % 2147483647 == 1)
  8376. ? 1 : -1];
  8377. int
  8378. main ()
  8379. {
  8380. ;
  8381. return 0;
  8382. }
  8383. _ACEOF
  8384. rm -f conftest.$ac_objext
  8385. if { (ac_try="$ac_compile"
  8386. case "(($ac_try" in
  8387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8388. *) ac_try_echo=$ac_try;;
  8389. esac
  8390. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8391. (eval "$ac_compile") 2>conftest.er1
  8392. ac_status=$?
  8393. grep -v '^ *+' conftest.er1 >conftest.err
  8394. rm -f conftest.er1
  8395. cat conftest.err >&5
  8396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8397. (exit $ac_status); } && {
  8398. test -z "$ac_cxx_werror_flag" ||
  8399. test ! -s conftest.err
  8400. } && test -s conftest.$ac_objext; then
  8401. break
  8402. else
  8403. echo "$as_me: failed program was:" >&5
  8404. sed 's/^/| /' conftest.$ac_ext >&5
  8405. fi
  8406. rm -f core conftest.err conftest.$ac_objext
  8407. CC="$CC -n32"
  8408. rm -f conftest.$ac_objext
  8409. if { (ac_try="$ac_compile"
  8410. case "(($ac_try" in
  8411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8412. *) ac_try_echo=$ac_try;;
  8413. esac
  8414. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8415. (eval "$ac_compile") 2>conftest.er1
  8416. ac_status=$?
  8417. grep -v '^ *+' conftest.er1 >conftest.err
  8418. rm -f conftest.er1
  8419. cat conftest.err >&5
  8420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8421. (exit $ac_status); } && {
  8422. test -z "$ac_cxx_werror_flag" ||
  8423. test ! -s conftest.err
  8424. } && test -s conftest.$ac_objext; then
  8425. ac_cv_sys_largefile_CC=' -n32'; break
  8426. else
  8427. echo "$as_me: failed program was:" >&5
  8428. sed 's/^/| /' conftest.$ac_ext >&5
  8429. fi
  8430. rm -f core conftest.err conftest.$ac_objext
  8431. break
  8432. done
  8433. CC=$ac_save_CC
  8434. rm -f conftest.$ac_ext
  8435. fi
  8436. fi
  8437. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  8438. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  8439. if test "$ac_cv_sys_largefile_CC" != no; then
  8440. CC=$CC$ac_cv_sys_largefile_CC
  8441. fi
  8442. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  8443. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  8444. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  8445. echo $ECHO_N "(cached) $ECHO_C" >&6
  8446. else
  8447. while :; do
  8448. cat >conftest.$ac_ext <<_ACEOF
  8449. /* confdefs.h. */
  8450. _ACEOF
  8451. cat confdefs.h >>conftest.$ac_ext
  8452. cat >>conftest.$ac_ext <<_ACEOF
  8453. /* end confdefs.h. */
  8454. #include <sys/types.h>
  8455. /* Check that off_t can represent 2**63 - 1 correctly.
  8456. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8457. since some C++ compilers masquerading as C compilers
  8458. incorrectly reject 9223372036854775807. */
  8459. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8460. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8461. && LARGE_OFF_T % 2147483647 == 1)
  8462. ? 1 : -1];
  8463. int
  8464. main ()
  8465. {
  8466. ;
  8467. return 0;
  8468. }
  8469. _ACEOF
  8470. rm -f conftest.$ac_objext
  8471. if { (ac_try="$ac_compile"
  8472. case "(($ac_try" in
  8473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8474. *) ac_try_echo=$ac_try;;
  8475. esac
  8476. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8477. (eval "$ac_compile") 2>conftest.er1
  8478. ac_status=$?
  8479. grep -v '^ *+' conftest.er1 >conftest.err
  8480. rm -f conftest.er1
  8481. cat conftest.err >&5
  8482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8483. (exit $ac_status); } && {
  8484. test -z "$ac_cxx_werror_flag" ||
  8485. test ! -s conftest.err
  8486. } && test -s conftest.$ac_objext; then
  8487. ac_cv_sys_file_offset_bits=no; break
  8488. else
  8489. echo "$as_me: failed program was:" >&5
  8490. sed 's/^/| /' conftest.$ac_ext >&5
  8491. fi
  8492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8493. cat >conftest.$ac_ext <<_ACEOF
  8494. /* confdefs.h. */
  8495. _ACEOF
  8496. cat confdefs.h >>conftest.$ac_ext
  8497. cat >>conftest.$ac_ext <<_ACEOF
  8498. /* end confdefs.h. */
  8499. #define _FILE_OFFSET_BITS 64
  8500. #include <sys/types.h>
  8501. /* Check that off_t can represent 2**63 - 1 correctly.
  8502. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8503. since some C++ compilers masquerading as C compilers
  8504. incorrectly reject 9223372036854775807. */
  8505. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8506. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8507. && LARGE_OFF_T % 2147483647 == 1)
  8508. ? 1 : -1];
  8509. int
  8510. main ()
  8511. {
  8512. ;
  8513. return 0;
  8514. }
  8515. _ACEOF
  8516. rm -f conftest.$ac_objext
  8517. if { (ac_try="$ac_compile"
  8518. case "(($ac_try" in
  8519. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8520. *) ac_try_echo=$ac_try;;
  8521. esac
  8522. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8523. (eval "$ac_compile") 2>conftest.er1
  8524. ac_status=$?
  8525. grep -v '^ *+' conftest.er1 >conftest.err
  8526. rm -f conftest.er1
  8527. cat conftest.err >&5
  8528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8529. (exit $ac_status); } && {
  8530. test -z "$ac_cxx_werror_flag" ||
  8531. test ! -s conftest.err
  8532. } && test -s conftest.$ac_objext; then
  8533. ac_cv_sys_file_offset_bits=64; break
  8534. else
  8535. echo "$as_me: failed program was:" >&5
  8536. sed 's/^/| /' conftest.$ac_ext >&5
  8537. fi
  8538. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8539. ac_cv_sys_file_offset_bits=unknown
  8540. break
  8541. done
  8542. fi
  8543. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  8544. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  8545. case $ac_cv_sys_file_offset_bits in #(
  8546. no | unknown) ;;
  8547. *)
  8548. cat >>confdefs.h <<_ACEOF
  8549. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  8550. _ACEOF
  8551. ;;
  8552. esac
  8553. rm -f conftest*
  8554. if test $ac_cv_sys_file_offset_bits = unknown; then
  8555. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  8556. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  8557. if test "${ac_cv_sys_large_files+set}" = set; then
  8558. echo $ECHO_N "(cached) $ECHO_C" >&6
  8559. else
  8560. while :; do
  8561. cat >conftest.$ac_ext <<_ACEOF
  8562. /* confdefs.h. */
  8563. _ACEOF
  8564. cat confdefs.h >>conftest.$ac_ext
  8565. cat >>conftest.$ac_ext <<_ACEOF
  8566. /* end confdefs.h. */
  8567. #include <sys/types.h>
  8568. /* Check that off_t can represent 2**63 - 1 correctly.
  8569. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8570. since some C++ compilers masquerading as C compilers
  8571. incorrectly reject 9223372036854775807. */
  8572. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8573. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8574. && LARGE_OFF_T % 2147483647 == 1)
  8575. ? 1 : -1];
  8576. int
  8577. main ()
  8578. {
  8579. ;
  8580. return 0;
  8581. }
  8582. _ACEOF
  8583. rm -f conftest.$ac_objext
  8584. if { (ac_try="$ac_compile"
  8585. case "(($ac_try" in
  8586. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8587. *) ac_try_echo=$ac_try;;
  8588. esac
  8589. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8590. (eval "$ac_compile") 2>conftest.er1
  8591. ac_status=$?
  8592. grep -v '^ *+' conftest.er1 >conftest.err
  8593. rm -f conftest.er1
  8594. cat conftest.err >&5
  8595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8596. (exit $ac_status); } && {
  8597. test -z "$ac_cxx_werror_flag" ||
  8598. test ! -s conftest.err
  8599. } && test -s conftest.$ac_objext; then
  8600. ac_cv_sys_large_files=no; break
  8601. else
  8602. echo "$as_me: failed program was:" >&5
  8603. sed 's/^/| /' conftest.$ac_ext >&5
  8604. fi
  8605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8606. cat >conftest.$ac_ext <<_ACEOF
  8607. /* confdefs.h. */
  8608. _ACEOF
  8609. cat confdefs.h >>conftest.$ac_ext
  8610. cat >>conftest.$ac_ext <<_ACEOF
  8611. /* end confdefs.h. */
  8612. #define _LARGE_FILES 1
  8613. #include <sys/types.h>
  8614. /* Check that off_t can represent 2**63 - 1 correctly.
  8615. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8616. since some C++ compilers masquerading as C compilers
  8617. incorrectly reject 9223372036854775807. */
  8618. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8619. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8620. && LARGE_OFF_T % 2147483647 == 1)
  8621. ? 1 : -1];
  8622. int
  8623. main ()
  8624. {
  8625. ;
  8626. return 0;
  8627. }
  8628. _ACEOF
  8629. rm -f conftest.$ac_objext
  8630. if { (ac_try="$ac_compile"
  8631. case "(($ac_try" in
  8632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8633. *) ac_try_echo=$ac_try;;
  8634. esac
  8635. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8636. (eval "$ac_compile") 2>conftest.er1
  8637. ac_status=$?
  8638. grep -v '^ *+' conftest.er1 >conftest.err
  8639. rm -f conftest.er1
  8640. cat conftest.err >&5
  8641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8642. (exit $ac_status); } && {
  8643. test -z "$ac_cxx_werror_flag" ||
  8644. test ! -s conftest.err
  8645. } && test -s conftest.$ac_objext; then
  8646. ac_cv_sys_large_files=1; break
  8647. else
  8648. echo "$as_me: failed program was:" >&5
  8649. sed 's/^/| /' conftest.$ac_ext >&5
  8650. fi
  8651. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8652. ac_cv_sys_large_files=unknown
  8653. break
  8654. done
  8655. fi
  8656. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  8657. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  8658. case $ac_cv_sys_large_files in #(
  8659. no | unknown) ;;
  8660. *)
  8661. cat >>confdefs.h <<_ACEOF
  8662. #define _LARGE_FILES $ac_cv_sys_large_files
  8663. _ACEOF
  8664. ;;
  8665. esac
  8666. rm -f conftest*
  8667. fi
  8668. fi
  8669. # Checks for library functions.
  8670. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  8671. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  8672. # Check whether --enable-nls was given.
  8673. if test "${enable_nls+set}" = set; then
  8674. enableval=$enable_nls; USE_NLS=$enableval
  8675. else
  8676. USE_NLS=yes
  8677. fi
  8678. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8679. echo "${ECHO_T}$USE_NLS" >&6; }
  8680. GETTEXT_MACRO_VERSION=0.17
  8681. # Prepare PATH_SEPARATOR.
  8682. # The user is always right.
  8683. if test "${PATH_SEPARATOR+set}" != set; then
  8684. echo "#! /bin/sh" >conf$$.sh
  8685. echo "exit 0" >>conf$$.sh
  8686. chmod +x conf$$.sh
  8687. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8688. PATH_SEPARATOR=';'
  8689. else
  8690. PATH_SEPARATOR=:
  8691. fi
  8692. rm -f conf$$.sh
  8693. fi
  8694. # Find out how to test for executable files. Don't use a zero-byte file,
  8695. # as systems may use methods other than mode bits to determine executability.
  8696. cat >conf$$.file <<_ASEOF
  8697. #! /bin/sh
  8698. exit 0
  8699. _ASEOF
  8700. chmod +x conf$$.file
  8701. if test -x conf$$.file >/dev/null 2>&1; then
  8702. ac_executable_p="test -x"
  8703. else
  8704. ac_executable_p="test -f"
  8705. fi
  8706. rm -f conf$$.file
  8707. # Extract the first word of "msgfmt", so it can be a program name with args.
  8708. set dummy msgfmt; ac_word=$2
  8709. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8710. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8711. if test "${ac_cv_path_MSGFMT+set}" = set; then
  8712. echo $ECHO_N "(cached) $ECHO_C" >&6
  8713. else
  8714. case "$MSGFMT" in
  8715. [\\/]* | ?:[\\/]*)
  8716. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  8717. ;;
  8718. *)
  8719. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8720. for ac_dir in $PATH; do
  8721. IFS="$ac_save_IFS"
  8722. test -z "$ac_dir" && ac_dir=.
  8723. for ac_exec_ext in '' $ac_executable_extensions; do
  8724. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8725. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8726. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  8727. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  8728. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  8729. break 2
  8730. fi
  8731. fi
  8732. done
  8733. done
  8734. IFS="$ac_save_IFS"
  8735. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  8736. ;;
  8737. esac
  8738. fi
  8739. MSGFMT="$ac_cv_path_MSGFMT"
  8740. if test "$MSGFMT" != ":"; then
  8741. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  8742. echo "${ECHO_T}$MSGFMT" >&6; }
  8743. else
  8744. { echo "$as_me:$LINENO: result: no" >&5
  8745. echo "${ECHO_T}no" >&6; }
  8746. fi
  8747. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  8748. set dummy gmsgfmt; ac_word=$2
  8749. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8750. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8751. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  8752. echo $ECHO_N "(cached) $ECHO_C" >&6
  8753. else
  8754. case $GMSGFMT in
  8755. [\\/]* | ?:[\\/]*)
  8756. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  8757. ;;
  8758. *)
  8759. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8760. for as_dir in $PATH
  8761. do
  8762. IFS=$as_save_IFS
  8763. test -z "$as_dir" && as_dir=.
  8764. for ac_exec_ext in '' $ac_executable_extensions; do
  8765. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8766. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  8767. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8768. break 2
  8769. fi
  8770. done
  8771. done
  8772. IFS=$as_save_IFS
  8773. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  8774. ;;
  8775. esac
  8776. fi
  8777. GMSGFMT=$ac_cv_path_GMSGFMT
  8778. if test -n "$GMSGFMT"; then
  8779. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  8780. echo "${ECHO_T}$GMSGFMT" >&6; }
  8781. else
  8782. { echo "$as_me:$LINENO: result: no" >&5
  8783. echo "${ECHO_T}no" >&6; }
  8784. fi
  8785. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8786. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  8787. *) MSGFMT_015=$MSGFMT ;;
  8788. esac
  8789. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8790. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  8791. *) GMSGFMT_015=$GMSGFMT ;;
  8792. esac
  8793. # Prepare PATH_SEPARATOR.
  8794. # The user is always right.
  8795. if test "${PATH_SEPARATOR+set}" != set; then
  8796. echo "#! /bin/sh" >conf$$.sh
  8797. echo "exit 0" >>conf$$.sh
  8798. chmod +x conf$$.sh
  8799. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8800. PATH_SEPARATOR=';'
  8801. else
  8802. PATH_SEPARATOR=:
  8803. fi
  8804. rm -f conf$$.sh
  8805. fi
  8806. # Find out how to test for executable files. Don't use a zero-byte file,
  8807. # as systems may use methods other than mode bits to determine executability.
  8808. cat >conf$$.file <<_ASEOF
  8809. #! /bin/sh
  8810. exit 0
  8811. _ASEOF
  8812. chmod +x conf$$.file
  8813. if test -x conf$$.file >/dev/null 2>&1; then
  8814. ac_executable_p="test -x"
  8815. else
  8816. ac_executable_p="test -f"
  8817. fi
  8818. rm -f conf$$.file
  8819. # Extract the first word of "xgettext", so it can be a program name with args.
  8820. set dummy xgettext; ac_word=$2
  8821. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8822. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8823. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  8824. echo $ECHO_N "(cached) $ECHO_C" >&6
  8825. else
  8826. case "$XGETTEXT" in
  8827. [\\/]* | ?:[\\/]*)
  8828. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  8829. ;;
  8830. *)
  8831. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8832. for ac_dir in $PATH; do
  8833. IFS="$ac_save_IFS"
  8834. test -z "$ac_dir" && ac_dir=.
  8835. for ac_exec_ext in '' $ac_executable_extensions; do
  8836. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8837. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8838. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  8839. (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
  8840. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  8841. break 2
  8842. fi
  8843. fi
  8844. done
  8845. done
  8846. IFS="$ac_save_IFS"
  8847. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  8848. ;;
  8849. esac
  8850. fi
  8851. XGETTEXT="$ac_cv_path_XGETTEXT"
  8852. if test "$XGETTEXT" != ":"; then
  8853. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  8854. echo "${ECHO_T}$XGETTEXT" >&6; }
  8855. else
  8856. { echo "$as_me:$LINENO: result: no" >&5
  8857. echo "${ECHO_T}no" >&6; }
  8858. fi
  8859. rm -f messages.po
  8860. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8861. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  8862. *) XGETTEXT_015=$XGETTEXT ;;
  8863. esac
  8864. # Prepare PATH_SEPARATOR.
  8865. # The user is always right.
  8866. if test "${PATH_SEPARATOR+set}" != set; then
  8867. echo "#! /bin/sh" >conf$$.sh
  8868. echo "exit 0" >>conf$$.sh
  8869. chmod +x conf$$.sh
  8870. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8871. PATH_SEPARATOR=';'
  8872. else
  8873. PATH_SEPARATOR=:
  8874. fi
  8875. rm -f conf$$.sh
  8876. fi
  8877. # Find out how to test for executable files. Don't use a zero-byte file,
  8878. # as systems may use methods other than mode bits to determine executability.
  8879. cat >conf$$.file <<_ASEOF
  8880. #! /bin/sh
  8881. exit 0
  8882. _ASEOF
  8883. chmod +x conf$$.file
  8884. if test -x conf$$.file >/dev/null 2>&1; then
  8885. ac_executable_p="test -x"
  8886. else
  8887. ac_executable_p="test -f"
  8888. fi
  8889. rm -f conf$$.file
  8890. # Extract the first word of "msgmerge", so it can be a program name with args.
  8891. set dummy msgmerge; ac_word=$2
  8892. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8893. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8894. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  8895. echo $ECHO_N "(cached) $ECHO_C" >&6
  8896. else
  8897. case "$MSGMERGE" in
  8898. [\\/]* | ?:[\\/]*)
  8899. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  8900. ;;
  8901. *)
  8902. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8903. for ac_dir in $PATH; do
  8904. IFS="$ac_save_IFS"
  8905. test -z "$ac_dir" && ac_dir=.
  8906. for ac_exec_ext in '' $ac_executable_extensions; do
  8907. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8908. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8909. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  8910. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  8911. break 2
  8912. fi
  8913. fi
  8914. done
  8915. done
  8916. IFS="$ac_save_IFS"
  8917. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  8918. ;;
  8919. esac
  8920. fi
  8921. MSGMERGE="$ac_cv_path_MSGMERGE"
  8922. if test "$MSGMERGE" != ":"; then
  8923. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  8924. echo "${ECHO_T}$MSGMERGE" >&6; }
  8925. else
  8926. { echo "$as_me:$LINENO: result: no" >&5
  8927. echo "${ECHO_T}no" >&6; }
  8928. fi
  8929. test -n "$localedir" || localedir='${datadir}/locale'
  8930. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  8931. ac_config_commands="$ac_config_commands po-directories"
  8932. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  8933. echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
  8934. if test "${ac_cv_gnu_library_2+set}" = set; then
  8935. echo $ECHO_N "(cached) $ECHO_C" >&6
  8936. else
  8937. cat >conftest.$ac_ext <<_ACEOF
  8938. /* confdefs.h. */
  8939. _ACEOF
  8940. cat confdefs.h >>conftest.$ac_ext
  8941. cat >>conftest.$ac_ext <<_ACEOF
  8942. /* end confdefs.h. */
  8943. #include <features.h>
  8944. #ifdef __GNU_LIBRARY__
  8945. #if (__GLIBC__ >= 2)
  8946. Lucky GNU user
  8947. #endif
  8948. #endif
  8949. _ACEOF
  8950. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8951. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  8952. ac_cv_gnu_library_2=yes
  8953. else
  8954. ac_cv_gnu_library_2=no
  8955. fi
  8956. rm -f conftest*
  8957. fi
  8958. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  8959. echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
  8960. GLIBC2="$ac_cv_gnu_library_2"
  8961. CFLAG_VISIBILITY=
  8962. HAVE_VISIBILITY=0
  8963. if test -n "$GCC"; then
  8964. { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  8965. echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
  8966. if test "${gl_cv_cc_visibility+set}" = set; then
  8967. echo $ECHO_N "(cached) $ECHO_C" >&6
  8968. else
  8969. gl_save_CFLAGS="$CFLAGS"
  8970. CFLAGS="$CFLAGS -fvisibility=hidden"
  8971. cat >conftest.$ac_ext <<_ACEOF
  8972. /* confdefs.h. */
  8973. _ACEOF
  8974. cat confdefs.h >>conftest.$ac_ext
  8975. cat >>conftest.$ac_ext <<_ACEOF
  8976. /* end confdefs.h. */
  8977. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  8978. extern __attribute__((__visibility__("default"))) int exportedvar;
  8979. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  8980. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  8981. int
  8982. main ()
  8983. {
  8984. ;
  8985. return 0;
  8986. }
  8987. _ACEOF
  8988. rm -f conftest.$ac_objext
  8989. if { (ac_try="$ac_compile"
  8990. case "(($ac_try" in
  8991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8992. *) ac_try_echo=$ac_try;;
  8993. esac
  8994. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8995. (eval "$ac_compile") 2>conftest.er1
  8996. ac_status=$?
  8997. grep -v '^ *+' conftest.er1 >conftest.err
  8998. rm -f conftest.er1
  8999. cat conftest.err >&5
  9000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9001. (exit $ac_status); } && {
  9002. test -z "$ac_cxx_werror_flag" ||
  9003. test ! -s conftest.err
  9004. } && test -s conftest.$ac_objext; then
  9005. gl_cv_cc_visibility=yes
  9006. else
  9007. echo "$as_me: failed program was:" >&5
  9008. sed 's/^/| /' conftest.$ac_ext >&5
  9009. gl_cv_cc_visibility=no
  9010. fi
  9011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9012. CFLAGS="$gl_save_CFLAGS"
  9013. fi
  9014. { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  9015. echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
  9016. if test $gl_cv_cc_visibility = yes; then
  9017. CFLAG_VISIBILITY="-fvisibility=hidden"
  9018. HAVE_VISIBILITY=1
  9019. fi
  9020. fi
  9021. cat >>confdefs.h <<_ACEOF
  9022. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  9023. _ACEOF
  9024. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  9025. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  9026. if test "${gl_cv_header_stdint_h+set}" = set; then
  9027. echo $ECHO_N "(cached) $ECHO_C" >&6
  9028. else
  9029. cat >conftest.$ac_ext <<_ACEOF
  9030. /* confdefs.h. */
  9031. _ACEOF
  9032. cat confdefs.h >>conftest.$ac_ext
  9033. cat >>conftest.$ac_ext <<_ACEOF
  9034. /* end confdefs.h. */
  9035. #include <sys/types.h>
  9036. #include <stdint.h>
  9037. int
  9038. main ()
  9039. {
  9040. uintmax_t i = (uintmax_t) -1; return !i;
  9041. ;
  9042. return 0;
  9043. }
  9044. _ACEOF
  9045. rm -f conftest.$ac_objext
  9046. if { (ac_try="$ac_compile"
  9047. case "(($ac_try" in
  9048. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9049. *) ac_try_echo=$ac_try;;
  9050. esac
  9051. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9052. (eval "$ac_compile") 2>conftest.er1
  9053. ac_status=$?
  9054. grep -v '^ *+' conftest.er1 >conftest.err
  9055. rm -f conftest.er1
  9056. cat conftest.err >&5
  9057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9058. (exit $ac_status); } && {
  9059. test -z "$ac_cxx_werror_flag" ||
  9060. test ! -s conftest.err
  9061. } && test -s conftest.$ac_objext; then
  9062. gl_cv_header_stdint_h=yes
  9063. else
  9064. echo "$as_me: failed program was:" >&5
  9065. sed 's/^/| /' conftest.$ac_ext >&5
  9066. gl_cv_header_stdint_h=no
  9067. fi
  9068. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9069. fi
  9070. { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  9071. echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
  9072. if test $gl_cv_header_stdint_h = yes; then
  9073. cat >>confdefs.h <<_ACEOF
  9074. #define HAVE_STDINT_H_WITH_UINTMAX 1
  9075. _ACEOF
  9076. fi
  9077. for ac_header in stdlib.h unistd.h
  9078. do
  9079. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9080. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9081. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9082. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9083. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9084. echo $ECHO_N "(cached) $ECHO_C" >&6
  9085. fi
  9086. ac_res=`eval echo '${'$as_ac_Header'}'`
  9087. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9088. echo "${ECHO_T}$ac_res" >&6; }
  9089. else
  9090. # Is the header compilable?
  9091. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9092. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9093. cat >conftest.$ac_ext <<_ACEOF
  9094. /* confdefs.h. */
  9095. _ACEOF
  9096. cat confdefs.h >>conftest.$ac_ext
  9097. cat >>conftest.$ac_ext <<_ACEOF
  9098. /* end confdefs.h. */
  9099. $ac_includes_default
  9100. #include <$ac_header>
  9101. _ACEOF
  9102. rm -f conftest.$ac_objext
  9103. if { (ac_try="$ac_compile"
  9104. case "(($ac_try" in
  9105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9106. *) ac_try_echo=$ac_try;;
  9107. esac
  9108. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9109. (eval "$ac_compile") 2>conftest.er1
  9110. ac_status=$?
  9111. grep -v '^ *+' conftest.er1 >conftest.err
  9112. rm -f conftest.er1
  9113. cat conftest.err >&5
  9114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9115. (exit $ac_status); } && {
  9116. test -z "$ac_cxx_werror_flag" ||
  9117. test ! -s conftest.err
  9118. } && test -s conftest.$ac_objext; then
  9119. ac_header_compiler=yes
  9120. else
  9121. echo "$as_me: failed program was:" >&5
  9122. sed 's/^/| /' conftest.$ac_ext >&5
  9123. ac_header_compiler=no
  9124. fi
  9125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9126. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9127. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9128. # Is the header present?
  9129. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9130. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9131. cat >conftest.$ac_ext <<_ACEOF
  9132. /* confdefs.h. */
  9133. _ACEOF
  9134. cat confdefs.h >>conftest.$ac_ext
  9135. cat >>conftest.$ac_ext <<_ACEOF
  9136. /* end confdefs.h. */
  9137. #include <$ac_header>
  9138. _ACEOF
  9139. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9140. case "(($ac_try" in
  9141. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9142. *) ac_try_echo=$ac_try;;
  9143. esac
  9144. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9145. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9146. ac_status=$?
  9147. grep -v '^ *+' conftest.er1 >conftest.err
  9148. rm -f conftest.er1
  9149. cat conftest.err >&5
  9150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9151. (exit $ac_status); } >/dev/null && {
  9152. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9153. test ! -s conftest.err
  9154. }; then
  9155. ac_header_preproc=yes
  9156. else
  9157. echo "$as_me: failed program was:" >&5
  9158. sed 's/^/| /' conftest.$ac_ext >&5
  9159. ac_header_preproc=no
  9160. fi
  9161. rm -f conftest.err conftest.$ac_ext
  9162. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9163. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9164. # So? What about this header?
  9165. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9166. yes:no: )
  9167. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9168. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9169. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9170. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9171. ac_header_preproc=yes
  9172. ;;
  9173. no:yes:* )
  9174. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9175. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9176. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9177. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9178. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9179. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9180. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9181. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9182. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9183. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9184. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9185. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9186. ( cat <<\_ASBOX
  9187. ## ----------------------------------------------- ##
  9188. ## Report this to t-tujikawa@users.sourceforge.net ##
  9189. ## ----------------------------------------------- ##
  9190. _ASBOX
  9191. ) | sed "s/^/$as_me: WARNING: /" >&2
  9192. ;;
  9193. esac
  9194. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9195. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9196. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9197. echo $ECHO_N "(cached) $ECHO_C" >&6
  9198. else
  9199. eval "$as_ac_Header=\$ac_header_preproc"
  9200. fi
  9201. ac_res=`eval echo '${'$as_ac_Header'}'`
  9202. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9203. echo "${ECHO_T}$ac_res" >&6; }
  9204. fi
  9205. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9206. cat >>confdefs.h <<_ACEOF
  9207. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9208. _ACEOF
  9209. fi
  9210. done
  9211. for ac_func in getpagesize
  9212. do
  9213. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9214. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9215. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9216. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9217. echo $ECHO_N "(cached) $ECHO_C" >&6
  9218. else
  9219. cat >conftest.$ac_ext <<_ACEOF
  9220. /* confdefs.h. */
  9221. _ACEOF
  9222. cat confdefs.h >>conftest.$ac_ext
  9223. cat >>conftest.$ac_ext <<_ACEOF
  9224. /* end confdefs.h. */
  9225. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9226. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9227. #define $ac_func innocuous_$ac_func
  9228. /* System header to define __stub macros and hopefully few prototypes,
  9229. which can conflict with char $ac_func (); below.
  9230. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9231. <limits.h> exists even on freestanding compilers. */
  9232. #ifdef __STDC__
  9233. # include <limits.h>
  9234. #else
  9235. # include <assert.h>
  9236. #endif
  9237. #undef $ac_func
  9238. /* Override any GCC internal prototype to avoid an error.
  9239. Use char because int might match the return type of a GCC
  9240. builtin and then its argument prototype would still apply. */
  9241. #ifdef __cplusplus
  9242. extern "C"
  9243. #endif
  9244. char $ac_func ();
  9245. /* The GNU C library defines this for functions which it implements
  9246. to always fail with ENOSYS. Some functions are actually named
  9247. something starting with __ and the normal name is an alias. */
  9248. #if defined __stub_$ac_func || defined __stub___$ac_func
  9249. choke me
  9250. #endif
  9251. int
  9252. main ()
  9253. {
  9254. return $ac_func ();
  9255. ;
  9256. return 0;
  9257. }
  9258. _ACEOF
  9259. rm -f conftest.$ac_objext conftest$ac_exeext
  9260. if { (ac_try="$ac_link"
  9261. case "(($ac_try" in
  9262. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9263. *) ac_try_echo=$ac_try;;
  9264. esac
  9265. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9266. (eval "$ac_link") 2>conftest.er1
  9267. ac_status=$?
  9268. grep -v '^ *+' conftest.er1 >conftest.err
  9269. rm -f conftest.er1
  9270. cat conftest.err >&5
  9271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9272. (exit $ac_status); } && {
  9273. test -z "$ac_cxx_werror_flag" ||
  9274. test ! -s conftest.err
  9275. } && test -s conftest$ac_exeext &&
  9276. $as_test_x conftest$ac_exeext; then
  9277. eval "$as_ac_var=yes"
  9278. else
  9279. echo "$as_me: failed program was:" >&5
  9280. sed 's/^/| /' conftest.$ac_ext >&5
  9281. eval "$as_ac_var=no"
  9282. fi
  9283. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9284. conftest$ac_exeext conftest.$ac_ext
  9285. fi
  9286. ac_res=`eval echo '${'$as_ac_var'}'`
  9287. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9288. echo "${ECHO_T}$ac_res" >&6; }
  9289. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9290. cat >>confdefs.h <<_ACEOF
  9291. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9292. _ACEOF
  9293. fi
  9294. done
  9295. { echo "$as_me:$LINENO: checking for working mmap" >&5
  9296. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  9297. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9298. echo $ECHO_N "(cached) $ECHO_C" >&6
  9299. else
  9300. if test "$cross_compiling" = yes; then
  9301. ac_cv_func_mmap_fixed_mapped=no
  9302. else
  9303. cat >conftest.$ac_ext <<_ACEOF
  9304. /* confdefs.h. */
  9305. _ACEOF
  9306. cat confdefs.h >>conftest.$ac_ext
  9307. cat >>conftest.$ac_ext <<_ACEOF
  9308. /* end confdefs.h. */
  9309. $ac_includes_default
  9310. /* malloc might have been renamed as rpl_malloc. */
  9311. #undef malloc
  9312. /* Thanks to Mike Haertel and Jim Avera for this test.
  9313. Here is a matrix of mmap possibilities:
  9314. mmap private not fixed
  9315. mmap private fixed at somewhere currently unmapped
  9316. mmap private fixed at somewhere already mapped
  9317. mmap shared not fixed
  9318. mmap shared fixed at somewhere currently unmapped
  9319. mmap shared fixed at somewhere already mapped
  9320. For private mappings, we should verify that changes cannot be read()
  9321. back from the file, nor mmap's back from the file at a different
  9322. address. (There have been systems where private was not correctly
  9323. implemented like the infamous i386 svr4.0, and systems where the
  9324. VM page cache was not coherent with the file system buffer cache
  9325. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9326. For shared mappings, we should conversely verify that changes get
  9327. propagated back to all the places they're supposed to be.
  9328. Grep wants private fixed already mapped.
  9329. The main things grep needs to know about mmap are:
  9330. * does it exist and is it safe to write into the mmap'd area
  9331. * how to use it (BSD variants) */
  9332. #include <fcntl.h>
  9333. #include <sys/mman.h>
  9334. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  9335. char *malloc ();
  9336. #endif
  9337. /* This mess was copied from the GNU getpagesize.h. */
  9338. #ifndef HAVE_GETPAGESIZE
  9339. /* Assume that all systems that can run configure have sys/param.h. */
  9340. # ifndef HAVE_SYS_PARAM_H
  9341. # define HAVE_SYS_PARAM_H 1
  9342. # endif
  9343. # ifdef _SC_PAGESIZE
  9344. # define getpagesize() sysconf(_SC_PAGESIZE)
  9345. # else /* no _SC_PAGESIZE */
  9346. # ifdef HAVE_SYS_PARAM_H
  9347. # include <sys/param.h>
  9348. # ifdef EXEC_PAGESIZE
  9349. # define getpagesize() EXEC_PAGESIZE
  9350. # else /* no EXEC_PAGESIZE */
  9351. # ifdef NBPG
  9352. # define getpagesize() NBPG * CLSIZE
  9353. # ifndef CLSIZE
  9354. # define CLSIZE 1
  9355. # endif /* no CLSIZE */
  9356. # else /* no NBPG */
  9357. # ifdef NBPC
  9358. # define getpagesize() NBPC
  9359. # else /* no NBPC */
  9360. # ifdef PAGESIZE
  9361. # define getpagesize() PAGESIZE
  9362. # endif /* PAGESIZE */
  9363. # endif /* no NBPC */
  9364. # endif /* no NBPG */
  9365. # endif /* no EXEC_PAGESIZE */
  9366. # else /* no HAVE_SYS_PARAM_H */
  9367. # define getpagesize() 8192 /* punt totally */
  9368. # endif /* no HAVE_SYS_PARAM_H */
  9369. # endif /* no _SC_PAGESIZE */
  9370. #endif /* no HAVE_GETPAGESIZE */
  9371. int
  9372. main ()
  9373. {
  9374. char *data, *data2, *data3;
  9375. int i, pagesize;
  9376. int fd;
  9377. pagesize = getpagesize ();
  9378. /* First, make a file with some known garbage in it. */
  9379. data = (char *) malloc (pagesize);
  9380. if (!data)
  9381. return 1;
  9382. for (i = 0; i < pagesize; ++i)
  9383. *(data + i) = rand ();
  9384. umask (0);
  9385. fd = creat ("conftest.mmap", 0600);
  9386. if (fd < 0)
  9387. return 1;
  9388. if (write (fd, data, pagesize) != pagesize)
  9389. return 1;
  9390. close (fd);
  9391. /* Next, try to mmap the file at a fixed address which already has
  9392. something else allocated at it. If we can, also make sure that
  9393. we see the same garbage. */
  9394. fd = open ("conftest.mmap", O_RDWR);
  9395. if (fd < 0)
  9396. return 1;
  9397. data2 = (char *) malloc (2 * pagesize);
  9398. if (!data2)
  9399. return 1;
  9400. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  9401. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9402. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9403. return 1;
  9404. for (i = 0; i < pagesize; ++i)
  9405. if (*(data + i) != *(data2 + i))
  9406. return 1;
  9407. /* Finally, make sure that changes to the mapped area do not
  9408. percolate back to the file as seen by read(). (This is a bug on
  9409. some variants of i386 svr4.0.) */
  9410. for (i = 0; i < pagesize; ++i)
  9411. *(data2 + i) = *(data2 + i) + 1;
  9412. data3 = (char *) malloc (pagesize);
  9413. if (!data3)
  9414. return 1;
  9415. if (read (fd, data3, pagesize) != pagesize)
  9416. return 1;
  9417. for (i = 0; i < pagesize; ++i)
  9418. if (*(data + i) != *(data3 + i))
  9419. return 1;
  9420. close (fd);
  9421. return 0;
  9422. }
  9423. _ACEOF
  9424. rm -f conftest$ac_exeext
  9425. if { (ac_try="$ac_link"
  9426. case "(($ac_try" in
  9427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9428. *) ac_try_echo=$ac_try;;
  9429. esac
  9430. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9431. (eval "$ac_link") 2>&5
  9432. ac_status=$?
  9433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9434. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9435. { (case "(($ac_try" in
  9436. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9437. *) ac_try_echo=$ac_try;;
  9438. esac
  9439. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9440. (eval "$ac_try") 2>&5
  9441. ac_status=$?
  9442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9443. (exit $ac_status); }; }; then
  9444. ac_cv_func_mmap_fixed_mapped=yes
  9445. else
  9446. echo "$as_me: program exited with status $ac_status" >&5
  9447. echo "$as_me: failed program was:" >&5
  9448. sed 's/^/| /' conftest.$ac_ext >&5
  9449. ( exit $ac_status )
  9450. ac_cv_func_mmap_fixed_mapped=no
  9451. fi
  9452. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9453. fi
  9454. fi
  9455. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9456. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  9457. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9458. cat >>confdefs.h <<\_ACEOF
  9459. #define HAVE_MMAP 1
  9460. _ACEOF
  9461. fi
  9462. rm -f conftest.mmap
  9463. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  9464. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  9465. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  9466. echo $ECHO_N "(cached) $ECHO_C" >&6
  9467. else
  9468. gt_cv_int_divbyzero_sigfpe=
  9469. case "$host_os" in
  9470. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  9471. # On MacOS X 10.2 or newer, just assume the same as when cross-
  9472. # compiling. If we were to perform the real test, 1 Crash Report
  9473. # dialog window would pop up.
  9474. case "$host_cpu" in
  9475. i[34567]86 | x86_64)
  9476. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  9477. esac
  9478. ;;
  9479. esac
  9480. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  9481. if test "$cross_compiling" = yes; then
  9482. # Guess based on the CPU.
  9483. case "$host_cpu" in
  9484. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  9485. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  9486. *)
  9487. gt_cv_int_divbyzero_sigfpe="guessing no";;
  9488. esac
  9489. else
  9490. cat >conftest.$ac_ext <<_ACEOF
  9491. /* confdefs.h. */
  9492. _ACEOF
  9493. cat confdefs.h >>conftest.$ac_ext
  9494. cat >>conftest.$ac_ext <<_ACEOF
  9495. /* end confdefs.h. */
  9496. #include <stdlib.h>
  9497. #include <signal.h>
  9498. static void
  9499. sigfpe_handler (int sig)
  9500. {
  9501. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  9502. exit (sig != SIGFPE);
  9503. }
  9504. int x = 1;
  9505. int y = 0;
  9506. int z;
  9507. int nan;
  9508. int main ()
  9509. {
  9510. signal (SIGFPE, sigfpe_handler);
  9511. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  9512. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  9513. signal (SIGTRAP, sigfpe_handler);
  9514. #endif
  9515. /* Linux/SPARC yields signal SIGILL. */
  9516. #if defined (__sparc__) && defined (__linux__)
  9517. signal (SIGILL, sigfpe_handler);
  9518. #endif
  9519. z = x / y;
  9520. nan = y / y;
  9521. exit (1);
  9522. }
  9523. _ACEOF
  9524. rm -f conftest$ac_exeext
  9525. if { (ac_try="$ac_link"
  9526. case "(($ac_try" in
  9527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9528. *) ac_try_echo=$ac_try;;
  9529. esac
  9530. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9531. (eval "$ac_link") 2>&5
  9532. ac_status=$?
  9533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9534. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9535. { (case "(($ac_try" in
  9536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9537. *) ac_try_echo=$ac_try;;
  9538. esac
  9539. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9540. (eval "$ac_try") 2>&5
  9541. ac_status=$?
  9542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9543. (exit $ac_status); }; }; then
  9544. gt_cv_int_divbyzero_sigfpe=yes
  9545. else
  9546. echo "$as_me: program exited with status $ac_status" >&5
  9547. echo "$as_me: failed program was:" >&5
  9548. sed 's/^/| /' conftest.$ac_ext >&5
  9549. ( exit $ac_status )
  9550. gt_cv_int_divbyzero_sigfpe=no
  9551. fi
  9552. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9553. fi
  9554. fi
  9555. fi
  9556. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  9557. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  9558. case "$gt_cv_int_divbyzero_sigfpe" in
  9559. *yes) value=1;;
  9560. *) value=0;;
  9561. esac
  9562. cat >>confdefs.h <<_ACEOF
  9563. #define INTDIV0_RAISES_SIGFPE $value
  9564. _ACEOF
  9565. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  9566. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  9567. if test "${gl_cv_header_inttypes_h+set}" = set; then
  9568. echo $ECHO_N "(cached) $ECHO_C" >&6
  9569. else
  9570. cat >conftest.$ac_ext <<_ACEOF
  9571. /* confdefs.h. */
  9572. _ACEOF
  9573. cat confdefs.h >>conftest.$ac_ext
  9574. cat >>conftest.$ac_ext <<_ACEOF
  9575. /* end confdefs.h. */
  9576. #include <sys/types.h>
  9577. #include <inttypes.h>
  9578. int
  9579. main ()
  9580. {
  9581. uintmax_t i = (uintmax_t) -1; return !i;
  9582. ;
  9583. return 0;
  9584. }
  9585. _ACEOF
  9586. rm -f conftest.$ac_objext
  9587. if { (ac_try="$ac_compile"
  9588. case "(($ac_try" in
  9589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9590. *) ac_try_echo=$ac_try;;
  9591. esac
  9592. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9593. (eval "$ac_compile") 2>conftest.er1
  9594. ac_status=$?
  9595. grep -v '^ *+' conftest.er1 >conftest.err
  9596. rm -f conftest.er1
  9597. cat conftest.err >&5
  9598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9599. (exit $ac_status); } && {
  9600. test -z "$ac_cxx_werror_flag" ||
  9601. test ! -s conftest.err
  9602. } && test -s conftest.$ac_objext; then
  9603. gl_cv_header_inttypes_h=yes
  9604. else
  9605. echo "$as_me: failed program was:" >&5
  9606. sed 's/^/| /' conftest.$ac_ext >&5
  9607. gl_cv_header_inttypes_h=no
  9608. fi
  9609. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9610. fi
  9611. { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  9612. echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
  9613. if test $gl_cv_header_inttypes_h = yes; then
  9614. cat >>confdefs.h <<_ACEOF
  9615. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  9616. _ACEOF
  9617. fi
  9618. { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  9619. echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
  9620. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  9621. echo $ECHO_N "(cached) $ECHO_C" >&6
  9622. else
  9623. cat >conftest.$ac_ext <<_ACEOF
  9624. /* confdefs.h. */
  9625. _ACEOF
  9626. cat confdefs.h >>conftest.$ac_ext
  9627. cat >>conftest.$ac_ext <<_ACEOF
  9628. /* end confdefs.h. */
  9629. /* Test preprocessor. */
  9630. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  9631. error in preprocessor;
  9632. #endif
  9633. #if ! (18446744073709551615ULL <= -1ull)
  9634. error in preprocessor;
  9635. #endif
  9636. /* Test literals. */
  9637. long long int ll = 9223372036854775807ll;
  9638. long long int nll = -9223372036854775807LL;
  9639. unsigned long long int ull = 18446744073709551615ULL;
  9640. /* Test constant expressions. */
  9641. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  9642. ? 1 : -1)];
  9643. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  9644. ? 1 : -1)];
  9645. int i = 63;
  9646. int
  9647. main ()
  9648. {
  9649. /* Test availability of runtime routines for shift and division. */
  9650. long long int llmax = 9223372036854775807ll;
  9651. unsigned long long int ullmax = 18446744073709551615ull;
  9652. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  9653. | (llmax / ll) | (llmax % ll)
  9654. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  9655. | (ullmax / ull) | (ullmax % ull));
  9656. ;
  9657. return 0;
  9658. }
  9659. _ACEOF
  9660. rm -f conftest.$ac_objext conftest$ac_exeext
  9661. if { (ac_try="$ac_link"
  9662. case "(($ac_try" in
  9663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9664. *) ac_try_echo=$ac_try;;
  9665. esac
  9666. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9667. (eval "$ac_link") 2>conftest.er1
  9668. ac_status=$?
  9669. grep -v '^ *+' conftest.er1 >conftest.err
  9670. rm -f conftest.er1
  9671. cat conftest.err >&5
  9672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9673. (exit $ac_status); } && {
  9674. test -z "$ac_cxx_werror_flag" ||
  9675. test ! -s conftest.err
  9676. } && test -s conftest$ac_exeext &&
  9677. $as_test_x conftest$ac_exeext; then
  9678. ac_cv_type_unsigned_long_long_int=yes
  9679. else
  9680. echo "$as_me: failed program was:" >&5
  9681. sed 's/^/| /' conftest.$ac_ext >&5
  9682. ac_cv_type_unsigned_long_long_int=no
  9683. fi
  9684. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9685. conftest$ac_exeext conftest.$ac_ext
  9686. fi
  9687. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  9688. echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
  9689. if test $ac_cv_type_unsigned_long_long_int = yes; then
  9690. cat >>confdefs.h <<\_ACEOF
  9691. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  9692. _ACEOF
  9693. fi
  9694. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  9695. test $ac_cv_type_unsigned_long_long_int = yes \
  9696. && ac_type='unsigned long long' \
  9697. || ac_type='unsigned long'
  9698. cat >>confdefs.h <<_ACEOF
  9699. #define uintmax_t $ac_type
  9700. _ACEOF
  9701. else
  9702. cat >>confdefs.h <<\_ACEOF
  9703. #define HAVE_UINTMAX_T 1
  9704. _ACEOF
  9705. fi
  9706. for ac_header in inttypes.h
  9707. do
  9708. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9709. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9710. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9711. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9712. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9713. echo $ECHO_N "(cached) $ECHO_C" >&6
  9714. fi
  9715. ac_res=`eval echo '${'$as_ac_Header'}'`
  9716. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9717. echo "${ECHO_T}$ac_res" >&6; }
  9718. else
  9719. # Is the header compilable?
  9720. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9721. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9722. cat >conftest.$ac_ext <<_ACEOF
  9723. /* confdefs.h. */
  9724. _ACEOF
  9725. cat confdefs.h >>conftest.$ac_ext
  9726. cat >>conftest.$ac_ext <<_ACEOF
  9727. /* end confdefs.h. */
  9728. $ac_includes_default
  9729. #include <$ac_header>
  9730. _ACEOF
  9731. rm -f conftest.$ac_objext
  9732. if { (ac_try="$ac_compile"
  9733. case "(($ac_try" in
  9734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9735. *) ac_try_echo=$ac_try;;
  9736. esac
  9737. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9738. (eval "$ac_compile") 2>conftest.er1
  9739. ac_status=$?
  9740. grep -v '^ *+' conftest.er1 >conftest.err
  9741. rm -f conftest.er1
  9742. cat conftest.err >&5
  9743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9744. (exit $ac_status); } && {
  9745. test -z "$ac_cxx_werror_flag" ||
  9746. test ! -s conftest.err
  9747. } && test -s conftest.$ac_objext; then
  9748. ac_header_compiler=yes
  9749. else
  9750. echo "$as_me: failed program was:" >&5
  9751. sed 's/^/| /' conftest.$ac_ext >&5
  9752. ac_header_compiler=no
  9753. fi
  9754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9755. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9756. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9757. # Is the header present?
  9758. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9759. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9760. cat >conftest.$ac_ext <<_ACEOF
  9761. /* confdefs.h. */
  9762. _ACEOF
  9763. cat confdefs.h >>conftest.$ac_ext
  9764. cat >>conftest.$ac_ext <<_ACEOF
  9765. /* end confdefs.h. */
  9766. #include <$ac_header>
  9767. _ACEOF
  9768. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9769. case "(($ac_try" in
  9770. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9771. *) ac_try_echo=$ac_try;;
  9772. esac
  9773. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9774. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9775. ac_status=$?
  9776. grep -v '^ *+' conftest.er1 >conftest.err
  9777. rm -f conftest.er1
  9778. cat conftest.err >&5
  9779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9780. (exit $ac_status); } >/dev/null && {
  9781. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9782. test ! -s conftest.err
  9783. }; then
  9784. ac_header_preproc=yes
  9785. else
  9786. echo "$as_me: failed program was:" >&5
  9787. sed 's/^/| /' conftest.$ac_ext >&5
  9788. ac_header_preproc=no
  9789. fi
  9790. rm -f conftest.err conftest.$ac_ext
  9791. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9792. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9793. # So? What about this header?
  9794. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9795. yes:no: )
  9796. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9797. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9798. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9799. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9800. ac_header_preproc=yes
  9801. ;;
  9802. no:yes:* )
  9803. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9804. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9805. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9806. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9807. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9808. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9809. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9810. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9811. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9812. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9813. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9814. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9815. ( cat <<\_ASBOX
  9816. ## ----------------------------------------------- ##
  9817. ## Report this to t-tujikawa@users.sourceforge.net ##
  9818. ## ----------------------------------------------- ##
  9819. _ASBOX
  9820. ) | sed "s/^/$as_me: WARNING: /" >&2
  9821. ;;
  9822. esac
  9823. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9824. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9825. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9826. echo $ECHO_N "(cached) $ECHO_C" >&6
  9827. else
  9828. eval "$as_ac_Header=\$ac_header_preproc"
  9829. fi
  9830. ac_res=`eval echo '${'$as_ac_Header'}'`
  9831. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9832. echo "${ECHO_T}$ac_res" >&6; }
  9833. fi
  9834. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9835. cat >>confdefs.h <<_ACEOF
  9836. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9837. _ACEOF
  9838. fi
  9839. done
  9840. if test $ac_cv_header_inttypes_h = yes; then
  9841. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  9842. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  9843. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  9844. echo $ECHO_N "(cached) $ECHO_C" >&6
  9845. else
  9846. cat >conftest.$ac_ext <<_ACEOF
  9847. /* confdefs.h. */
  9848. _ACEOF
  9849. cat confdefs.h >>conftest.$ac_ext
  9850. cat >>conftest.$ac_ext <<_ACEOF
  9851. /* end confdefs.h. */
  9852. #include <inttypes.h>
  9853. #ifdef PRId32
  9854. char *p = PRId32;
  9855. #endif
  9856. int
  9857. main ()
  9858. {
  9859. ;
  9860. return 0;
  9861. }
  9862. _ACEOF
  9863. rm -f conftest.$ac_objext
  9864. if { (ac_try="$ac_compile"
  9865. case "(($ac_try" in
  9866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9867. *) ac_try_echo=$ac_try;;
  9868. esac
  9869. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9870. (eval "$ac_compile") 2>conftest.er1
  9871. ac_status=$?
  9872. grep -v '^ *+' conftest.er1 >conftest.err
  9873. rm -f conftest.er1
  9874. cat conftest.err >&5
  9875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9876. (exit $ac_status); } && {
  9877. test -z "$ac_cxx_werror_flag" ||
  9878. test ! -s conftest.err
  9879. } && test -s conftest.$ac_objext; then
  9880. gt_cv_inttypes_pri_broken=no
  9881. else
  9882. echo "$as_me: failed program was:" >&5
  9883. sed 's/^/| /' conftest.$ac_ext >&5
  9884. gt_cv_inttypes_pri_broken=yes
  9885. fi
  9886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9887. fi
  9888. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  9889. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  9890. fi
  9891. if test "$gt_cv_inttypes_pri_broken" = yes; then
  9892. cat >>confdefs.h <<_ACEOF
  9893. #define PRI_MACROS_BROKEN 1
  9894. _ACEOF
  9895. PRI_MACROS_BROKEN=1
  9896. else
  9897. PRI_MACROS_BROKEN=0
  9898. fi
  9899. # Check whether --enable-threads was given.
  9900. if test "${enable_threads+set}" = set; then
  9901. enableval=$enable_threads; gl_use_threads=$enableval
  9902. else
  9903. case "$host_os" in
  9904. osf*) gl_use_threads=no ;;
  9905. *) gl_use_threads=yes ;;
  9906. esac
  9907. fi
  9908. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  9909. # For using <pthread.h>:
  9910. case "$host_os" in
  9911. osf*)
  9912. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  9913. # groks <pthread.h>. cc also understands the flag -pthread, but
  9914. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  9915. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  9916. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  9917. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  9918. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  9919. ;;
  9920. esac
  9921. # Some systems optimize for single-threaded programs by default, and
  9922. # need special flags to disable these optimizations. For example, the
  9923. # definition of 'errno' in <errno.h>.
  9924. case "$host_os" in
  9925. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  9926. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  9927. esac
  9928. fi
  9929. if test "X$prefix" = "XNONE"; then
  9930. acl_final_prefix="$ac_default_prefix"
  9931. else
  9932. acl_final_prefix="$prefix"
  9933. fi
  9934. if test "X$exec_prefix" = "XNONE"; then
  9935. acl_final_exec_prefix='${prefix}'
  9936. else
  9937. acl_final_exec_prefix="$exec_prefix"
  9938. fi
  9939. acl_save_prefix="$prefix"
  9940. prefix="$acl_final_prefix"
  9941. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  9942. prefix="$acl_save_prefix"
  9943. # Check whether --with-gnu-ld was given.
  9944. if test "${with_gnu_ld+set}" = set; then
  9945. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9946. else
  9947. with_gnu_ld=no
  9948. fi
  9949. # Prepare PATH_SEPARATOR.
  9950. # The user is always right.
  9951. if test "${PATH_SEPARATOR+set}" != set; then
  9952. echo "#! /bin/sh" >conf$$.sh
  9953. echo "exit 0" >>conf$$.sh
  9954. chmod +x conf$$.sh
  9955. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9956. PATH_SEPARATOR=';'
  9957. else
  9958. PATH_SEPARATOR=:
  9959. fi
  9960. rm -f conf$$.sh
  9961. fi
  9962. ac_prog=ld
  9963. if test "$GCC" = yes; then
  9964. # Check if gcc -print-prog-name=ld gives a path.
  9965. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  9966. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  9967. case $host in
  9968. *-*-mingw*)
  9969. # gcc leaves a trailing carriage return which upsets mingw
  9970. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9971. *)
  9972. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9973. esac
  9974. case $ac_prog in
  9975. # Accept absolute paths.
  9976. [\\/]* | [A-Za-z]:[\\/]*)
  9977. re_direlt='/[^/][^/]*/\.\./'
  9978. # Canonicalize the path of ld
  9979. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  9980. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9981. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  9982. done
  9983. test -z "$LD" && LD="$ac_prog"
  9984. ;;
  9985. "")
  9986. # If it fails, then pretend we aren't using GCC.
  9987. ac_prog=ld
  9988. ;;
  9989. *)
  9990. # If it is relative, then search for the first ld in PATH.
  9991. with_gnu_ld=unknown
  9992. ;;
  9993. esac
  9994. elif test "$with_gnu_ld" = yes; then
  9995. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  9996. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  9997. else
  9998. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9999. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  10000. fi
  10001. if test "${acl_cv_path_LD+set}" = set; then
  10002. echo $ECHO_N "(cached) $ECHO_C" >&6
  10003. else
  10004. if test -z "$LD"; then
  10005. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  10006. for ac_dir in $PATH; do
  10007. test -z "$ac_dir" && ac_dir=.
  10008. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10009. acl_cv_path_LD="$ac_dir/$ac_prog"
  10010. # Check to see if the program is GNU ld. I'd rather use --version,
  10011. # but apparently some GNU ld's only accept -v.
  10012. # Break only if it was the GNU/non-GNU ld that we prefer.
  10013. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  10014. *GNU* | *'with BFD'*)
  10015. test "$with_gnu_ld" != no && break ;;
  10016. *)
  10017. test "$with_gnu_ld" != yes && break ;;
  10018. esac
  10019. fi
  10020. done
  10021. IFS="$ac_save_ifs"
  10022. else
  10023. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  10024. fi
  10025. fi
  10026. LD="$acl_cv_path_LD"
  10027. if test -n "$LD"; then
  10028. { echo "$as_me:$LINENO: result: $LD" >&5
  10029. echo "${ECHO_T}$LD" >&6; }
  10030. else
  10031. { echo "$as_me:$LINENO: result: no" >&5
  10032. echo "${ECHO_T}no" >&6; }
  10033. fi
  10034. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10035. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10036. { (exit 1); exit 1; }; }
  10037. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10038. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  10039. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  10040. echo $ECHO_N "(cached) $ECHO_C" >&6
  10041. else
  10042. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  10043. case `$LD -v 2>&1 </dev/null` in
  10044. *GNU* | *'with BFD'*)
  10045. acl_cv_prog_gnu_ld=yes ;;
  10046. *)
  10047. acl_cv_prog_gnu_ld=no ;;
  10048. esac
  10049. fi
  10050. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  10051. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  10052. with_gnu_ld=$acl_cv_prog_gnu_ld
  10053. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  10054. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  10055. if test "${acl_cv_rpath+set}" = set; then
  10056. echo $ECHO_N "(cached) $ECHO_C" >&6
  10057. else
  10058. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  10059. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  10060. . ./conftest.sh
  10061. rm -f ./conftest.sh
  10062. acl_cv_rpath=done
  10063. fi
  10064. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  10065. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  10066. wl="$acl_cv_wl"
  10067. acl_libext="$acl_cv_libext"
  10068. acl_shlibext="$acl_cv_shlibext"
  10069. acl_libname_spec="$acl_cv_libname_spec"
  10070. acl_library_names_spec="$acl_cv_library_names_spec"
  10071. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  10072. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  10073. acl_hardcode_direct="$acl_cv_hardcode_direct"
  10074. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  10075. # Check whether --enable-rpath was given.
  10076. if test "${enable_rpath+set}" = set; then
  10077. enableval=$enable_rpath; :
  10078. else
  10079. enable_rpath=yes
  10080. fi
  10081. acl_libdirstem=lib
  10082. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  10083. if test -n "$searchpath"; then
  10084. acl_save_IFS="${IFS= }"; IFS=":"
  10085. for searchdir in $searchpath; do
  10086. if test -d "$searchdir"; then
  10087. case "$searchdir" in
  10088. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  10089. *) searchdir=`cd "$searchdir" && pwd`
  10090. case "$searchdir" in
  10091. */lib64 ) acl_libdirstem=lib64 ;;
  10092. esac ;;
  10093. esac
  10094. fi
  10095. done
  10096. IFS="$acl_save_IFS"
  10097. fi
  10098. gl_threads_api=none
  10099. LIBTHREAD=
  10100. LTLIBTHREAD=
  10101. LIBMULTITHREAD=
  10102. LTLIBMULTITHREAD=
  10103. if test "$gl_use_threads" != no; then
  10104. { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  10105. echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
  10106. gl_have_weak=no
  10107. cat >conftest.$ac_ext <<_ACEOF
  10108. /* confdefs.h. */
  10109. _ACEOF
  10110. cat confdefs.h >>conftest.$ac_ext
  10111. cat >>conftest.$ac_ext <<_ACEOF
  10112. /* end confdefs.h. */
  10113. extern void xyzzy ();
  10114. #pragma weak xyzzy
  10115. int
  10116. main ()
  10117. {
  10118. xyzzy();
  10119. ;
  10120. return 0;
  10121. }
  10122. _ACEOF
  10123. rm -f conftest.$ac_objext conftest$ac_exeext
  10124. if { (ac_try="$ac_link"
  10125. case "(($ac_try" in
  10126. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10127. *) ac_try_echo=$ac_try;;
  10128. esac
  10129. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10130. (eval "$ac_link") 2>conftest.er1
  10131. ac_status=$?
  10132. grep -v '^ *+' conftest.er1 >conftest.err
  10133. rm -f conftest.er1
  10134. cat conftest.err >&5
  10135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10136. (exit $ac_status); } && {
  10137. test -z "$ac_cxx_werror_flag" ||
  10138. test ! -s conftest.err
  10139. } && test -s conftest$ac_exeext &&
  10140. $as_test_x conftest$ac_exeext; then
  10141. gl_have_weak=yes
  10142. else
  10143. echo "$as_me: failed program was:" >&5
  10144. sed 's/^/| /' conftest.$ac_ext >&5
  10145. fi
  10146. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10147. conftest$ac_exeext conftest.$ac_ext
  10148. { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  10149. echo "${ECHO_T}$gl_have_weak" >&6; }
  10150. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10151. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  10152. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  10153. if test "${ac_cv_header_pthread_h+set}" = set; then
  10154. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10155. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10156. if test "${ac_cv_header_pthread_h+set}" = set; then
  10157. echo $ECHO_N "(cached) $ECHO_C" >&6
  10158. fi
  10159. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10160. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10161. else
  10162. # Is the header compilable?
  10163. { echo "$as_me:$LINENO: checking pthread.h usability" >&5
  10164. echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
  10165. cat >conftest.$ac_ext <<_ACEOF
  10166. /* confdefs.h. */
  10167. _ACEOF
  10168. cat confdefs.h >>conftest.$ac_ext
  10169. cat >>conftest.$ac_ext <<_ACEOF
  10170. /* end confdefs.h. */
  10171. $ac_includes_default
  10172. #include <pthread.h>
  10173. _ACEOF
  10174. rm -f conftest.$ac_objext
  10175. if { (ac_try="$ac_compile"
  10176. case "(($ac_try" in
  10177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10178. *) ac_try_echo=$ac_try;;
  10179. esac
  10180. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10181. (eval "$ac_compile") 2>conftest.er1
  10182. ac_status=$?
  10183. grep -v '^ *+' conftest.er1 >conftest.err
  10184. rm -f conftest.er1
  10185. cat conftest.err >&5
  10186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10187. (exit $ac_status); } && {
  10188. test -z "$ac_cxx_werror_flag" ||
  10189. test ! -s conftest.err
  10190. } && test -s conftest.$ac_objext; then
  10191. ac_header_compiler=yes
  10192. else
  10193. echo "$as_me: failed program was:" >&5
  10194. sed 's/^/| /' conftest.$ac_ext >&5
  10195. ac_header_compiler=no
  10196. fi
  10197. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10198. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10199. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10200. # Is the header present?
  10201. { echo "$as_me:$LINENO: checking pthread.h presence" >&5
  10202. echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
  10203. cat >conftest.$ac_ext <<_ACEOF
  10204. /* confdefs.h. */
  10205. _ACEOF
  10206. cat confdefs.h >>conftest.$ac_ext
  10207. cat >>conftest.$ac_ext <<_ACEOF
  10208. /* end confdefs.h. */
  10209. #include <pthread.h>
  10210. _ACEOF
  10211. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10212. case "(($ac_try" in
  10213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10214. *) ac_try_echo=$ac_try;;
  10215. esac
  10216. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10217. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10218. ac_status=$?
  10219. grep -v '^ *+' conftest.er1 >conftest.err
  10220. rm -f conftest.er1
  10221. cat conftest.err >&5
  10222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10223. (exit $ac_status); } >/dev/null && {
  10224. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10225. test ! -s conftest.err
  10226. }; then
  10227. ac_header_preproc=yes
  10228. else
  10229. echo "$as_me: failed program was:" >&5
  10230. sed 's/^/| /' conftest.$ac_ext >&5
  10231. ac_header_preproc=no
  10232. fi
  10233. rm -f conftest.err conftest.$ac_ext
  10234. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10235. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10236. # So? What about this header?
  10237. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10238. yes:no: )
  10239. { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10240. echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10241. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  10242. echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  10243. ac_header_preproc=yes
  10244. ;;
  10245. no:yes:* )
  10246. { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  10247. echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  10248. { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  10249. echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  10250. { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  10251. echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  10252. { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  10253. echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10254. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  10255. echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  10256. { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  10257. echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  10258. ( cat <<\_ASBOX
  10259. ## ----------------------------------------------- ##
  10260. ## Report this to t-tujikawa@users.sourceforge.net ##
  10261. ## ----------------------------------------------- ##
  10262. _ASBOX
  10263. ) | sed "s/^/$as_me: WARNING: /" >&2
  10264. ;;
  10265. esac
  10266. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10267. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10268. if test "${ac_cv_header_pthread_h+set}" = set; then
  10269. echo $ECHO_N "(cached) $ECHO_C" >&6
  10270. else
  10271. ac_cv_header_pthread_h=$ac_header_preproc
  10272. fi
  10273. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10274. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10275. fi
  10276. if test $ac_cv_header_pthread_h = yes; then
  10277. gl_have_pthread_h=yes
  10278. else
  10279. gl_have_pthread_h=no
  10280. fi
  10281. if test "$gl_have_pthread_h" = yes; then
  10282. # Other possible tests:
  10283. # -lpthreads (FSU threads, PCthreads)
  10284. # -lgthreads
  10285. gl_have_pthread=
  10286. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  10287. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  10288. # the second one only in libpthread, and lock.c needs it.
  10289. cat >conftest.$ac_ext <<_ACEOF
  10290. /* confdefs.h. */
  10291. _ACEOF
  10292. cat confdefs.h >>conftest.$ac_ext
  10293. cat >>conftest.$ac_ext <<_ACEOF
  10294. /* end confdefs.h. */
  10295. #include <pthread.h>
  10296. int
  10297. main ()
  10298. {
  10299. pthread_mutex_lock((pthread_mutex_t*)0);
  10300. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  10301. ;
  10302. return 0;
  10303. }
  10304. _ACEOF
  10305. rm -f conftest.$ac_objext conftest$ac_exeext
  10306. if { (ac_try="$ac_link"
  10307. case "(($ac_try" in
  10308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10309. *) ac_try_echo=$ac_try;;
  10310. esac
  10311. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10312. (eval "$ac_link") 2>conftest.er1
  10313. ac_status=$?
  10314. grep -v '^ *+' conftest.er1 >conftest.err
  10315. rm -f conftest.er1
  10316. cat conftest.err >&5
  10317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10318. (exit $ac_status); } && {
  10319. test -z "$ac_cxx_werror_flag" ||
  10320. test ! -s conftest.err
  10321. } && test -s conftest$ac_exeext &&
  10322. $as_test_x conftest$ac_exeext; then
  10323. gl_have_pthread=yes
  10324. else
  10325. echo "$as_me: failed program was:" >&5
  10326. sed 's/^/| /' conftest.$ac_ext >&5
  10327. fi
  10328. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10329. conftest$ac_exeext conftest.$ac_ext
  10330. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  10331. # since it is defined as a macro on OSF/1.)
  10332. if test -n "$gl_have_pthread"; then
  10333. # The program links fine without libpthread. But it may actually
  10334. # need to link with libpthread in order to create multiple threads.
  10335. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  10336. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  10337. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  10338. echo $ECHO_N "(cached) $ECHO_C" >&6
  10339. else
  10340. ac_check_lib_save_LIBS=$LIBS
  10341. LIBS="-lpthread $LIBS"
  10342. cat >conftest.$ac_ext <<_ACEOF
  10343. /* confdefs.h. */
  10344. _ACEOF
  10345. cat confdefs.h >>conftest.$ac_ext
  10346. cat >>conftest.$ac_ext <<_ACEOF
  10347. /* end confdefs.h. */
  10348. /* Override any GCC internal prototype to avoid an error.
  10349. Use char because int might match the return type of a GCC
  10350. builtin and then its argument prototype would still apply. */
  10351. #ifdef __cplusplus
  10352. extern "C"
  10353. #endif
  10354. char pthread_kill ();
  10355. int
  10356. main ()
  10357. {
  10358. return pthread_kill ();
  10359. ;
  10360. return 0;
  10361. }
  10362. _ACEOF
  10363. rm -f conftest.$ac_objext conftest$ac_exeext
  10364. if { (ac_try="$ac_link"
  10365. case "(($ac_try" in
  10366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10367. *) ac_try_echo=$ac_try;;
  10368. esac
  10369. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10370. (eval "$ac_link") 2>conftest.er1
  10371. ac_status=$?
  10372. grep -v '^ *+' conftest.er1 >conftest.err
  10373. rm -f conftest.er1
  10374. cat conftest.err >&5
  10375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10376. (exit $ac_status); } && {
  10377. test -z "$ac_cxx_werror_flag" ||
  10378. test ! -s conftest.err
  10379. } && test -s conftest$ac_exeext &&
  10380. $as_test_x conftest$ac_exeext; then
  10381. ac_cv_lib_pthread_pthread_kill=yes
  10382. else
  10383. echo "$as_me: failed program was:" >&5
  10384. sed 's/^/| /' conftest.$ac_ext >&5
  10385. ac_cv_lib_pthread_pthread_kill=no
  10386. fi
  10387. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10388. conftest$ac_exeext conftest.$ac_ext
  10389. LIBS=$ac_check_lib_save_LIBS
  10390. fi
  10391. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  10392. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  10393. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  10394. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  10395. # On Solaris and HP-UX, most pthread functions exist also in libc.
  10396. # Therefore pthread_in_use() needs to actually try to create a
  10397. # thread: pthread_create from libc will fail, whereas
  10398. # pthread_create will actually create a thread.
  10399. case "$host_os" in
  10400. solaris* | hpux*)
  10401. cat >>confdefs.h <<\_ACEOF
  10402. #define PTHREAD_IN_USE_DETECTION_HARD 1
  10403. _ACEOF
  10404. esac
  10405. fi
  10406. else
  10407. # Some library is needed. Try libpthread and libc_r.
  10408. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  10409. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  10410. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  10411. echo $ECHO_N "(cached) $ECHO_C" >&6
  10412. else
  10413. ac_check_lib_save_LIBS=$LIBS
  10414. LIBS="-lpthread $LIBS"
  10415. cat >conftest.$ac_ext <<_ACEOF
  10416. /* confdefs.h. */
  10417. _ACEOF
  10418. cat confdefs.h >>conftest.$ac_ext
  10419. cat >>conftest.$ac_ext <<_ACEOF
  10420. /* end confdefs.h. */
  10421. /* Override any GCC internal prototype to avoid an error.
  10422. Use char because int might match the return type of a GCC
  10423. builtin and then its argument prototype would still apply. */
  10424. #ifdef __cplusplus
  10425. extern "C"
  10426. #endif
  10427. char pthread_kill ();
  10428. int
  10429. main ()
  10430. {
  10431. return pthread_kill ();
  10432. ;
  10433. return 0;
  10434. }
  10435. _ACEOF
  10436. rm -f conftest.$ac_objext conftest$ac_exeext
  10437. if { (ac_try="$ac_link"
  10438. case "(($ac_try" in
  10439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10440. *) ac_try_echo=$ac_try;;
  10441. esac
  10442. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10443. (eval "$ac_link") 2>conftest.er1
  10444. ac_status=$?
  10445. grep -v '^ *+' conftest.er1 >conftest.err
  10446. rm -f conftest.er1
  10447. cat conftest.err >&5
  10448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10449. (exit $ac_status); } && {
  10450. test -z "$ac_cxx_werror_flag" ||
  10451. test ! -s conftest.err
  10452. } && test -s conftest$ac_exeext &&
  10453. $as_test_x conftest$ac_exeext; then
  10454. ac_cv_lib_pthread_pthread_kill=yes
  10455. else
  10456. echo "$as_me: failed program was:" >&5
  10457. sed 's/^/| /' conftest.$ac_ext >&5
  10458. ac_cv_lib_pthread_pthread_kill=no
  10459. fi
  10460. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10461. conftest$ac_exeext conftest.$ac_ext
  10462. LIBS=$ac_check_lib_save_LIBS
  10463. fi
  10464. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  10465. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  10466. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  10467. gl_have_pthread=yes
  10468. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  10469. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  10470. fi
  10471. if test -z "$gl_have_pthread"; then
  10472. # For FreeBSD 4.
  10473. { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  10474. echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
  10475. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  10476. echo $ECHO_N "(cached) $ECHO_C" >&6
  10477. else
  10478. ac_check_lib_save_LIBS=$LIBS
  10479. LIBS="-lc_r $LIBS"
  10480. cat >conftest.$ac_ext <<_ACEOF
  10481. /* confdefs.h. */
  10482. _ACEOF
  10483. cat confdefs.h >>conftest.$ac_ext
  10484. cat >>conftest.$ac_ext <<_ACEOF
  10485. /* end confdefs.h. */
  10486. /* Override any GCC internal prototype to avoid an error.
  10487. Use char because int might match the return type of a GCC
  10488. builtin and then its argument prototype would still apply. */
  10489. #ifdef __cplusplus
  10490. extern "C"
  10491. #endif
  10492. char pthread_kill ();
  10493. int
  10494. main ()
  10495. {
  10496. return pthread_kill ();
  10497. ;
  10498. return 0;
  10499. }
  10500. _ACEOF
  10501. rm -f conftest.$ac_objext conftest$ac_exeext
  10502. if { (ac_try="$ac_link"
  10503. case "(($ac_try" in
  10504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10505. *) ac_try_echo=$ac_try;;
  10506. esac
  10507. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10508. (eval "$ac_link") 2>conftest.er1
  10509. ac_status=$?
  10510. grep -v '^ *+' conftest.er1 >conftest.err
  10511. rm -f conftest.er1
  10512. cat conftest.err >&5
  10513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10514. (exit $ac_status); } && {
  10515. test -z "$ac_cxx_werror_flag" ||
  10516. test ! -s conftest.err
  10517. } && test -s conftest$ac_exeext &&
  10518. $as_test_x conftest$ac_exeext; then
  10519. ac_cv_lib_c_r_pthread_kill=yes
  10520. else
  10521. echo "$as_me: failed program was:" >&5
  10522. sed 's/^/| /' conftest.$ac_ext >&5
  10523. ac_cv_lib_c_r_pthread_kill=no
  10524. fi
  10525. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10526. conftest$ac_exeext conftest.$ac_ext
  10527. LIBS=$ac_check_lib_save_LIBS
  10528. fi
  10529. { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  10530. echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
  10531. if test $ac_cv_lib_c_r_pthread_kill = yes; then
  10532. gl_have_pthread=yes
  10533. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  10534. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  10535. fi
  10536. fi
  10537. fi
  10538. if test -n "$gl_have_pthread"; then
  10539. gl_threads_api=posix
  10540. cat >>confdefs.h <<\_ACEOF
  10541. #define USE_POSIX_THREADS 1
  10542. _ACEOF
  10543. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  10544. if test $gl_have_weak = yes; then
  10545. cat >>confdefs.h <<\_ACEOF
  10546. #define USE_POSIX_THREADS_WEAK 1
  10547. _ACEOF
  10548. LIBTHREAD=
  10549. LTLIBTHREAD=
  10550. fi
  10551. fi
  10552. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  10553. # pthread_rwlock_* functions.
  10554. { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  10555. echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
  10556. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  10557. echo $ECHO_N "(cached) $ECHO_C" >&6
  10558. else
  10559. cat >conftest.$ac_ext <<_ACEOF
  10560. /* confdefs.h. */
  10561. _ACEOF
  10562. cat confdefs.h >>conftest.$ac_ext
  10563. cat >>conftest.$ac_ext <<_ACEOF
  10564. /* end confdefs.h. */
  10565. #include <pthread.h>
  10566. typedef pthread_rwlock_t ac__type_new_;
  10567. int
  10568. main ()
  10569. {
  10570. if ((ac__type_new_ *) 0)
  10571. return 0;
  10572. if (sizeof (ac__type_new_))
  10573. return 0;
  10574. ;
  10575. return 0;
  10576. }
  10577. _ACEOF
  10578. rm -f conftest.$ac_objext
  10579. if { (ac_try="$ac_compile"
  10580. case "(($ac_try" in
  10581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10582. *) ac_try_echo=$ac_try;;
  10583. esac
  10584. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10585. (eval "$ac_compile") 2>conftest.er1
  10586. ac_status=$?
  10587. grep -v '^ *+' conftest.er1 >conftest.err
  10588. rm -f conftest.er1
  10589. cat conftest.err >&5
  10590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10591. (exit $ac_status); } && {
  10592. test -z "$ac_cxx_werror_flag" ||
  10593. test ! -s conftest.err
  10594. } && test -s conftest.$ac_objext; then
  10595. ac_cv_type_pthread_rwlock_t=yes
  10596. else
  10597. echo "$as_me: failed program was:" >&5
  10598. sed 's/^/| /' conftest.$ac_ext >&5
  10599. ac_cv_type_pthread_rwlock_t=no
  10600. fi
  10601. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10602. fi
  10603. { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  10604. echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
  10605. if test $ac_cv_type_pthread_rwlock_t = yes; then
  10606. cat >>confdefs.h <<\_ACEOF
  10607. #define HAVE_PTHREAD_RWLOCK 1
  10608. _ACEOF
  10609. fi
  10610. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  10611. cat >conftest.$ac_ext <<_ACEOF
  10612. /* confdefs.h. */
  10613. _ACEOF
  10614. cat confdefs.h >>conftest.$ac_ext
  10615. cat >>conftest.$ac_ext <<_ACEOF
  10616. /* end confdefs.h. */
  10617. #include <pthread.h>
  10618. int
  10619. main ()
  10620. {
  10621. #if __FreeBSD__ == 4
  10622. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  10623. #else
  10624. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  10625. return !x;
  10626. #endif
  10627. ;
  10628. return 0;
  10629. }
  10630. _ACEOF
  10631. rm -f conftest.$ac_objext
  10632. if { (ac_try="$ac_compile"
  10633. case "(($ac_try" in
  10634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10635. *) ac_try_echo=$ac_try;;
  10636. esac
  10637. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10638. (eval "$ac_compile") 2>conftest.er1
  10639. ac_status=$?
  10640. grep -v '^ *+' conftest.er1 >conftest.err
  10641. rm -f conftest.er1
  10642. cat conftest.err >&5
  10643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10644. (exit $ac_status); } && {
  10645. test -z "$ac_cxx_werror_flag" ||
  10646. test ! -s conftest.err
  10647. } && test -s conftest.$ac_objext; then
  10648. cat >>confdefs.h <<\_ACEOF
  10649. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  10650. _ACEOF
  10651. else
  10652. echo "$as_me: failed program was:" >&5
  10653. sed 's/^/| /' conftest.$ac_ext >&5
  10654. fi
  10655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10656. fi
  10657. fi
  10658. fi
  10659. if test -z "$gl_have_pthread"; then
  10660. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  10661. gl_have_solaristhread=
  10662. gl_save_LIBS="$LIBS"
  10663. LIBS="$LIBS -lthread"
  10664. cat >conftest.$ac_ext <<_ACEOF
  10665. /* confdefs.h. */
  10666. _ACEOF
  10667. cat confdefs.h >>conftest.$ac_ext
  10668. cat >>conftest.$ac_ext <<_ACEOF
  10669. /* end confdefs.h. */
  10670. #include <thread.h>
  10671. #include <synch.h>
  10672. int
  10673. main ()
  10674. {
  10675. thr_self();
  10676. ;
  10677. return 0;
  10678. }
  10679. _ACEOF
  10680. rm -f conftest.$ac_objext conftest$ac_exeext
  10681. if { (ac_try="$ac_link"
  10682. case "(($ac_try" in
  10683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10684. *) ac_try_echo=$ac_try;;
  10685. esac
  10686. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10687. (eval "$ac_link") 2>conftest.er1
  10688. ac_status=$?
  10689. grep -v '^ *+' conftest.er1 >conftest.err
  10690. rm -f conftest.er1
  10691. cat conftest.err >&5
  10692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10693. (exit $ac_status); } && {
  10694. test -z "$ac_cxx_werror_flag" ||
  10695. test ! -s conftest.err
  10696. } && test -s conftest$ac_exeext &&
  10697. $as_test_x conftest$ac_exeext; then
  10698. gl_have_solaristhread=yes
  10699. else
  10700. echo "$as_me: failed program was:" >&5
  10701. sed 's/^/| /' conftest.$ac_ext >&5
  10702. fi
  10703. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10704. conftest$ac_exeext conftest.$ac_ext
  10705. LIBS="$gl_save_LIBS"
  10706. if test -n "$gl_have_solaristhread"; then
  10707. gl_threads_api=solaris
  10708. LIBTHREAD=-lthread
  10709. LTLIBTHREAD=-lthread
  10710. LIBMULTITHREAD="$LIBTHREAD"
  10711. LTLIBMULTITHREAD="$LTLIBTHREAD"
  10712. cat >>confdefs.h <<\_ACEOF
  10713. #define USE_SOLARIS_THREADS 1
  10714. _ACEOF
  10715. if test $gl_have_weak = yes; then
  10716. cat >>confdefs.h <<\_ACEOF
  10717. #define USE_SOLARIS_THREADS_WEAK 1
  10718. _ACEOF
  10719. LIBTHREAD=
  10720. LTLIBTHREAD=
  10721. fi
  10722. fi
  10723. fi
  10724. fi
  10725. if test "$gl_use_threads" = pth; then
  10726. gl_save_CPPFLAGS="$CPPFLAGS"
  10727. { echo "$as_me:$LINENO: checking how to link with libpth" >&5
  10728. echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
  10729. if test "${ac_cv_libpth_libs+set}" = set; then
  10730. echo $ECHO_N "(cached) $ECHO_C" >&6
  10731. else
  10732. use_additional=yes
  10733. acl_save_prefix="$prefix"
  10734. prefix="$acl_final_prefix"
  10735. acl_save_exec_prefix="$exec_prefix"
  10736. exec_prefix="$acl_final_exec_prefix"
  10737. eval additional_includedir=\"$includedir\"
  10738. eval additional_libdir=\"$libdir\"
  10739. exec_prefix="$acl_save_exec_prefix"
  10740. prefix="$acl_save_prefix"
  10741. # Check whether --with-libpth-prefix was given.
  10742. if test "${with_libpth_prefix+set}" = set; then
  10743. withval=$with_libpth_prefix;
  10744. if test "X$withval" = "Xno"; then
  10745. use_additional=no
  10746. else
  10747. if test "X$withval" = "X"; then
  10748. acl_save_prefix="$prefix"
  10749. prefix="$acl_final_prefix"
  10750. acl_save_exec_prefix="$exec_prefix"
  10751. exec_prefix="$acl_final_exec_prefix"
  10752. eval additional_includedir=\"$includedir\"
  10753. eval additional_libdir=\"$libdir\"
  10754. exec_prefix="$acl_save_exec_prefix"
  10755. prefix="$acl_save_prefix"
  10756. else
  10757. additional_includedir="$withval/include"
  10758. additional_libdir="$withval/$acl_libdirstem"
  10759. fi
  10760. fi
  10761. fi
  10762. LIBPTH=
  10763. LTLIBPTH=
  10764. INCPTH=
  10765. LIBPTH_PREFIX=
  10766. rpathdirs=
  10767. ltrpathdirs=
  10768. names_already_handled=
  10769. names_next_round='pth '
  10770. while test -n "$names_next_round"; do
  10771. names_this_round="$names_next_round"
  10772. names_next_round=
  10773. for name in $names_this_round; do
  10774. already_handled=
  10775. for n in $names_already_handled; do
  10776. if test "$n" = "$name"; then
  10777. already_handled=yes
  10778. break
  10779. fi
  10780. done
  10781. if test -z "$already_handled"; then
  10782. names_already_handled="$names_already_handled $name"
  10783. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  10784. eval value=\"\$HAVE_LIB$uppername\"
  10785. if test -n "$value"; then
  10786. if test "$value" = yes; then
  10787. eval value=\"\$LIB$uppername\"
  10788. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  10789. eval value=\"\$LTLIB$uppername\"
  10790. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  10791. else
  10792. :
  10793. fi
  10794. else
  10795. found_dir=
  10796. found_la=
  10797. found_so=
  10798. found_a=
  10799. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  10800. if test -n "$acl_shlibext"; then
  10801. shrext=".$acl_shlibext" # typically: shrext=.so
  10802. else
  10803. shrext=
  10804. fi
  10805. if test $use_additional = yes; then
  10806. dir="$additional_libdir"
  10807. if test -n "$acl_shlibext"; then
  10808. if test -f "$dir/$libname$shrext"; then
  10809. found_dir="$dir"
  10810. found_so="$dir/$libname$shrext"
  10811. else
  10812. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  10813. ver=`(cd "$dir" && \
  10814. for f in "$libname$shrext".*; do echo "$f"; done \
  10815. | sed -e "s,^$libname$shrext\\\\.,," \
  10816. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  10817. | sed 1q ) 2>/dev/null`
  10818. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  10819. found_dir="$dir"
  10820. found_so="$dir/$libname$shrext.$ver"
  10821. fi
  10822. else
  10823. eval library_names=\"$acl_library_names_spec\"
  10824. for f in $library_names; do
  10825. if test -f "$dir/$f"; then
  10826. found_dir="$dir"
  10827. found_so="$dir/$f"
  10828. break
  10829. fi
  10830. done
  10831. fi
  10832. fi
  10833. fi
  10834. if test "X$found_dir" = "X"; then
  10835. if test -f "$dir/$libname.$acl_libext"; then
  10836. found_dir="$dir"
  10837. found_a="$dir/$libname.$acl_libext"
  10838. fi
  10839. fi
  10840. if test "X$found_dir" != "X"; then
  10841. if test -f "$dir/$libname.la"; then
  10842. found_la="$dir/$libname.la"
  10843. fi
  10844. fi
  10845. fi
  10846. if test "X$found_dir" = "X"; then
  10847. for x in $LDFLAGS $LTLIBPTH; do
  10848. acl_save_prefix="$prefix"
  10849. prefix="$acl_final_prefix"
  10850. acl_save_exec_prefix="$exec_prefix"
  10851. exec_prefix="$acl_final_exec_prefix"
  10852. eval x=\"$x\"
  10853. exec_prefix="$acl_save_exec_prefix"
  10854. prefix="$acl_save_prefix"
  10855. case "$x" in
  10856. -L*)
  10857. dir=`echo "X$x" | sed -e 's/^X-L//'`
  10858. if test -n "$acl_shlibext"; then
  10859. if test -f "$dir/$libname$shrext"; then
  10860. found_dir="$dir"
  10861. found_so="$dir/$libname$shrext"
  10862. else
  10863. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  10864. ver=`(cd "$dir" && \
  10865. for f in "$libname$shrext".*; do echo "$f"; done \
  10866. | sed -e "s,^$libname$shrext\\\\.,," \
  10867. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  10868. | sed 1q ) 2>/dev/null`
  10869. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  10870. found_dir="$dir"
  10871. found_so="$dir/$libname$shrext.$ver"
  10872. fi
  10873. else
  10874. eval library_names=\"$acl_library_names_spec\"
  10875. for f in $library_names; do
  10876. if test -f "$dir/$f"; then
  10877. found_dir="$dir"
  10878. found_so="$dir/$f"
  10879. break
  10880. fi
  10881. done
  10882. fi
  10883. fi
  10884. fi
  10885. if test "X$found_dir" = "X"; then
  10886. if test -f "$dir/$libname.$acl_libext"; then
  10887. found_dir="$dir"
  10888. found_a="$dir/$libname.$acl_libext"
  10889. fi
  10890. fi
  10891. if test "X$found_dir" != "X"; then
  10892. if test -f "$dir/$libname.la"; then
  10893. found_la="$dir/$libname.la"
  10894. fi
  10895. fi
  10896. ;;
  10897. esac
  10898. if test "X$found_dir" != "X"; then
  10899. break
  10900. fi
  10901. done
  10902. fi
  10903. if test "X$found_dir" != "X"; then
  10904. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  10905. if test "X$found_so" != "X"; then
  10906. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  10907. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  10908. else
  10909. haveit=
  10910. for x in $ltrpathdirs; do
  10911. if test "X$x" = "X$found_dir"; then
  10912. haveit=yes
  10913. break
  10914. fi
  10915. done
  10916. if test -z "$haveit"; then
  10917. ltrpathdirs="$ltrpathdirs $found_dir"
  10918. fi
  10919. if test "$acl_hardcode_direct" = yes; then
  10920. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  10921. else
  10922. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  10923. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  10924. haveit=
  10925. for x in $rpathdirs; do
  10926. if test "X$x" = "X$found_dir"; then
  10927. haveit=yes
  10928. break
  10929. fi
  10930. done
  10931. if test -z "$haveit"; then
  10932. rpathdirs="$rpathdirs $found_dir"
  10933. fi
  10934. else
  10935. haveit=
  10936. for x in $LDFLAGS $LIBPTH; do
  10937. acl_save_prefix="$prefix"
  10938. prefix="$acl_final_prefix"
  10939. acl_save_exec_prefix="$exec_prefix"
  10940. exec_prefix="$acl_final_exec_prefix"
  10941. eval x=\"$x\"
  10942. exec_prefix="$acl_save_exec_prefix"
  10943. prefix="$acl_save_prefix"
  10944. if test "X$x" = "X-L$found_dir"; then
  10945. haveit=yes
  10946. break
  10947. fi
  10948. done
  10949. if test -z "$haveit"; then
  10950. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  10951. fi
  10952. if test "$acl_hardcode_minus_L" != no; then
  10953. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  10954. else
  10955. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  10956. fi
  10957. fi
  10958. fi
  10959. fi
  10960. else
  10961. if test "X$found_a" != "X"; then
  10962. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  10963. else
  10964. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  10965. fi
  10966. fi
  10967. additional_includedir=
  10968. case "$found_dir" in
  10969. */$acl_libdirstem | */$acl_libdirstem/)
  10970. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  10971. LIBPTH_PREFIX="$basedir"
  10972. additional_includedir="$basedir/include"
  10973. ;;
  10974. esac
  10975. if test "X$additional_includedir" != "X"; then
  10976. if test "X$additional_includedir" != "X/usr/include"; then
  10977. haveit=
  10978. if test "X$additional_includedir" = "X/usr/local/include"; then
  10979. if test -n "$GCC"; then
  10980. case $host_os in
  10981. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  10982. esac
  10983. fi
  10984. fi
  10985. if test -z "$haveit"; then
  10986. for x in $CPPFLAGS $INCPTH; do
  10987. acl_save_prefix="$prefix"
  10988. prefix="$acl_final_prefix"
  10989. acl_save_exec_prefix="$exec_prefix"
  10990. exec_prefix="$acl_final_exec_prefix"
  10991. eval x=\"$x\"
  10992. exec_prefix="$acl_save_exec_prefix"
  10993. prefix="$acl_save_prefix"
  10994. if test "X$x" = "X-I$additional_includedir"; then
  10995. haveit=yes
  10996. break
  10997. fi
  10998. done
  10999. if test -z "$haveit"; then
  11000. if test -d "$additional_includedir"; then
  11001. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  11002. fi
  11003. fi
  11004. fi
  11005. fi
  11006. fi
  11007. if test -n "$found_la"; then
  11008. save_libdir="$libdir"
  11009. case "$found_la" in
  11010. */* | *\\*) . "$found_la" ;;
  11011. *) . "./$found_la" ;;
  11012. esac
  11013. libdir="$save_libdir"
  11014. for dep in $dependency_libs; do
  11015. case "$dep" in
  11016. -L*)
  11017. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11018. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11019. haveit=
  11020. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11021. if test -n "$GCC"; then
  11022. case $host_os in
  11023. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11024. esac
  11025. fi
  11026. fi
  11027. if test -z "$haveit"; then
  11028. haveit=
  11029. for x in $LDFLAGS $LIBPTH; do
  11030. acl_save_prefix="$prefix"
  11031. prefix="$acl_final_prefix"
  11032. acl_save_exec_prefix="$exec_prefix"
  11033. exec_prefix="$acl_final_exec_prefix"
  11034. eval x=\"$x\"
  11035. exec_prefix="$acl_save_exec_prefix"
  11036. prefix="$acl_save_prefix"
  11037. if test "X$x" = "X-L$additional_libdir"; then
  11038. haveit=yes
  11039. break
  11040. fi
  11041. done
  11042. if test -z "$haveit"; then
  11043. if test -d "$additional_libdir"; then
  11044. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  11045. fi
  11046. fi
  11047. haveit=
  11048. for x in $LDFLAGS $LTLIBPTH; do
  11049. acl_save_prefix="$prefix"
  11050. prefix="$acl_final_prefix"
  11051. acl_save_exec_prefix="$exec_prefix"
  11052. exec_prefix="$acl_final_exec_prefix"
  11053. eval x=\"$x\"
  11054. exec_prefix="$acl_save_exec_prefix"
  11055. prefix="$acl_save_prefix"
  11056. if test "X$x" = "X-L$additional_libdir"; then
  11057. haveit=yes
  11058. break
  11059. fi
  11060. done
  11061. if test -z "$haveit"; then
  11062. if test -d "$additional_libdir"; then
  11063. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  11064. fi
  11065. fi
  11066. fi
  11067. fi
  11068. ;;
  11069. -R*)
  11070. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11071. if test "$enable_rpath" != no; then
  11072. haveit=
  11073. for x in $rpathdirs; do
  11074. if test "X$x" = "X$dir"; then
  11075. haveit=yes
  11076. break
  11077. fi
  11078. done
  11079. if test -z "$haveit"; then
  11080. rpathdirs="$rpathdirs $dir"
  11081. fi
  11082. haveit=
  11083. for x in $ltrpathdirs; do
  11084. if test "X$x" = "X$dir"; then
  11085. haveit=yes
  11086. break
  11087. fi
  11088. done
  11089. if test -z "$haveit"; then
  11090. ltrpathdirs="$ltrpathdirs $dir"
  11091. fi
  11092. fi
  11093. ;;
  11094. -l*)
  11095. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11096. ;;
  11097. *.la)
  11098. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11099. ;;
  11100. *)
  11101. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  11102. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  11103. ;;
  11104. esac
  11105. done
  11106. fi
  11107. else
  11108. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11109. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  11110. fi
  11111. fi
  11112. fi
  11113. done
  11114. done
  11115. if test "X$rpathdirs" != "X"; then
  11116. if test -n "$acl_hardcode_libdir_separator"; then
  11117. alldirs=
  11118. for found_dir in $rpathdirs; do
  11119. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11120. done
  11121. acl_save_libdir="$libdir"
  11122. libdir="$alldirs"
  11123. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11124. libdir="$acl_save_libdir"
  11125. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11126. else
  11127. for found_dir in $rpathdirs; do
  11128. acl_save_libdir="$libdir"
  11129. libdir="$found_dir"
  11130. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11131. libdir="$acl_save_libdir"
  11132. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11133. done
  11134. fi
  11135. fi
  11136. if test "X$ltrpathdirs" != "X"; then
  11137. for found_dir in $ltrpathdirs; do
  11138. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  11139. done
  11140. fi
  11141. ac_cv_libpth_libs="$LIBPTH"
  11142. ac_cv_libpth_ltlibs="$LTLIBPTH"
  11143. ac_cv_libpth_cppflags="$INCPTH"
  11144. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  11145. fi
  11146. { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  11147. echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
  11148. LIBPTH="$ac_cv_libpth_libs"
  11149. LTLIBPTH="$ac_cv_libpth_ltlibs"
  11150. INCPTH="$ac_cv_libpth_cppflags"
  11151. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  11152. for element in $INCPTH; do
  11153. haveit=
  11154. for x in $CPPFLAGS; do
  11155. acl_save_prefix="$prefix"
  11156. prefix="$acl_final_prefix"
  11157. acl_save_exec_prefix="$exec_prefix"
  11158. exec_prefix="$acl_final_exec_prefix"
  11159. eval x=\"$x\"
  11160. exec_prefix="$acl_save_exec_prefix"
  11161. prefix="$acl_save_prefix"
  11162. if test "X$x" = "X$element"; then
  11163. haveit=yes
  11164. break
  11165. fi
  11166. done
  11167. if test -z "$haveit"; then
  11168. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11169. fi
  11170. done
  11171. HAVE_LIBPTH=yes
  11172. gl_have_pth=
  11173. gl_save_LIBS="$LIBS"
  11174. LIBS="$LIBS -lpth"
  11175. cat >conftest.$ac_ext <<_ACEOF
  11176. /* confdefs.h. */
  11177. _ACEOF
  11178. cat confdefs.h >>conftest.$ac_ext
  11179. cat >>conftest.$ac_ext <<_ACEOF
  11180. /* end confdefs.h. */
  11181. #include <pth.h>
  11182. int
  11183. main ()
  11184. {
  11185. pth_self();
  11186. ;
  11187. return 0;
  11188. }
  11189. _ACEOF
  11190. rm -f conftest.$ac_objext conftest$ac_exeext
  11191. if { (ac_try="$ac_link"
  11192. case "(($ac_try" in
  11193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11194. *) ac_try_echo=$ac_try;;
  11195. esac
  11196. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11197. (eval "$ac_link") 2>conftest.er1
  11198. ac_status=$?
  11199. grep -v '^ *+' conftest.er1 >conftest.err
  11200. rm -f conftest.er1
  11201. cat conftest.err >&5
  11202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11203. (exit $ac_status); } && {
  11204. test -z "$ac_cxx_werror_flag" ||
  11205. test ! -s conftest.err
  11206. } && test -s conftest$ac_exeext &&
  11207. $as_test_x conftest$ac_exeext; then
  11208. gl_have_pth=yes
  11209. else
  11210. echo "$as_me: failed program was:" >&5
  11211. sed 's/^/| /' conftest.$ac_ext >&5
  11212. fi
  11213. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11214. conftest$ac_exeext conftest.$ac_ext
  11215. LIBS="$gl_save_LIBS"
  11216. if test -n "$gl_have_pth"; then
  11217. gl_threads_api=pth
  11218. LIBTHREAD="$LIBPTH"
  11219. LTLIBTHREAD="$LTLIBPTH"
  11220. LIBMULTITHREAD="$LIBTHREAD"
  11221. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11222. cat >>confdefs.h <<\_ACEOF
  11223. #define USE_PTH_THREADS 1
  11224. _ACEOF
  11225. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11226. if test $gl_have_weak = yes; then
  11227. cat >>confdefs.h <<\_ACEOF
  11228. #define USE_PTH_THREADS_WEAK 1
  11229. _ACEOF
  11230. LIBTHREAD=
  11231. LTLIBTHREAD=
  11232. fi
  11233. fi
  11234. else
  11235. CPPFLAGS="$gl_save_CPPFLAGS"
  11236. fi
  11237. fi
  11238. if test -z "$gl_have_pthread"; then
  11239. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  11240. if { case "$host_os" in
  11241. mingw*) true;;
  11242. *) false;;
  11243. esac
  11244. }; then
  11245. gl_threads_api=win32
  11246. cat >>confdefs.h <<\_ACEOF
  11247. #define USE_WIN32_THREADS 1
  11248. _ACEOF
  11249. fi
  11250. fi
  11251. fi
  11252. fi
  11253. { echo "$as_me:$LINENO: checking for multithread API to use" >&5
  11254. echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
  11255. { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  11256. echo "${ECHO_T}$gl_threads_api" >&6; }
  11257. use_additional=yes
  11258. acl_save_prefix="$prefix"
  11259. prefix="$acl_final_prefix"
  11260. acl_save_exec_prefix="$exec_prefix"
  11261. exec_prefix="$acl_final_exec_prefix"
  11262. eval additional_includedir=\"$includedir\"
  11263. eval additional_libdir=\"$libdir\"
  11264. exec_prefix="$acl_save_exec_prefix"
  11265. prefix="$acl_save_prefix"
  11266. # Check whether --with-libiconv-prefix was given.
  11267. if test "${with_libiconv_prefix+set}" = set; then
  11268. withval=$with_libiconv_prefix;
  11269. if test "X$withval" = "Xno"; then
  11270. use_additional=no
  11271. else
  11272. if test "X$withval" = "X"; then
  11273. acl_save_prefix="$prefix"
  11274. prefix="$acl_final_prefix"
  11275. acl_save_exec_prefix="$exec_prefix"
  11276. exec_prefix="$acl_final_exec_prefix"
  11277. eval additional_includedir=\"$includedir\"
  11278. eval additional_libdir=\"$libdir\"
  11279. exec_prefix="$acl_save_exec_prefix"
  11280. prefix="$acl_save_prefix"
  11281. else
  11282. additional_includedir="$withval/include"
  11283. additional_libdir="$withval/$acl_libdirstem"
  11284. fi
  11285. fi
  11286. fi
  11287. LIBICONV=
  11288. LTLIBICONV=
  11289. INCICONV=
  11290. LIBICONV_PREFIX=
  11291. rpathdirs=
  11292. ltrpathdirs=
  11293. names_already_handled=
  11294. names_next_round='iconv '
  11295. while test -n "$names_next_round"; do
  11296. names_this_round="$names_next_round"
  11297. names_next_round=
  11298. for name in $names_this_round; do
  11299. already_handled=
  11300. for n in $names_already_handled; do
  11301. if test "$n" = "$name"; then
  11302. already_handled=yes
  11303. break
  11304. fi
  11305. done
  11306. if test -z "$already_handled"; then
  11307. names_already_handled="$names_already_handled $name"
  11308. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11309. eval value=\"\$HAVE_LIB$uppername\"
  11310. if test -n "$value"; then
  11311. if test "$value" = yes; then
  11312. eval value=\"\$LIB$uppername\"
  11313. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  11314. eval value=\"\$LTLIB$uppername\"
  11315. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  11316. else
  11317. :
  11318. fi
  11319. else
  11320. found_dir=
  11321. found_la=
  11322. found_so=
  11323. found_a=
  11324. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11325. if test -n "$acl_shlibext"; then
  11326. shrext=".$acl_shlibext" # typically: shrext=.so
  11327. else
  11328. shrext=
  11329. fi
  11330. if test $use_additional = yes; then
  11331. dir="$additional_libdir"
  11332. if test -n "$acl_shlibext"; then
  11333. if test -f "$dir/$libname$shrext"; then
  11334. found_dir="$dir"
  11335. found_so="$dir/$libname$shrext"
  11336. else
  11337. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11338. ver=`(cd "$dir" && \
  11339. for f in "$libname$shrext".*; do echo "$f"; done \
  11340. | sed -e "s,^$libname$shrext\\\\.,," \
  11341. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11342. | sed 1q ) 2>/dev/null`
  11343. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11344. found_dir="$dir"
  11345. found_so="$dir/$libname$shrext.$ver"
  11346. fi
  11347. else
  11348. eval library_names=\"$acl_library_names_spec\"
  11349. for f in $library_names; do
  11350. if test -f "$dir/$f"; then
  11351. found_dir="$dir"
  11352. found_so="$dir/$f"
  11353. break
  11354. fi
  11355. done
  11356. fi
  11357. fi
  11358. fi
  11359. if test "X$found_dir" = "X"; then
  11360. if test -f "$dir/$libname.$acl_libext"; then
  11361. found_dir="$dir"
  11362. found_a="$dir/$libname.$acl_libext"
  11363. fi
  11364. fi
  11365. if test "X$found_dir" != "X"; then
  11366. if test -f "$dir/$libname.la"; then
  11367. found_la="$dir/$libname.la"
  11368. fi
  11369. fi
  11370. fi
  11371. if test "X$found_dir" = "X"; then
  11372. for x in $LDFLAGS $LTLIBICONV; do
  11373. acl_save_prefix="$prefix"
  11374. prefix="$acl_final_prefix"
  11375. acl_save_exec_prefix="$exec_prefix"
  11376. exec_prefix="$acl_final_exec_prefix"
  11377. eval x=\"$x\"
  11378. exec_prefix="$acl_save_exec_prefix"
  11379. prefix="$acl_save_prefix"
  11380. case "$x" in
  11381. -L*)
  11382. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11383. if test -n "$acl_shlibext"; then
  11384. if test -f "$dir/$libname$shrext"; then
  11385. found_dir="$dir"
  11386. found_so="$dir/$libname$shrext"
  11387. else
  11388. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11389. ver=`(cd "$dir" && \
  11390. for f in "$libname$shrext".*; do echo "$f"; done \
  11391. | sed -e "s,^$libname$shrext\\\\.,," \
  11392. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11393. | sed 1q ) 2>/dev/null`
  11394. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11395. found_dir="$dir"
  11396. found_so="$dir/$libname$shrext.$ver"
  11397. fi
  11398. else
  11399. eval library_names=\"$acl_library_names_spec\"
  11400. for f in $library_names; do
  11401. if test -f "$dir/$f"; then
  11402. found_dir="$dir"
  11403. found_so="$dir/$f"
  11404. break
  11405. fi
  11406. done
  11407. fi
  11408. fi
  11409. fi
  11410. if test "X$found_dir" = "X"; then
  11411. if test -f "$dir/$libname.$acl_libext"; then
  11412. found_dir="$dir"
  11413. found_a="$dir/$libname.$acl_libext"
  11414. fi
  11415. fi
  11416. if test "X$found_dir" != "X"; then
  11417. if test -f "$dir/$libname.la"; then
  11418. found_la="$dir/$libname.la"
  11419. fi
  11420. fi
  11421. ;;
  11422. esac
  11423. if test "X$found_dir" != "X"; then
  11424. break
  11425. fi
  11426. done
  11427. fi
  11428. if test "X$found_dir" != "X"; then
  11429. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  11430. if test "X$found_so" != "X"; then
  11431. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11432. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11433. else
  11434. haveit=
  11435. for x in $ltrpathdirs; do
  11436. if test "X$x" = "X$found_dir"; then
  11437. haveit=yes
  11438. break
  11439. fi
  11440. done
  11441. if test -z "$haveit"; then
  11442. ltrpathdirs="$ltrpathdirs $found_dir"
  11443. fi
  11444. if test "$acl_hardcode_direct" = yes; then
  11445. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11446. else
  11447. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11448. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11449. haveit=
  11450. for x in $rpathdirs; do
  11451. if test "X$x" = "X$found_dir"; then
  11452. haveit=yes
  11453. break
  11454. fi
  11455. done
  11456. if test -z "$haveit"; then
  11457. rpathdirs="$rpathdirs $found_dir"
  11458. fi
  11459. else
  11460. haveit=
  11461. for x in $LDFLAGS $LIBICONV; do
  11462. acl_save_prefix="$prefix"
  11463. prefix="$acl_final_prefix"
  11464. acl_save_exec_prefix="$exec_prefix"
  11465. exec_prefix="$acl_final_exec_prefix"
  11466. eval x=\"$x\"
  11467. exec_prefix="$acl_save_exec_prefix"
  11468. prefix="$acl_save_prefix"
  11469. if test "X$x" = "X-L$found_dir"; then
  11470. haveit=yes
  11471. break
  11472. fi
  11473. done
  11474. if test -z "$haveit"; then
  11475. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  11476. fi
  11477. if test "$acl_hardcode_minus_L" != no; then
  11478. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11479. else
  11480. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  11481. fi
  11482. fi
  11483. fi
  11484. fi
  11485. else
  11486. if test "X$found_a" != "X"; then
  11487. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  11488. else
  11489. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  11490. fi
  11491. fi
  11492. additional_includedir=
  11493. case "$found_dir" in
  11494. */$acl_libdirstem | */$acl_libdirstem/)
  11495. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11496. LIBICONV_PREFIX="$basedir"
  11497. additional_includedir="$basedir/include"
  11498. ;;
  11499. esac
  11500. if test "X$additional_includedir" != "X"; then
  11501. if test "X$additional_includedir" != "X/usr/include"; then
  11502. haveit=
  11503. if test "X$additional_includedir" = "X/usr/local/include"; then
  11504. if test -n "$GCC"; then
  11505. case $host_os in
  11506. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11507. esac
  11508. fi
  11509. fi
  11510. if test -z "$haveit"; then
  11511. for x in $CPPFLAGS $INCICONV; do
  11512. acl_save_prefix="$prefix"
  11513. prefix="$acl_final_prefix"
  11514. acl_save_exec_prefix="$exec_prefix"
  11515. exec_prefix="$acl_final_exec_prefix"
  11516. eval x=\"$x\"
  11517. exec_prefix="$acl_save_exec_prefix"
  11518. prefix="$acl_save_prefix"
  11519. if test "X$x" = "X-I$additional_includedir"; then
  11520. haveit=yes
  11521. break
  11522. fi
  11523. done
  11524. if test -z "$haveit"; then
  11525. if test -d "$additional_includedir"; then
  11526. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  11527. fi
  11528. fi
  11529. fi
  11530. fi
  11531. fi
  11532. if test -n "$found_la"; then
  11533. save_libdir="$libdir"
  11534. case "$found_la" in
  11535. */* | *\\*) . "$found_la" ;;
  11536. *) . "./$found_la" ;;
  11537. esac
  11538. libdir="$save_libdir"
  11539. for dep in $dependency_libs; do
  11540. case "$dep" in
  11541. -L*)
  11542. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11543. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11544. haveit=
  11545. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11546. if test -n "$GCC"; then
  11547. case $host_os in
  11548. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11549. esac
  11550. fi
  11551. fi
  11552. if test -z "$haveit"; then
  11553. haveit=
  11554. for x in $LDFLAGS $LIBICONV; do
  11555. acl_save_prefix="$prefix"
  11556. prefix="$acl_final_prefix"
  11557. acl_save_exec_prefix="$exec_prefix"
  11558. exec_prefix="$acl_final_exec_prefix"
  11559. eval x=\"$x\"
  11560. exec_prefix="$acl_save_exec_prefix"
  11561. prefix="$acl_save_prefix"
  11562. if test "X$x" = "X-L$additional_libdir"; then
  11563. haveit=yes
  11564. break
  11565. fi
  11566. done
  11567. if test -z "$haveit"; then
  11568. if test -d "$additional_libdir"; then
  11569. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  11570. fi
  11571. fi
  11572. haveit=
  11573. for x in $LDFLAGS $LTLIBICONV; do
  11574. acl_save_prefix="$prefix"
  11575. prefix="$acl_final_prefix"
  11576. acl_save_exec_prefix="$exec_prefix"
  11577. exec_prefix="$acl_final_exec_prefix"
  11578. eval x=\"$x\"
  11579. exec_prefix="$acl_save_exec_prefix"
  11580. prefix="$acl_save_prefix"
  11581. if test "X$x" = "X-L$additional_libdir"; then
  11582. haveit=yes
  11583. break
  11584. fi
  11585. done
  11586. if test -z "$haveit"; then
  11587. if test -d "$additional_libdir"; then
  11588. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  11589. fi
  11590. fi
  11591. fi
  11592. fi
  11593. ;;
  11594. -R*)
  11595. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11596. if test "$enable_rpath" != no; then
  11597. haveit=
  11598. for x in $rpathdirs; do
  11599. if test "X$x" = "X$dir"; then
  11600. haveit=yes
  11601. break
  11602. fi
  11603. done
  11604. if test -z "$haveit"; then
  11605. rpathdirs="$rpathdirs $dir"
  11606. fi
  11607. haveit=
  11608. for x in $ltrpathdirs; do
  11609. if test "X$x" = "X$dir"; then
  11610. haveit=yes
  11611. break
  11612. fi
  11613. done
  11614. if test -z "$haveit"; then
  11615. ltrpathdirs="$ltrpathdirs $dir"
  11616. fi
  11617. fi
  11618. ;;
  11619. -l*)
  11620. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11621. ;;
  11622. *.la)
  11623. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11624. ;;
  11625. *)
  11626. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  11627. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  11628. ;;
  11629. esac
  11630. done
  11631. fi
  11632. else
  11633. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  11634. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  11635. fi
  11636. fi
  11637. fi
  11638. done
  11639. done
  11640. if test "X$rpathdirs" != "X"; then
  11641. if test -n "$acl_hardcode_libdir_separator"; then
  11642. alldirs=
  11643. for found_dir in $rpathdirs; do
  11644. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11645. done
  11646. acl_save_libdir="$libdir"
  11647. libdir="$alldirs"
  11648. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11649. libdir="$acl_save_libdir"
  11650. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  11651. else
  11652. for found_dir in $rpathdirs; do
  11653. acl_save_libdir="$libdir"
  11654. libdir="$found_dir"
  11655. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11656. libdir="$acl_save_libdir"
  11657. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  11658. done
  11659. fi
  11660. fi
  11661. if test "X$ltrpathdirs" != "X"; then
  11662. for found_dir in $ltrpathdirs; do
  11663. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  11664. done
  11665. fi
  11666. cat >conftest.$ac_ext <<_ACEOF
  11667. /* confdefs.h. */
  11668. _ACEOF
  11669. cat confdefs.h >>conftest.$ac_ext
  11670. cat >>conftest.$ac_ext <<_ACEOF
  11671. /* end confdefs.h. */
  11672. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  11673. int
  11674. main ()
  11675. {
  11676. ;
  11677. return 0;
  11678. }
  11679. _ACEOF
  11680. rm -f conftest.$ac_objext conftest$ac_exeext
  11681. if { (ac_try="$ac_link"
  11682. case "(($ac_try" in
  11683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11684. *) ac_try_echo=$ac_try;;
  11685. esac
  11686. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11687. (eval "$ac_link") 2>conftest.er1
  11688. ac_status=$?
  11689. grep -v '^ *+' conftest.er1 >conftest.err
  11690. rm -f conftest.er1
  11691. cat conftest.err >&5
  11692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11693. (exit $ac_status); } && {
  11694. test -z "$ac_cxx_werror_flag" ||
  11695. test ! -s conftest.err
  11696. } && test -s conftest$ac_exeext &&
  11697. $as_test_x conftest$ac_exeext; then
  11698. cat >>confdefs.h <<\_ACEOF
  11699. #define HAVE_BUILTIN_EXPECT 1
  11700. _ACEOF
  11701. else
  11702. echo "$as_me: failed program was:" >&5
  11703. sed 's/^/| /' conftest.$ac_ext >&5
  11704. fi
  11705. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11706. conftest$ac_exeext conftest.$ac_ext
  11707. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  11708. do
  11709. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11710. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11711. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  11712. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  11713. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11714. echo $ECHO_N "(cached) $ECHO_C" >&6
  11715. fi
  11716. ac_res=`eval echo '${'$as_ac_Header'}'`
  11717. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11718. echo "${ECHO_T}$ac_res" >&6; }
  11719. else
  11720. # Is the header compilable?
  11721. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11722. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  11723. cat >conftest.$ac_ext <<_ACEOF
  11724. /* confdefs.h. */
  11725. _ACEOF
  11726. cat confdefs.h >>conftest.$ac_ext
  11727. cat >>conftest.$ac_ext <<_ACEOF
  11728. /* end confdefs.h. */
  11729. $ac_includes_default
  11730. #include <$ac_header>
  11731. _ACEOF
  11732. rm -f conftest.$ac_objext
  11733. if { (ac_try="$ac_compile"
  11734. case "(($ac_try" in
  11735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11736. *) ac_try_echo=$ac_try;;
  11737. esac
  11738. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11739. (eval "$ac_compile") 2>conftest.er1
  11740. ac_status=$?
  11741. grep -v '^ *+' conftest.er1 >conftest.err
  11742. rm -f conftest.er1
  11743. cat conftest.err >&5
  11744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11745. (exit $ac_status); } && {
  11746. test -z "$ac_cxx_werror_flag" ||
  11747. test ! -s conftest.err
  11748. } && test -s conftest.$ac_objext; then
  11749. ac_header_compiler=yes
  11750. else
  11751. echo "$as_me: failed program was:" >&5
  11752. sed 's/^/| /' conftest.$ac_ext >&5
  11753. ac_header_compiler=no
  11754. fi
  11755. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11756. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11757. echo "${ECHO_T}$ac_header_compiler" >&6; }
  11758. # Is the header present?
  11759. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11760. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  11761. cat >conftest.$ac_ext <<_ACEOF
  11762. /* confdefs.h. */
  11763. _ACEOF
  11764. cat confdefs.h >>conftest.$ac_ext
  11765. cat >>conftest.$ac_ext <<_ACEOF
  11766. /* end confdefs.h. */
  11767. #include <$ac_header>
  11768. _ACEOF
  11769. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11770. case "(($ac_try" in
  11771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11772. *) ac_try_echo=$ac_try;;
  11773. esac
  11774. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11775. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11776. ac_status=$?
  11777. grep -v '^ *+' conftest.er1 >conftest.err
  11778. rm -f conftest.er1
  11779. cat conftest.err >&5
  11780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11781. (exit $ac_status); } >/dev/null && {
  11782. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11783. test ! -s conftest.err
  11784. }; then
  11785. ac_header_preproc=yes
  11786. else
  11787. echo "$as_me: failed program was:" >&5
  11788. sed 's/^/| /' conftest.$ac_ext >&5
  11789. ac_header_preproc=no
  11790. fi
  11791. rm -f conftest.err conftest.$ac_ext
  11792. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11793. echo "${ECHO_T}$ac_header_preproc" >&6; }
  11794. # So? What about this header?
  11795. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11796. yes:no: )
  11797. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11798. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11799. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11800. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11801. ac_header_preproc=yes
  11802. ;;
  11803. no:yes:* )
  11804. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11805. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11806. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11807. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11808. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11809. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11810. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11811. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11812. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11813. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11814. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11815. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11816. ( cat <<\_ASBOX
  11817. ## ----------------------------------------------- ##
  11818. ## Report this to t-tujikawa@users.sourceforge.net ##
  11819. ## ----------------------------------------------- ##
  11820. _ASBOX
  11821. ) | sed "s/^/$as_me: WARNING: /" >&2
  11822. ;;
  11823. esac
  11824. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  11825. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  11826. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11827. echo $ECHO_N "(cached) $ECHO_C" >&6
  11828. else
  11829. eval "$as_ac_Header=\$ac_header_preproc"
  11830. fi
  11831. ac_res=`eval echo '${'$as_ac_Header'}'`
  11832. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11833. echo "${ECHO_T}$ac_res" >&6; }
  11834. fi
  11835. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  11836. cat >>confdefs.h <<_ACEOF
  11837. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11838. _ACEOF
  11839. fi
  11840. done
  11841. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  11842. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  11843. argz_next __fsetlocking
  11844. do
  11845. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11846. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11847. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11848. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11849. echo $ECHO_N "(cached) $ECHO_C" >&6
  11850. else
  11851. cat >conftest.$ac_ext <<_ACEOF
  11852. /* confdefs.h. */
  11853. _ACEOF
  11854. cat confdefs.h >>conftest.$ac_ext
  11855. cat >>conftest.$ac_ext <<_ACEOF
  11856. /* end confdefs.h. */
  11857. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11858. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11859. #define $ac_func innocuous_$ac_func
  11860. /* System header to define __stub macros and hopefully few prototypes,
  11861. which can conflict with char $ac_func (); below.
  11862. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11863. <limits.h> exists even on freestanding compilers. */
  11864. #ifdef __STDC__
  11865. # include <limits.h>
  11866. #else
  11867. # include <assert.h>
  11868. #endif
  11869. #undef $ac_func
  11870. /* Override any GCC internal prototype to avoid an error.
  11871. Use char because int might match the return type of a GCC
  11872. builtin and then its argument prototype would still apply. */
  11873. #ifdef __cplusplus
  11874. extern "C"
  11875. #endif
  11876. char $ac_func ();
  11877. /* The GNU C library defines this for functions which it implements
  11878. to always fail with ENOSYS. Some functions are actually named
  11879. something starting with __ and the normal name is an alias. */
  11880. #if defined __stub_$ac_func || defined __stub___$ac_func
  11881. choke me
  11882. #endif
  11883. int
  11884. main ()
  11885. {
  11886. return $ac_func ();
  11887. ;
  11888. return 0;
  11889. }
  11890. _ACEOF
  11891. rm -f conftest.$ac_objext conftest$ac_exeext
  11892. if { (ac_try="$ac_link"
  11893. case "(($ac_try" in
  11894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11895. *) ac_try_echo=$ac_try;;
  11896. esac
  11897. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11898. (eval "$ac_link") 2>conftest.er1
  11899. ac_status=$?
  11900. grep -v '^ *+' conftest.er1 >conftest.err
  11901. rm -f conftest.er1
  11902. cat conftest.err >&5
  11903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11904. (exit $ac_status); } && {
  11905. test -z "$ac_cxx_werror_flag" ||
  11906. test ! -s conftest.err
  11907. } && test -s conftest$ac_exeext &&
  11908. $as_test_x conftest$ac_exeext; then
  11909. eval "$as_ac_var=yes"
  11910. else
  11911. echo "$as_me: failed program was:" >&5
  11912. sed 's/^/| /' conftest.$ac_ext >&5
  11913. eval "$as_ac_var=no"
  11914. fi
  11915. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11916. conftest$ac_exeext conftest.$ac_ext
  11917. fi
  11918. ac_res=`eval echo '${'$as_ac_var'}'`
  11919. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11920. echo "${ECHO_T}$ac_res" >&6; }
  11921. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11922. cat >>confdefs.h <<_ACEOF
  11923. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11924. _ACEOF
  11925. fi
  11926. done
  11927. { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  11928. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
  11929. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  11930. echo $ECHO_N "(cached) $ECHO_C" >&6
  11931. else
  11932. cat >conftest.$ac_ext <<_ACEOF
  11933. /* confdefs.h. */
  11934. _ACEOF
  11935. cat confdefs.h >>conftest.$ac_ext
  11936. cat >>conftest.$ac_ext <<_ACEOF
  11937. /* end confdefs.h. */
  11938. #include <stdio.h>
  11939. int
  11940. main ()
  11941. {
  11942. #ifndef feof_unlocked
  11943. char *p = (char *) feof_unlocked;
  11944. #endif
  11945. ;
  11946. return 0;
  11947. }
  11948. _ACEOF
  11949. rm -f conftest.$ac_objext
  11950. if { (ac_try="$ac_compile"
  11951. case "(($ac_try" in
  11952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11953. *) ac_try_echo=$ac_try;;
  11954. esac
  11955. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11956. (eval "$ac_compile") 2>conftest.er1
  11957. ac_status=$?
  11958. grep -v '^ *+' conftest.er1 >conftest.err
  11959. rm -f conftest.er1
  11960. cat conftest.err >&5
  11961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11962. (exit $ac_status); } && {
  11963. test -z "$ac_cxx_werror_flag" ||
  11964. test ! -s conftest.err
  11965. } && test -s conftest.$ac_objext; then
  11966. ac_cv_have_decl_feof_unlocked=yes
  11967. else
  11968. echo "$as_me: failed program was:" >&5
  11969. sed 's/^/| /' conftest.$ac_ext >&5
  11970. ac_cv_have_decl_feof_unlocked=no
  11971. fi
  11972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11973. fi
  11974. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  11975. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
  11976. if test $ac_cv_have_decl_feof_unlocked = yes; then
  11977. gt_value=1
  11978. else
  11979. gt_value=0
  11980. fi
  11981. cat >>confdefs.h <<_ACEOF
  11982. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  11983. _ACEOF
  11984. { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  11985. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
  11986. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  11987. echo $ECHO_N "(cached) $ECHO_C" >&6
  11988. else
  11989. cat >conftest.$ac_ext <<_ACEOF
  11990. /* confdefs.h. */
  11991. _ACEOF
  11992. cat confdefs.h >>conftest.$ac_ext
  11993. cat >>conftest.$ac_ext <<_ACEOF
  11994. /* end confdefs.h. */
  11995. #include <stdio.h>
  11996. int
  11997. main ()
  11998. {
  11999. #ifndef fgets_unlocked
  12000. char *p = (char *) fgets_unlocked;
  12001. #endif
  12002. ;
  12003. return 0;
  12004. }
  12005. _ACEOF
  12006. rm -f conftest.$ac_objext
  12007. if { (ac_try="$ac_compile"
  12008. case "(($ac_try" in
  12009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12010. *) ac_try_echo=$ac_try;;
  12011. esac
  12012. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12013. (eval "$ac_compile") 2>conftest.er1
  12014. ac_status=$?
  12015. grep -v '^ *+' conftest.er1 >conftest.err
  12016. rm -f conftest.er1
  12017. cat conftest.err >&5
  12018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12019. (exit $ac_status); } && {
  12020. test -z "$ac_cxx_werror_flag" ||
  12021. test ! -s conftest.err
  12022. } && test -s conftest.$ac_objext; then
  12023. ac_cv_have_decl_fgets_unlocked=yes
  12024. else
  12025. echo "$as_me: failed program was:" >&5
  12026. sed 's/^/| /' conftest.$ac_ext >&5
  12027. ac_cv_have_decl_fgets_unlocked=no
  12028. fi
  12029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12030. fi
  12031. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  12032. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
  12033. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  12034. gt_value=1
  12035. else
  12036. gt_value=0
  12037. fi
  12038. cat >>confdefs.h <<_ACEOF
  12039. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  12040. _ACEOF
  12041. am_save_CPPFLAGS="$CPPFLAGS"
  12042. for element in $INCICONV; do
  12043. haveit=
  12044. for x in $CPPFLAGS; do
  12045. acl_save_prefix="$prefix"
  12046. prefix="$acl_final_prefix"
  12047. acl_save_exec_prefix="$exec_prefix"
  12048. exec_prefix="$acl_final_exec_prefix"
  12049. eval x=\"$x\"
  12050. exec_prefix="$acl_save_exec_prefix"
  12051. prefix="$acl_save_prefix"
  12052. if test "X$x" = "X$element"; then
  12053. haveit=yes
  12054. break
  12055. fi
  12056. done
  12057. if test -z "$haveit"; then
  12058. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12059. fi
  12060. done
  12061. { echo "$as_me:$LINENO: checking for iconv" >&5
  12062. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  12063. if test "${am_cv_func_iconv+set}" = set; then
  12064. echo $ECHO_N "(cached) $ECHO_C" >&6
  12065. else
  12066. am_cv_func_iconv="no, consider installing GNU libiconv"
  12067. am_cv_lib_iconv=no
  12068. cat >conftest.$ac_ext <<_ACEOF
  12069. /* confdefs.h. */
  12070. _ACEOF
  12071. cat confdefs.h >>conftest.$ac_ext
  12072. cat >>conftest.$ac_ext <<_ACEOF
  12073. /* end confdefs.h. */
  12074. #include <stdlib.h>
  12075. #include <iconv.h>
  12076. int
  12077. main ()
  12078. {
  12079. iconv_t cd = iconv_open("","");
  12080. iconv(cd,NULL,NULL,NULL,NULL);
  12081. iconv_close(cd);
  12082. ;
  12083. return 0;
  12084. }
  12085. _ACEOF
  12086. rm -f conftest.$ac_objext conftest$ac_exeext
  12087. if { (ac_try="$ac_link"
  12088. case "(($ac_try" in
  12089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12090. *) ac_try_echo=$ac_try;;
  12091. esac
  12092. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12093. (eval "$ac_link") 2>conftest.er1
  12094. ac_status=$?
  12095. grep -v '^ *+' conftest.er1 >conftest.err
  12096. rm -f conftest.er1
  12097. cat conftest.err >&5
  12098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12099. (exit $ac_status); } && {
  12100. test -z "$ac_cxx_werror_flag" ||
  12101. test ! -s conftest.err
  12102. } && test -s conftest$ac_exeext &&
  12103. $as_test_x conftest$ac_exeext; then
  12104. am_cv_func_iconv=yes
  12105. else
  12106. echo "$as_me: failed program was:" >&5
  12107. sed 's/^/| /' conftest.$ac_ext >&5
  12108. fi
  12109. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12110. conftest$ac_exeext conftest.$ac_ext
  12111. if test "$am_cv_func_iconv" != yes; then
  12112. am_save_LIBS="$LIBS"
  12113. LIBS="$LIBS $LIBICONV"
  12114. cat >conftest.$ac_ext <<_ACEOF
  12115. /* confdefs.h. */
  12116. _ACEOF
  12117. cat confdefs.h >>conftest.$ac_ext
  12118. cat >>conftest.$ac_ext <<_ACEOF
  12119. /* end confdefs.h. */
  12120. #include <stdlib.h>
  12121. #include <iconv.h>
  12122. int
  12123. main ()
  12124. {
  12125. iconv_t cd = iconv_open("","");
  12126. iconv(cd,NULL,NULL,NULL,NULL);
  12127. iconv_close(cd);
  12128. ;
  12129. return 0;
  12130. }
  12131. _ACEOF
  12132. rm -f conftest.$ac_objext conftest$ac_exeext
  12133. if { (ac_try="$ac_link"
  12134. case "(($ac_try" in
  12135. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12136. *) ac_try_echo=$ac_try;;
  12137. esac
  12138. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12139. (eval "$ac_link") 2>conftest.er1
  12140. ac_status=$?
  12141. grep -v '^ *+' conftest.er1 >conftest.err
  12142. rm -f conftest.er1
  12143. cat conftest.err >&5
  12144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12145. (exit $ac_status); } && {
  12146. test -z "$ac_cxx_werror_flag" ||
  12147. test ! -s conftest.err
  12148. } && test -s conftest$ac_exeext &&
  12149. $as_test_x conftest$ac_exeext; then
  12150. am_cv_lib_iconv=yes
  12151. am_cv_func_iconv=yes
  12152. else
  12153. echo "$as_me: failed program was:" >&5
  12154. sed 's/^/| /' conftest.$ac_ext >&5
  12155. fi
  12156. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12157. conftest$ac_exeext conftest.$ac_ext
  12158. LIBS="$am_save_LIBS"
  12159. fi
  12160. fi
  12161. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  12162. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  12163. if test "$am_cv_func_iconv" = yes; then
  12164. { echo "$as_me:$LINENO: checking for working iconv" >&5
  12165. echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
  12166. if test "${am_cv_func_iconv_works+set}" = set; then
  12167. echo $ECHO_N "(cached) $ECHO_C" >&6
  12168. else
  12169. am_save_LIBS="$LIBS"
  12170. if test $am_cv_lib_iconv = yes; then
  12171. LIBS="$LIBS $LIBICONV"
  12172. fi
  12173. if test "$cross_compiling" = yes; then
  12174. case "$host_os" in
  12175. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  12176. *) am_cv_func_iconv_works="guessing yes" ;;
  12177. esac
  12178. else
  12179. cat >conftest.$ac_ext <<_ACEOF
  12180. /* confdefs.h. */
  12181. _ACEOF
  12182. cat confdefs.h >>conftest.$ac_ext
  12183. cat >>conftest.$ac_ext <<_ACEOF
  12184. /* end confdefs.h. */
  12185. #include <iconv.h>
  12186. #include <string.h>
  12187. int main ()
  12188. {
  12189. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  12190. returns. */
  12191. {
  12192. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  12193. if (cd_utf8_to_88591 != (iconv_t)(-1))
  12194. {
  12195. static const char input[] = "\342\202\254"; /* EURO SIGN */
  12196. char buf[10];
  12197. const char *inptr = input;
  12198. size_t inbytesleft = strlen (input);
  12199. char *outptr = buf;
  12200. size_t outbytesleft = sizeof (buf);
  12201. size_t res = iconv (cd_utf8_to_88591,
  12202. (char **) &inptr, &inbytesleft,
  12203. &outptr, &outbytesleft);
  12204. if (res == 0)
  12205. return 1;
  12206. }
  12207. }
  12208. #if 0 /* This bug could be worked around by the caller. */
  12209. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  12210. {
  12211. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  12212. if (cd_88591_to_utf8 != (iconv_t)(-1))
  12213. {
  12214. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  12215. char buf[50];
  12216. const char *inptr = input;
  12217. size_t inbytesleft = strlen (input);
  12218. char *outptr = buf;
  12219. size_t outbytesleft = sizeof (buf);
  12220. size_t res = iconv (cd_88591_to_utf8,
  12221. (char **) &inptr, &inbytesleft,
  12222. &outptr, &outbytesleft);
  12223. if ((int)res > 0)
  12224. return 1;
  12225. }
  12226. }
  12227. #endif
  12228. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  12229. provided. */
  12230. if (/* Try standardized names. */
  12231. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  12232. /* Try IRIX, OSF/1 names. */
  12233. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  12234. /* Try AIX names. */
  12235. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  12236. /* Try HP-UX names. */
  12237. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  12238. return 1;
  12239. return 0;
  12240. }
  12241. _ACEOF
  12242. rm -f conftest$ac_exeext
  12243. if { (ac_try="$ac_link"
  12244. case "(($ac_try" in
  12245. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12246. *) ac_try_echo=$ac_try;;
  12247. esac
  12248. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12249. (eval "$ac_link") 2>&5
  12250. ac_status=$?
  12251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12252. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12253. { (case "(($ac_try" in
  12254. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12255. *) ac_try_echo=$ac_try;;
  12256. esac
  12257. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12258. (eval "$ac_try") 2>&5
  12259. ac_status=$?
  12260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12261. (exit $ac_status); }; }; then
  12262. am_cv_func_iconv_works=yes
  12263. else
  12264. echo "$as_me: program exited with status $ac_status" >&5
  12265. echo "$as_me: failed program was:" >&5
  12266. sed 's/^/| /' conftest.$ac_ext >&5
  12267. ( exit $ac_status )
  12268. am_cv_func_iconv_works=no
  12269. fi
  12270. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12271. fi
  12272. LIBS="$am_save_LIBS"
  12273. fi
  12274. { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  12275. echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
  12276. case "$am_cv_func_iconv_works" in
  12277. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  12278. *) am_func_iconv=yes ;;
  12279. esac
  12280. else
  12281. am_func_iconv=no am_cv_lib_iconv=no
  12282. fi
  12283. if test "$am_func_iconv" = yes; then
  12284. cat >>confdefs.h <<\_ACEOF
  12285. #define HAVE_ICONV 1
  12286. _ACEOF
  12287. fi
  12288. if test "$am_cv_lib_iconv" = yes; then
  12289. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  12290. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  12291. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  12292. echo "${ECHO_T}$LIBICONV" >&6; }
  12293. else
  12294. CPPFLAGS="$am_save_CPPFLAGS"
  12295. LIBICONV=
  12296. LTLIBICONV=
  12297. fi
  12298. if test "$am_cv_func_iconv" = yes; then
  12299. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  12300. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  12301. if test "${am_cv_proto_iconv+set}" = set; then
  12302. echo $ECHO_N "(cached) $ECHO_C" >&6
  12303. else
  12304. cat >conftest.$ac_ext <<_ACEOF
  12305. /* confdefs.h. */
  12306. _ACEOF
  12307. cat confdefs.h >>conftest.$ac_ext
  12308. cat >>conftest.$ac_ext <<_ACEOF
  12309. /* end confdefs.h. */
  12310. #include <stdlib.h>
  12311. #include <iconv.h>
  12312. extern
  12313. #ifdef __cplusplus
  12314. "C"
  12315. #endif
  12316. #if defined(__STDC__) || defined(__cplusplus)
  12317. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  12318. #else
  12319. size_t iconv();
  12320. #endif
  12321. int
  12322. main ()
  12323. {
  12324. ;
  12325. return 0;
  12326. }
  12327. _ACEOF
  12328. rm -f conftest.$ac_objext
  12329. if { (ac_try="$ac_compile"
  12330. case "(($ac_try" in
  12331. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12332. *) ac_try_echo=$ac_try;;
  12333. esac
  12334. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12335. (eval "$ac_compile") 2>conftest.er1
  12336. ac_status=$?
  12337. grep -v '^ *+' conftest.er1 >conftest.err
  12338. rm -f conftest.er1
  12339. cat conftest.err >&5
  12340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12341. (exit $ac_status); } && {
  12342. test -z "$ac_cxx_werror_flag" ||
  12343. test ! -s conftest.err
  12344. } && test -s conftest.$ac_objext; then
  12345. am_cv_proto_iconv_arg1=""
  12346. else
  12347. echo "$as_me: failed program was:" >&5
  12348. sed 's/^/| /' conftest.$ac_ext >&5
  12349. am_cv_proto_iconv_arg1="const"
  12350. fi
  12351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12352. 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);"
  12353. fi
  12354. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  12355. { echo "$as_me:$LINENO: result: ${ac_t:-
  12356. }$am_cv_proto_iconv" >&5
  12357. echo "${ECHO_T}${ac_t:-
  12358. }$am_cv_proto_iconv" >&6; }
  12359. cat >>confdefs.h <<_ACEOF
  12360. #define ICONV_CONST $am_cv_proto_iconv_arg1
  12361. _ACEOF
  12362. fi
  12363. { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  12364. echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
  12365. if test "${gt_cv_nl_locale_name+set}" = set; then
  12366. echo $ECHO_N "(cached) $ECHO_C" >&6
  12367. else
  12368. cat >conftest.$ac_ext <<_ACEOF
  12369. /* confdefs.h. */
  12370. _ACEOF
  12371. cat confdefs.h >>conftest.$ac_ext
  12372. cat >>conftest.$ac_ext <<_ACEOF
  12373. /* end confdefs.h. */
  12374. #include <langinfo.h>
  12375. #include <locale.h>
  12376. int
  12377. main ()
  12378. {
  12379. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  12380. return !cs;
  12381. ;
  12382. return 0;
  12383. }
  12384. _ACEOF
  12385. rm -f conftest.$ac_objext conftest$ac_exeext
  12386. if { (ac_try="$ac_link"
  12387. case "(($ac_try" in
  12388. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12389. *) ac_try_echo=$ac_try;;
  12390. esac
  12391. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12392. (eval "$ac_link") 2>conftest.er1
  12393. ac_status=$?
  12394. grep -v '^ *+' conftest.er1 >conftest.err
  12395. rm -f conftest.er1
  12396. cat conftest.err >&5
  12397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12398. (exit $ac_status); } && {
  12399. test -z "$ac_cxx_werror_flag" ||
  12400. test ! -s conftest.err
  12401. } && test -s conftest$ac_exeext &&
  12402. $as_test_x conftest$ac_exeext; then
  12403. gt_cv_nl_locale_name=yes
  12404. else
  12405. echo "$as_me: failed program was:" >&5
  12406. sed 's/^/| /' conftest.$ac_ext >&5
  12407. gt_cv_nl_locale_name=no
  12408. fi
  12409. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12410. conftest$ac_exeext conftest.$ac_ext
  12411. fi
  12412. { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  12413. echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
  12414. if test $gt_cv_nl_locale_name = yes; then
  12415. cat >>confdefs.h <<\_ACEOF
  12416. #define HAVE_NL_LOCALE_NAME 1
  12417. _ACEOF
  12418. fi
  12419. for ac_prog in bison
  12420. do
  12421. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12422. set dummy $ac_prog; ac_word=$2
  12423. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  12424. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12425. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  12426. echo $ECHO_N "(cached) $ECHO_C" >&6
  12427. else
  12428. if test -n "$INTLBISON"; then
  12429. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  12430. else
  12431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12432. for as_dir in $PATH
  12433. do
  12434. IFS=$as_save_IFS
  12435. test -z "$as_dir" && as_dir=.
  12436. for ac_exec_ext in '' $ac_executable_extensions; do
  12437. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12438. ac_cv_prog_INTLBISON="$ac_prog"
  12439. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12440. break 2
  12441. fi
  12442. done
  12443. done
  12444. IFS=$as_save_IFS
  12445. fi
  12446. fi
  12447. INTLBISON=$ac_cv_prog_INTLBISON
  12448. if test -n "$INTLBISON"; then
  12449. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  12450. echo "${ECHO_T}$INTLBISON" >&6; }
  12451. else
  12452. { echo "$as_me:$LINENO: result: no" >&5
  12453. echo "${ECHO_T}no" >&6; }
  12454. fi
  12455. test -n "$INTLBISON" && break
  12456. done
  12457. if test -z "$INTLBISON"; then
  12458. ac_verc_fail=yes
  12459. else
  12460. { echo "$as_me:$LINENO: checking version of bison" >&5
  12461. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  12462. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  12463. case $ac_prog_version in
  12464. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  12465. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  12466. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  12467. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  12468. esac
  12469. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  12470. echo "${ECHO_T}$ac_prog_version" >&6; }
  12471. fi
  12472. if test $ac_verc_fail = yes; then
  12473. INTLBISON=:
  12474. fi
  12475. { echo "$as_me:$LINENO: checking for long long int" >&5
  12476. echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
  12477. if test "${ac_cv_type_long_long_int+set}" = set; then
  12478. echo $ECHO_N "(cached) $ECHO_C" >&6
  12479. else
  12480. cat >conftest.$ac_ext <<_ACEOF
  12481. /* confdefs.h. */
  12482. _ACEOF
  12483. cat confdefs.h >>conftest.$ac_ext
  12484. cat >>conftest.$ac_ext <<_ACEOF
  12485. /* end confdefs.h. */
  12486. /* Test preprocessor. */
  12487. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  12488. error in preprocessor;
  12489. #endif
  12490. #if ! (18446744073709551615ULL <= -1ull)
  12491. error in preprocessor;
  12492. #endif
  12493. /* Test literals. */
  12494. long long int ll = 9223372036854775807ll;
  12495. long long int nll = -9223372036854775807LL;
  12496. unsigned long long int ull = 18446744073709551615ULL;
  12497. /* Test constant expressions. */
  12498. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  12499. ? 1 : -1)];
  12500. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  12501. ? 1 : -1)];
  12502. int i = 63;
  12503. int
  12504. main ()
  12505. {
  12506. /* Test availability of runtime routines for shift and division. */
  12507. long long int llmax = 9223372036854775807ll;
  12508. unsigned long long int ullmax = 18446744073709551615ull;
  12509. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  12510. | (llmax / ll) | (llmax % ll)
  12511. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  12512. | (ullmax / ull) | (ullmax % ull));
  12513. ;
  12514. return 0;
  12515. }
  12516. _ACEOF
  12517. rm -f conftest.$ac_objext conftest$ac_exeext
  12518. if { (ac_try="$ac_link"
  12519. case "(($ac_try" in
  12520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12521. *) ac_try_echo=$ac_try;;
  12522. esac
  12523. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12524. (eval "$ac_link") 2>conftest.er1
  12525. ac_status=$?
  12526. grep -v '^ *+' conftest.er1 >conftest.err
  12527. rm -f conftest.er1
  12528. cat conftest.err >&5
  12529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12530. (exit $ac_status); } && {
  12531. test -z "$ac_cxx_werror_flag" ||
  12532. test ! -s conftest.err
  12533. } && test -s conftest$ac_exeext &&
  12534. $as_test_x conftest$ac_exeext; then
  12535. if test "$cross_compiling" = yes; then
  12536. ac_cv_type_long_long_int=yes
  12537. else
  12538. cat >conftest.$ac_ext <<_ACEOF
  12539. /* confdefs.h. */
  12540. _ACEOF
  12541. cat confdefs.h >>conftest.$ac_ext
  12542. cat >>conftest.$ac_ext <<_ACEOF
  12543. /* end confdefs.h. */
  12544. #include <limits.h>
  12545. #ifndef LLONG_MAX
  12546. # define HALF \
  12547. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  12548. # define LLONG_MAX (HALF - 1 + HALF)
  12549. #endif
  12550. int
  12551. main ()
  12552. {
  12553. long long int n = 1;
  12554. int i;
  12555. for (i = 0; ; i++)
  12556. {
  12557. long long int m = n << i;
  12558. if (m >> i != n)
  12559. return 1;
  12560. if (LLONG_MAX / 2 < m)
  12561. break;
  12562. }
  12563. return 0;
  12564. ;
  12565. return 0;
  12566. }
  12567. _ACEOF
  12568. rm -f conftest$ac_exeext
  12569. if { (ac_try="$ac_link"
  12570. case "(($ac_try" in
  12571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12572. *) ac_try_echo=$ac_try;;
  12573. esac
  12574. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12575. (eval "$ac_link") 2>&5
  12576. ac_status=$?
  12577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12578. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12579. { (case "(($ac_try" in
  12580. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12581. *) ac_try_echo=$ac_try;;
  12582. esac
  12583. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12584. (eval "$ac_try") 2>&5
  12585. ac_status=$?
  12586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12587. (exit $ac_status); }; }; then
  12588. ac_cv_type_long_long_int=yes
  12589. else
  12590. echo "$as_me: program exited with status $ac_status" >&5
  12591. echo "$as_me: failed program was:" >&5
  12592. sed 's/^/| /' conftest.$ac_ext >&5
  12593. ( exit $ac_status )
  12594. ac_cv_type_long_long_int=no
  12595. fi
  12596. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12597. fi
  12598. else
  12599. echo "$as_me: failed program was:" >&5
  12600. sed 's/^/| /' conftest.$ac_ext >&5
  12601. ac_cv_type_long_long_int=no
  12602. fi
  12603. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12604. conftest$ac_exeext conftest.$ac_ext
  12605. fi
  12606. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  12607. echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
  12608. if test $ac_cv_type_long_long_int = yes; then
  12609. cat >>confdefs.h <<\_ACEOF
  12610. #define HAVE_LONG_LONG_INT 1
  12611. _ACEOF
  12612. fi
  12613. { echo "$as_me:$LINENO: checking for wchar_t" >&5
  12614. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
  12615. if test "${gt_cv_c_wchar_t+set}" = set; then
  12616. echo $ECHO_N "(cached) $ECHO_C" >&6
  12617. else
  12618. cat >conftest.$ac_ext <<_ACEOF
  12619. /* confdefs.h. */
  12620. _ACEOF
  12621. cat confdefs.h >>conftest.$ac_ext
  12622. cat >>conftest.$ac_ext <<_ACEOF
  12623. /* end confdefs.h. */
  12624. #include <stddef.h>
  12625. wchar_t foo = (wchar_t)'\0';
  12626. int
  12627. main ()
  12628. {
  12629. ;
  12630. return 0;
  12631. }
  12632. _ACEOF
  12633. rm -f conftest.$ac_objext
  12634. if { (ac_try="$ac_compile"
  12635. case "(($ac_try" in
  12636. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12637. *) ac_try_echo=$ac_try;;
  12638. esac
  12639. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12640. (eval "$ac_compile") 2>conftest.er1
  12641. ac_status=$?
  12642. grep -v '^ *+' conftest.er1 >conftest.err
  12643. rm -f conftest.er1
  12644. cat conftest.err >&5
  12645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12646. (exit $ac_status); } && {
  12647. test -z "$ac_cxx_werror_flag" ||
  12648. test ! -s conftest.err
  12649. } && test -s conftest.$ac_objext; then
  12650. gt_cv_c_wchar_t=yes
  12651. else
  12652. echo "$as_me: failed program was:" >&5
  12653. sed 's/^/| /' conftest.$ac_ext >&5
  12654. gt_cv_c_wchar_t=no
  12655. fi
  12656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12657. fi
  12658. { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  12659. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
  12660. if test $gt_cv_c_wchar_t = yes; then
  12661. cat >>confdefs.h <<\_ACEOF
  12662. #define HAVE_WCHAR_T 1
  12663. _ACEOF
  12664. fi
  12665. { echo "$as_me:$LINENO: checking for wint_t" >&5
  12666. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
  12667. if test "${gt_cv_c_wint_t+set}" = set; then
  12668. echo $ECHO_N "(cached) $ECHO_C" >&6
  12669. else
  12670. cat >conftest.$ac_ext <<_ACEOF
  12671. /* confdefs.h. */
  12672. _ACEOF
  12673. cat confdefs.h >>conftest.$ac_ext
  12674. cat >>conftest.$ac_ext <<_ACEOF
  12675. /* end confdefs.h. */
  12676. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  12677. <wchar.h>.
  12678. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  12679. before <wchar.h>. */
  12680. #include <stddef.h>
  12681. #include <stdio.h>
  12682. #include <time.h>
  12683. #include <wchar.h>
  12684. wint_t foo = (wchar_t)'\0';
  12685. int
  12686. main ()
  12687. {
  12688. ;
  12689. return 0;
  12690. }
  12691. _ACEOF
  12692. rm -f conftest.$ac_objext
  12693. if { (ac_try="$ac_compile"
  12694. case "(($ac_try" in
  12695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12696. *) ac_try_echo=$ac_try;;
  12697. esac
  12698. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12699. (eval "$ac_compile") 2>conftest.er1
  12700. ac_status=$?
  12701. grep -v '^ *+' conftest.er1 >conftest.err
  12702. rm -f conftest.er1
  12703. cat conftest.err >&5
  12704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12705. (exit $ac_status); } && {
  12706. test -z "$ac_cxx_werror_flag" ||
  12707. test ! -s conftest.err
  12708. } && test -s conftest.$ac_objext; then
  12709. gt_cv_c_wint_t=yes
  12710. else
  12711. echo "$as_me: failed program was:" >&5
  12712. sed 's/^/| /' conftest.$ac_ext >&5
  12713. gt_cv_c_wint_t=no
  12714. fi
  12715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12716. fi
  12717. { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  12718. echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
  12719. if test $gt_cv_c_wint_t = yes; then
  12720. cat >>confdefs.h <<\_ACEOF
  12721. #define HAVE_WINT_T 1
  12722. _ACEOF
  12723. fi
  12724. { echo "$as_me:$LINENO: checking for intmax_t" >&5
  12725. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
  12726. if test "${gt_cv_c_intmax_t+set}" = set; then
  12727. echo $ECHO_N "(cached) $ECHO_C" >&6
  12728. else
  12729. cat >conftest.$ac_ext <<_ACEOF
  12730. /* confdefs.h. */
  12731. _ACEOF
  12732. cat confdefs.h >>conftest.$ac_ext
  12733. cat >>conftest.$ac_ext <<_ACEOF
  12734. /* end confdefs.h. */
  12735. #include <stddef.h>
  12736. #include <stdlib.h>
  12737. #if HAVE_STDINT_H_WITH_UINTMAX
  12738. #include <stdint.h>
  12739. #endif
  12740. #if HAVE_INTTYPES_H_WITH_UINTMAX
  12741. #include <inttypes.h>
  12742. #endif
  12743. int
  12744. main ()
  12745. {
  12746. intmax_t x = -1;
  12747. return !x;
  12748. ;
  12749. return 0;
  12750. }
  12751. _ACEOF
  12752. rm -f conftest.$ac_objext
  12753. if { (ac_try="$ac_compile"
  12754. case "(($ac_try" in
  12755. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12756. *) ac_try_echo=$ac_try;;
  12757. esac
  12758. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12759. (eval "$ac_compile") 2>conftest.er1
  12760. ac_status=$?
  12761. grep -v '^ *+' conftest.er1 >conftest.err
  12762. rm -f conftest.er1
  12763. cat conftest.err >&5
  12764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12765. (exit $ac_status); } && {
  12766. test -z "$ac_cxx_werror_flag" ||
  12767. test ! -s conftest.err
  12768. } && test -s conftest.$ac_objext; then
  12769. gt_cv_c_intmax_t=yes
  12770. else
  12771. echo "$as_me: failed program was:" >&5
  12772. sed 's/^/| /' conftest.$ac_ext >&5
  12773. gt_cv_c_intmax_t=no
  12774. fi
  12775. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12776. fi
  12777. { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  12778. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
  12779. if test $gt_cv_c_intmax_t = yes; then
  12780. cat >>confdefs.h <<\_ACEOF
  12781. #define HAVE_INTMAX_T 1
  12782. _ACEOF
  12783. fi
  12784. { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  12785. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
  12786. if test "${gt_cv_func_printf_posix+set}" = set; then
  12787. echo $ECHO_N "(cached) $ECHO_C" >&6
  12788. else
  12789. if test "$cross_compiling" = yes; then
  12790. cat >conftest.$ac_ext <<_ACEOF
  12791. /* confdefs.h. */
  12792. _ACEOF
  12793. cat confdefs.h >>conftest.$ac_ext
  12794. cat >>conftest.$ac_ext <<_ACEOF
  12795. /* end confdefs.h. */
  12796. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  12797. notposix
  12798. #endif
  12799. _ACEOF
  12800. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12801. $EGREP "notposix" >/dev/null 2>&1; then
  12802. gt_cv_func_printf_posix="guessing no"
  12803. else
  12804. gt_cv_func_printf_posix="guessing yes"
  12805. fi
  12806. rm -f conftest*
  12807. else
  12808. cat >conftest.$ac_ext <<_ACEOF
  12809. /* confdefs.h. */
  12810. _ACEOF
  12811. cat confdefs.h >>conftest.$ac_ext
  12812. cat >>conftest.$ac_ext <<_ACEOF
  12813. /* end confdefs.h. */
  12814. #include <stdio.h>
  12815. #include <string.h>
  12816. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  12817. dollar expansion (possibly an autoconf bug). */
  12818. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  12819. static char buf[100];
  12820. int main ()
  12821. {
  12822. sprintf (buf, format, 33, 55);
  12823. return (strcmp (buf, "55 33") != 0);
  12824. }
  12825. _ACEOF
  12826. rm -f conftest$ac_exeext
  12827. if { (ac_try="$ac_link"
  12828. case "(($ac_try" in
  12829. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12830. *) ac_try_echo=$ac_try;;
  12831. esac
  12832. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12833. (eval "$ac_link") 2>&5
  12834. ac_status=$?
  12835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12836. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12837. { (case "(($ac_try" in
  12838. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12839. *) ac_try_echo=$ac_try;;
  12840. esac
  12841. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12842. (eval "$ac_try") 2>&5
  12843. ac_status=$?
  12844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12845. (exit $ac_status); }; }; then
  12846. gt_cv_func_printf_posix=yes
  12847. else
  12848. echo "$as_me: program exited with status $ac_status" >&5
  12849. echo "$as_me: failed program was:" >&5
  12850. sed 's/^/| /' conftest.$ac_ext >&5
  12851. ( exit $ac_status )
  12852. gt_cv_func_printf_posix=no
  12853. fi
  12854. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12855. fi
  12856. fi
  12857. { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  12858. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
  12859. case $gt_cv_func_printf_posix in
  12860. *yes)
  12861. cat >>confdefs.h <<\_ACEOF
  12862. #define HAVE_POSIX_PRINTF 1
  12863. _ACEOF
  12864. ;;
  12865. esac
  12866. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  12867. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  12868. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  12869. echo $ECHO_N "(cached) $ECHO_C" >&6
  12870. else
  12871. cat >conftest.$ac_ext <<_ACEOF
  12872. /* confdefs.h. */
  12873. _ACEOF
  12874. cat confdefs.h >>conftest.$ac_ext
  12875. cat >>conftest.$ac_ext <<_ACEOF
  12876. /* end confdefs.h. */
  12877. #include <features.h>
  12878. #ifdef __GNU_LIBRARY__
  12879. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  12880. Lucky GNU user
  12881. #endif
  12882. #endif
  12883. _ACEOF
  12884. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12885. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  12886. ac_cv_gnu_library_2_1=yes
  12887. else
  12888. ac_cv_gnu_library_2_1=no
  12889. fi
  12890. rm -f conftest*
  12891. fi
  12892. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  12893. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  12894. GLIBC21="$ac_cv_gnu_library_2_1"
  12895. for ac_header in stdint.h
  12896. do
  12897. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12898. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12899. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12900. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12901. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12902. echo $ECHO_N "(cached) $ECHO_C" >&6
  12903. fi
  12904. ac_res=`eval echo '${'$as_ac_Header'}'`
  12905. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12906. echo "${ECHO_T}$ac_res" >&6; }
  12907. else
  12908. # Is the header compilable?
  12909. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12910. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  12911. cat >conftest.$ac_ext <<_ACEOF
  12912. /* confdefs.h. */
  12913. _ACEOF
  12914. cat confdefs.h >>conftest.$ac_ext
  12915. cat >>conftest.$ac_ext <<_ACEOF
  12916. /* end confdefs.h. */
  12917. $ac_includes_default
  12918. #include <$ac_header>
  12919. _ACEOF
  12920. rm -f conftest.$ac_objext
  12921. if { (ac_try="$ac_compile"
  12922. case "(($ac_try" in
  12923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12924. *) ac_try_echo=$ac_try;;
  12925. esac
  12926. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12927. (eval "$ac_compile") 2>conftest.er1
  12928. ac_status=$?
  12929. grep -v '^ *+' conftest.er1 >conftest.err
  12930. rm -f conftest.er1
  12931. cat conftest.err >&5
  12932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12933. (exit $ac_status); } && {
  12934. test -z "$ac_cxx_werror_flag" ||
  12935. test ! -s conftest.err
  12936. } && test -s conftest.$ac_objext; then
  12937. ac_header_compiler=yes
  12938. else
  12939. echo "$as_me: failed program was:" >&5
  12940. sed 's/^/| /' conftest.$ac_ext >&5
  12941. ac_header_compiler=no
  12942. fi
  12943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12944. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12945. echo "${ECHO_T}$ac_header_compiler" >&6; }
  12946. # Is the header present?
  12947. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12948. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  12949. cat >conftest.$ac_ext <<_ACEOF
  12950. /* confdefs.h. */
  12951. _ACEOF
  12952. cat confdefs.h >>conftest.$ac_ext
  12953. cat >>conftest.$ac_ext <<_ACEOF
  12954. /* end confdefs.h. */
  12955. #include <$ac_header>
  12956. _ACEOF
  12957. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12958. case "(($ac_try" in
  12959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12960. *) ac_try_echo=$ac_try;;
  12961. esac
  12962. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12963. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12964. ac_status=$?
  12965. grep -v '^ *+' conftest.er1 >conftest.err
  12966. rm -f conftest.er1
  12967. cat conftest.err >&5
  12968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12969. (exit $ac_status); } >/dev/null && {
  12970. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12971. test ! -s conftest.err
  12972. }; then
  12973. ac_header_preproc=yes
  12974. else
  12975. echo "$as_me: failed program was:" >&5
  12976. sed 's/^/| /' conftest.$ac_ext >&5
  12977. ac_header_preproc=no
  12978. fi
  12979. rm -f conftest.err conftest.$ac_ext
  12980. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12981. echo "${ECHO_T}$ac_header_preproc" >&6; }
  12982. # So? What about this header?
  12983. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  12984. yes:no: )
  12985. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12986. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12987. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12988. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12989. ac_header_preproc=yes
  12990. ;;
  12991. no:yes:* )
  12992. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12993. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12994. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12995. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12996. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12997. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12998. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12999. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13000. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13001. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13002. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13003. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13004. ( cat <<\_ASBOX
  13005. ## ----------------------------------------------- ##
  13006. ## Report this to t-tujikawa@users.sourceforge.net ##
  13007. ## ----------------------------------------------- ##
  13008. _ASBOX
  13009. ) | sed "s/^/$as_me: WARNING: /" >&2
  13010. ;;
  13011. esac
  13012. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13013. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13014. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13015. echo $ECHO_N "(cached) $ECHO_C" >&6
  13016. else
  13017. eval "$as_ac_Header=\$ac_header_preproc"
  13018. fi
  13019. ac_res=`eval echo '${'$as_ac_Header'}'`
  13020. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13021. echo "${ECHO_T}$ac_res" >&6; }
  13022. fi
  13023. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13024. cat >>confdefs.h <<_ACEOF
  13025. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13026. _ACEOF
  13027. fi
  13028. done
  13029. { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  13030. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
  13031. if test "${gl_cv_size_max+set}" = set; then
  13032. echo $ECHO_N "(cached) $ECHO_C" >&6
  13033. else
  13034. gl_cv_size_max=
  13035. cat >conftest.$ac_ext <<_ACEOF
  13036. /* confdefs.h. */
  13037. _ACEOF
  13038. cat confdefs.h >>conftest.$ac_ext
  13039. cat >>conftest.$ac_ext <<_ACEOF
  13040. /* end confdefs.h. */
  13041. #include <limits.h>
  13042. #if HAVE_STDINT_H
  13043. #include <stdint.h>
  13044. #endif
  13045. #ifdef SIZE_MAX
  13046. Found it
  13047. #endif
  13048. _ACEOF
  13049. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13050. $EGREP "Found it" >/dev/null 2>&1; then
  13051. gl_cv_size_max=yes
  13052. fi
  13053. rm -f conftest*
  13054. if test -z "$gl_cv_size_max"; then
  13055. if test "$cross_compiling" = yes; then
  13056. # Depending upon the size, compute the lo and hi bounds.
  13057. cat >conftest.$ac_ext <<_ACEOF
  13058. /* confdefs.h. */
  13059. _ACEOF
  13060. cat confdefs.h >>conftest.$ac_ext
  13061. cat >>conftest.$ac_ext <<_ACEOF
  13062. /* end confdefs.h. */
  13063. #include <stddef.h>
  13064. #include <limits.h>
  13065. int
  13066. main ()
  13067. {
  13068. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  13069. test_array [0] = 0
  13070. ;
  13071. return 0;
  13072. }
  13073. _ACEOF
  13074. rm -f conftest.$ac_objext
  13075. if { (ac_try="$ac_compile"
  13076. case "(($ac_try" in
  13077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13078. *) ac_try_echo=$ac_try;;
  13079. esac
  13080. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13081. (eval "$ac_compile") 2>conftest.er1
  13082. ac_status=$?
  13083. grep -v '^ *+' conftest.er1 >conftest.err
  13084. rm -f conftest.er1
  13085. cat conftest.err >&5
  13086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13087. (exit $ac_status); } && {
  13088. test -z "$ac_cxx_werror_flag" ||
  13089. test ! -s conftest.err
  13090. } && test -s conftest.$ac_objext; then
  13091. ac_lo=0 ac_mid=0
  13092. while :; do
  13093. cat >conftest.$ac_ext <<_ACEOF
  13094. /* confdefs.h. */
  13095. _ACEOF
  13096. cat confdefs.h >>conftest.$ac_ext
  13097. cat >>conftest.$ac_ext <<_ACEOF
  13098. /* end confdefs.h. */
  13099. #include <stddef.h>
  13100. #include <limits.h>
  13101. int
  13102. main ()
  13103. {
  13104. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13105. test_array [0] = 0
  13106. ;
  13107. return 0;
  13108. }
  13109. _ACEOF
  13110. rm -f conftest.$ac_objext
  13111. if { (ac_try="$ac_compile"
  13112. case "(($ac_try" in
  13113. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13114. *) ac_try_echo=$ac_try;;
  13115. esac
  13116. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13117. (eval "$ac_compile") 2>conftest.er1
  13118. ac_status=$?
  13119. grep -v '^ *+' conftest.er1 >conftest.err
  13120. rm -f conftest.er1
  13121. cat conftest.err >&5
  13122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13123. (exit $ac_status); } && {
  13124. test -z "$ac_cxx_werror_flag" ||
  13125. test ! -s conftest.err
  13126. } && test -s conftest.$ac_objext; then
  13127. ac_hi=$ac_mid; break
  13128. else
  13129. echo "$as_me: failed program was:" >&5
  13130. sed 's/^/| /' conftest.$ac_ext >&5
  13131. ac_lo=`expr $ac_mid + 1`
  13132. if test $ac_lo -le $ac_mid; then
  13133. ac_lo= ac_hi=
  13134. break
  13135. fi
  13136. ac_mid=`expr 2 '*' $ac_mid + 1`
  13137. fi
  13138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13139. done
  13140. else
  13141. echo "$as_me: failed program was:" >&5
  13142. sed 's/^/| /' conftest.$ac_ext >&5
  13143. cat >conftest.$ac_ext <<_ACEOF
  13144. /* confdefs.h. */
  13145. _ACEOF
  13146. cat confdefs.h >>conftest.$ac_ext
  13147. cat >>conftest.$ac_ext <<_ACEOF
  13148. /* end confdefs.h. */
  13149. #include <stddef.h>
  13150. #include <limits.h>
  13151. int
  13152. main ()
  13153. {
  13154. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  13155. test_array [0] = 0
  13156. ;
  13157. return 0;
  13158. }
  13159. _ACEOF
  13160. rm -f conftest.$ac_objext
  13161. if { (ac_try="$ac_compile"
  13162. case "(($ac_try" in
  13163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13164. *) ac_try_echo=$ac_try;;
  13165. esac
  13166. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13167. (eval "$ac_compile") 2>conftest.er1
  13168. ac_status=$?
  13169. grep -v '^ *+' conftest.er1 >conftest.err
  13170. rm -f conftest.er1
  13171. cat conftest.err >&5
  13172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13173. (exit $ac_status); } && {
  13174. test -z "$ac_cxx_werror_flag" ||
  13175. test ! -s conftest.err
  13176. } && test -s conftest.$ac_objext; then
  13177. ac_hi=-1 ac_mid=-1
  13178. while :; do
  13179. cat >conftest.$ac_ext <<_ACEOF
  13180. /* confdefs.h. */
  13181. _ACEOF
  13182. cat confdefs.h >>conftest.$ac_ext
  13183. cat >>conftest.$ac_ext <<_ACEOF
  13184. /* end confdefs.h. */
  13185. #include <stddef.h>
  13186. #include <limits.h>
  13187. int
  13188. main ()
  13189. {
  13190. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  13191. test_array [0] = 0
  13192. ;
  13193. return 0;
  13194. }
  13195. _ACEOF
  13196. rm -f conftest.$ac_objext
  13197. if { (ac_try="$ac_compile"
  13198. case "(($ac_try" in
  13199. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13200. *) ac_try_echo=$ac_try;;
  13201. esac
  13202. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13203. (eval "$ac_compile") 2>conftest.er1
  13204. ac_status=$?
  13205. grep -v '^ *+' conftest.er1 >conftest.err
  13206. rm -f conftest.er1
  13207. cat conftest.err >&5
  13208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13209. (exit $ac_status); } && {
  13210. test -z "$ac_cxx_werror_flag" ||
  13211. test ! -s conftest.err
  13212. } && test -s conftest.$ac_objext; then
  13213. ac_lo=$ac_mid; break
  13214. else
  13215. echo "$as_me: failed program was:" >&5
  13216. sed 's/^/| /' conftest.$ac_ext >&5
  13217. ac_hi=`expr '(' $ac_mid ')' - 1`
  13218. if test $ac_mid -le $ac_hi; then
  13219. ac_lo= ac_hi=
  13220. break
  13221. fi
  13222. ac_mid=`expr 2 '*' $ac_mid`
  13223. fi
  13224. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13225. done
  13226. else
  13227. echo "$as_me: failed program was:" >&5
  13228. sed 's/^/| /' conftest.$ac_ext >&5
  13229. ac_lo= ac_hi=
  13230. fi
  13231. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13232. fi
  13233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13234. # Binary search between lo and hi bounds.
  13235. while test "x$ac_lo" != "x$ac_hi"; do
  13236. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13237. cat >conftest.$ac_ext <<_ACEOF
  13238. /* confdefs.h. */
  13239. _ACEOF
  13240. cat confdefs.h >>conftest.$ac_ext
  13241. cat >>conftest.$ac_ext <<_ACEOF
  13242. /* end confdefs.h. */
  13243. #include <stddef.h>
  13244. #include <limits.h>
  13245. int
  13246. main ()
  13247. {
  13248. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13249. test_array [0] = 0
  13250. ;
  13251. return 0;
  13252. }
  13253. _ACEOF
  13254. rm -f conftest.$ac_objext
  13255. if { (ac_try="$ac_compile"
  13256. case "(($ac_try" in
  13257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13258. *) ac_try_echo=$ac_try;;
  13259. esac
  13260. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13261. (eval "$ac_compile") 2>conftest.er1
  13262. ac_status=$?
  13263. grep -v '^ *+' conftest.er1 >conftest.err
  13264. rm -f conftest.er1
  13265. cat conftest.err >&5
  13266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13267. (exit $ac_status); } && {
  13268. test -z "$ac_cxx_werror_flag" ||
  13269. test ! -s conftest.err
  13270. } && test -s conftest.$ac_objext; then
  13271. ac_hi=$ac_mid
  13272. else
  13273. echo "$as_me: failed program was:" >&5
  13274. sed 's/^/| /' conftest.$ac_ext >&5
  13275. ac_lo=`expr '(' $ac_mid ')' + 1`
  13276. fi
  13277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13278. done
  13279. case $ac_lo in
  13280. ?*) size_t_bits_minus_1=$ac_lo;;
  13281. '') size_t_bits_minus_1= ;;
  13282. esac
  13283. else
  13284. cat >conftest.$ac_ext <<_ACEOF
  13285. /* confdefs.h. */
  13286. _ACEOF
  13287. cat confdefs.h >>conftest.$ac_ext
  13288. cat >>conftest.$ac_ext <<_ACEOF
  13289. /* end confdefs.h. */
  13290. #include <stddef.h>
  13291. #include <limits.h>
  13292. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  13293. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  13294. #include <stdio.h>
  13295. #include <stdlib.h>
  13296. int
  13297. main ()
  13298. {
  13299. FILE *f = fopen ("conftest.val", "w");
  13300. if (! f)
  13301. return 1;
  13302. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  13303. {
  13304. long int i = longval ();
  13305. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  13306. return 1;
  13307. fprintf (f, "%ld\n", i);
  13308. }
  13309. else
  13310. {
  13311. unsigned long int i = ulongval ();
  13312. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  13313. return 1;
  13314. fprintf (f, "%lu\n", i);
  13315. }
  13316. return ferror (f) || fclose (f) != 0;
  13317. ;
  13318. return 0;
  13319. }
  13320. _ACEOF
  13321. rm -f conftest$ac_exeext
  13322. if { (ac_try="$ac_link"
  13323. case "(($ac_try" in
  13324. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13325. *) ac_try_echo=$ac_try;;
  13326. esac
  13327. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13328. (eval "$ac_link") 2>&5
  13329. ac_status=$?
  13330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13331. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13332. { (case "(($ac_try" in
  13333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13334. *) ac_try_echo=$ac_try;;
  13335. esac
  13336. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13337. (eval "$ac_try") 2>&5
  13338. ac_status=$?
  13339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13340. (exit $ac_status); }; }; then
  13341. size_t_bits_minus_1=`cat conftest.val`
  13342. else
  13343. echo "$as_me: program exited with status $ac_status" >&5
  13344. echo "$as_me: failed program was:" >&5
  13345. sed 's/^/| /' conftest.$ac_ext >&5
  13346. ( exit $ac_status )
  13347. size_t_bits_minus_1=
  13348. fi
  13349. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13350. fi
  13351. rm -f conftest.val
  13352. if test "$cross_compiling" = yes; then
  13353. # Depending upon the size, compute the lo and hi bounds.
  13354. cat >conftest.$ac_ext <<_ACEOF
  13355. /* confdefs.h. */
  13356. _ACEOF
  13357. cat confdefs.h >>conftest.$ac_ext
  13358. cat >>conftest.$ac_ext <<_ACEOF
  13359. /* end confdefs.h. */
  13360. #include <stddef.h>
  13361. int
  13362. main ()
  13363. {
  13364. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  13365. test_array [0] = 0
  13366. ;
  13367. return 0;
  13368. }
  13369. _ACEOF
  13370. rm -f conftest.$ac_objext
  13371. if { (ac_try="$ac_compile"
  13372. case "(($ac_try" in
  13373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13374. *) ac_try_echo=$ac_try;;
  13375. esac
  13376. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13377. (eval "$ac_compile") 2>conftest.er1
  13378. ac_status=$?
  13379. grep -v '^ *+' conftest.er1 >conftest.err
  13380. rm -f conftest.er1
  13381. cat conftest.err >&5
  13382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13383. (exit $ac_status); } && {
  13384. test -z "$ac_cxx_werror_flag" ||
  13385. test ! -s conftest.err
  13386. } && test -s conftest.$ac_objext; then
  13387. ac_lo=0 ac_mid=0
  13388. while :; do
  13389. cat >conftest.$ac_ext <<_ACEOF
  13390. /* confdefs.h. */
  13391. _ACEOF
  13392. cat confdefs.h >>conftest.$ac_ext
  13393. cat >>conftest.$ac_ext <<_ACEOF
  13394. /* end confdefs.h. */
  13395. #include <stddef.h>
  13396. int
  13397. main ()
  13398. {
  13399. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  13400. test_array [0] = 0
  13401. ;
  13402. return 0;
  13403. }
  13404. _ACEOF
  13405. rm -f conftest.$ac_objext
  13406. if { (ac_try="$ac_compile"
  13407. case "(($ac_try" in
  13408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13409. *) ac_try_echo=$ac_try;;
  13410. esac
  13411. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13412. (eval "$ac_compile") 2>conftest.er1
  13413. ac_status=$?
  13414. grep -v '^ *+' conftest.er1 >conftest.err
  13415. rm -f conftest.er1
  13416. cat conftest.err >&5
  13417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13418. (exit $ac_status); } && {
  13419. test -z "$ac_cxx_werror_flag" ||
  13420. test ! -s conftest.err
  13421. } && test -s conftest.$ac_objext; then
  13422. ac_hi=$ac_mid; break
  13423. else
  13424. echo "$as_me: failed program was:" >&5
  13425. sed 's/^/| /' conftest.$ac_ext >&5
  13426. ac_lo=`expr $ac_mid + 1`
  13427. if test $ac_lo -le $ac_mid; then
  13428. ac_lo= ac_hi=
  13429. break
  13430. fi
  13431. ac_mid=`expr 2 '*' $ac_mid + 1`
  13432. fi
  13433. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13434. done
  13435. else
  13436. echo "$as_me: failed program was:" >&5
  13437. sed 's/^/| /' conftest.$ac_ext >&5
  13438. cat >conftest.$ac_ext <<_ACEOF
  13439. /* confdefs.h. */
  13440. _ACEOF
  13441. cat confdefs.h >>conftest.$ac_ext
  13442. cat >>conftest.$ac_ext <<_ACEOF
  13443. /* end confdefs.h. */
  13444. #include <stddef.h>
  13445. int
  13446. main ()
  13447. {
  13448. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  13449. test_array [0] = 0
  13450. ;
  13451. return 0;
  13452. }
  13453. _ACEOF
  13454. rm -f conftest.$ac_objext
  13455. if { (ac_try="$ac_compile"
  13456. case "(($ac_try" in
  13457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13458. *) ac_try_echo=$ac_try;;
  13459. esac
  13460. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13461. (eval "$ac_compile") 2>conftest.er1
  13462. ac_status=$?
  13463. grep -v '^ *+' conftest.er1 >conftest.err
  13464. rm -f conftest.er1
  13465. cat conftest.err >&5
  13466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13467. (exit $ac_status); } && {
  13468. test -z "$ac_cxx_werror_flag" ||
  13469. test ! -s conftest.err
  13470. } && test -s conftest.$ac_objext; then
  13471. ac_hi=-1 ac_mid=-1
  13472. while :; do
  13473. cat >conftest.$ac_ext <<_ACEOF
  13474. /* confdefs.h. */
  13475. _ACEOF
  13476. cat confdefs.h >>conftest.$ac_ext
  13477. cat >>conftest.$ac_ext <<_ACEOF
  13478. /* end confdefs.h. */
  13479. #include <stddef.h>
  13480. int
  13481. main ()
  13482. {
  13483. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  13484. test_array [0] = 0
  13485. ;
  13486. return 0;
  13487. }
  13488. _ACEOF
  13489. rm -f conftest.$ac_objext
  13490. if { (ac_try="$ac_compile"
  13491. case "(($ac_try" in
  13492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13493. *) ac_try_echo=$ac_try;;
  13494. esac
  13495. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13496. (eval "$ac_compile") 2>conftest.er1
  13497. ac_status=$?
  13498. grep -v '^ *+' conftest.er1 >conftest.err
  13499. rm -f conftest.er1
  13500. cat conftest.err >&5
  13501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13502. (exit $ac_status); } && {
  13503. test -z "$ac_cxx_werror_flag" ||
  13504. test ! -s conftest.err
  13505. } && test -s conftest.$ac_objext; then
  13506. ac_lo=$ac_mid; break
  13507. else
  13508. echo "$as_me: failed program was:" >&5
  13509. sed 's/^/| /' conftest.$ac_ext >&5
  13510. ac_hi=`expr '(' $ac_mid ')' - 1`
  13511. if test $ac_mid -le $ac_hi; then
  13512. ac_lo= ac_hi=
  13513. break
  13514. fi
  13515. ac_mid=`expr 2 '*' $ac_mid`
  13516. fi
  13517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13518. done
  13519. else
  13520. echo "$as_me: failed program was:" >&5
  13521. sed 's/^/| /' conftest.$ac_ext >&5
  13522. ac_lo= ac_hi=
  13523. fi
  13524. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13525. fi
  13526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13527. # Binary search between lo and hi bounds.
  13528. while test "x$ac_lo" != "x$ac_hi"; do
  13529. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13530. cat >conftest.$ac_ext <<_ACEOF
  13531. /* confdefs.h. */
  13532. _ACEOF
  13533. cat confdefs.h >>conftest.$ac_ext
  13534. cat >>conftest.$ac_ext <<_ACEOF
  13535. /* end confdefs.h. */
  13536. #include <stddef.h>
  13537. int
  13538. main ()
  13539. {
  13540. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  13541. test_array [0] = 0
  13542. ;
  13543. return 0;
  13544. }
  13545. _ACEOF
  13546. rm -f conftest.$ac_objext
  13547. if { (ac_try="$ac_compile"
  13548. case "(($ac_try" in
  13549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13550. *) ac_try_echo=$ac_try;;
  13551. esac
  13552. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13553. (eval "$ac_compile") 2>conftest.er1
  13554. ac_status=$?
  13555. grep -v '^ *+' conftest.er1 >conftest.err
  13556. rm -f conftest.er1
  13557. cat conftest.err >&5
  13558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13559. (exit $ac_status); } && {
  13560. test -z "$ac_cxx_werror_flag" ||
  13561. test ! -s conftest.err
  13562. } && test -s conftest.$ac_objext; then
  13563. ac_hi=$ac_mid
  13564. else
  13565. echo "$as_me: failed program was:" >&5
  13566. sed 's/^/| /' conftest.$ac_ext >&5
  13567. ac_lo=`expr '(' $ac_mid ')' + 1`
  13568. fi
  13569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13570. done
  13571. case $ac_lo in
  13572. ?*) fits_in_uint=$ac_lo;;
  13573. '') fits_in_uint= ;;
  13574. esac
  13575. else
  13576. cat >conftest.$ac_ext <<_ACEOF
  13577. /* confdefs.h. */
  13578. _ACEOF
  13579. cat confdefs.h >>conftest.$ac_ext
  13580. cat >>conftest.$ac_ext <<_ACEOF
  13581. /* end confdefs.h. */
  13582. #include <stddef.h>
  13583. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  13584. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  13585. #include <stdio.h>
  13586. #include <stdlib.h>
  13587. int
  13588. main ()
  13589. {
  13590. FILE *f = fopen ("conftest.val", "w");
  13591. if (! f)
  13592. return 1;
  13593. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  13594. {
  13595. long int i = longval ();
  13596. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  13597. return 1;
  13598. fprintf (f, "%ld\n", i);
  13599. }
  13600. else
  13601. {
  13602. unsigned long int i = ulongval ();
  13603. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  13604. return 1;
  13605. fprintf (f, "%lu\n", i);
  13606. }
  13607. return ferror (f) || fclose (f) != 0;
  13608. ;
  13609. return 0;
  13610. }
  13611. _ACEOF
  13612. rm -f conftest$ac_exeext
  13613. if { (ac_try="$ac_link"
  13614. case "(($ac_try" in
  13615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13616. *) ac_try_echo=$ac_try;;
  13617. esac
  13618. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13619. (eval "$ac_link") 2>&5
  13620. ac_status=$?
  13621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13622. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13623. { (case "(($ac_try" in
  13624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13625. *) ac_try_echo=$ac_try;;
  13626. esac
  13627. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13628. (eval "$ac_try") 2>&5
  13629. ac_status=$?
  13630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13631. (exit $ac_status); }; }; then
  13632. fits_in_uint=`cat conftest.val`
  13633. else
  13634. echo "$as_me: program exited with status $ac_status" >&5
  13635. echo "$as_me: failed program was:" >&5
  13636. sed 's/^/| /' conftest.$ac_ext >&5
  13637. ( exit $ac_status )
  13638. fits_in_uint=
  13639. fi
  13640. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13641. fi
  13642. rm -f conftest.val
  13643. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  13644. if test $fits_in_uint = 1; then
  13645. cat >conftest.$ac_ext <<_ACEOF
  13646. /* confdefs.h. */
  13647. _ACEOF
  13648. cat confdefs.h >>conftest.$ac_ext
  13649. cat >>conftest.$ac_ext <<_ACEOF
  13650. /* end confdefs.h. */
  13651. #include <stddef.h>
  13652. extern size_t foo;
  13653. extern unsigned long foo;
  13654. int
  13655. main ()
  13656. {
  13657. ;
  13658. return 0;
  13659. }
  13660. _ACEOF
  13661. rm -f conftest.$ac_objext
  13662. if { (ac_try="$ac_compile"
  13663. case "(($ac_try" in
  13664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13665. *) ac_try_echo=$ac_try;;
  13666. esac
  13667. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13668. (eval "$ac_compile") 2>conftest.er1
  13669. ac_status=$?
  13670. grep -v '^ *+' conftest.er1 >conftest.err
  13671. rm -f conftest.er1
  13672. cat conftest.err >&5
  13673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13674. (exit $ac_status); } && {
  13675. test -z "$ac_cxx_werror_flag" ||
  13676. test ! -s conftest.err
  13677. } && test -s conftest.$ac_objext; then
  13678. fits_in_uint=0
  13679. else
  13680. echo "$as_me: failed program was:" >&5
  13681. sed 's/^/| /' conftest.$ac_ext >&5
  13682. fi
  13683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13684. fi
  13685. if test $fits_in_uint = 1; then
  13686. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  13687. else
  13688. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  13689. fi
  13690. else
  13691. gl_cv_size_max='((size_t)~(size_t)0)'
  13692. fi
  13693. fi
  13694. fi
  13695. { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  13696. echo "${ECHO_T}$gl_cv_size_max" >&6; }
  13697. if test "$gl_cv_size_max" != yes; then
  13698. cat >>confdefs.h <<_ACEOF
  13699. #define SIZE_MAX $gl_cv_size_max
  13700. _ACEOF
  13701. fi
  13702. for ac_header in stdint.h
  13703. do
  13704. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13705. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13706. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13707. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13708. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13709. echo $ECHO_N "(cached) $ECHO_C" >&6
  13710. fi
  13711. ac_res=`eval echo '${'$as_ac_Header'}'`
  13712. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13713. echo "${ECHO_T}$ac_res" >&6; }
  13714. else
  13715. # Is the header compilable?
  13716. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13717. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  13718. cat >conftest.$ac_ext <<_ACEOF
  13719. /* confdefs.h. */
  13720. _ACEOF
  13721. cat confdefs.h >>conftest.$ac_ext
  13722. cat >>conftest.$ac_ext <<_ACEOF
  13723. /* end confdefs.h. */
  13724. $ac_includes_default
  13725. #include <$ac_header>
  13726. _ACEOF
  13727. rm -f conftest.$ac_objext
  13728. if { (ac_try="$ac_compile"
  13729. case "(($ac_try" in
  13730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13731. *) ac_try_echo=$ac_try;;
  13732. esac
  13733. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13734. (eval "$ac_compile") 2>conftest.er1
  13735. ac_status=$?
  13736. grep -v '^ *+' conftest.er1 >conftest.err
  13737. rm -f conftest.er1
  13738. cat conftest.err >&5
  13739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13740. (exit $ac_status); } && {
  13741. test -z "$ac_cxx_werror_flag" ||
  13742. test ! -s conftest.err
  13743. } && test -s conftest.$ac_objext; then
  13744. ac_header_compiler=yes
  13745. else
  13746. echo "$as_me: failed program was:" >&5
  13747. sed 's/^/| /' conftest.$ac_ext >&5
  13748. ac_header_compiler=no
  13749. fi
  13750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13751. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13752. echo "${ECHO_T}$ac_header_compiler" >&6; }
  13753. # Is the header present?
  13754. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13755. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  13756. cat >conftest.$ac_ext <<_ACEOF
  13757. /* confdefs.h. */
  13758. _ACEOF
  13759. cat confdefs.h >>conftest.$ac_ext
  13760. cat >>conftest.$ac_ext <<_ACEOF
  13761. /* end confdefs.h. */
  13762. #include <$ac_header>
  13763. _ACEOF
  13764. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13765. case "(($ac_try" in
  13766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13767. *) ac_try_echo=$ac_try;;
  13768. esac
  13769. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13770. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13771. ac_status=$?
  13772. grep -v '^ *+' conftest.er1 >conftest.err
  13773. rm -f conftest.er1
  13774. cat conftest.err >&5
  13775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13776. (exit $ac_status); } >/dev/null && {
  13777. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13778. test ! -s conftest.err
  13779. }; then
  13780. ac_header_preproc=yes
  13781. else
  13782. echo "$as_me: failed program was:" >&5
  13783. sed 's/^/| /' conftest.$ac_ext >&5
  13784. ac_header_preproc=no
  13785. fi
  13786. rm -f conftest.err conftest.$ac_ext
  13787. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13788. echo "${ECHO_T}$ac_header_preproc" >&6; }
  13789. # So? What about this header?
  13790. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13791. yes:no: )
  13792. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13793. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13794. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13795. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13796. ac_header_preproc=yes
  13797. ;;
  13798. no:yes:* )
  13799. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13800. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13801. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13802. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13803. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13804. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13805. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13806. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13807. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13808. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13809. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13810. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13811. ( cat <<\_ASBOX
  13812. ## ----------------------------------------------- ##
  13813. ## Report this to t-tujikawa@users.sourceforge.net ##
  13814. ## ----------------------------------------------- ##
  13815. _ASBOX
  13816. ) | sed "s/^/$as_me: WARNING: /" >&2
  13817. ;;
  13818. esac
  13819. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13820. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13821. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13822. echo $ECHO_N "(cached) $ECHO_C" >&6
  13823. else
  13824. eval "$as_ac_Header=\$ac_header_preproc"
  13825. fi
  13826. ac_res=`eval echo '${'$as_ac_Header'}'`
  13827. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13828. echo "${ECHO_T}$ac_res" >&6; }
  13829. fi
  13830. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13831. cat >>confdefs.h <<_ACEOF
  13832. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13833. _ACEOF
  13834. fi
  13835. done
  13836. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  13837. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  13838. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  13839. echo $ECHO_N "(cached) $ECHO_C" >&6
  13840. else
  13841. gt_save_LIBS="$LIBS"
  13842. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  13843. cat >conftest.$ac_ext <<_ACEOF
  13844. /* confdefs.h. */
  13845. _ACEOF
  13846. cat confdefs.h >>conftest.$ac_ext
  13847. cat >>conftest.$ac_ext <<_ACEOF
  13848. /* end confdefs.h. */
  13849. #include <CoreFoundation/CFPreferences.h>
  13850. int
  13851. main ()
  13852. {
  13853. CFPreferencesCopyAppValue(NULL, NULL)
  13854. ;
  13855. return 0;
  13856. }
  13857. _ACEOF
  13858. rm -f conftest.$ac_objext conftest$ac_exeext
  13859. if { (ac_try="$ac_link"
  13860. case "(($ac_try" in
  13861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13862. *) ac_try_echo=$ac_try;;
  13863. esac
  13864. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13865. (eval "$ac_link") 2>conftest.er1
  13866. ac_status=$?
  13867. grep -v '^ *+' conftest.er1 >conftest.err
  13868. rm -f conftest.er1
  13869. cat conftest.err >&5
  13870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13871. (exit $ac_status); } && {
  13872. test -z "$ac_cxx_werror_flag" ||
  13873. test ! -s conftest.err
  13874. } && test -s conftest$ac_exeext &&
  13875. $as_test_x conftest$ac_exeext; then
  13876. gt_cv_func_CFPreferencesCopyAppValue=yes
  13877. else
  13878. echo "$as_me: failed program was:" >&5
  13879. sed 's/^/| /' conftest.$ac_ext >&5
  13880. gt_cv_func_CFPreferencesCopyAppValue=no
  13881. fi
  13882. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13883. conftest$ac_exeext conftest.$ac_ext
  13884. LIBS="$gt_save_LIBS"
  13885. fi
  13886. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  13887. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  13888. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  13889. cat >>confdefs.h <<\_ACEOF
  13890. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  13891. _ACEOF
  13892. fi
  13893. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  13894. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  13895. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  13896. echo $ECHO_N "(cached) $ECHO_C" >&6
  13897. else
  13898. gt_save_LIBS="$LIBS"
  13899. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  13900. cat >conftest.$ac_ext <<_ACEOF
  13901. /* confdefs.h. */
  13902. _ACEOF
  13903. cat confdefs.h >>conftest.$ac_ext
  13904. cat >>conftest.$ac_ext <<_ACEOF
  13905. /* end confdefs.h. */
  13906. #include <CoreFoundation/CFLocale.h>
  13907. int
  13908. main ()
  13909. {
  13910. CFLocaleCopyCurrent();
  13911. ;
  13912. return 0;
  13913. }
  13914. _ACEOF
  13915. rm -f conftest.$ac_objext conftest$ac_exeext
  13916. if { (ac_try="$ac_link"
  13917. case "(($ac_try" in
  13918. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13919. *) ac_try_echo=$ac_try;;
  13920. esac
  13921. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13922. (eval "$ac_link") 2>conftest.er1
  13923. ac_status=$?
  13924. grep -v '^ *+' conftest.er1 >conftest.err
  13925. rm -f conftest.er1
  13926. cat conftest.err >&5
  13927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13928. (exit $ac_status); } && {
  13929. test -z "$ac_cxx_werror_flag" ||
  13930. test ! -s conftest.err
  13931. } && test -s conftest$ac_exeext &&
  13932. $as_test_x conftest$ac_exeext; then
  13933. gt_cv_func_CFLocaleCopyCurrent=yes
  13934. else
  13935. echo "$as_me: failed program was:" >&5
  13936. sed 's/^/| /' conftest.$ac_ext >&5
  13937. gt_cv_func_CFLocaleCopyCurrent=no
  13938. fi
  13939. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13940. conftest$ac_exeext conftest.$ac_ext
  13941. LIBS="$gt_save_LIBS"
  13942. fi
  13943. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  13944. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  13945. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  13946. cat >>confdefs.h <<\_ACEOF
  13947. #define HAVE_CFLOCALECOPYCURRENT 1
  13948. _ACEOF
  13949. fi
  13950. INTL_MACOSX_LIBS=
  13951. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  13952. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  13953. fi
  13954. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  13955. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  13956. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  13957. echo $ECHO_N "(cached) $ECHO_C" >&6
  13958. else
  13959. cat >conftest.$ac_ext <<_ACEOF
  13960. /* confdefs.h. */
  13961. _ACEOF
  13962. cat confdefs.h >>conftest.$ac_ext
  13963. cat >>conftest.$ac_ext <<_ACEOF
  13964. /* end confdefs.h. */
  13965. $ac_includes_default
  13966. typedef ptrdiff_t ac__type_new_;
  13967. int
  13968. main ()
  13969. {
  13970. if ((ac__type_new_ *) 0)
  13971. return 0;
  13972. if (sizeof (ac__type_new_))
  13973. return 0;
  13974. ;
  13975. return 0;
  13976. }
  13977. _ACEOF
  13978. rm -f conftest.$ac_objext
  13979. if { (ac_try="$ac_compile"
  13980. case "(($ac_try" in
  13981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13982. *) ac_try_echo=$ac_try;;
  13983. esac
  13984. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13985. (eval "$ac_compile") 2>conftest.er1
  13986. ac_status=$?
  13987. grep -v '^ *+' conftest.er1 >conftest.err
  13988. rm -f conftest.er1
  13989. cat conftest.err >&5
  13990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13991. (exit $ac_status); } && {
  13992. test -z "$ac_cxx_werror_flag" ||
  13993. test ! -s conftest.err
  13994. } && test -s conftest.$ac_objext; then
  13995. ac_cv_type_ptrdiff_t=yes
  13996. else
  13997. echo "$as_me: failed program was:" >&5
  13998. sed 's/^/| /' conftest.$ac_ext >&5
  13999. ac_cv_type_ptrdiff_t=no
  14000. fi
  14001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14002. fi
  14003. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  14004. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  14005. if test $ac_cv_type_ptrdiff_t = yes; then
  14006. :
  14007. else
  14008. cat >>confdefs.h <<\_ACEOF
  14009. #define ptrdiff_t long
  14010. _ACEOF
  14011. fi
  14012. for ac_header in stddef.h stdlib.h string.h
  14013. do
  14014. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14015. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14016. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14017. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14018. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14019. echo $ECHO_N "(cached) $ECHO_C" >&6
  14020. fi
  14021. ac_res=`eval echo '${'$as_ac_Header'}'`
  14022. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14023. echo "${ECHO_T}$ac_res" >&6; }
  14024. else
  14025. # Is the header compilable?
  14026. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14027. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14028. cat >conftest.$ac_ext <<_ACEOF
  14029. /* confdefs.h. */
  14030. _ACEOF
  14031. cat confdefs.h >>conftest.$ac_ext
  14032. cat >>conftest.$ac_ext <<_ACEOF
  14033. /* end confdefs.h. */
  14034. $ac_includes_default
  14035. #include <$ac_header>
  14036. _ACEOF
  14037. rm -f conftest.$ac_objext
  14038. if { (ac_try="$ac_compile"
  14039. case "(($ac_try" in
  14040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14041. *) ac_try_echo=$ac_try;;
  14042. esac
  14043. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14044. (eval "$ac_compile") 2>conftest.er1
  14045. ac_status=$?
  14046. grep -v '^ *+' conftest.er1 >conftest.err
  14047. rm -f conftest.er1
  14048. cat conftest.err >&5
  14049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14050. (exit $ac_status); } && {
  14051. test -z "$ac_cxx_werror_flag" ||
  14052. test ! -s conftest.err
  14053. } && test -s conftest.$ac_objext; then
  14054. ac_header_compiler=yes
  14055. else
  14056. echo "$as_me: failed program was:" >&5
  14057. sed 's/^/| /' conftest.$ac_ext >&5
  14058. ac_header_compiler=no
  14059. fi
  14060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14061. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14062. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14063. # Is the header present?
  14064. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14065. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14066. cat >conftest.$ac_ext <<_ACEOF
  14067. /* confdefs.h. */
  14068. _ACEOF
  14069. cat confdefs.h >>conftest.$ac_ext
  14070. cat >>conftest.$ac_ext <<_ACEOF
  14071. /* end confdefs.h. */
  14072. #include <$ac_header>
  14073. _ACEOF
  14074. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14075. case "(($ac_try" in
  14076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14077. *) ac_try_echo=$ac_try;;
  14078. esac
  14079. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14080. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14081. ac_status=$?
  14082. grep -v '^ *+' conftest.er1 >conftest.err
  14083. rm -f conftest.er1
  14084. cat conftest.err >&5
  14085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14086. (exit $ac_status); } >/dev/null && {
  14087. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14088. test ! -s conftest.err
  14089. }; then
  14090. ac_header_preproc=yes
  14091. else
  14092. echo "$as_me: failed program was:" >&5
  14093. sed 's/^/| /' conftest.$ac_ext >&5
  14094. ac_header_preproc=no
  14095. fi
  14096. rm -f conftest.err conftest.$ac_ext
  14097. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14098. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14099. # So? What about this header?
  14100. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14101. yes:no: )
  14102. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14103. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14104. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14105. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14106. ac_header_preproc=yes
  14107. ;;
  14108. no:yes:* )
  14109. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14110. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14111. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14112. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14113. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14114. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14115. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14116. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14117. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14118. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14119. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14120. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14121. ( cat <<\_ASBOX
  14122. ## ----------------------------------------------- ##
  14123. ## Report this to t-tujikawa@users.sourceforge.net ##
  14124. ## ----------------------------------------------- ##
  14125. _ASBOX
  14126. ) | sed "s/^/$as_me: WARNING: /" >&2
  14127. ;;
  14128. esac
  14129. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14130. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14131. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14132. echo $ECHO_N "(cached) $ECHO_C" >&6
  14133. else
  14134. eval "$as_ac_Header=\$ac_header_preproc"
  14135. fi
  14136. ac_res=`eval echo '${'$as_ac_Header'}'`
  14137. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14138. echo "${ECHO_T}$ac_res" >&6; }
  14139. fi
  14140. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14141. cat >>confdefs.h <<_ACEOF
  14142. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14143. _ACEOF
  14144. fi
  14145. done
  14146. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  14147. do
  14148. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14149. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  14150. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  14151. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  14152. echo $ECHO_N "(cached) $ECHO_C" >&6
  14153. else
  14154. cat >conftest.$ac_ext <<_ACEOF
  14155. /* confdefs.h. */
  14156. _ACEOF
  14157. cat confdefs.h >>conftest.$ac_ext
  14158. cat >>conftest.$ac_ext <<_ACEOF
  14159. /* end confdefs.h. */
  14160. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14161. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14162. #define $ac_func innocuous_$ac_func
  14163. /* System header to define __stub macros and hopefully few prototypes,
  14164. which can conflict with char $ac_func (); below.
  14165. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14166. <limits.h> exists even on freestanding compilers. */
  14167. #ifdef __STDC__
  14168. # include <limits.h>
  14169. #else
  14170. # include <assert.h>
  14171. #endif
  14172. #undef $ac_func
  14173. /* Override any GCC internal prototype to avoid an error.
  14174. Use char because int might match the return type of a GCC
  14175. builtin and then its argument prototype would still apply. */
  14176. #ifdef __cplusplus
  14177. extern "C"
  14178. #endif
  14179. char $ac_func ();
  14180. /* The GNU C library defines this for functions which it implements
  14181. to always fail with ENOSYS. Some functions are actually named
  14182. something starting with __ and the normal name is an alias. */
  14183. #if defined __stub_$ac_func || defined __stub___$ac_func
  14184. choke me
  14185. #endif
  14186. int
  14187. main ()
  14188. {
  14189. return $ac_func ();
  14190. ;
  14191. return 0;
  14192. }
  14193. _ACEOF
  14194. rm -f conftest.$ac_objext conftest$ac_exeext
  14195. if { (ac_try="$ac_link"
  14196. case "(($ac_try" in
  14197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14198. *) ac_try_echo=$ac_try;;
  14199. esac
  14200. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14201. (eval "$ac_link") 2>conftest.er1
  14202. ac_status=$?
  14203. grep -v '^ *+' conftest.er1 >conftest.err
  14204. rm -f conftest.er1
  14205. cat conftest.err >&5
  14206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14207. (exit $ac_status); } && {
  14208. test -z "$ac_cxx_werror_flag" ||
  14209. test ! -s conftest.err
  14210. } && test -s conftest$ac_exeext &&
  14211. $as_test_x conftest$ac_exeext; then
  14212. eval "$as_ac_var=yes"
  14213. else
  14214. echo "$as_me: failed program was:" >&5
  14215. sed 's/^/| /' conftest.$ac_ext >&5
  14216. eval "$as_ac_var=no"
  14217. fi
  14218. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14219. conftest$ac_exeext conftest.$ac_ext
  14220. fi
  14221. ac_res=`eval echo '${'$as_ac_var'}'`
  14222. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14223. echo "${ECHO_T}$ac_res" >&6; }
  14224. if test `eval echo '${'$as_ac_var'}'` = yes; then
  14225. cat >>confdefs.h <<_ACEOF
  14226. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14227. _ACEOF
  14228. fi
  14229. done
  14230. { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  14231. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
  14232. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  14233. echo $ECHO_N "(cached) $ECHO_C" >&6
  14234. else
  14235. cat >conftest.$ac_ext <<_ACEOF
  14236. /* confdefs.h. */
  14237. _ACEOF
  14238. cat confdefs.h >>conftest.$ac_ext
  14239. cat >>conftest.$ac_ext <<_ACEOF
  14240. /* end confdefs.h. */
  14241. #include <stdio.h>
  14242. int
  14243. main ()
  14244. {
  14245. #ifndef _snprintf
  14246. char *p = (char *) _snprintf;
  14247. #endif
  14248. ;
  14249. return 0;
  14250. }
  14251. _ACEOF
  14252. rm -f conftest.$ac_objext
  14253. if { (ac_try="$ac_compile"
  14254. case "(($ac_try" in
  14255. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14256. *) ac_try_echo=$ac_try;;
  14257. esac
  14258. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14259. (eval "$ac_compile") 2>conftest.er1
  14260. ac_status=$?
  14261. grep -v '^ *+' conftest.er1 >conftest.err
  14262. rm -f conftest.er1
  14263. cat conftest.err >&5
  14264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14265. (exit $ac_status); } && {
  14266. test -z "$ac_cxx_werror_flag" ||
  14267. test ! -s conftest.err
  14268. } && test -s conftest.$ac_objext; then
  14269. ac_cv_have_decl__snprintf=yes
  14270. else
  14271. echo "$as_me: failed program was:" >&5
  14272. sed 's/^/| /' conftest.$ac_ext >&5
  14273. ac_cv_have_decl__snprintf=no
  14274. fi
  14275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14276. fi
  14277. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  14278. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
  14279. if test $ac_cv_have_decl__snprintf = yes; then
  14280. gt_value=1
  14281. else
  14282. gt_value=0
  14283. fi
  14284. cat >>confdefs.h <<_ACEOF
  14285. #define HAVE_DECL__SNPRINTF $gt_value
  14286. _ACEOF
  14287. { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  14288. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
  14289. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  14290. echo $ECHO_N "(cached) $ECHO_C" >&6
  14291. else
  14292. cat >conftest.$ac_ext <<_ACEOF
  14293. /* confdefs.h. */
  14294. _ACEOF
  14295. cat confdefs.h >>conftest.$ac_ext
  14296. cat >>conftest.$ac_ext <<_ACEOF
  14297. /* end confdefs.h. */
  14298. #include <stdio.h>
  14299. int
  14300. main ()
  14301. {
  14302. #ifndef _snwprintf
  14303. char *p = (char *) _snwprintf;
  14304. #endif
  14305. ;
  14306. return 0;
  14307. }
  14308. _ACEOF
  14309. rm -f conftest.$ac_objext
  14310. if { (ac_try="$ac_compile"
  14311. case "(($ac_try" in
  14312. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14313. *) ac_try_echo=$ac_try;;
  14314. esac
  14315. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14316. (eval "$ac_compile") 2>conftest.er1
  14317. ac_status=$?
  14318. grep -v '^ *+' conftest.er1 >conftest.err
  14319. rm -f conftest.er1
  14320. cat conftest.err >&5
  14321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14322. (exit $ac_status); } && {
  14323. test -z "$ac_cxx_werror_flag" ||
  14324. test ! -s conftest.err
  14325. } && test -s conftest.$ac_objext; then
  14326. ac_cv_have_decl__snwprintf=yes
  14327. else
  14328. echo "$as_me: failed program was:" >&5
  14329. sed 's/^/| /' conftest.$ac_ext >&5
  14330. ac_cv_have_decl__snwprintf=no
  14331. fi
  14332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14333. fi
  14334. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  14335. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
  14336. if test $ac_cv_have_decl__snwprintf = yes; then
  14337. gt_value=1
  14338. else
  14339. gt_value=0
  14340. fi
  14341. cat >>confdefs.h <<_ACEOF
  14342. #define HAVE_DECL__SNWPRINTF $gt_value
  14343. _ACEOF
  14344. { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  14345. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
  14346. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  14347. echo $ECHO_N "(cached) $ECHO_C" >&6
  14348. else
  14349. cat >conftest.$ac_ext <<_ACEOF
  14350. /* confdefs.h. */
  14351. _ACEOF
  14352. cat confdefs.h >>conftest.$ac_ext
  14353. cat >>conftest.$ac_ext <<_ACEOF
  14354. /* end confdefs.h. */
  14355. #include <stdio.h>
  14356. int
  14357. main ()
  14358. {
  14359. #ifndef getc_unlocked
  14360. char *p = (char *) getc_unlocked;
  14361. #endif
  14362. ;
  14363. return 0;
  14364. }
  14365. _ACEOF
  14366. rm -f conftest.$ac_objext
  14367. if { (ac_try="$ac_compile"
  14368. case "(($ac_try" in
  14369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14370. *) ac_try_echo=$ac_try;;
  14371. esac
  14372. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14373. (eval "$ac_compile") 2>conftest.er1
  14374. ac_status=$?
  14375. grep -v '^ *+' conftest.er1 >conftest.err
  14376. rm -f conftest.er1
  14377. cat conftest.err >&5
  14378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14379. (exit $ac_status); } && {
  14380. test -z "$ac_cxx_werror_flag" ||
  14381. test ! -s conftest.err
  14382. } && test -s conftest.$ac_objext; then
  14383. ac_cv_have_decl_getc_unlocked=yes
  14384. else
  14385. echo "$as_me: failed program was:" >&5
  14386. sed 's/^/| /' conftest.$ac_ext >&5
  14387. ac_cv_have_decl_getc_unlocked=no
  14388. fi
  14389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14390. fi
  14391. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  14392. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
  14393. if test $ac_cv_have_decl_getc_unlocked = yes; then
  14394. gt_value=1
  14395. else
  14396. gt_value=0
  14397. fi
  14398. cat >>confdefs.h <<_ACEOF
  14399. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  14400. _ACEOF
  14401. case $gt_cv_func_printf_posix in
  14402. *yes) HAVE_POSIX_PRINTF=1 ;;
  14403. *) HAVE_POSIX_PRINTF=0 ;;
  14404. esac
  14405. if test "$ac_cv_func_asprintf" = yes; then
  14406. HAVE_ASPRINTF=1
  14407. else
  14408. HAVE_ASPRINTF=0
  14409. fi
  14410. if test "$ac_cv_func_snprintf" = yes; then
  14411. HAVE_SNPRINTF=1
  14412. else
  14413. HAVE_SNPRINTF=0
  14414. fi
  14415. if test "$ac_cv_func_wprintf" = yes; then
  14416. HAVE_WPRINTF=1
  14417. else
  14418. HAVE_WPRINTF=0
  14419. fi
  14420. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  14421. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  14422. if test "${am_cv_langinfo_codeset+set}" = set; then
  14423. echo $ECHO_N "(cached) $ECHO_C" >&6
  14424. else
  14425. cat >conftest.$ac_ext <<_ACEOF
  14426. /* confdefs.h. */
  14427. _ACEOF
  14428. cat confdefs.h >>conftest.$ac_ext
  14429. cat >>conftest.$ac_ext <<_ACEOF
  14430. /* end confdefs.h. */
  14431. #include <langinfo.h>
  14432. int
  14433. main ()
  14434. {
  14435. char* cs = nl_langinfo(CODESET); return !cs;
  14436. ;
  14437. return 0;
  14438. }
  14439. _ACEOF
  14440. rm -f conftest.$ac_objext conftest$ac_exeext
  14441. if { (ac_try="$ac_link"
  14442. case "(($ac_try" in
  14443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14444. *) ac_try_echo=$ac_try;;
  14445. esac
  14446. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14447. (eval "$ac_link") 2>conftest.er1
  14448. ac_status=$?
  14449. grep -v '^ *+' conftest.er1 >conftest.err
  14450. rm -f conftest.er1
  14451. cat conftest.err >&5
  14452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14453. (exit $ac_status); } && {
  14454. test -z "$ac_cxx_werror_flag" ||
  14455. test ! -s conftest.err
  14456. } && test -s conftest$ac_exeext &&
  14457. $as_test_x conftest$ac_exeext; then
  14458. am_cv_langinfo_codeset=yes
  14459. else
  14460. echo "$as_me: failed program was:" >&5
  14461. sed 's/^/| /' conftest.$ac_ext >&5
  14462. am_cv_langinfo_codeset=no
  14463. fi
  14464. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14465. conftest$ac_exeext conftest.$ac_ext
  14466. fi
  14467. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  14468. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  14469. if test $am_cv_langinfo_codeset = yes; then
  14470. cat >>confdefs.h <<\_ACEOF
  14471. #define HAVE_LANGINFO_CODESET 1
  14472. _ACEOF
  14473. fi
  14474. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  14475. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  14476. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  14477. echo $ECHO_N "(cached) $ECHO_C" >&6
  14478. else
  14479. cat >conftest.$ac_ext <<_ACEOF
  14480. /* confdefs.h. */
  14481. _ACEOF
  14482. cat confdefs.h >>conftest.$ac_ext
  14483. cat >>conftest.$ac_ext <<_ACEOF
  14484. /* end confdefs.h. */
  14485. #include <locale.h>
  14486. int
  14487. main ()
  14488. {
  14489. return LC_MESSAGES
  14490. ;
  14491. return 0;
  14492. }
  14493. _ACEOF
  14494. rm -f conftest.$ac_objext conftest$ac_exeext
  14495. if { (ac_try="$ac_link"
  14496. case "(($ac_try" in
  14497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14498. *) ac_try_echo=$ac_try;;
  14499. esac
  14500. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14501. (eval "$ac_link") 2>conftest.er1
  14502. ac_status=$?
  14503. grep -v '^ *+' conftest.er1 >conftest.err
  14504. rm -f conftest.er1
  14505. cat conftest.err >&5
  14506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14507. (exit $ac_status); } && {
  14508. test -z "$ac_cxx_werror_flag" ||
  14509. test ! -s conftest.err
  14510. } && test -s conftest$ac_exeext &&
  14511. $as_test_x conftest$ac_exeext; then
  14512. gt_cv_val_LC_MESSAGES=yes
  14513. else
  14514. echo "$as_me: failed program was:" >&5
  14515. sed 's/^/| /' conftest.$ac_ext >&5
  14516. gt_cv_val_LC_MESSAGES=no
  14517. fi
  14518. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14519. conftest$ac_exeext conftest.$ac_ext
  14520. fi
  14521. { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  14522. echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
  14523. if test $gt_cv_val_LC_MESSAGES = yes; then
  14524. cat >>confdefs.h <<\_ACEOF
  14525. #define HAVE_LC_MESSAGES 1
  14526. _ACEOF
  14527. fi
  14528. if test "$enable_shared" = yes; then
  14529. case "$host_os" in
  14530. mingw* | cygwin*) is_woe32dll=yes ;;
  14531. *) is_woe32dll=no ;;
  14532. esac
  14533. else
  14534. is_woe32dll=no
  14535. fi
  14536. WOE32DLL=$is_woe32dll
  14537. case "$host_os" in
  14538. mingw* | cygwin*) is_woe32=yes ;;
  14539. *) is_woe32=no ;;
  14540. esac
  14541. WOE32=$is_woe32
  14542. if test $WOE32 = yes; then
  14543. if test -n "$ac_tool_prefix"; then
  14544. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  14545. set dummy ${ac_tool_prefix}windres; ac_word=$2
  14546. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  14547. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14548. if test "${ac_cv_prog_WINDRES+set}" = set; then
  14549. echo $ECHO_N "(cached) $ECHO_C" >&6
  14550. else
  14551. if test -n "$WINDRES"; then
  14552. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  14553. else
  14554. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14555. for as_dir in $PATH
  14556. do
  14557. IFS=$as_save_IFS
  14558. test -z "$as_dir" && as_dir=.
  14559. for ac_exec_ext in '' $ac_executable_extensions; do
  14560. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14561. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  14562. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14563. break 2
  14564. fi
  14565. done
  14566. done
  14567. IFS=$as_save_IFS
  14568. fi
  14569. fi
  14570. WINDRES=$ac_cv_prog_WINDRES
  14571. if test -n "$WINDRES"; then
  14572. { echo "$as_me:$LINENO: result: $WINDRES" >&5
  14573. echo "${ECHO_T}$WINDRES" >&6; }
  14574. else
  14575. { echo "$as_me:$LINENO: result: no" >&5
  14576. echo "${ECHO_T}no" >&6; }
  14577. fi
  14578. fi
  14579. if test -z "$ac_cv_prog_WINDRES"; then
  14580. ac_ct_WINDRES=$WINDRES
  14581. # Extract the first word of "windres", so it can be a program name with args.
  14582. set dummy windres; ac_word=$2
  14583. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  14584. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14585. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  14586. echo $ECHO_N "(cached) $ECHO_C" >&6
  14587. else
  14588. if test -n "$ac_ct_WINDRES"; then
  14589. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  14590. else
  14591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14592. for as_dir in $PATH
  14593. do
  14594. IFS=$as_save_IFS
  14595. test -z "$as_dir" && as_dir=.
  14596. for ac_exec_ext in '' $ac_executable_extensions; do
  14597. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14598. ac_cv_prog_ac_ct_WINDRES="windres"
  14599. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14600. break 2
  14601. fi
  14602. done
  14603. done
  14604. IFS=$as_save_IFS
  14605. fi
  14606. fi
  14607. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  14608. if test -n "$ac_ct_WINDRES"; then
  14609. { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  14610. echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
  14611. else
  14612. { echo "$as_me:$LINENO: result: no" >&5
  14613. echo "${ECHO_T}no" >&6; }
  14614. fi
  14615. if test "x$ac_ct_WINDRES" = x; then
  14616. WINDRES=""
  14617. else
  14618. case $cross_compiling:$ac_tool_warned in
  14619. yes:)
  14620. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  14621. whose name does not start with the host triplet. If you think this
  14622. configuration is useful to you, please write to autoconf@gnu.org." >&5
  14623. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  14624. whose name does not start with the host triplet. If you think this
  14625. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  14626. ac_tool_warned=yes ;;
  14627. esac
  14628. WINDRES=$ac_ct_WINDRES
  14629. fi
  14630. else
  14631. WINDRES="$ac_cv_prog_WINDRES"
  14632. fi
  14633. fi
  14634. case "$host_os" in
  14635. hpux*) LTLIBC="" ;;
  14636. *) LTLIBC="-lc" ;;
  14637. esac
  14638. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  14639. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  14640. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  14641. echo $ECHO_N "(cached) $ECHO_C" >&6
  14642. else
  14643. gt_save_LIBS="$LIBS"
  14644. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14645. cat >conftest.$ac_ext <<_ACEOF
  14646. /* confdefs.h. */
  14647. _ACEOF
  14648. cat confdefs.h >>conftest.$ac_ext
  14649. cat >>conftest.$ac_ext <<_ACEOF
  14650. /* end confdefs.h. */
  14651. #include <CoreFoundation/CFPreferences.h>
  14652. int
  14653. main ()
  14654. {
  14655. CFPreferencesCopyAppValue(NULL, NULL)
  14656. ;
  14657. return 0;
  14658. }
  14659. _ACEOF
  14660. rm -f conftest.$ac_objext conftest$ac_exeext
  14661. if { (ac_try="$ac_link"
  14662. case "(($ac_try" in
  14663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14664. *) ac_try_echo=$ac_try;;
  14665. esac
  14666. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14667. (eval "$ac_link") 2>conftest.er1
  14668. ac_status=$?
  14669. grep -v '^ *+' conftest.er1 >conftest.err
  14670. rm -f conftest.er1
  14671. cat conftest.err >&5
  14672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14673. (exit $ac_status); } && {
  14674. test -z "$ac_cxx_werror_flag" ||
  14675. test ! -s conftest.err
  14676. } && test -s conftest$ac_exeext &&
  14677. $as_test_x conftest$ac_exeext; then
  14678. gt_cv_func_CFPreferencesCopyAppValue=yes
  14679. else
  14680. echo "$as_me: failed program was:" >&5
  14681. sed 's/^/| /' conftest.$ac_ext >&5
  14682. gt_cv_func_CFPreferencesCopyAppValue=no
  14683. fi
  14684. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14685. conftest$ac_exeext conftest.$ac_ext
  14686. LIBS="$gt_save_LIBS"
  14687. fi
  14688. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  14689. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  14690. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  14691. cat >>confdefs.h <<\_ACEOF
  14692. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  14693. _ACEOF
  14694. fi
  14695. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  14696. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  14697. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  14698. echo $ECHO_N "(cached) $ECHO_C" >&6
  14699. else
  14700. gt_save_LIBS="$LIBS"
  14701. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14702. cat >conftest.$ac_ext <<_ACEOF
  14703. /* confdefs.h. */
  14704. _ACEOF
  14705. cat confdefs.h >>conftest.$ac_ext
  14706. cat >>conftest.$ac_ext <<_ACEOF
  14707. /* end confdefs.h. */
  14708. #include <CoreFoundation/CFLocale.h>
  14709. int
  14710. main ()
  14711. {
  14712. CFLocaleCopyCurrent();
  14713. ;
  14714. return 0;
  14715. }
  14716. _ACEOF
  14717. rm -f conftest.$ac_objext conftest$ac_exeext
  14718. if { (ac_try="$ac_link"
  14719. case "(($ac_try" in
  14720. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14721. *) ac_try_echo=$ac_try;;
  14722. esac
  14723. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14724. (eval "$ac_link") 2>conftest.er1
  14725. ac_status=$?
  14726. grep -v '^ *+' conftest.er1 >conftest.err
  14727. rm -f conftest.er1
  14728. cat conftest.err >&5
  14729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14730. (exit $ac_status); } && {
  14731. test -z "$ac_cxx_werror_flag" ||
  14732. test ! -s conftest.err
  14733. } && test -s conftest$ac_exeext &&
  14734. $as_test_x conftest$ac_exeext; then
  14735. gt_cv_func_CFLocaleCopyCurrent=yes
  14736. else
  14737. echo "$as_me: failed program was:" >&5
  14738. sed 's/^/| /' conftest.$ac_ext >&5
  14739. gt_cv_func_CFLocaleCopyCurrent=no
  14740. fi
  14741. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14742. conftest$ac_exeext conftest.$ac_ext
  14743. LIBS="$gt_save_LIBS"
  14744. fi
  14745. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  14746. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  14747. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14748. cat >>confdefs.h <<\_ACEOF
  14749. #define HAVE_CFLOCALECOPYCURRENT 1
  14750. _ACEOF
  14751. fi
  14752. INTL_MACOSX_LIBS=
  14753. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14754. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  14755. fi
  14756. BUILD_INCLUDED_LIBINTL=no
  14757. USE_INCLUDED_LIBINTL=no
  14758. LIBINTL=
  14759. LTLIBINTL=
  14760. POSUB=
  14761. case " $gt_needs " in
  14762. *" need-formatstring-macros "*) gt_api_version=3 ;;
  14763. *" need-ngettext "*) gt_api_version=2 ;;
  14764. *) gt_api_version=1 ;;
  14765. esac
  14766. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  14767. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  14768. if test "$USE_NLS" = "yes"; then
  14769. gt_use_preinstalled_gnugettext=no
  14770. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  14771. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  14772. # Check whether --with-included-gettext was given.
  14773. if test "${with_included_gettext+set}" = set; then
  14774. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  14775. else
  14776. nls_cv_force_use_gnu_gettext=no
  14777. fi
  14778. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  14779. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  14780. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  14781. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  14782. if test $gt_api_version -ge 3; then
  14783. gt_revision_test_code='
  14784. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  14785. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  14786. #endif
  14787. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  14788. '
  14789. else
  14790. gt_revision_test_code=
  14791. fi
  14792. if test $gt_api_version -ge 2; then
  14793. gt_expression_test_code=' + * ngettext ("", "", 0)'
  14794. else
  14795. gt_expression_test_code=
  14796. fi
  14797. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  14798. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  14799. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  14800. echo $ECHO_N "(cached) $ECHO_C" >&6
  14801. else
  14802. cat >conftest.$ac_ext <<_ACEOF
  14803. /* confdefs.h. */
  14804. _ACEOF
  14805. cat confdefs.h >>conftest.$ac_ext
  14806. cat >>conftest.$ac_ext <<_ACEOF
  14807. /* end confdefs.h. */
  14808. #include <libintl.h>
  14809. $gt_revision_test_code
  14810. extern int _nl_msg_cat_cntr;
  14811. extern int *_nl_domain_bindings;
  14812. int
  14813. main ()
  14814. {
  14815. bindtextdomain ("", "");
  14816. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  14817. ;
  14818. return 0;
  14819. }
  14820. _ACEOF
  14821. rm -f conftest.$ac_objext conftest$ac_exeext
  14822. if { (ac_try="$ac_link"
  14823. case "(($ac_try" in
  14824. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14825. *) ac_try_echo=$ac_try;;
  14826. esac
  14827. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14828. (eval "$ac_link") 2>conftest.er1
  14829. ac_status=$?
  14830. grep -v '^ *+' conftest.er1 >conftest.err
  14831. rm -f conftest.er1
  14832. cat conftest.err >&5
  14833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14834. (exit $ac_status); } && {
  14835. test -z "$ac_cxx_werror_flag" ||
  14836. test ! -s conftest.err
  14837. } && test -s conftest$ac_exeext &&
  14838. $as_test_x conftest$ac_exeext; then
  14839. eval "$gt_func_gnugettext_libc=yes"
  14840. else
  14841. echo "$as_me: failed program was:" >&5
  14842. sed 's/^/| /' conftest.$ac_ext >&5
  14843. eval "$gt_func_gnugettext_libc=no"
  14844. fi
  14845. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14846. conftest$ac_exeext conftest.$ac_ext
  14847. fi
  14848. ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
  14849. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14850. echo "${ECHO_T}$ac_res" >&6; }
  14851. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  14852. use_additional=yes
  14853. acl_save_prefix="$prefix"
  14854. prefix="$acl_final_prefix"
  14855. acl_save_exec_prefix="$exec_prefix"
  14856. exec_prefix="$acl_final_exec_prefix"
  14857. eval additional_includedir=\"$includedir\"
  14858. eval additional_libdir=\"$libdir\"
  14859. exec_prefix="$acl_save_exec_prefix"
  14860. prefix="$acl_save_prefix"
  14861. # Check whether --with-libintl-prefix was given.
  14862. if test "${with_libintl_prefix+set}" = set; then
  14863. withval=$with_libintl_prefix;
  14864. if test "X$withval" = "Xno"; then
  14865. use_additional=no
  14866. else
  14867. if test "X$withval" = "X"; then
  14868. acl_save_prefix="$prefix"
  14869. prefix="$acl_final_prefix"
  14870. acl_save_exec_prefix="$exec_prefix"
  14871. exec_prefix="$acl_final_exec_prefix"
  14872. eval additional_includedir=\"$includedir\"
  14873. eval additional_libdir=\"$libdir\"
  14874. exec_prefix="$acl_save_exec_prefix"
  14875. prefix="$acl_save_prefix"
  14876. else
  14877. additional_includedir="$withval/include"
  14878. additional_libdir="$withval/$acl_libdirstem"
  14879. fi
  14880. fi
  14881. fi
  14882. LIBINTL=
  14883. LTLIBINTL=
  14884. INCINTL=
  14885. LIBINTL_PREFIX=
  14886. rpathdirs=
  14887. ltrpathdirs=
  14888. names_already_handled=
  14889. names_next_round='intl '
  14890. while test -n "$names_next_round"; do
  14891. names_this_round="$names_next_round"
  14892. names_next_round=
  14893. for name in $names_this_round; do
  14894. already_handled=
  14895. for n in $names_already_handled; do
  14896. if test "$n" = "$name"; then
  14897. already_handled=yes
  14898. break
  14899. fi
  14900. done
  14901. if test -z "$already_handled"; then
  14902. names_already_handled="$names_already_handled $name"
  14903. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  14904. eval value=\"\$HAVE_LIB$uppername\"
  14905. if test -n "$value"; then
  14906. if test "$value" = yes; then
  14907. eval value=\"\$LIB$uppername\"
  14908. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  14909. eval value=\"\$LTLIB$uppername\"
  14910. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  14911. else
  14912. :
  14913. fi
  14914. else
  14915. found_dir=
  14916. found_la=
  14917. found_so=
  14918. found_a=
  14919. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  14920. if test -n "$acl_shlibext"; then
  14921. shrext=".$acl_shlibext" # typically: shrext=.so
  14922. else
  14923. shrext=
  14924. fi
  14925. if test $use_additional = yes; then
  14926. dir="$additional_libdir"
  14927. if test -n "$acl_shlibext"; then
  14928. if test -f "$dir/$libname$shrext"; then
  14929. found_dir="$dir"
  14930. found_so="$dir/$libname$shrext"
  14931. else
  14932. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  14933. ver=`(cd "$dir" && \
  14934. for f in "$libname$shrext".*; do echo "$f"; done \
  14935. | sed -e "s,^$libname$shrext\\\\.,," \
  14936. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  14937. | sed 1q ) 2>/dev/null`
  14938. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  14939. found_dir="$dir"
  14940. found_so="$dir/$libname$shrext.$ver"
  14941. fi
  14942. else
  14943. eval library_names=\"$acl_library_names_spec\"
  14944. for f in $library_names; do
  14945. if test -f "$dir/$f"; then
  14946. found_dir="$dir"
  14947. found_so="$dir/$f"
  14948. break
  14949. fi
  14950. done
  14951. fi
  14952. fi
  14953. fi
  14954. if test "X$found_dir" = "X"; then
  14955. if test -f "$dir/$libname.$acl_libext"; then
  14956. found_dir="$dir"
  14957. found_a="$dir/$libname.$acl_libext"
  14958. fi
  14959. fi
  14960. if test "X$found_dir" != "X"; then
  14961. if test -f "$dir/$libname.la"; then
  14962. found_la="$dir/$libname.la"
  14963. fi
  14964. fi
  14965. fi
  14966. if test "X$found_dir" = "X"; then
  14967. for x in $LDFLAGS $LTLIBINTL; do
  14968. acl_save_prefix="$prefix"
  14969. prefix="$acl_final_prefix"
  14970. acl_save_exec_prefix="$exec_prefix"
  14971. exec_prefix="$acl_final_exec_prefix"
  14972. eval x=\"$x\"
  14973. exec_prefix="$acl_save_exec_prefix"
  14974. prefix="$acl_save_prefix"
  14975. case "$x" in
  14976. -L*)
  14977. dir=`echo "X$x" | sed -e 's/^X-L//'`
  14978. if test -n "$acl_shlibext"; then
  14979. if test -f "$dir/$libname$shrext"; then
  14980. found_dir="$dir"
  14981. found_so="$dir/$libname$shrext"
  14982. else
  14983. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  14984. ver=`(cd "$dir" && \
  14985. for f in "$libname$shrext".*; do echo "$f"; done \
  14986. | sed -e "s,^$libname$shrext\\\\.,," \
  14987. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  14988. | sed 1q ) 2>/dev/null`
  14989. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  14990. found_dir="$dir"
  14991. found_so="$dir/$libname$shrext.$ver"
  14992. fi
  14993. else
  14994. eval library_names=\"$acl_library_names_spec\"
  14995. for f in $library_names; do
  14996. if test -f "$dir/$f"; then
  14997. found_dir="$dir"
  14998. found_so="$dir/$f"
  14999. break
  15000. fi
  15001. done
  15002. fi
  15003. fi
  15004. fi
  15005. if test "X$found_dir" = "X"; then
  15006. if test -f "$dir/$libname.$acl_libext"; then
  15007. found_dir="$dir"
  15008. found_a="$dir/$libname.$acl_libext"
  15009. fi
  15010. fi
  15011. if test "X$found_dir" != "X"; then
  15012. if test -f "$dir/$libname.la"; then
  15013. found_la="$dir/$libname.la"
  15014. fi
  15015. fi
  15016. ;;
  15017. esac
  15018. if test "X$found_dir" != "X"; then
  15019. break
  15020. fi
  15021. done
  15022. fi
  15023. if test "X$found_dir" != "X"; then
  15024. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  15025. if test "X$found_so" != "X"; then
  15026. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  15027. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15028. else
  15029. haveit=
  15030. for x in $ltrpathdirs; do
  15031. if test "X$x" = "X$found_dir"; then
  15032. haveit=yes
  15033. break
  15034. fi
  15035. done
  15036. if test -z "$haveit"; then
  15037. ltrpathdirs="$ltrpathdirs $found_dir"
  15038. fi
  15039. if test "$acl_hardcode_direct" = yes; then
  15040. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15041. else
  15042. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  15043. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15044. haveit=
  15045. for x in $rpathdirs; do
  15046. if test "X$x" = "X$found_dir"; then
  15047. haveit=yes
  15048. break
  15049. fi
  15050. done
  15051. if test -z "$haveit"; then
  15052. rpathdirs="$rpathdirs $found_dir"
  15053. fi
  15054. else
  15055. haveit=
  15056. for x in $LDFLAGS $LIBINTL; do
  15057. acl_save_prefix="$prefix"
  15058. prefix="$acl_final_prefix"
  15059. acl_save_exec_prefix="$exec_prefix"
  15060. exec_prefix="$acl_final_exec_prefix"
  15061. eval x=\"$x\"
  15062. exec_prefix="$acl_save_exec_prefix"
  15063. prefix="$acl_save_prefix"
  15064. if test "X$x" = "X-L$found_dir"; then
  15065. haveit=yes
  15066. break
  15067. fi
  15068. done
  15069. if test -z "$haveit"; then
  15070. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  15071. fi
  15072. if test "$acl_hardcode_minus_L" != no; then
  15073. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15074. else
  15075. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15076. fi
  15077. fi
  15078. fi
  15079. fi
  15080. else
  15081. if test "X$found_a" != "X"; then
  15082. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  15083. else
  15084. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  15085. fi
  15086. fi
  15087. additional_includedir=
  15088. case "$found_dir" in
  15089. */$acl_libdirstem | */$acl_libdirstem/)
  15090. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  15091. LIBINTL_PREFIX="$basedir"
  15092. additional_includedir="$basedir/include"
  15093. ;;
  15094. esac
  15095. if test "X$additional_includedir" != "X"; then
  15096. if test "X$additional_includedir" != "X/usr/include"; then
  15097. haveit=
  15098. if test "X$additional_includedir" = "X/usr/local/include"; then
  15099. if test -n "$GCC"; then
  15100. case $host_os in
  15101. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15102. esac
  15103. fi
  15104. fi
  15105. if test -z "$haveit"; then
  15106. for x in $CPPFLAGS $INCINTL; do
  15107. acl_save_prefix="$prefix"
  15108. prefix="$acl_final_prefix"
  15109. acl_save_exec_prefix="$exec_prefix"
  15110. exec_prefix="$acl_final_exec_prefix"
  15111. eval x=\"$x\"
  15112. exec_prefix="$acl_save_exec_prefix"
  15113. prefix="$acl_save_prefix"
  15114. if test "X$x" = "X-I$additional_includedir"; then
  15115. haveit=yes
  15116. break
  15117. fi
  15118. done
  15119. if test -z "$haveit"; then
  15120. if test -d "$additional_includedir"; then
  15121. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  15122. fi
  15123. fi
  15124. fi
  15125. fi
  15126. fi
  15127. if test -n "$found_la"; then
  15128. save_libdir="$libdir"
  15129. case "$found_la" in
  15130. */* | *\\*) . "$found_la" ;;
  15131. *) . "./$found_la" ;;
  15132. esac
  15133. libdir="$save_libdir"
  15134. for dep in $dependency_libs; do
  15135. case "$dep" in
  15136. -L*)
  15137. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  15138. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  15139. haveit=
  15140. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  15141. if test -n "$GCC"; then
  15142. case $host_os in
  15143. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15144. esac
  15145. fi
  15146. fi
  15147. if test -z "$haveit"; then
  15148. haveit=
  15149. for x in $LDFLAGS $LIBINTL; do
  15150. acl_save_prefix="$prefix"
  15151. prefix="$acl_final_prefix"
  15152. acl_save_exec_prefix="$exec_prefix"
  15153. exec_prefix="$acl_final_exec_prefix"
  15154. eval x=\"$x\"
  15155. exec_prefix="$acl_save_exec_prefix"
  15156. prefix="$acl_save_prefix"
  15157. if test "X$x" = "X-L$additional_libdir"; then
  15158. haveit=yes
  15159. break
  15160. fi
  15161. done
  15162. if test -z "$haveit"; then
  15163. if test -d "$additional_libdir"; then
  15164. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  15165. fi
  15166. fi
  15167. haveit=
  15168. for x in $LDFLAGS $LTLIBINTL; do
  15169. acl_save_prefix="$prefix"
  15170. prefix="$acl_final_prefix"
  15171. acl_save_exec_prefix="$exec_prefix"
  15172. exec_prefix="$acl_final_exec_prefix"
  15173. eval x=\"$x\"
  15174. exec_prefix="$acl_save_exec_prefix"
  15175. prefix="$acl_save_prefix"
  15176. if test "X$x" = "X-L$additional_libdir"; then
  15177. haveit=yes
  15178. break
  15179. fi
  15180. done
  15181. if test -z "$haveit"; then
  15182. if test -d "$additional_libdir"; then
  15183. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  15184. fi
  15185. fi
  15186. fi
  15187. fi
  15188. ;;
  15189. -R*)
  15190. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  15191. if test "$enable_rpath" != no; then
  15192. haveit=
  15193. for x in $rpathdirs; do
  15194. if test "X$x" = "X$dir"; then
  15195. haveit=yes
  15196. break
  15197. fi
  15198. done
  15199. if test -z "$haveit"; then
  15200. rpathdirs="$rpathdirs $dir"
  15201. fi
  15202. haveit=
  15203. for x in $ltrpathdirs; do
  15204. if test "X$x" = "X$dir"; then
  15205. haveit=yes
  15206. break
  15207. fi
  15208. done
  15209. if test -z "$haveit"; then
  15210. ltrpathdirs="$ltrpathdirs $dir"
  15211. fi
  15212. fi
  15213. ;;
  15214. -l*)
  15215. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  15216. ;;
  15217. *.la)
  15218. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  15219. ;;
  15220. *)
  15221. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  15222. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  15223. ;;
  15224. esac
  15225. done
  15226. fi
  15227. else
  15228. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15229. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  15230. fi
  15231. fi
  15232. fi
  15233. done
  15234. done
  15235. if test "X$rpathdirs" != "X"; then
  15236. if test -n "$acl_hardcode_libdir_separator"; then
  15237. alldirs=
  15238. for found_dir in $rpathdirs; do
  15239. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  15240. done
  15241. acl_save_libdir="$libdir"
  15242. libdir="$alldirs"
  15243. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15244. libdir="$acl_save_libdir"
  15245. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15246. else
  15247. for found_dir in $rpathdirs; do
  15248. acl_save_libdir="$libdir"
  15249. libdir="$found_dir"
  15250. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15251. libdir="$acl_save_libdir"
  15252. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15253. done
  15254. fi
  15255. fi
  15256. if test "X$ltrpathdirs" != "X"; then
  15257. for found_dir in $ltrpathdirs; do
  15258. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  15259. done
  15260. fi
  15261. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  15262. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  15263. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  15264. echo $ECHO_N "(cached) $ECHO_C" >&6
  15265. else
  15266. gt_save_CPPFLAGS="$CPPFLAGS"
  15267. CPPFLAGS="$CPPFLAGS $INCINTL"
  15268. gt_save_LIBS="$LIBS"
  15269. LIBS="$LIBS $LIBINTL"
  15270. cat >conftest.$ac_ext <<_ACEOF
  15271. /* confdefs.h. */
  15272. _ACEOF
  15273. cat confdefs.h >>conftest.$ac_ext
  15274. cat >>conftest.$ac_ext <<_ACEOF
  15275. /* end confdefs.h. */
  15276. #include <libintl.h>
  15277. $gt_revision_test_code
  15278. extern int _nl_msg_cat_cntr;
  15279. extern
  15280. #ifdef __cplusplus
  15281. "C"
  15282. #endif
  15283. const char *_nl_expand_alias (const char *);
  15284. int
  15285. main ()
  15286. {
  15287. bindtextdomain ("", "");
  15288. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  15289. ;
  15290. return 0;
  15291. }
  15292. _ACEOF
  15293. rm -f conftest.$ac_objext conftest$ac_exeext
  15294. if { (ac_try="$ac_link"
  15295. case "(($ac_try" in
  15296. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15297. *) ac_try_echo=$ac_try;;
  15298. esac
  15299. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15300. (eval "$ac_link") 2>conftest.er1
  15301. ac_status=$?
  15302. grep -v '^ *+' conftest.er1 >conftest.err
  15303. rm -f conftest.er1
  15304. cat conftest.err >&5
  15305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15306. (exit $ac_status); } && {
  15307. test -z "$ac_cxx_werror_flag" ||
  15308. test ! -s conftest.err
  15309. } && test -s conftest$ac_exeext &&
  15310. $as_test_x conftest$ac_exeext; then
  15311. eval "$gt_func_gnugettext_libintl=yes"
  15312. else
  15313. echo "$as_me: failed program was:" >&5
  15314. sed 's/^/| /' conftest.$ac_ext >&5
  15315. eval "$gt_func_gnugettext_libintl=no"
  15316. fi
  15317. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15318. conftest$ac_exeext conftest.$ac_ext
  15319. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  15320. LIBS="$LIBS $LIBICONV"
  15321. cat >conftest.$ac_ext <<_ACEOF
  15322. /* confdefs.h. */
  15323. _ACEOF
  15324. cat confdefs.h >>conftest.$ac_ext
  15325. cat >>conftest.$ac_ext <<_ACEOF
  15326. /* end confdefs.h. */
  15327. #include <libintl.h>
  15328. $gt_revision_test_code
  15329. extern int _nl_msg_cat_cntr;
  15330. extern
  15331. #ifdef __cplusplus
  15332. "C"
  15333. #endif
  15334. const char *_nl_expand_alias (const char *);
  15335. int
  15336. main ()
  15337. {
  15338. bindtextdomain ("", "");
  15339. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  15340. ;
  15341. return 0;
  15342. }
  15343. _ACEOF
  15344. rm -f conftest.$ac_objext conftest$ac_exeext
  15345. if { (ac_try="$ac_link"
  15346. case "(($ac_try" in
  15347. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15348. *) ac_try_echo=$ac_try;;
  15349. esac
  15350. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15351. (eval "$ac_link") 2>conftest.er1
  15352. ac_status=$?
  15353. grep -v '^ *+' conftest.er1 >conftest.err
  15354. rm -f conftest.er1
  15355. cat conftest.err >&5
  15356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15357. (exit $ac_status); } && {
  15358. test -z "$ac_cxx_werror_flag" ||
  15359. test ! -s conftest.err
  15360. } && test -s conftest$ac_exeext &&
  15361. $as_test_x conftest$ac_exeext; then
  15362. LIBINTL="$LIBINTL $LIBICONV"
  15363. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  15364. eval "$gt_func_gnugettext_libintl=yes"
  15365. else
  15366. echo "$as_me: failed program was:" >&5
  15367. sed 's/^/| /' conftest.$ac_ext >&5
  15368. fi
  15369. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15370. conftest$ac_exeext conftest.$ac_ext
  15371. fi
  15372. CPPFLAGS="$gt_save_CPPFLAGS"
  15373. LIBS="$gt_save_LIBS"
  15374. fi
  15375. ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
  15376. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15377. echo "${ECHO_T}$ac_res" >&6; }
  15378. fi
  15379. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  15380. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  15381. && test "$PACKAGE" != gettext-runtime \
  15382. && test "$PACKAGE" != gettext-tools; }; then
  15383. gt_use_preinstalled_gnugettext=yes
  15384. else
  15385. LIBINTL=
  15386. LTLIBINTL=
  15387. INCINTL=
  15388. fi
  15389. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  15390. nls_cv_use_gnu_gettext=yes
  15391. fi
  15392. fi
  15393. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  15394. BUILD_INCLUDED_LIBINTL=yes
  15395. USE_INCLUDED_LIBINTL=yes
  15396. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  15397. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  15398. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  15399. fi
  15400. CATOBJEXT=
  15401. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15402. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15403. CATOBJEXT=.gmo
  15404. fi
  15405. if test -n "$INTL_MACOSX_LIBS"; then
  15406. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15407. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15408. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  15409. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  15410. fi
  15411. fi
  15412. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15413. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15414. cat >>confdefs.h <<\_ACEOF
  15415. #define ENABLE_NLS 1
  15416. _ACEOF
  15417. else
  15418. USE_NLS=no
  15419. fi
  15420. fi
  15421. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  15422. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  15423. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  15424. echo "${ECHO_T}$USE_NLS" >&6; }
  15425. if test "$USE_NLS" = "yes"; then
  15426. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  15427. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  15428. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  15429. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  15430. gt_source="external libintl"
  15431. else
  15432. gt_source="libc"
  15433. fi
  15434. else
  15435. gt_source="included intl directory"
  15436. fi
  15437. { echo "$as_me:$LINENO: result: $gt_source" >&5
  15438. echo "${ECHO_T}$gt_source" >&6; }
  15439. fi
  15440. if test "$USE_NLS" = "yes"; then
  15441. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  15442. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  15443. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  15444. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  15445. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  15446. echo "${ECHO_T}$LIBINTL" >&6; }
  15447. for element in $INCINTL; do
  15448. haveit=
  15449. for x in $CPPFLAGS; do
  15450. acl_save_prefix="$prefix"
  15451. prefix="$acl_final_prefix"
  15452. acl_save_exec_prefix="$exec_prefix"
  15453. exec_prefix="$acl_final_exec_prefix"
  15454. eval x=\"$x\"
  15455. exec_prefix="$acl_save_exec_prefix"
  15456. prefix="$acl_save_prefix"
  15457. if test "X$x" = "X$element"; then
  15458. haveit=yes
  15459. break
  15460. fi
  15461. done
  15462. if test -z "$haveit"; then
  15463. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  15464. fi
  15465. done
  15466. fi
  15467. cat >>confdefs.h <<\_ACEOF
  15468. #define HAVE_GETTEXT 1
  15469. _ACEOF
  15470. cat >>confdefs.h <<\_ACEOF
  15471. #define HAVE_DCGETTEXT 1
  15472. _ACEOF
  15473. fi
  15474. POSUB=po
  15475. fi
  15476. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  15477. BUILD_INCLUDED_LIBINTL=yes
  15478. fi
  15479. nls_cv_header_intl=
  15480. nls_cv_header_libgt=
  15481. DATADIRNAME=share
  15482. INSTOBJEXT=.mo
  15483. GENCAT=gencat
  15484. INTLOBJS=
  15485. if test "$USE_INCLUDED_LIBINTL" = yes; then
  15486. INTLOBJS="\$(GETTOBJS)"
  15487. fi
  15488. INTL_LIBTOOL_SUFFIX_PREFIX=
  15489. INTLLIBS="$LIBINTL"
  15490. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  15491. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  15492. if test "${ac_cv_lib_error_at_line+set}" = set; then
  15493. echo $ECHO_N "(cached) $ECHO_C" >&6
  15494. else
  15495. cat >conftest.$ac_ext <<_ACEOF
  15496. /* confdefs.h. */
  15497. _ACEOF
  15498. cat confdefs.h >>conftest.$ac_ext
  15499. cat >>conftest.$ac_ext <<_ACEOF
  15500. /* end confdefs.h. */
  15501. #include <error.h>
  15502. int
  15503. main ()
  15504. {
  15505. error_at_line (0, 0, "", 0, "an error occurred");
  15506. ;
  15507. return 0;
  15508. }
  15509. _ACEOF
  15510. rm -f conftest.$ac_objext conftest$ac_exeext
  15511. if { (ac_try="$ac_link"
  15512. case "(($ac_try" in
  15513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15514. *) ac_try_echo=$ac_try;;
  15515. esac
  15516. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15517. (eval "$ac_link") 2>conftest.er1
  15518. ac_status=$?
  15519. grep -v '^ *+' conftest.er1 >conftest.err
  15520. rm -f conftest.er1
  15521. cat conftest.err >&5
  15522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15523. (exit $ac_status); } && {
  15524. test -z "$ac_cxx_werror_flag" ||
  15525. test ! -s conftest.err
  15526. } && test -s conftest$ac_exeext &&
  15527. $as_test_x conftest$ac_exeext; then
  15528. ac_cv_lib_error_at_line=yes
  15529. else
  15530. echo "$as_me: failed program was:" >&5
  15531. sed 's/^/| /' conftest.$ac_ext >&5
  15532. ac_cv_lib_error_at_line=no
  15533. fi
  15534. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15535. conftest$ac_exeext conftest.$ac_ext
  15536. fi
  15537. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  15538. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  15539. if test $ac_cv_lib_error_at_line = no; then
  15540. case " $LIBOBJS " in
  15541. *" error.$ac_objext "* ) ;;
  15542. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  15543. ;;
  15544. esac
  15545. fi
  15546. if test $ac_cv_c_compiler_gnu = yes; then
  15547. { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  15548. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
  15549. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  15550. echo $ECHO_N "(cached) $ECHO_C" >&6
  15551. else
  15552. ac_pattern="Autoconf.*'x'"
  15553. cat >conftest.$ac_ext <<_ACEOF
  15554. /* confdefs.h. */
  15555. _ACEOF
  15556. cat confdefs.h >>conftest.$ac_ext
  15557. cat >>conftest.$ac_ext <<_ACEOF
  15558. /* end confdefs.h. */
  15559. #include <sgtty.h>
  15560. Autoconf TIOCGETP
  15561. _ACEOF
  15562. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15563. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  15564. ac_cv_prog_gcc_traditional=yes
  15565. else
  15566. ac_cv_prog_gcc_traditional=no
  15567. fi
  15568. rm -f conftest*
  15569. if test $ac_cv_prog_gcc_traditional = no; then
  15570. cat >conftest.$ac_ext <<_ACEOF
  15571. /* confdefs.h. */
  15572. _ACEOF
  15573. cat confdefs.h >>conftest.$ac_ext
  15574. cat >>conftest.$ac_ext <<_ACEOF
  15575. /* end confdefs.h. */
  15576. #include <termio.h>
  15577. Autoconf TCGETA
  15578. _ACEOF
  15579. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15580. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  15581. ac_cv_prog_gcc_traditional=yes
  15582. fi
  15583. rm -f conftest*
  15584. fi
  15585. fi
  15586. { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  15587. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
  15588. if test $ac_cv_prog_gcc_traditional = yes; then
  15589. CC="$CC -traditional"
  15590. fi
  15591. fi
  15592. case "$target" in
  15593. *mingw*)
  15594. ;;
  15595. *)
  15596. for ac_header in stdlib.h
  15597. do
  15598. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15599. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15600. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15601. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15602. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15603. echo $ECHO_N "(cached) $ECHO_C" >&6
  15604. fi
  15605. ac_res=`eval echo '${'$as_ac_Header'}'`
  15606. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15607. echo "${ECHO_T}$ac_res" >&6; }
  15608. else
  15609. # Is the header compilable?
  15610. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15611. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  15612. cat >conftest.$ac_ext <<_ACEOF
  15613. /* confdefs.h. */
  15614. _ACEOF
  15615. cat confdefs.h >>conftest.$ac_ext
  15616. cat >>conftest.$ac_ext <<_ACEOF
  15617. /* end confdefs.h. */
  15618. $ac_includes_default
  15619. #include <$ac_header>
  15620. _ACEOF
  15621. rm -f conftest.$ac_objext
  15622. if { (ac_try="$ac_compile"
  15623. case "(($ac_try" in
  15624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15625. *) ac_try_echo=$ac_try;;
  15626. esac
  15627. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15628. (eval "$ac_compile") 2>conftest.er1
  15629. ac_status=$?
  15630. grep -v '^ *+' conftest.er1 >conftest.err
  15631. rm -f conftest.er1
  15632. cat conftest.err >&5
  15633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15634. (exit $ac_status); } && {
  15635. test -z "$ac_cxx_werror_flag" ||
  15636. test ! -s conftest.err
  15637. } && test -s conftest.$ac_objext; then
  15638. ac_header_compiler=yes
  15639. else
  15640. echo "$as_me: failed program was:" >&5
  15641. sed 's/^/| /' conftest.$ac_ext >&5
  15642. ac_header_compiler=no
  15643. fi
  15644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15645. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15646. echo "${ECHO_T}$ac_header_compiler" >&6; }
  15647. # Is the header present?
  15648. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15649. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  15650. cat >conftest.$ac_ext <<_ACEOF
  15651. /* confdefs.h. */
  15652. _ACEOF
  15653. cat confdefs.h >>conftest.$ac_ext
  15654. cat >>conftest.$ac_ext <<_ACEOF
  15655. /* end confdefs.h. */
  15656. #include <$ac_header>
  15657. _ACEOF
  15658. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15659. case "(($ac_try" in
  15660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15661. *) ac_try_echo=$ac_try;;
  15662. esac
  15663. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15664. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15665. ac_status=$?
  15666. grep -v '^ *+' conftest.er1 >conftest.err
  15667. rm -f conftest.er1
  15668. cat conftest.err >&5
  15669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15670. (exit $ac_status); } >/dev/null && {
  15671. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15672. test ! -s conftest.err
  15673. }; then
  15674. ac_header_preproc=yes
  15675. else
  15676. echo "$as_me: failed program was:" >&5
  15677. sed 's/^/| /' conftest.$ac_ext >&5
  15678. ac_header_preproc=no
  15679. fi
  15680. rm -f conftest.err conftest.$ac_ext
  15681. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15682. echo "${ECHO_T}$ac_header_preproc" >&6; }
  15683. # So? What about this header?
  15684. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15685. yes:no: )
  15686. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15687. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15688. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15689. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15690. ac_header_preproc=yes
  15691. ;;
  15692. no:yes:* )
  15693. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15694. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15695. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15696. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15697. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15698. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15699. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15700. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15701. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15702. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15703. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15704. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15705. ( cat <<\_ASBOX
  15706. ## ----------------------------------------------- ##
  15707. ## Report this to t-tujikawa@users.sourceforge.net ##
  15708. ## ----------------------------------------------- ##
  15709. _ASBOX
  15710. ) | sed "s/^/$as_me: WARNING: /" >&2
  15711. ;;
  15712. esac
  15713. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15714. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15715. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15716. echo $ECHO_N "(cached) $ECHO_C" >&6
  15717. else
  15718. eval "$as_ac_Header=\$ac_header_preproc"
  15719. fi
  15720. ac_res=`eval echo '${'$as_ac_Header'}'`
  15721. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15722. echo "${ECHO_T}$ac_res" >&6; }
  15723. fi
  15724. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  15725. cat >>confdefs.h <<_ACEOF
  15726. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15727. _ACEOF
  15728. fi
  15729. done
  15730. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  15731. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  15732. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  15733. echo $ECHO_N "(cached) $ECHO_C" >&6
  15734. else
  15735. if test "$cross_compiling" = yes; then
  15736. ac_cv_func_malloc_0_nonnull=no
  15737. else
  15738. cat >conftest.$ac_ext <<_ACEOF
  15739. /* confdefs.h. */
  15740. _ACEOF
  15741. cat confdefs.h >>conftest.$ac_ext
  15742. cat >>conftest.$ac_ext <<_ACEOF
  15743. /* end confdefs.h. */
  15744. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  15745. # include <stdlib.h>
  15746. #else
  15747. char *malloc ();
  15748. #endif
  15749. int
  15750. main ()
  15751. {
  15752. return ! malloc (0);
  15753. ;
  15754. return 0;
  15755. }
  15756. _ACEOF
  15757. rm -f conftest$ac_exeext
  15758. if { (ac_try="$ac_link"
  15759. case "(($ac_try" in
  15760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15761. *) ac_try_echo=$ac_try;;
  15762. esac
  15763. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15764. (eval "$ac_link") 2>&5
  15765. ac_status=$?
  15766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15767. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15768. { (case "(($ac_try" in
  15769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15770. *) ac_try_echo=$ac_try;;
  15771. esac
  15772. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15773. (eval "$ac_try") 2>&5
  15774. ac_status=$?
  15775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15776. (exit $ac_status); }; }; then
  15777. ac_cv_func_malloc_0_nonnull=yes
  15778. else
  15779. echo "$as_me: program exited with status $ac_status" >&5
  15780. echo "$as_me: failed program was:" >&5
  15781. sed 's/^/| /' conftest.$ac_ext >&5
  15782. ( exit $ac_status )
  15783. ac_cv_func_malloc_0_nonnull=no
  15784. fi
  15785. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15786. fi
  15787. fi
  15788. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  15789. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  15790. if test $ac_cv_func_malloc_0_nonnull = yes; then
  15791. cat >>confdefs.h <<\_ACEOF
  15792. #define HAVE_MALLOC 1
  15793. _ACEOF
  15794. else
  15795. cat >>confdefs.h <<\_ACEOF
  15796. #define HAVE_MALLOC 0
  15797. _ACEOF
  15798. case " $LIBOBJS " in
  15799. *" malloc.$ac_objext "* ) ;;
  15800. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  15801. ;;
  15802. esac
  15803. cat >>confdefs.h <<\_ACEOF
  15804. #define malloc rpl_malloc
  15805. _ACEOF
  15806. fi
  15807. for ac_header in stdlib.h
  15808. do
  15809. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15810. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15811. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15812. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15813. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15814. echo $ECHO_N "(cached) $ECHO_C" >&6
  15815. fi
  15816. ac_res=`eval echo '${'$as_ac_Header'}'`
  15817. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15818. echo "${ECHO_T}$ac_res" >&6; }
  15819. else
  15820. # Is the header compilable?
  15821. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15822. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  15823. cat >conftest.$ac_ext <<_ACEOF
  15824. /* confdefs.h. */
  15825. _ACEOF
  15826. cat confdefs.h >>conftest.$ac_ext
  15827. cat >>conftest.$ac_ext <<_ACEOF
  15828. /* end confdefs.h. */
  15829. $ac_includes_default
  15830. #include <$ac_header>
  15831. _ACEOF
  15832. rm -f conftest.$ac_objext
  15833. if { (ac_try="$ac_compile"
  15834. case "(($ac_try" in
  15835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15836. *) ac_try_echo=$ac_try;;
  15837. esac
  15838. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15839. (eval "$ac_compile") 2>conftest.er1
  15840. ac_status=$?
  15841. grep -v '^ *+' conftest.er1 >conftest.err
  15842. rm -f conftest.er1
  15843. cat conftest.err >&5
  15844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15845. (exit $ac_status); } && {
  15846. test -z "$ac_cxx_werror_flag" ||
  15847. test ! -s conftest.err
  15848. } && test -s conftest.$ac_objext; then
  15849. ac_header_compiler=yes
  15850. else
  15851. echo "$as_me: failed program was:" >&5
  15852. sed 's/^/| /' conftest.$ac_ext >&5
  15853. ac_header_compiler=no
  15854. fi
  15855. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15856. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15857. echo "${ECHO_T}$ac_header_compiler" >&6; }
  15858. # Is the header present?
  15859. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15860. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  15861. cat >conftest.$ac_ext <<_ACEOF
  15862. /* confdefs.h. */
  15863. _ACEOF
  15864. cat confdefs.h >>conftest.$ac_ext
  15865. cat >>conftest.$ac_ext <<_ACEOF
  15866. /* end confdefs.h. */
  15867. #include <$ac_header>
  15868. _ACEOF
  15869. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15870. case "(($ac_try" in
  15871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15872. *) ac_try_echo=$ac_try;;
  15873. esac
  15874. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15875. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15876. ac_status=$?
  15877. grep -v '^ *+' conftest.er1 >conftest.err
  15878. rm -f conftest.er1
  15879. cat conftest.err >&5
  15880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15881. (exit $ac_status); } >/dev/null && {
  15882. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15883. test ! -s conftest.err
  15884. }; then
  15885. ac_header_preproc=yes
  15886. else
  15887. echo "$as_me: failed program was:" >&5
  15888. sed 's/^/| /' conftest.$ac_ext >&5
  15889. ac_header_preproc=no
  15890. fi
  15891. rm -f conftest.err conftest.$ac_ext
  15892. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15893. echo "${ECHO_T}$ac_header_preproc" >&6; }
  15894. # So? What about this header?
  15895. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15896. yes:no: )
  15897. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15898. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15899. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15900. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15901. ac_header_preproc=yes
  15902. ;;
  15903. no:yes:* )
  15904. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15905. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15906. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15907. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15908. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15909. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15910. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15911. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15912. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15913. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15914. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15915. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15916. ( cat <<\_ASBOX
  15917. ## ----------------------------------------------- ##
  15918. ## Report this to t-tujikawa@users.sourceforge.net ##
  15919. ## ----------------------------------------------- ##
  15920. _ASBOX
  15921. ) | sed "s/^/$as_me: WARNING: /" >&2
  15922. ;;
  15923. esac
  15924. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15925. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15926. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15927. echo $ECHO_N "(cached) $ECHO_C" >&6
  15928. else
  15929. eval "$as_ac_Header=\$ac_header_preproc"
  15930. fi
  15931. ac_res=`eval echo '${'$as_ac_Header'}'`
  15932. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15933. echo "${ECHO_T}$ac_res" >&6; }
  15934. fi
  15935. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  15936. cat >>confdefs.h <<_ACEOF
  15937. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15938. _ACEOF
  15939. fi
  15940. done
  15941. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  15942. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  15943. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  15944. echo $ECHO_N "(cached) $ECHO_C" >&6
  15945. else
  15946. if test "$cross_compiling" = yes; then
  15947. ac_cv_func_realloc_0_nonnull=no
  15948. else
  15949. cat >conftest.$ac_ext <<_ACEOF
  15950. /* confdefs.h. */
  15951. _ACEOF
  15952. cat confdefs.h >>conftest.$ac_ext
  15953. cat >>conftest.$ac_ext <<_ACEOF
  15954. /* end confdefs.h. */
  15955. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  15956. # include <stdlib.h>
  15957. #else
  15958. char *realloc ();
  15959. #endif
  15960. int
  15961. main ()
  15962. {
  15963. return ! realloc (0, 0);
  15964. ;
  15965. return 0;
  15966. }
  15967. _ACEOF
  15968. rm -f conftest$ac_exeext
  15969. if { (ac_try="$ac_link"
  15970. case "(($ac_try" in
  15971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15972. *) ac_try_echo=$ac_try;;
  15973. esac
  15974. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15975. (eval "$ac_link") 2>&5
  15976. ac_status=$?
  15977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15978. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15979. { (case "(($ac_try" in
  15980. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15981. *) ac_try_echo=$ac_try;;
  15982. esac
  15983. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15984. (eval "$ac_try") 2>&5
  15985. ac_status=$?
  15986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15987. (exit $ac_status); }; }; then
  15988. ac_cv_func_realloc_0_nonnull=yes
  15989. else
  15990. echo "$as_me: program exited with status $ac_status" >&5
  15991. echo "$as_me: failed program was:" >&5
  15992. sed 's/^/| /' conftest.$ac_ext >&5
  15993. ( exit $ac_status )
  15994. ac_cv_func_realloc_0_nonnull=no
  15995. fi
  15996. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15997. fi
  15998. fi
  15999. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  16000. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  16001. if test $ac_cv_func_realloc_0_nonnull = yes; then
  16002. cat >>confdefs.h <<\_ACEOF
  16003. #define HAVE_REALLOC 1
  16004. _ACEOF
  16005. else
  16006. cat >>confdefs.h <<\_ACEOF
  16007. #define HAVE_REALLOC 0
  16008. _ACEOF
  16009. case " $LIBOBJS " in
  16010. *" realloc.$ac_objext "* ) ;;
  16011. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  16012. ;;
  16013. esac
  16014. cat >>confdefs.h <<\_ACEOF
  16015. #define realloc rpl_realloc
  16016. _ACEOF
  16017. fi
  16018. ;;
  16019. esac
  16020. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  16021. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  16022. if test "${ac_cv_func_memcmp_working+set}" = set; then
  16023. echo $ECHO_N "(cached) $ECHO_C" >&6
  16024. else
  16025. if test "$cross_compiling" = yes; then
  16026. ac_cv_func_memcmp_working=no
  16027. else
  16028. cat >conftest.$ac_ext <<_ACEOF
  16029. /* confdefs.h. */
  16030. _ACEOF
  16031. cat confdefs.h >>conftest.$ac_ext
  16032. cat >>conftest.$ac_ext <<_ACEOF
  16033. /* end confdefs.h. */
  16034. $ac_includes_default
  16035. int
  16036. main ()
  16037. {
  16038. /* Some versions of memcmp are not 8-bit clean. */
  16039. char c0 = '\100', c1 = '\200', c2 = '\201';
  16040. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16041. return 1;
  16042. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16043. or more and with at least one buffer not starting on a 4-byte boundary.
  16044. William Lewis provided this test program. */
  16045. {
  16046. char foo[21];
  16047. char bar[21];
  16048. int i;
  16049. for (i = 0; i < 4; i++)
  16050. {
  16051. char *a = foo + i;
  16052. char *b = bar + i;
  16053. strcpy (a, "--------01111111");
  16054. strcpy (b, "--------10000000");
  16055. if (memcmp (a, b, 16) >= 0)
  16056. return 1;
  16057. }
  16058. return 0;
  16059. }
  16060. ;
  16061. return 0;
  16062. }
  16063. _ACEOF
  16064. rm -f conftest$ac_exeext
  16065. if { (ac_try="$ac_link"
  16066. case "(($ac_try" in
  16067. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16068. *) ac_try_echo=$ac_try;;
  16069. esac
  16070. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16071. (eval "$ac_link") 2>&5
  16072. ac_status=$?
  16073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16074. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16075. { (case "(($ac_try" in
  16076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16077. *) ac_try_echo=$ac_try;;
  16078. esac
  16079. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16080. (eval "$ac_try") 2>&5
  16081. ac_status=$?
  16082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16083. (exit $ac_status); }; }; then
  16084. ac_cv_func_memcmp_working=yes
  16085. else
  16086. echo "$as_me: program exited with status $ac_status" >&5
  16087. echo "$as_me: failed program was:" >&5
  16088. sed 's/^/| /' conftest.$ac_ext >&5
  16089. ( exit $ac_status )
  16090. ac_cv_func_memcmp_working=no
  16091. fi
  16092. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16093. fi
  16094. fi
  16095. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  16096. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  16097. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16098. *" memcmp.$ac_objext "* ) ;;
  16099. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16100. ;;
  16101. esac
  16102. for ac_header in $ac_header_list
  16103. do
  16104. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16105. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16106. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16107. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16108. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16109. echo $ECHO_N "(cached) $ECHO_C" >&6
  16110. fi
  16111. ac_res=`eval echo '${'$as_ac_Header'}'`
  16112. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16113. echo "${ECHO_T}$ac_res" >&6; }
  16114. else
  16115. # Is the header compilable?
  16116. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16117. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16118. cat >conftest.$ac_ext <<_ACEOF
  16119. /* confdefs.h. */
  16120. _ACEOF
  16121. cat confdefs.h >>conftest.$ac_ext
  16122. cat >>conftest.$ac_ext <<_ACEOF
  16123. /* end confdefs.h. */
  16124. $ac_includes_default
  16125. #include <$ac_header>
  16126. _ACEOF
  16127. rm -f conftest.$ac_objext
  16128. if { (ac_try="$ac_compile"
  16129. case "(($ac_try" in
  16130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16131. *) ac_try_echo=$ac_try;;
  16132. esac
  16133. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16134. (eval "$ac_compile") 2>conftest.er1
  16135. ac_status=$?
  16136. grep -v '^ *+' conftest.er1 >conftest.err
  16137. rm -f conftest.er1
  16138. cat conftest.err >&5
  16139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16140. (exit $ac_status); } && {
  16141. test -z "$ac_cxx_werror_flag" ||
  16142. test ! -s conftest.err
  16143. } && test -s conftest.$ac_objext; then
  16144. ac_header_compiler=yes
  16145. else
  16146. echo "$as_me: failed program was:" >&5
  16147. sed 's/^/| /' conftest.$ac_ext >&5
  16148. ac_header_compiler=no
  16149. fi
  16150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16151. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16152. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16153. # Is the header present?
  16154. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16155. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16156. cat >conftest.$ac_ext <<_ACEOF
  16157. /* confdefs.h. */
  16158. _ACEOF
  16159. cat confdefs.h >>conftest.$ac_ext
  16160. cat >>conftest.$ac_ext <<_ACEOF
  16161. /* end confdefs.h. */
  16162. #include <$ac_header>
  16163. _ACEOF
  16164. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16165. case "(($ac_try" in
  16166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16167. *) ac_try_echo=$ac_try;;
  16168. esac
  16169. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16170. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16171. ac_status=$?
  16172. grep -v '^ *+' conftest.er1 >conftest.err
  16173. rm -f conftest.er1
  16174. cat conftest.err >&5
  16175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16176. (exit $ac_status); } >/dev/null && {
  16177. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16178. test ! -s conftest.err
  16179. }; then
  16180. ac_header_preproc=yes
  16181. else
  16182. echo "$as_me: failed program was:" >&5
  16183. sed 's/^/| /' conftest.$ac_ext >&5
  16184. ac_header_preproc=no
  16185. fi
  16186. rm -f conftest.err conftest.$ac_ext
  16187. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16188. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16189. # So? What about this header?
  16190. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16191. yes:no: )
  16192. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16193. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16194. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16195. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16196. ac_header_preproc=yes
  16197. ;;
  16198. no:yes:* )
  16199. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16200. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16201. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16202. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16203. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16204. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16205. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16206. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16207. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16208. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16209. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16210. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16211. ( cat <<\_ASBOX
  16212. ## ----------------------------------------------- ##
  16213. ## Report this to t-tujikawa@users.sourceforge.net ##
  16214. ## ----------------------------------------------- ##
  16215. _ASBOX
  16216. ) | sed "s/^/$as_me: WARNING: /" >&2
  16217. ;;
  16218. esac
  16219. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16220. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16221. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16222. echo $ECHO_N "(cached) $ECHO_C" >&6
  16223. else
  16224. eval "$as_ac_Header=\$ac_header_preproc"
  16225. fi
  16226. ac_res=`eval echo '${'$as_ac_Header'}'`
  16227. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16228. echo "${ECHO_T}$ac_res" >&6; }
  16229. fi
  16230. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16231. cat >>confdefs.h <<_ACEOF
  16232. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16233. _ACEOF
  16234. fi
  16235. done
  16236. for ac_func in $ac_func_list
  16237. do
  16238. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16239. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16240. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16241. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16242. echo $ECHO_N "(cached) $ECHO_C" >&6
  16243. else
  16244. cat >conftest.$ac_ext <<_ACEOF
  16245. /* confdefs.h. */
  16246. _ACEOF
  16247. cat confdefs.h >>conftest.$ac_ext
  16248. cat >>conftest.$ac_ext <<_ACEOF
  16249. /* end confdefs.h. */
  16250. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16251. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16252. #define $ac_func innocuous_$ac_func
  16253. /* System header to define __stub macros and hopefully few prototypes,
  16254. which can conflict with char $ac_func (); below.
  16255. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16256. <limits.h> exists even on freestanding compilers. */
  16257. #ifdef __STDC__
  16258. # include <limits.h>
  16259. #else
  16260. # include <assert.h>
  16261. #endif
  16262. #undef $ac_func
  16263. /* Override any GCC internal prototype to avoid an error.
  16264. Use char because int might match the return type of a GCC
  16265. builtin and then its argument prototype would still apply. */
  16266. #ifdef __cplusplus
  16267. extern "C"
  16268. #endif
  16269. char $ac_func ();
  16270. /* The GNU C library defines this for functions which it implements
  16271. to always fail with ENOSYS. Some functions are actually named
  16272. something starting with __ and the normal name is an alias. */
  16273. #if defined __stub_$ac_func || defined __stub___$ac_func
  16274. choke me
  16275. #endif
  16276. int
  16277. main ()
  16278. {
  16279. return $ac_func ();
  16280. ;
  16281. return 0;
  16282. }
  16283. _ACEOF
  16284. rm -f conftest.$ac_objext conftest$ac_exeext
  16285. if { (ac_try="$ac_link"
  16286. case "(($ac_try" in
  16287. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16288. *) ac_try_echo=$ac_try;;
  16289. esac
  16290. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16291. (eval "$ac_link") 2>conftest.er1
  16292. ac_status=$?
  16293. grep -v '^ *+' conftest.er1 >conftest.err
  16294. rm -f conftest.er1
  16295. cat conftest.err >&5
  16296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16297. (exit $ac_status); } && {
  16298. test -z "$ac_cxx_werror_flag" ||
  16299. test ! -s conftest.err
  16300. } && test -s conftest$ac_exeext &&
  16301. $as_test_x conftest$ac_exeext; then
  16302. eval "$as_ac_var=yes"
  16303. else
  16304. echo "$as_me: failed program was:" >&5
  16305. sed 's/^/| /' conftest.$ac_ext >&5
  16306. eval "$as_ac_var=no"
  16307. fi
  16308. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16309. conftest$ac_exeext conftest.$ac_ext
  16310. fi
  16311. ac_res=`eval echo '${'$as_ac_var'}'`
  16312. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16313. echo "${ECHO_T}$ac_res" >&6; }
  16314. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16315. cat >>confdefs.h <<_ACEOF
  16316. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16317. _ACEOF
  16318. fi
  16319. done
  16320. { echo "$as_me:$LINENO: checking for working mktime" >&5
  16321. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
  16322. if test "${ac_cv_func_working_mktime+set}" = set; then
  16323. echo $ECHO_N "(cached) $ECHO_C" >&6
  16324. else
  16325. if test "$cross_compiling" = yes; then
  16326. ac_cv_func_working_mktime=no
  16327. else
  16328. cat >conftest.$ac_ext <<_ACEOF
  16329. /* confdefs.h. */
  16330. _ACEOF
  16331. cat confdefs.h >>conftest.$ac_ext
  16332. cat >>conftest.$ac_ext <<_ACEOF
  16333. /* end confdefs.h. */
  16334. /* Test program from Paul Eggert and Tony Leneis. */
  16335. #ifdef TIME_WITH_SYS_TIME
  16336. # include <sys/time.h>
  16337. # include <time.h>
  16338. #else
  16339. # ifdef HAVE_SYS_TIME_H
  16340. # include <sys/time.h>
  16341. # else
  16342. # include <time.h>
  16343. # endif
  16344. #endif
  16345. #include <limits.h>
  16346. #include <stdlib.h>
  16347. #ifdef HAVE_UNISTD_H
  16348. # include <unistd.h>
  16349. #endif
  16350. #ifndef HAVE_ALARM
  16351. # define alarm(X) /* empty */
  16352. #endif
  16353. /* Work around redefinition to rpl_putenv by other config tests. */
  16354. #undef putenv
  16355. static time_t time_t_max;
  16356. static time_t time_t_min;
  16357. /* Values we'll use to set the TZ environment variable. */
  16358. static char *tz_strings[] = {
  16359. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  16360. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  16361. };
  16362. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  16363. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  16364. Based on a problem report from Andreas Jaeger. */
  16365. static int
  16366. spring_forward_gap ()
  16367. {
  16368. /* glibc (up to about 1998-10-07) failed this test. */
  16369. struct tm tm;
  16370. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  16371. instead of "TZ=America/Vancouver" in order to detect the bug even
  16372. on systems that don't support the Olson extension, or don't have the
  16373. full zoneinfo tables installed. */
  16374. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  16375. tm.tm_year = 98;
  16376. tm.tm_mon = 3;
  16377. tm.tm_mday = 5;
  16378. tm.tm_hour = 2;
  16379. tm.tm_min = 0;
  16380. tm.tm_sec = 0;
  16381. tm.tm_isdst = -1;
  16382. return mktime (&tm) != (time_t) -1;
  16383. }
  16384. static int
  16385. mktime_test1 (now)
  16386. time_t now;
  16387. {
  16388. struct tm *lt;
  16389. return ! (lt = localtime (&now)) || mktime (lt) == now;
  16390. }
  16391. static int
  16392. mktime_test (now)
  16393. time_t now;
  16394. {
  16395. return (mktime_test1 (now)
  16396. && mktime_test1 ((time_t) (time_t_max - now))
  16397. && mktime_test1 ((time_t) (time_t_min + now)));
  16398. }
  16399. static int
  16400. irix_6_4_bug ()
  16401. {
  16402. /* Based on code from Ariel Faigon. */
  16403. struct tm tm;
  16404. tm.tm_year = 96;
  16405. tm.tm_mon = 3;
  16406. tm.tm_mday = 0;
  16407. tm.tm_hour = 0;
  16408. tm.tm_min = 0;
  16409. tm.tm_sec = 0;
  16410. tm.tm_isdst = -1;
  16411. mktime (&tm);
  16412. return tm.tm_mon == 2 && tm.tm_mday == 31;
  16413. }
  16414. static int
  16415. bigtime_test (j)
  16416. int j;
  16417. {
  16418. struct tm tm;
  16419. time_t now;
  16420. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  16421. now = mktime (&tm);
  16422. if (now != (time_t) -1)
  16423. {
  16424. struct tm *lt = localtime (&now);
  16425. if (! (lt
  16426. && lt->tm_year == tm.tm_year
  16427. && lt->tm_mon == tm.tm_mon
  16428. && lt->tm_mday == tm.tm_mday
  16429. && lt->tm_hour == tm.tm_hour
  16430. && lt->tm_min == tm.tm_min
  16431. && lt->tm_sec == tm.tm_sec
  16432. && lt->tm_yday == tm.tm_yday
  16433. && lt->tm_wday == tm.tm_wday
  16434. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  16435. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  16436. return 0;
  16437. }
  16438. return 1;
  16439. }
  16440. static int
  16441. year_2050_test ()
  16442. {
  16443. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  16444. ignoring leap seconds. */
  16445. unsigned long int answer = 2527315200UL;
  16446. struct tm tm;
  16447. time_t t;
  16448. tm.tm_year = 2050 - 1900;
  16449. tm.tm_mon = 2 - 1;
  16450. tm.tm_mday = 1;
  16451. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  16452. tm.tm_isdst = -1;
  16453. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  16454. instead of "TZ=America/Vancouver" in order to detect the bug even
  16455. on systems that don't support the Olson extension, or don't have the
  16456. full zoneinfo tables installed. */
  16457. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  16458. t = mktime (&tm);
  16459. /* Check that the result is either a failure, or close enough
  16460. to the correct answer that we can assume the discrepancy is
  16461. due to leap seconds. */
  16462. return (t == (time_t) -1
  16463. || (0 < t && answer - 120 <= t && t <= answer + 120));
  16464. }
  16465. int
  16466. main ()
  16467. {
  16468. time_t t, delta;
  16469. int i, j;
  16470. /* This test makes some buggy mktime implementations loop.
  16471. Give up after 60 seconds; a mktime slower than that
  16472. isn't worth using anyway. */
  16473. alarm (60);
  16474. for (;;)
  16475. {
  16476. t = (time_t_max << 1) + 1;
  16477. if (t <= time_t_max)
  16478. break;
  16479. time_t_max = t;
  16480. }
  16481. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  16482. delta = time_t_max / 997; /* a suitable prime number */
  16483. for (i = 0; i < N_STRINGS; i++)
  16484. {
  16485. if (tz_strings[i])
  16486. putenv (tz_strings[i]);
  16487. for (t = 0; t <= time_t_max - delta; t += delta)
  16488. if (! mktime_test (t))
  16489. return 1;
  16490. if (! (mktime_test ((time_t) 1)
  16491. && mktime_test ((time_t) (60 * 60))
  16492. && mktime_test ((time_t) (60 * 60 * 24))))
  16493. return 1;
  16494. for (j = 1; ; j <<= 1)
  16495. if (! bigtime_test (j))
  16496. return 1;
  16497. else if (INT_MAX / 2 < j)
  16498. break;
  16499. if (! bigtime_test (INT_MAX))
  16500. return 1;
  16501. }
  16502. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  16503. }
  16504. _ACEOF
  16505. rm -f conftest$ac_exeext
  16506. if { (ac_try="$ac_link"
  16507. case "(($ac_try" in
  16508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16509. *) ac_try_echo=$ac_try;;
  16510. esac
  16511. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16512. (eval "$ac_link") 2>&5
  16513. ac_status=$?
  16514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16515. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16516. { (case "(($ac_try" in
  16517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16518. *) ac_try_echo=$ac_try;;
  16519. esac
  16520. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16521. (eval "$ac_try") 2>&5
  16522. ac_status=$?
  16523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16524. (exit $ac_status); }; }; then
  16525. ac_cv_func_working_mktime=yes
  16526. else
  16527. echo "$as_me: program exited with status $ac_status" >&5
  16528. echo "$as_me: failed program was:" >&5
  16529. sed 's/^/| /' conftest.$ac_ext >&5
  16530. ( exit $ac_status )
  16531. ac_cv_func_working_mktime=no
  16532. fi
  16533. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16534. fi
  16535. fi
  16536. { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  16537. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
  16538. if test $ac_cv_func_working_mktime = no; then
  16539. case " $LIBOBJS " in
  16540. *" mktime.$ac_objext "* ) ;;
  16541. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  16542. ;;
  16543. esac
  16544. fi
  16545. for ac_header in stdlib.h unistd.h
  16546. do
  16547. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16548. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16549. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16550. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16551. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16552. echo $ECHO_N "(cached) $ECHO_C" >&6
  16553. fi
  16554. ac_res=`eval echo '${'$as_ac_Header'}'`
  16555. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16556. echo "${ECHO_T}$ac_res" >&6; }
  16557. else
  16558. # Is the header compilable?
  16559. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16560. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16561. cat >conftest.$ac_ext <<_ACEOF
  16562. /* confdefs.h. */
  16563. _ACEOF
  16564. cat confdefs.h >>conftest.$ac_ext
  16565. cat >>conftest.$ac_ext <<_ACEOF
  16566. /* end confdefs.h. */
  16567. $ac_includes_default
  16568. #include <$ac_header>
  16569. _ACEOF
  16570. rm -f conftest.$ac_objext
  16571. if { (ac_try="$ac_compile"
  16572. case "(($ac_try" in
  16573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16574. *) ac_try_echo=$ac_try;;
  16575. esac
  16576. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16577. (eval "$ac_compile") 2>conftest.er1
  16578. ac_status=$?
  16579. grep -v '^ *+' conftest.er1 >conftest.err
  16580. rm -f conftest.er1
  16581. cat conftest.err >&5
  16582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16583. (exit $ac_status); } && {
  16584. test -z "$ac_cxx_werror_flag" ||
  16585. test ! -s conftest.err
  16586. } && test -s conftest.$ac_objext; then
  16587. ac_header_compiler=yes
  16588. else
  16589. echo "$as_me: failed program was:" >&5
  16590. sed 's/^/| /' conftest.$ac_ext >&5
  16591. ac_header_compiler=no
  16592. fi
  16593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16594. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16595. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16596. # Is the header present?
  16597. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16598. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  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. #include <$ac_header>
  16606. _ACEOF
  16607. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16608. case "(($ac_try" in
  16609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16610. *) ac_try_echo=$ac_try;;
  16611. esac
  16612. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16613. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16614. ac_status=$?
  16615. grep -v '^ *+' conftest.er1 >conftest.err
  16616. rm -f conftest.er1
  16617. cat conftest.err >&5
  16618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16619. (exit $ac_status); } >/dev/null && {
  16620. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16621. test ! -s conftest.err
  16622. }; then
  16623. ac_header_preproc=yes
  16624. else
  16625. echo "$as_me: failed program was:" >&5
  16626. sed 's/^/| /' conftest.$ac_ext >&5
  16627. ac_header_preproc=no
  16628. fi
  16629. rm -f conftest.err conftest.$ac_ext
  16630. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16631. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16632. # So? What about this header?
  16633. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16634. yes:no: )
  16635. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16636. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16637. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16638. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16639. ac_header_preproc=yes
  16640. ;;
  16641. no:yes:* )
  16642. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16643. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16644. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16645. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16646. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16647. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16648. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16649. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16650. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16651. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16652. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16653. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16654. ( cat <<\_ASBOX
  16655. ## ----------------------------------------------- ##
  16656. ## Report this to t-tujikawa@users.sourceforge.net ##
  16657. ## ----------------------------------------------- ##
  16658. _ASBOX
  16659. ) | sed "s/^/$as_me: WARNING: /" >&2
  16660. ;;
  16661. esac
  16662. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16663. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16664. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16665. echo $ECHO_N "(cached) $ECHO_C" >&6
  16666. else
  16667. eval "$as_ac_Header=\$ac_header_preproc"
  16668. fi
  16669. ac_res=`eval echo '${'$as_ac_Header'}'`
  16670. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16671. echo "${ECHO_T}$ac_res" >&6; }
  16672. fi
  16673. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16674. cat >>confdefs.h <<_ACEOF
  16675. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16676. _ACEOF
  16677. fi
  16678. done
  16679. for ac_func in getpagesize
  16680. do
  16681. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16682. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16683. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16684. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16685. echo $ECHO_N "(cached) $ECHO_C" >&6
  16686. else
  16687. cat >conftest.$ac_ext <<_ACEOF
  16688. /* confdefs.h. */
  16689. _ACEOF
  16690. cat confdefs.h >>conftest.$ac_ext
  16691. cat >>conftest.$ac_ext <<_ACEOF
  16692. /* end confdefs.h. */
  16693. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16694. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16695. #define $ac_func innocuous_$ac_func
  16696. /* System header to define __stub macros and hopefully few prototypes,
  16697. which can conflict with char $ac_func (); below.
  16698. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16699. <limits.h> exists even on freestanding compilers. */
  16700. #ifdef __STDC__
  16701. # include <limits.h>
  16702. #else
  16703. # include <assert.h>
  16704. #endif
  16705. #undef $ac_func
  16706. /* Override any GCC internal prototype to avoid an error.
  16707. Use char because int might match the return type of a GCC
  16708. builtin and then its argument prototype would still apply. */
  16709. #ifdef __cplusplus
  16710. extern "C"
  16711. #endif
  16712. char $ac_func ();
  16713. /* The GNU C library defines this for functions which it implements
  16714. to always fail with ENOSYS. Some functions are actually named
  16715. something starting with __ and the normal name is an alias. */
  16716. #if defined __stub_$ac_func || defined __stub___$ac_func
  16717. choke me
  16718. #endif
  16719. int
  16720. main ()
  16721. {
  16722. return $ac_func ();
  16723. ;
  16724. return 0;
  16725. }
  16726. _ACEOF
  16727. rm -f conftest.$ac_objext conftest$ac_exeext
  16728. if { (ac_try="$ac_link"
  16729. case "(($ac_try" in
  16730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16731. *) ac_try_echo=$ac_try;;
  16732. esac
  16733. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16734. (eval "$ac_link") 2>conftest.er1
  16735. ac_status=$?
  16736. grep -v '^ *+' conftest.er1 >conftest.err
  16737. rm -f conftest.er1
  16738. cat conftest.err >&5
  16739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16740. (exit $ac_status); } && {
  16741. test -z "$ac_cxx_werror_flag" ||
  16742. test ! -s conftest.err
  16743. } && test -s conftest$ac_exeext &&
  16744. $as_test_x conftest$ac_exeext; then
  16745. eval "$as_ac_var=yes"
  16746. else
  16747. echo "$as_me: failed program was:" >&5
  16748. sed 's/^/| /' conftest.$ac_ext >&5
  16749. eval "$as_ac_var=no"
  16750. fi
  16751. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16752. conftest$ac_exeext conftest.$ac_ext
  16753. fi
  16754. ac_res=`eval echo '${'$as_ac_var'}'`
  16755. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16756. echo "${ECHO_T}$ac_res" >&6; }
  16757. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16758. cat >>confdefs.h <<_ACEOF
  16759. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16760. _ACEOF
  16761. fi
  16762. done
  16763. { echo "$as_me:$LINENO: checking for working mmap" >&5
  16764. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  16765. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  16766. echo $ECHO_N "(cached) $ECHO_C" >&6
  16767. else
  16768. if test "$cross_compiling" = yes; then
  16769. ac_cv_func_mmap_fixed_mapped=no
  16770. else
  16771. cat >conftest.$ac_ext <<_ACEOF
  16772. /* confdefs.h. */
  16773. _ACEOF
  16774. cat confdefs.h >>conftest.$ac_ext
  16775. cat >>conftest.$ac_ext <<_ACEOF
  16776. /* end confdefs.h. */
  16777. $ac_includes_default
  16778. /* malloc might have been renamed as rpl_malloc. */
  16779. #undef malloc
  16780. /* Thanks to Mike Haertel and Jim Avera for this test.
  16781. Here is a matrix of mmap possibilities:
  16782. mmap private not fixed
  16783. mmap private fixed at somewhere currently unmapped
  16784. mmap private fixed at somewhere already mapped
  16785. mmap shared not fixed
  16786. mmap shared fixed at somewhere currently unmapped
  16787. mmap shared fixed at somewhere already mapped
  16788. For private mappings, we should verify that changes cannot be read()
  16789. back from the file, nor mmap's back from the file at a different
  16790. address. (There have been systems where private was not correctly
  16791. implemented like the infamous i386 svr4.0, and systems where the
  16792. VM page cache was not coherent with the file system buffer cache
  16793. like early versions of FreeBSD and possibly contemporary NetBSD.)
  16794. For shared mappings, we should conversely verify that changes get
  16795. propagated back to all the places they're supposed to be.
  16796. Grep wants private fixed already mapped.
  16797. The main things grep needs to know about mmap are:
  16798. * does it exist and is it safe to write into the mmap'd area
  16799. * how to use it (BSD variants) */
  16800. #include <fcntl.h>
  16801. #include <sys/mman.h>
  16802. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  16803. char *malloc ();
  16804. #endif
  16805. /* This mess was copied from the GNU getpagesize.h. */
  16806. #ifndef HAVE_GETPAGESIZE
  16807. /* Assume that all systems that can run configure have sys/param.h. */
  16808. # ifndef HAVE_SYS_PARAM_H
  16809. # define HAVE_SYS_PARAM_H 1
  16810. # endif
  16811. # ifdef _SC_PAGESIZE
  16812. # define getpagesize() sysconf(_SC_PAGESIZE)
  16813. # else /* no _SC_PAGESIZE */
  16814. # ifdef HAVE_SYS_PARAM_H
  16815. # include <sys/param.h>
  16816. # ifdef EXEC_PAGESIZE
  16817. # define getpagesize() EXEC_PAGESIZE
  16818. # else /* no EXEC_PAGESIZE */
  16819. # ifdef NBPG
  16820. # define getpagesize() NBPG * CLSIZE
  16821. # ifndef CLSIZE
  16822. # define CLSIZE 1
  16823. # endif /* no CLSIZE */
  16824. # else /* no NBPG */
  16825. # ifdef NBPC
  16826. # define getpagesize() NBPC
  16827. # else /* no NBPC */
  16828. # ifdef PAGESIZE
  16829. # define getpagesize() PAGESIZE
  16830. # endif /* PAGESIZE */
  16831. # endif /* no NBPC */
  16832. # endif /* no NBPG */
  16833. # endif /* no EXEC_PAGESIZE */
  16834. # else /* no HAVE_SYS_PARAM_H */
  16835. # define getpagesize() 8192 /* punt totally */
  16836. # endif /* no HAVE_SYS_PARAM_H */
  16837. # endif /* no _SC_PAGESIZE */
  16838. #endif /* no HAVE_GETPAGESIZE */
  16839. int
  16840. main ()
  16841. {
  16842. char *data, *data2, *data3;
  16843. int i, pagesize;
  16844. int fd;
  16845. pagesize = getpagesize ();
  16846. /* First, make a file with some known garbage in it. */
  16847. data = (char *) malloc (pagesize);
  16848. if (!data)
  16849. return 1;
  16850. for (i = 0; i < pagesize; ++i)
  16851. *(data + i) = rand ();
  16852. umask (0);
  16853. fd = creat ("conftest.mmap", 0600);
  16854. if (fd < 0)
  16855. return 1;
  16856. if (write (fd, data, pagesize) != pagesize)
  16857. return 1;
  16858. close (fd);
  16859. /* Next, try to mmap the file at a fixed address which already has
  16860. something else allocated at it. If we can, also make sure that
  16861. we see the same garbage. */
  16862. fd = open ("conftest.mmap", O_RDWR);
  16863. if (fd < 0)
  16864. return 1;
  16865. data2 = (char *) malloc (2 * pagesize);
  16866. if (!data2)
  16867. return 1;
  16868. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  16869. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  16870. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  16871. return 1;
  16872. for (i = 0; i < pagesize; ++i)
  16873. if (*(data + i) != *(data2 + i))
  16874. return 1;
  16875. /* Finally, make sure that changes to the mapped area do not
  16876. percolate back to the file as seen by read(). (This is a bug on
  16877. some variants of i386 svr4.0.) */
  16878. for (i = 0; i < pagesize; ++i)
  16879. *(data2 + i) = *(data2 + i) + 1;
  16880. data3 = (char *) malloc (pagesize);
  16881. if (!data3)
  16882. return 1;
  16883. if (read (fd, data3, pagesize) != pagesize)
  16884. return 1;
  16885. for (i = 0; i < pagesize; ++i)
  16886. if (*(data + i) != *(data3 + i))
  16887. return 1;
  16888. close (fd);
  16889. return 0;
  16890. }
  16891. _ACEOF
  16892. rm -f conftest$ac_exeext
  16893. if { (ac_try="$ac_link"
  16894. case "(($ac_try" in
  16895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16896. *) ac_try_echo=$ac_try;;
  16897. esac
  16898. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16899. (eval "$ac_link") 2>&5
  16900. ac_status=$?
  16901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16902. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16903. { (case "(($ac_try" in
  16904. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16905. *) ac_try_echo=$ac_try;;
  16906. esac
  16907. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16908. (eval "$ac_try") 2>&5
  16909. ac_status=$?
  16910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16911. (exit $ac_status); }; }; then
  16912. ac_cv_func_mmap_fixed_mapped=yes
  16913. else
  16914. echo "$as_me: program exited with status $ac_status" >&5
  16915. echo "$as_me: failed program was:" >&5
  16916. sed 's/^/| /' conftest.$ac_ext >&5
  16917. ( exit $ac_status )
  16918. ac_cv_func_mmap_fixed_mapped=no
  16919. fi
  16920. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16921. fi
  16922. fi
  16923. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  16924. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  16925. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  16926. cat >>confdefs.h <<\_ACEOF
  16927. #define HAVE_MMAP 1
  16928. _ACEOF
  16929. fi
  16930. rm -f conftest.mmap
  16931. for ac_header in sys/select.h sys/socket.h
  16932. do
  16933. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16934. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16935. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16936. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16937. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16938. echo $ECHO_N "(cached) $ECHO_C" >&6
  16939. fi
  16940. ac_res=`eval echo '${'$as_ac_Header'}'`
  16941. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16942. echo "${ECHO_T}$ac_res" >&6; }
  16943. else
  16944. # Is the header compilable?
  16945. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16946. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16947. cat >conftest.$ac_ext <<_ACEOF
  16948. /* confdefs.h. */
  16949. _ACEOF
  16950. cat confdefs.h >>conftest.$ac_ext
  16951. cat >>conftest.$ac_ext <<_ACEOF
  16952. /* end confdefs.h. */
  16953. $ac_includes_default
  16954. #include <$ac_header>
  16955. _ACEOF
  16956. rm -f conftest.$ac_objext
  16957. if { (ac_try="$ac_compile"
  16958. case "(($ac_try" in
  16959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16960. *) ac_try_echo=$ac_try;;
  16961. esac
  16962. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16963. (eval "$ac_compile") 2>conftest.er1
  16964. ac_status=$?
  16965. grep -v '^ *+' conftest.er1 >conftest.err
  16966. rm -f conftest.er1
  16967. cat conftest.err >&5
  16968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16969. (exit $ac_status); } && {
  16970. test -z "$ac_cxx_werror_flag" ||
  16971. test ! -s conftest.err
  16972. } && test -s conftest.$ac_objext; then
  16973. ac_header_compiler=yes
  16974. else
  16975. echo "$as_me: failed program was:" >&5
  16976. sed 's/^/| /' conftest.$ac_ext >&5
  16977. ac_header_compiler=no
  16978. fi
  16979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16980. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16981. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16982. # Is the header present?
  16983. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16984. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16985. cat >conftest.$ac_ext <<_ACEOF
  16986. /* confdefs.h. */
  16987. _ACEOF
  16988. cat confdefs.h >>conftest.$ac_ext
  16989. cat >>conftest.$ac_ext <<_ACEOF
  16990. /* end confdefs.h. */
  16991. #include <$ac_header>
  16992. _ACEOF
  16993. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16994. case "(($ac_try" in
  16995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16996. *) ac_try_echo=$ac_try;;
  16997. esac
  16998. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16999. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17000. ac_status=$?
  17001. grep -v '^ *+' conftest.er1 >conftest.err
  17002. rm -f conftest.er1
  17003. cat conftest.err >&5
  17004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17005. (exit $ac_status); } >/dev/null && {
  17006. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17007. test ! -s conftest.err
  17008. }; then
  17009. ac_header_preproc=yes
  17010. else
  17011. echo "$as_me: failed program was:" >&5
  17012. sed 's/^/| /' conftest.$ac_ext >&5
  17013. ac_header_preproc=no
  17014. fi
  17015. rm -f conftest.err conftest.$ac_ext
  17016. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17017. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17018. # So? What about this header?
  17019. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17020. yes:no: )
  17021. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17022. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17023. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17024. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17025. ac_header_preproc=yes
  17026. ;;
  17027. no:yes:* )
  17028. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17029. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17030. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17031. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17032. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17033. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17034. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17035. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17036. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17037. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17038. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17039. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17040. ( cat <<\_ASBOX
  17041. ## ----------------------------------------------- ##
  17042. ## Report this to t-tujikawa@users.sourceforge.net ##
  17043. ## ----------------------------------------------- ##
  17044. _ASBOX
  17045. ) | sed "s/^/$as_me: WARNING: /" >&2
  17046. ;;
  17047. esac
  17048. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17049. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17050. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17051. echo $ECHO_N "(cached) $ECHO_C" >&6
  17052. else
  17053. eval "$as_ac_Header=\$ac_header_preproc"
  17054. fi
  17055. ac_res=`eval echo '${'$as_ac_Header'}'`
  17056. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17057. echo "${ECHO_T}$ac_res" >&6; }
  17058. fi
  17059. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17060. cat >>confdefs.h <<_ACEOF
  17061. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17062. _ACEOF
  17063. fi
  17064. done
  17065. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  17066. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  17067. if test "${ac_cv_func_select_args+set}" = set; then
  17068. echo $ECHO_N "(cached) $ECHO_C" >&6
  17069. else
  17070. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  17071. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  17072. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  17073. cat >conftest.$ac_ext <<_ACEOF
  17074. /* confdefs.h. */
  17075. _ACEOF
  17076. cat confdefs.h >>conftest.$ac_ext
  17077. cat >>conftest.$ac_ext <<_ACEOF
  17078. /* end confdefs.h. */
  17079. $ac_includes_default
  17080. #ifdef HAVE_SYS_SELECT_H
  17081. # include <sys/select.h>
  17082. #endif
  17083. #ifdef HAVE_SYS_SOCKET_H
  17084. # include <sys/socket.h>
  17085. #endif
  17086. int
  17087. main ()
  17088. {
  17089. extern int select ($ac_arg1,
  17090. $ac_arg234, $ac_arg234, $ac_arg234,
  17091. $ac_arg5);
  17092. ;
  17093. return 0;
  17094. }
  17095. _ACEOF
  17096. rm -f conftest.$ac_objext
  17097. if { (ac_try="$ac_compile"
  17098. case "(($ac_try" in
  17099. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17100. *) ac_try_echo=$ac_try;;
  17101. esac
  17102. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17103. (eval "$ac_compile") 2>conftest.er1
  17104. ac_status=$?
  17105. grep -v '^ *+' conftest.er1 >conftest.err
  17106. rm -f conftest.er1
  17107. cat conftest.err >&5
  17108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17109. (exit $ac_status); } && {
  17110. test -z "$ac_cxx_werror_flag" ||
  17111. test ! -s conftest.err
  17112. } && test -s conftest.$ac_objext; then
  17113. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  17114. else
  17115. echo "$as_me: failed program was:" >&5
  17116. sed 's/^/| /' conftest.$ac_ext >&5
  17117. fi
  17118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17119. done
  17120. done
  17121. done
  17122. # Provide a safe default value.
  17123. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  17124. fi
  17125. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  17126. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  17127. ac_save_IFS=$IFS; IFS=','
  17128. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  17129. IFS=$ac_save_IFS
  17130. shift
  17131. cat >>confdefs.h <<_ACEOF
  17132. #define SELECT_TYPE_ARG1 $1
  17133. _ACEOF
  17134. cat >>confdefs.h <<_ACEOF
  17135. #define SELECT_TYPE_ARG234 ($2)
  17136. _ACEOF
  17137. cat >>confdefs.h <<_ACEOF
  17138. #define SELECT_TYPE_ARG5 ($3)
  17139. _ACEOF
  17140. rm -f conftest*
  17141. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  17142. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  17143. if test "${ac_cv_type_signal+set}" = set; then
  17144. echo $ECHO_N "(cached) $ECHO_C" >&6
  17145. else
  17146. cat >conftest.$ac_ext <<_ACEOF
  17147. /* confdefs.h. */
  17148. _ACEOF
  17149. cat confdefs.h >>conftest.$ac_ext
  17150. cat >>conftest.$ac_ext <<_ACEOF
  17151. /* end confdefs.h. */
  17152. #include <sys/types.h>
  17153. #include <signal.h>
  17154. int
  17155. main ()
  17156. {
  17157. return *(signal (0, 0)) (0) == 1;
  17158. ;
  17159. return 0;
  17160. }
  17161. _ACEOF
  17162. rm -f conftest.$ac_objext
  17163. if { (ac_try="$ac_compile"
  17164. case "(($ac_try" in
  17165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17166. *) ac_try_echo=$ac_try;;
  17167. esac
  17168. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17169. (eval "$ac_compile") 2>conftest.er1
  17170. ac_status=$?
  17171. grep -v '^ *+' conftest.er1 >conftest.err
  17172. rm -f conftest.er1
  17173. cat conftest.err >&5
  17174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17175. (exit $ac_status); } && {
  17176. test -z "$ac_cxx_werror_flag" ||
  17177. test ! -s conftest.err
  17178. } && test -s conftest.$ac_objext; then
  17179. ac_cv_type_signal=int
  17180. else
  17181. echo "$as_me: failed program was:" >&5
  17182. sed 's/^/| /' conftest.$ac_ext >&5
  17183. ac_cv_type_signal=void
  17184. fi
  17185. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17186. fi
  17187. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  17188. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  17189. cat >>confdefs.h <<_ACEOF
  17190. #define RETSIGTYPE $ac_cv_type_signal
  17191. _ACEOF
  17192. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  17193. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  17194. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  17195. echo $ECHO_N "(cached) $ECHO_C" >&6
  17196. else
  17197. rm -f conftest.sym conftest.file
  17198. echo >conftest.file
  17199. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  17200. if test "$cross_compiling" = yes; then
  17201. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17202. else
  17203. cat >conftest.$ac_ext <<_ACEOF
  17204. /* confdefs.h. */
  17205. _ACEOF
  17206. cat confdefs.h >>conftest.$ac_ext
  17207. cat >>conftest.$ac_ext <<_ACEOF
  17208. /* end confdefs.h. */
  17209. $ac_includes_default
  17210. int
  17211. main ()
  17212. {
  17213. struct stat sbuf;
  17214. /* Linux will dereference the symlink and fail.
  17215. That is better in the sense that it means we will not
  17216. have to compile and use the lstat wrapper. */
  17217. return lstat ("conftest.sym/", &sbuf) == 0;
  17218. ;
  17219. return 0;
  17220. }
  17221. _ACEOF
  17222. rm -f conftest$ac_exeext
  17223. if { (ac_try="$ac_link"
  17224. case "(($ac_try" in
  17225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17226. *) ac_try_echo=$ac_try;;
  17227. esac
  17228. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17229. (eval "$ac_link") 2>&5
  17230. ac_status=$?
  17231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17232. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17233. { (case "(($ac_try" in
  17234. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17235. *) ac_try_echo=$ac_try;;
  17236. esac
  17237. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17238. (eval "$ac_try") 2>&5
  17239. ac_status=$?
  17240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17241. (exit $ac_status); }; }; then
  17242. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  17243. else
  17244. echo "$as_me: program exited with status $ac_status" >&5
  17245. echo "$as_me: failed program was:" >&5
  17246. sed 's/^/| /' conftest.$ac_ext >&5
  17247. ( exit $ac_status )
  17248. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17249. fi
  17250. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17251. fi
  17252. else
  17253. # If the `ln -s' command failed, then we probably don't even
  17254. # have an lstat function.
  17255. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17256. fi
  17257. rm -f conftest.sym conftest.file
  17258. fi
  17259. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  17260. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  17261. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  17262. cat >>confdefs.h <<_ACEOF
  17263. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  17264. _ACEOF
  17265. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  17266. case " $LIBOBJS " in
  17267. *" lstat.$ac_objext "* ) ;;
  17268. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  17269. ;;
  17270. esac
  17271. fi
  17272. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  17273. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  17274. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  17275. echo $ECHO_N "(cached) $ECHO_C" >&6
  17276. else
  17277. if test "$cross_compiling" = yes; then
  17278. ac_cv_func_stat_empty_string_bug=yes
  17279. else
  17280. cat >conftest.$ac_ext <<_ACEOF
  17281. /* confdefs.h. */
  17282. _ACEOF
  17283. cat confdefs.h >>conftest.$ac_ext
  17284. cat >>conftest.$ac_ext <<_ACEOF
  17285. /* end confdefs.h. */
  17286. $ac_includes_default
  17287. int
  17288. main ()
  17289. {
  17290. struct stat sbuf;
  17291. return stat ("", &sbuf) == 0;
  17292. ;
  17293. return 0;
  17294. }
  17295. _ACEOF
  17296. rm -f conftest$ac_exeext
  17297. if { (ac_try="$ac_link"
  17298. case "(($ac_try" in
  17299. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17300. *) ac_try_echo=$ac_try;;
  17301. esac
  17302. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17303. (eval "$ac_link") 2>&5
  17304. ac_status=$?
  17305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17306. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17307. { (case "(($ac_try" in
  17308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17309. *) ac_try_echo=$ac_try;;
  17310. esac
  17311. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17312. (eval "$ac_try") 2>&5
  17313. ac_status=$?
  17314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17315. (exit $ac_status); }; }; then
  17316. ac_cv_func_stat_empty_string_bug=no
  17317. else
  17318. echo "$as_me: program exited with status $ac_status" >&5
  17319. echo "$as_me: failed program was:" >&5
  17320. sed 's/^/| /' conftest.$ac_ext >&5
  17321. ( exit $ac_status )
  17322. ac_cv_func_stat_empty_string_bug=yes
  17323. fi
  17324. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17325. fi
  17326. fi
  17327. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  17328. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  17329. if test $ac_cv_func_stat_empty_string_bug = yes; then
  17330. case " $LIBOBJS " in
  17331. *" stat.$ac_objext "* ) ;;
  17332. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  17333. ;;
  17334. esac
  17335. cat >>confdefs.h <<_ACEOF
  17336. #define HAVE_STAT_EMPTY_STRING_BUG 1
  17337. _ACEOF
  17338. fi
  17339. for ac_func in strftime
  17340. do
  17341. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17342. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17343. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17344. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17345. echo $ECHO_N "(cached) $ECHO_C" >&6
  17346. else
  17347. cat >conftest.$ac_ext <<_ACEOF
  17348. /* confdefs.h. */
  17349. _ACEOF
  17350. cat confdefs.h >>conftest.$ac_ext
  17351. cat >>conftest.$ac_ext <<_ACEOF
  17352. /* end confdefs.h. */
  17353. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17354. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17355. #define $ac_func innocuous_$ac_func
  17356. /* System header to define __stub macros and hopefully few prototypes,
  17357. which can conflict with char $ac_func (); below.
  17358. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17359. <limits.h> exists even on freestanding compilers. */
  17360. #ifdef __STDC__
  17361. # include <limits.h>
  17362. #else
  17363. # include <assert.h>
  17364. #endif
  17365. #undef $ac_func
  17366. /* Override any GCC internal prototype to avoid an error.
  17367. Use char because int might match the return type of a GCC
  17368. builtin and then its argument prototype would still apply. */
  17369. #ifdef __cplusplus
  17370. extern "C"
  17371. #endif
  17372. char $ac_func ();
  17373. /* The GNU C library defines this for functions which it implements
  17374. to always fail with ENOSYS. Some functions are actually named
  17375. something starting with __ and the normal name is an alias. */
  17376. #if defined __stub_$ac_func || defined __stub___$ac_func
  17377. choke me
  17378. #endif
  17379. int
  17380. main ()
  17381. {
  17382. return $ac_func ();
  17383. ;
  17384. return 0;
  17385. }
  17386. _ACEOF
  17387. rm -f conftest.$ac_objext conftest$ac_exeext
  17388. if { (ac_try="$ac_link"
  17389. case "(($ac_try" in
  17390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17391. *) ac_try_echo=$ac_try;;
  17392. esac
  17393. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17394. (eval "$ac_link") 2>conftest.er1
  17395. ac_status=$?
  17396. grep -v '^ *+' conftest.er1 >conftest.err
  17397. rm -f conftest.er1
  17398. cat conftest.err >&5
  17399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17400. (exit $ac_status); } && {
  17401. test -z "$ac_cxx_werror_flag" ||
  17402. test ! -s conftest.err
  17403. } && test -s conftest$ac_exeext &&
  17404. $as_test_x conftest$ac_exeext; then
  17405. eval "$as_ac_var=yes"
  17406. else
  17407. echo "$as_me: failed program was:" >&5
  17408. sed 's/^/| /' conftest.$ac_ext >&5
  17409. eval "$as_ac_var=no"
  17410. fi
  17411. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17412. conftest$ac_exeext conftest.$ac_ext
  17413. fi
  17414. ac_res=`eval echo '${'$as_ac_var'}'`
  17415. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17416. echo "${ECHO_T}$ac_res" >&6; }
  17417. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17418. cat >>confdefs.h <<_ACEOF
  17419. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17420. _ACEOF
  17421. else
  17422. # strftime is in -lintl on SCO UNIX.
  17423. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  17424. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  17425. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  17426. echo $ECHO_N "(cached) $ECHO_C" >&6
  17427. else
  17428. ac_check_lib_save_LIBS=$LIBS
  17429. LIBS="-lintl $LIBS"
  17430. cat >conftest.$ac_ext <<_ACEOF
  17431. /* confdefs.h. */
  17432. _ACEOF
  17433. cat confdefs.h >>conftest.$ac_ext
  17434. cat >>conftest.$ac_ext <<_ACEOF
  17435. /* end confdefs.h. */
  17436. /* Override any GCC internal prototype to avoid an error.
  17437. Use char because int might match the return type of a GCC
  17438. builtin and then its argument prototype would still apply. */
  17439. #ifdef __cplusplus
  17440. extern "C"
  17441. #endif
  17442. char strftime ();
  17443. int
  17444. main ()
  17445. {
  17446. return strftime ();
  17447. ;
  17448. return 0;
  17449. }
  17450. _ACEOF
  17451. rm -f conftest.$ac_objext conftest$ac_exeext
  17452. if { (ac_try="$ac_link"
  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_link") 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_exeext &&
  17468. $as_test_x conftest$ac_exeext; then
  17469. ac_cv_lib_intl_strftime=yes
  17470. else
  17471. echo "$as_me: failed program was:" >&5
  17472. sed 's/^/| /' conftest.$ac_ext >&5
  17473. ac_cv_lib_intl_strftime=no
  17474. fi
  17475. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17476. conftest$ac_exeext conftest.$ac_ext
  17477. LIBS=$ac_check_lib_save_LIBS
  17478. fi
  17479. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  17480. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  17481. if test $ac_cv_lib_intl_strftime = yes; then
  17482. cat >>confdefs.h <<\_ACEOF
  17483. #define HAVE_STRFTIME 1
  17484. _ACEOF
  17485. LIBS="-lintl $LIBS"
  17486. fi
  17487. fi
  17488. done
  17489. for ac_func in vprintf
  17490. do
  17491. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17492. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17493. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17494. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17495. echo $ECHO_N "(cached) $ECHO_C" >&6
  17496. else
  17497. cat >conftest.$ac_ext <<_ACEOF
  17498. /* confdefs.h. */
  17499. _ACEOF
  17500. cat confdefs.h >>conftest.$ac_ext
  17501. cat >>conftest.$ac_ext <<_ACEOF
  17502. /* end confdefs.h. */
  17503. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17504. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17505. #define $ac_func innocuous_$ac_func
  17506. /* System header to define __stub macros and hopefully few prototypes,
  17507. which can conflict with char $ac_func (); below.
  17508. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17509. <limits.h> exists even on freestanding compilers. */
  17510. #ifdef __STDC__
  17511. # include <limits.h>
  17512. #else
  17513. # include <assert.h>
  17514. #endif
  17515. #undef $ac_func
  17516. /* Override any GCC internal prototype to avoid an error.
  17517. Use char because int might match the return type of a GCC
  17518. builtin and then its argument prototype would still apply. */
  17519. #ifdef __cplusplus
  17520. extern "C"
  17521. #endif
  17522. char $ac_func ();
  17523. /* The GNU C library defines this for functions which it implements
  17524. to always fail with ENOSYS. Some functions are actually named
  17525. something starting with __ and the normal name is an alias. */
  17526. #if defined __stub_$ac_func || defined __stub___$ac_func
  17527. choke me
  17528. #endif
  17529. int
  17530. main ()
  17531. {
  17532. return $ac_func ();
  17533. ;
  17534. return 0;
  17535. }
  17536. _ACEOF
  17537. rm -f conftest.$ac_objext conftest$ac_exeext
  17538. if { (ac_try="$ac_link"
  17539. case "(($ac_try" in
  17540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17541. *) ac_try_echo=$ac_try;;
  17542. esac
  17543. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17544. (eval "$ac_link") 2>conftest.er1
  17545. ac_status=$?
  17546. grep -v '^ *+' conftest.er1 >conftest.err
  17547. rm -f conftest.er1
  17548. cat conftest.err >&5
  17549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17550. (exit $ac_status); } && {
  17551. test -z "$ac_cxx_werror_flag" ||
  17552. test ! -s conftest.err
  17553. } && test -s conftest$ac_exeext &&
  17554. $as_test_x conftest$ac_exeext; then
  17555. eval "$as_ac_var=yes"
  17556. else
  17557. echo "$as_me: failed program was:" >&5
  17558. sed 's/^/| /' conftest.$ac_ext >&5
  17559. eval "$as_ac_var=no"
  17560. fi
  17561. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17562. conftest$ac_exeext conftest.$ac_ext
  17563. fi
  17564. ac_res=`eval echo '${'$as_ac_var'}'`
  17565. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17566. echo "${ECHO_T}$ac_res" >&6; }
  17567. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17568. cat >>confdefs.h <<_ACEOF
  17569. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17570. _ACEOF
  17571. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  17572. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  17573. if test "${ac_cv_func__doprnt+set}" = set; then
  17574. echo $ECHO_N "(cached) $ECHO_C" >&6
  17575. else
  17576. cat >conftest.$ac_ext <<_ACEOF
  17577. /* confdefs.h. */
  17578. _ACEOF
  17579. cat confdefs.h >>conftest.$ac_ext
  17580. cat >>conftest.$ac_ext <<_ACEOF
  17581. /* end confdefs.h. */
  17582. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  17583. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17584. #define _doprnt innocuous__doprnt
  17585. /* System header to define __stub macros and hopefully few prototypes,
  17586. which can conflict with char _doprnt (); below.
  17587. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17588. <limits.h> exists even on freestanding compilers. */
  17589. #ifdef __STDC__
  17590. # include <limits.h>
  17591. #else
  17592. # include <assert.h>
  17593. #endif
  17594. #undef _doprnt
  17595. /* Override any GCC internal prototype to avoid an error.
  17596. Use char because int might match the return type of a GCC
  17597. builtin and then its argument prototype would still apply. */
  17598. #ifdef __cplusplus
  17599. extern "C"
  17600. #endif
  17601. char _doprnt ();
  17602. /* The GNU C library defines this for functions which it implements
  17603. to always fail with ENOSYS. Some functions are actually named
  17604. something starting with __ and the normal name is an alias. */
  17605. #if defined __stub__doprnt || defined __stub____doprnt
  17606. choke me
  17607. #endif
  17608. int
  17609. main ()
  17610. {
  17611. return _doprnt ();
  17612. ;
  17613. return 0;
  17614. }
  17615. _ACEOF
  17616. rm -f conftest.$ac_objext conftest$ac_exeext
  17617. if { (ac_try="$ac_link"
  17618. case "(($ac_try" in
  17619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17620. *) ac_try_echo=$ac_try;;
  17621. esac
  17622. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17623. (eval "$ac_link") 2>conftest.er1
  17624. ac_status=$?
  17625. grep -v '^ *+' conftest.er1 >conftest.err
  17626. rm -f conftest.er1
  17627. cat conftest.err >&5
  17628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17629. (exit $ac_status); } && {
  17630. test -z "$ac_cxx_werror_flag" ||
  17631. test ! -s conftest.err
  17632. } && test -s conftest$ac_exeext &&
  17633. $as_test_x conftest$ac_exeext; then
  17634. ac_cv_func__doprnt=yes
  17635. else
  17636. echo "$as_me: failed program was:" >&5
  17637. sed 's/^/| /' conftest.$ac_ext >&5
  17638. ac_cv_func__doprnt=no
  17639. fi
  17640. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17641. conftest$ac_exeext conftest.$ac_ext
  17642. fi
  17643. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  17644. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  17645. if test $ac_cv_func__doprnt = yes; then
  17646. cat >>confdefs.h <<\_ACEOF
  17647. #define HAVE_DOPRNT 1
  17648. _ACEOF
  17649. fi
  17650. fi
  17651. done
  17652. for ac_func in __argz_count __argz_next __argz_stringify atexit daemon ftruncate getcwd gethostbyaddr gethostbyname getpagesize inet_ntoa memchr memmove mempcpy memset mkdir munmap nl_langinfo posix_memalign putenv rmdir select setlocale sleep socket stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtol strtoul strtoull tzset unsetenv usleep
  17653. do
  17654. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17655. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17656. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17657. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17658. echo $ECHO_N "(cached) $ECHO_C" >&6
  17659. else
  17660. cat >conftest.$ac_ext <<_ACEOF
  17661. /* confdefs.h. */
  17662. _ACEOF
  17663. cat confdefs.h >>conftest.$ac_ext
  17664. cat >>conftest.$ac_ext <<_ACEOF
  17665. /* end confdefs.h. */
  17666. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17667. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17668. #define $ac_func innocuous_$ac_func
  17669. /* System header to define __stub macros and hopefully few prototypes,
  17670. which can conflict with char $ac_func (); below.
  17671. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17672. <limits.h> exists even on freestanding compilers. */
  17673. #ifdef __STDC__
  17674. # include <limits.h>
  17675. #else
  17676. # include <assert.h>
  17677. #endif
  17678. #undef $ac_func
  17679. /* Override any GCC internal prototype to avoid an error.
  17680. Use char because int might match the return type of a GCC
  17681. builtin and then its argument prototype would still apply. */
  17682. #ifdef __cplusplus
  17683. extern "C"
  17684. #endif
  17685. char $ac_func ();
  17686. /* The GNU C library defines this for functions which it implements
  17687. to always fail with ENOSYS. Some functions are actually named
  17688. something starting with __ and the normal name is an alias. */
  17689. #if defined __stub_$ac_func || defined __stub___$ac_func
  17690. choke me
  17691. #endif
  17692. int
  17693. main ()
  17694. {
  17695. return $ac_func ();
  17696. ;
  17697. return 0;
  17698. }
  17699. _ACEOF
  17700. rm -f conftest.$ac_objext conftest$ac_exeext
  17701. if { (ac_try="$ac_link"
  17702. case "(($ac_try" in
  17703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17704. *) ac_try_echo=$ac_try;;
  17705. esac
  17706. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17707. (eval "$ac_link") 2>conftest.er1
  17708. ac_status=$?
  17709. grep -v '^ *+' conftest.er1 >conftest.err
  17710. rm -f conftest.er1
  17711. cat conftest.err >&5
  17712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17713. (exit $ac_status); } && {
  17714. test -z "$ac_cxx_werror_flag" ||
  17715. test ! -s conftest.err
  17716. } && test -s conftest$ac_exeext &&
  17717. $as_test_x conftest$ac_exeext; then
  17718. eval "$as_ac_var=yes"
  17719. else
  17720. echo "$as_me: failed program was:" >&5
  17721. sed 's/^/| /' conftest.$ac_ext >&5
  17722. eval "$as_ac_var=no"
  17723. fi
  17724. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17725. conftest$ac_exeext conftest.$ac_ext
  17726. fi
  17727. ac_res=`eval echo '${'$as_ac_var'}'`
  17728. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17729. echo "${ECHO_T}$ac_res" >&6; }
  17730. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17731. cat >>confdefs.h <<_ACEOF
  17732. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17733. _ACEOF
  17734. fi
  17735. done
  17736. if test "x$enable_epoll" = "xyes"; then
  17737. for ac_func in epoll_create
  17738. do
  17739. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17740. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17741. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17742. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17743. echo $ECHO_N "(cached) $ECHO_C" >&6
  17744. else
  17745. cat >conftest.$ac_ext <<_ACEOF
  17746. /* confdefs.h. */
  17747. _ACEOF
  17748. cat confdefs.h >>conftest.$ac_ext
  17749. cat >>conftest.$ac_ext <<_ACEOF
  17750. /* end confdefs.h. */
  17751. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17752. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17753. #define $ac_func innocuous_$ac_func
  17754. /* System header to define __stub macros and hopefully few prototypes,
  17755. which can conflict with char $ac_func (); below.
  17756. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17757. <limits.h> exists even on freestanding compilers. */
  17758. #ifdef __STDC__
  17759. # include <limits.h>
  17760. #else
  17761. # include <assert.h>
  17762. #endif
  17763. #undef $ac_func
  17764. /* Override any GCC internal prototype to avoid an error.
  17765. Use char because int might match the return type of a GCC
  17766. builtin and then its argument prototype would still apply. */
  17767. #ifdef __cplusplus
  17768. extern "C"
  17769. #endif
  17770. char $ac_func ();
  17771. /* The GNU C library defines this for functions which it implements
  17772. to always fail with ENOSYS. Some functions are actually named
  17773. something starting with __ and the normal name is an alias. */
  17774. #if defined __stub_$ac_func || defined __stub___$ac_func
  17775. choke me
  17776. #endif
  17777. int
  17778. main ()
  17779. {
  17780. return $ac_func ();
  17781. ;
  17782. return 0;
  17783. }
  17784. _ACEOF
  17785. rm -f conftest.$ac_objext conftest$ac_exeext
  17786. if { (ac_try="$ac_link"
  17787. case "(($ac_try" in
  17788. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17789. *) ac_try_echo=$ac_try;;
  17790. esac
  17791. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17792. (eval "$ac_link") 2>conftest.er1
  17793. ac_status=$?
  17794. grep -v '^ *+' conftest.er1 >conftest.err
  17795. rm -f conftest.er1
  17796. cat conftest.err >&5
  17797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17798. (exit $ac_status); } && {
  17799. test -z "$ac_cxx_werror_flag" ||
  17800. test ! -s conftest.err
  17801. } && test -s conftest$ac_exeext &&
  17802. $as_test_x conftest$ac_exeext; then
  17803. eval "$as_ac_var=yes"
  17804. else
  17805. echo "$as_me: failed program was:" >&5
  17806. sed 's/^/| /' conftest.$ac_ext >&5
  17807. eval "$as_ac_var=no"
  17808. fi
  17809. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17810. conftest$ac_exeext conftest.$ac_ext
  17811. fi
  17812. ac_res=`eval echo '${'$as_ac_var'}'`
  17813. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17814. echo "${ECHO_T}$ac_res" >&6; }
  17815. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17816. cat >>confdefs.h <<_ACEOF
  17817. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17818. _ACEOF
  17819. fi
  17820. done
  17821. fi
  17822. for ac_func in asctime_r
  17823. do
  17824. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17825. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17826. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17827. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17828. echo $ECHO_N "(cached) $ECHO_C" >&6
  17829. else
  17830. cat >conftest.$ac_ext <<_ACEOF
  17831. /* confdefs.h. */
  17832. _ACEOF
  17833. cat confdefs.h >>conftest.$ac_ext
  17834. cat >>conftest.$ac_ext <<_ACEOF
  17835. /* end confdefs.h. */
  17836. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17837. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17838. #define $ac_func innocuous_$ac_func
  17839. /* System header to define __stub macros and hopefully few prototypes,
  17840. which can conflict with char $ac_func (); below.
  17841. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17842. <limits.h> exists even on freestanding compilers. */
  17843. #ifdef __STDC__
  17844. # include <limits.h>
  17845. #else
  17846. # include <assert.h>
  17847. #endif
  17848. #undef $ac_func
  17849. /* Override any GCC internal prototype to avoid an error.
  17850. Use char because int might match the return type of a GCC
  17851. builtin and then its argument prototype would still apply. */
  17852. #ifdef __cplusplus
  17853. extern "C"
  17854. #endif
  17855. char $ac_func ();
  17856. /* The GNU C library defines this for functions which it implements
  17857. to always fail with ENOSYS. Some functions are actually named
  17858. something starting with __ and the normal name is an alias. */
  17859. #if defined __stub_$ac_func || defined __stub___$ac_func
  17860. choke me
  17861. #endif
  17862. int
  17863. main ()
  17864. {
  17865. return $ac_func ();
  17866. ;
  17867. return 0;
  17868. }
  17869. _ACEOF
  17870. rm -f conftest.$ac_objext conftest$ac_exeext
  17871. if { (ac_try="$ac_link"
  17872. case "(($ac_try" in
  17873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17874. *) ac_try_echo=$ac_try;;
  17875. esac
  17876. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17877. (eval "$ac_link") 2>conftest.er1
  17878. ac_status=$?
  17879. grep -v '^ *+' conftest.er1 >conftest.err
  17880. rm -f conftest.er1
  17881. cat conftest.err >&5
  17882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17883. (exit $ac_status); } && {
  17884. test -z "$ac_cxx_werror_flag" ||
  17885. test ! -s conftest.err
  17886. } && test -s conftest$ac_exeext &&
  17887. $as_test_x conftest$ac_exeext; then
  17888. eval "$as_ac_var=yes"
  17889. else
  17890. echo "$as_me: failed program was:" >&5
  17891. sed 's/^/| /' conftest.$ac_ext >&5
  17892. eval "$as_ac_var=no"
  17893. fi
  17894. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17895. conftest$ac_exeext conftest.$ac_ext
  17896. fi
  17897. ac_res=`eval echo '${'$as_ac_var'}'`
  17898. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17899. echo "${ECHO_T}$ac_res" >&6; }
  17900. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17901. cat >>confdefs.h <<_ACEOF
  17902. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17903. _ACEOF
  17904. if true; then
  17905. HAVE_ASCTIME_R_TRUE=
  17906. HAVE_ASCTIME_R_FALSE='#'
  17907. else
  17908. HAVE_ASCTIME_R_TRUE='#'
  17909. HAVE_ASCTIME_R_FALSE=
  17910. fi
  17911. else
  17912. if false; then
  17913. HAVE_ASCTIME_R_TRUE=
  17914. HAVE_ASCTIME_R_FALSE='#'
  17915. else
  17916. HAVE_ASCTIME_R_TRUE='#'
  17917. HAVE_ASCTIME_R_FALSE=
  17918. fi
  17919. fi
  17920. done
  17921. for ac_func in basename
  17922. do
  17923. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17924. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17925. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17926. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17927. echo $ECHO_N "(cached) $ECHO_C" >&6
  17928. else
  17929. cat >conftest.$ac_ext <<_ACEOF
  17930. /* confdefs.h. */
  17931. _ACEOF
  17932. cat confdefs.h >>conftest.$ac_ext
  17933. cat >>conftest.$ac_ext <<_ACEOF
  17934. /* end confdefs.h. */
  17935. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17936. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17937. #define $ac_func innocuous_$ac_func
  17938. /* System header to define __stub macros and hopefully few prototypes,
  17939. which can conflict with char $ac_func (); below.
  17940. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17941. <limits.h> exists even on freestanding compilers. */
  17942. #ifdef __STDC__
  17943. # include <limits.h>
  17944. #else
  17945. # include <assert.h>
  17946. #endif
  17947. #undef $ac_func
  17948. /* Override any GCC internal prototype to avoid an error.
  17949. Use char because int might match the return type of a GCC
  17950. builtin and then its argument prototype would still apply. */
  17951. #ifdef __cplusplus
  17952. extern "C"
  17953. #endif
  17954. char $ac_func ();
  17955. /* The GNU C library defines this for functions which it implements
  17956. to always fail with ENOSYS. Some functions are actually named
  17957. something starting with __ and the normal name is an alias. */
  17958. #if defined __stub_$ac_func || defined __stub___$ac_func
  17959. choke me
  17960. #endif
  17961. int
  17962. main ()
  17963. {
  17964. return $ac_func ();
  17965. ;
  17966. return 0;
  17967. }
  17968. _ACEOF
  17969. rm -f conftest.$ac_objext conftest$ac_exeext
  17970. if { (ac_try="$ac_link"
  17971. case "(($ac_try" in
  17972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17973. *) ac_try_echo=$ac_try;;
  17974. esac
  17975. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17976. (eval "$ac_link") 2>conftest.er1
  17977. ac_status=$?
  17978. grep -v '^ *+' conftest.er1 >conftest.err
  17979. rm -f conftest.er1
  17980. cat conftest.err >&5
  17981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17982. (exit $ac_status); } && {
  17983. test -z "$ac_cxx_werror_flag" ||
  17984. test ! -s conftest.err
  17985. } && test -s conftest$ac_exeext &&
  17986. $as_test_x conftest$ac_exeext; then
  17987. eval "$as_ac_var=yes"
  17988. else
  17989. echo "$as_me: failed program was:" >&5
  17990. sed 's/^/| /' conftest.$ac_ext >&5
  17991. eval "$as_ac_var=no"
  17992. fi
  17993. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17994. conftest$ac_exeext conftest.$ac_ext
  17995. fi
  17996. ac_res=`eval echo '${'$as_ac_var'}'`
  17997. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17998. echo "${ECHO_T}$ac_res" >&6; }
  17999. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18000. cat >>confdefs.h <<_ACEOF
  18001. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18002. _ACEOF
  18003. if true; then
  18004. HAVE_BASENAME_TRUE=
  18005. HAVE_BASENAME_FALSE='#'
  18006. else
  18007. HAVE_BASENAME_TRUE='#'
  18008. HAVE_BASENAME_FALSE=
  18009. fi
  18010. else
  18011. if false; then
  18012. HAVE_BASENAME_TRUE=
  18013. HAVE_BASENAME_FALSE='#'
  18014. else
  18015. HAVE_BASENAME_TRUE='#'
  18016. HAVE_BASENAME_FALSE=
  18017. fi
  18018. fi
  18019. done
  18020. for ac_func in gai_strerror
  18021. do
  18022. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18023. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18024. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18025. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18026. echo $ECHO_N "(cached) $ECHO_C" >&6
  18027. else
  18028. cat >conftest.$ac_ext <<_ACEOF
  18029. /* confdefs.h. */
  18030. _ACEOF
  18031. cat confdefs.h >>conftest.$ac_ext
  18032. cat >>conftest.$ac_ext <<_ACEOF
  18033. /* end confdefs.h. */
  18034. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18035. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18036. #define $ac_func innocuous_$ac_func
  18037. /* System header to define __stub macros and hopefully few prototypes,
  18038. which can conflict with char $ac_func (); below.
  18039. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18040. <limits.h> exists even on freestanding compilers. */
  18041. #ifdef __STDC__
  18042. # include <limits.h>
  18043. #else
  18044. # include <assert.h>
  18045. #endif
  18046. #undef $ac_func
  18047. /* Override any GCC internal prototype to avoid an error.
  18048. Use char because int might match the return type of a GCC
  18049. builtin and then its argument prototype would still apply. */
  18050. #ifdef __cplusplus
  18051. extern "C"
  18052. #endif
  18053. char $ac_func ();
  18054. /* The GNU C library defines this for functions which it implements
  18055. to always fail with ENOSYS. Some functions are actually named
  18056. something starting with __ and the normal name is an alias. */
  18057. #if defined __stub_$ac_func || defined __stub___$ac_func
  18058. choke me
  18059. #endif
  18060. int
  18061. main ()
  18062. {
  18063. return $ac_func ();
  18064. ;
  18065. return 0;
  18066. }
  18067. _ACEOF
  18068. rm -f conftest.$ac_objext conftest$ac_exeext
  18069. if { (ac_try="$ac_link"
  18070. case "(($ac_try" in
  18071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18072. *) ac_try_echo=$ac_try;;
  18073. esac
  18074. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18075. (eval "$ac_link") 2>conftest.er1
  18076. ac_status=$?
  18077. grep -v '^ *+' conftest.er1 >conftest.err
  18078. rm -f conftest.er1
  18079. cat conftest.err >&5
  18080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18081. (exit $ac_status); } && {
  18082. test -z "$ac_cxx_werror_flag" ||
  18083. test ! -s conftest.err
  18084. } && test -s conftest$ac_exeext &&
  18085. $as_test_x conftest$ac_exeext; then
  18086. eval "$as_ac_var=yes"
  18087. else
  18088. echo "$as_me: failed program was:" >&5
  18089. sed 's/^/| /' conftest.$ac_ext >&5
  18090. eval "$as_ac_var=no"
  18091. fi
  18092. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18093. conftest$ac_exeext conftest.$ac_ext
  18094. fi
  18095. ac_res=`eval echo '${'$as_ac_var'}'`
  18096. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18097. echo "${ECHO_T}$ac_res" >&6; }
  18098. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18099. cat >>confdefs.h <<_ACEOF
  18100. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18101. _ACEOF
  18102. if true; then
  18103. HAVE_GAI_STRERROR_TRUE=
  18104. HAVE_GAI_STRERROR_FALSE='#'
  18105. else
  18106. HAVE_GAI_STRERROR_TRUE='#'
  18107. HAVE_GAI_STRERROR_FALSE=
  18108. fi
  18109. else
  18110. if false; then
  18111. HAVE_GAI_STRERROR_TRUE=
  18112. HAVE_GAI_STRERROR_FALSE='#'
  18113. else
  18114. HAVE_GAI_STRERROR_TRUE='#'
  18115. HAVE_GAI_STRERROR_FALSE=
  18116. fi
  18117. fi
  18118. done
  18119. for ac_func in getaddrinfo
  18120. do
  18121. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18122. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18123. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18124. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18125. echo $ECHO_N "(cached) $ECHO_C" >&6
  18126. else
  18127. cat >conftest.$ac_ext <<_ACEOF
  18128. /* confdefs.h. */
  18129. _ACEOF
  18130. cat confdefs.h >>conftest.$ac_ext
  18131. cat >>conftest.$ac_ext <<_ACEOF
  18132. /* end confdefs.h. */
  18133. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18134. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18135. #define $ac_func innocuous_$ac_func
  18136. /* System header to define __stub macros and hopefully few prototypes,
  18137. which can conflict with char $ac_func (); below.
  18138. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18139. <limits.h> exists even on freestanding compilers. */
  18140. #ifdef __STDC__
  18141. # include <limits.h>
  18142. #else
  18143. # include <assert.h>
  18144. #endif
  18145. #undef $ac_func
  18146. /* Override any GCC internal prototype to avoid an error.
  18147. Use char because int might match the return type of a GCC
  18148. builtin and then its argument prototype would still apply. */
  18149. #ifdef __cplusplus
  18150. extern "C"
  18151. #endif
  18152. char $ac_func ();
  18153. /* The GNU C library defines this for functions which it implements
  18154. to always fail with ENOSYS. Some functions are actually named
  18155. something starting with __ and the normal name is an alias. */
  18156. #if defined __stub_$ac_func || defined __stub___$ac_func
  18157. choke me
  18158. #endif
  18159. int
  18160. main ()
  18161. {
  18162. return $ac_func ();
  18163. ;
  18164. return 0;
  18165. }
  18166. _ACEOF
  18167. rm -f conftest.$ac_objext conftest$ac_exeext
  18168. if { (ac_try="$ac_link"
  18169. case "(($ac_try" in
  18170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18171. *) ac_try_echo=$ac_try;;
  18172. esac
  18173. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18174. (eval "$ac_link") 2>conftest.er1
  18175. ac_status=$?
  18176. grep -v '^ *+' conftest.er1 >conftest.err
  18177. rm -f conftest.er1
  18178. cat conftest.err >&5
  18179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18180. (exit $ac_status); } && {
  18181. test -z "$ac_cxx_werror_flag" ||
  18182. test ! -s conftest.err
  18183. } && test -s conftest$ac_exeext &&
  18184. $as_test_x conftest$ac_exeext; then
  18185. eval "$as_ac_var=yes"
  18186. else
  18187. echo "$as_me: failed program was:" >&5
  18188. sed 's/^/| /' conftest.$ac_ext >&5
  18189. eval "$as_ac_var=no"
  18190. fi
  18191. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18192. conftest$ac_exeext conftest.$ac_ext
  18193. fi
  18194. ac_res=`eval echo '${'$as_ac_var'}'`
  18195. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18196. echo "${ECHO_T}$ac_res" >&6; }
  18197. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18198. cat >>confdefs.h <<_ACEOF
  18199. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18200. _ACEOF
  18201. if true; then
  18202. HAVE_GETADDRINFO_TRUE=
  18203. HAVE_GETADDRINFO_FALSE='#'
  18204. else
  18205. HAVE_GETADDRINFO_TRUE='#'
  18206. HAVE_GETADDRINFO_FALSE=
  18207. fi
  18208. else
  18209. if false; then
  18210. HAVE_GETADDRINFO_TRUE=
  18211. HAVE_GETADDRINFO_FALSE='#'
  18212. else
  18213. HAVE_GETADDRINFO_TRUE='#'
  18214. HAVE_GETADDRINFO_FALSE=
  18215. fi
  18216. fi
  18217. done
  18218. for ac_func in gettimeofday
  18219. do
  18220. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18221. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18222. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18223. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18224. echo $ECHO_N "(cached) $ECHO_C" >&6
  18225. else
  18226. cat >conftest.$ac_ext <<_ACEOF
  18227. /* confdefs.h. */
  18228. _ACEOF
  18229. cat confdefs.h >>conftest.$ac_ext
  18230. cat >>conftest.$ac_ext <<_ACEOF
  18231. /* end confdefs.h. */
  18232. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18233. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18234. #define $ac_func innocuous_$ac_func
  18235. /* System header to define __stub macros and hopefully few prototypes,
  18236. which can conflict with char $ac_func (); below.
  18237. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18238. <limits.h> exists even on freestanding compilers. */
  18239. #ifdef __STDC__
  18240. # include <limits.h>
  18241. #else
  18242. # include <assert.h>
  18243. #endif
  18244. #undef $ac_func
  18245. /* Override any GCC internal prototype to avoid an error.
  18246. Use char because int might match the return type of a GCC
  18247. builtin and then its argument prototype would still apply. */
  18248. #ifdef __cplusplus
  18249. extern "C"
  18250. #endif
  18251. char $ac_func ();
  18252. /* The GNU C library defines this for functions which it implements
  18253. to always fail with ENOSYS. Some functions are actually named
  18254. something starting with __ and the normal name is an alias. */
  18255. #if defined __stub_$ac_func || defined __stub___$ac_func
  18256. choke me
  18257. #endif
  18258. int
  18259. main ()
  18260. {
  18261. return $ac_func ();
  18262. ;
  18263. return 0;
  18264. }
  18265. _ACEOF
  18266. rm -f conftest.$ac_objext conftest$ac_exeext
  18267. if { (ac_try="$ac_link"
  18268. case "(($ac_try" in
  18269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18270. *) ac_try_echo=$ac_try;;
  18271. esac
  18272. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18273. (eval "$ac_link") 2>conftest.er1
  18274. ac_status=$?
  18275. grep -v '^ *+' conftest.er1 >conftest.err
  18276. rm -f conftest.er1
  18277. cat conftest.err >&5
  18278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18279. (exit $ac_status); } && {
  18280. test -z "$ac_cxx_werror_flag" ||
  18281. test ! -s conftest.err
  18282. } && test -s conftest$ac_exeext &&
  18283. $as_test_x conftest$ac_exeext; then
  18284. eval "$as_ac_var=yes"
  18285. else
  18286. echo "$as_me: failed program was:" >&5
  18287. sed 's/^/| /' conftest.$ac_ext >&5
  18288. eval "$as_ac_var=no"
  18289. fi
  18290. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18291. conftest$ac_exeext conftest.$ac_ext
  18292. fi
  18293. ac_res=`eval echo '${'$as_ac_var'}'`
  18294. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18295. echo "${ECHO_T}$ac_res" >&6; }
  18296. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18297. cat >>confdefs.h <<_ACEOF
  18298. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18299. _ACEOF
  18300. if true; then
  18301. HAVE_GETTIMEOFDAY_TRUE=
  18302. HAVE_GETTIMEOFDAY_FALSE='#'
  18303. else
  18304. HAVE_GETTIMEOFDAY_TRUE='#'
  18305. HAVE_GETTIMEOFDAY_FALSE=
  18306. fi
  18307. else
  18308. if false; then
  18309. HAVE_GETTIMEOFDAY_TRUE=
  18310. HAVE_GETTIMEOFDAY_FALSE='#'
  18311. else
  18312. HAVE_GETTIMEOFDAY_TRUE='#'
  18313. HAVE_GETTIMEOFDAY_FALSE=
  18314. fi
  18315. fi
  18316. done
  18317. for ac_func in inet_aton
  18318. do
  18319. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18320. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18321. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18322. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18323. echo $ECHO_N "(cached) $ECHO_C" >&6
  18324. else
  18325. cat >conftest.$ac_ext <<_ACEOF
  18326. /* confdefs.h. */
  18327. _ACEOF
  18328. cat confdefs.h >>conftest.$ac_ext
  18329. cat >>conftest.$ac_ext <<_ACEOF
  18330. /* end confdefs.h. */
  18331. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18332. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18333. #define $ac_func innocuous_$ac_func
  18334. /* System header to define __stub macros and hopefully few prototypes,
  18335. which can conflict with char $ac_func (); below.
  18336. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18337. <limits.h> exists even on freestanding compilers. */
  18338. #ifdef __STDC__
  18339. # include <limits.h>
  18340. #else
  18341. # include <assert.h>
  18342. #endif
  18343. #undef $ac_func
  18344. /* Override any GCC internal prototype to avoid an error.
  18345. Use char because int might match the return type of a GCC
  18346. builtin and then its argument prototype would still apply. */
  18347. #ifdef __cplusplus
  18348. extern "C"
  18349. #endif
  18350. char $ac_func ();
  18351. /* The GNU C library defines this for functions which it implements
  18352. to always fail with ENOSYS. Some functions are actually named
  18353. something starting with __ and the normal name is an alias. */
  18354. #if defined __stub_$ac_func || defined __stub___$ac_func
  18355. choke me
  18356. #endif
  18357. int
  18358. main ()
  18359. {
  18360. return $ac_func ();
  18361. ;
  18362. return 0;
  18363. }
  18364. _ACEOF
  18365. rm -f conftest.$ac_objext conftest$ac_exeext
  18366. if { (ac_try="$ac_link"
  18367. case "(($ac_try" in
  18368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18369. *) ac_try_echo=$ac_try;;
  18370. esac
  18371. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18372. (eval "$ac_link") 2>conftest.er1
  18373. ac_status=$?
  18374. grep -v '^ *+' conftest.er1 >conftest.err
  18375. rm -f conftest.er1
  18376. cat conftest.err >&5
  18377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18378. (exit $ac_status); } && {
  18379. test -z "$ac_cxx_werror_flag" ||
  18380. test ! -s conftest.err
  18381. } && test -s conftest$ac_exeext &&
  18382. $as_test_x conftest$ac_exeext; then
  18383. eval "$as_ac_var=yes"
  18384. else
  18385. echo "$as_me: failed program was:" >&5
  18386. sed 's/^/| /' conftest.$ac_ext >&5
  18387. eval "$as_ac_var=no"
  18388. fi
  18389. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18390. conftest$ac_exeext conftest.$ac_ext
  18391. fi
  18392. ac_res=`eval echo '${'$as_ac_var'}'`
  18393. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18394. echo "${ECHO_T}$ac_res" >&6; }
  18395. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18396. cat >>confdefs.h <<_ACEOF
  18397. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18398. _ACEOF
  18399. if true; then
  18400. HAVE_INET_ATON_TRUE=
  18401. HAVE_INET_ATON_FALSE='#'
  18402. else
  18403. HAVE_INET_ATON_TRUE='#'
  18404. HAVE_INET_ATON_FALSE=
  18405. fi
  18406. else
  18407. if false; then
  18408. HAVE_INET_ATON_TRUE=
  18409. HAVE_INET_ATON_FALSE='#'
  18410. else
  18411. HAVE_INET_ATON_TRUE='#'
  18412. HAVE_INET_ATON_FALSE=
  18413. fi
  18414. fi
  18415. done
  18416. for ac_func in localtime_r
  18417. do
  18418. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18419. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18420. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18421. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18422. echo $ECHO_N "(cached) $ECHO_C" >&6
  18423. else
  18424. cat >conftest.$ac_ext <<_ACEOF
  18425. /* confdefs.h. */
  18426. _ACEOF
  18427. cat confdefs.h >>conftest.$ac_ext
  18428. cat >>conftest.$ac_ext <<_ACEOF
  18429. /* end confdefs.h. */
  18430. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18431. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18432. #define $ac_func innocuous_$ac_func
  18433. /* System header to define __stub macros and hopefully few prototypes,
  18434. which can conflict with char $ac_func (); below.
  18435. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18436. <limits.h> exists even on freestanding compilers. */
  18437. #ifdef __STDC__
  18438. # include <limits.h>
  18439. #else
  18440. # include <assert.h>
  18441. #endif
  18442. #undef $ac_func
  18443. /* Override any GCC internal prototype to avoid an error.
  18444. Use char because int might match the return type of a GCC
  18445. builtin and then its argument prototype would still apply. */
  18446. #ifdef __cplusplus
  18447. extern "C"
  18448. #endif
  18449. char $ac_func ();
  18450. /* The GNU C library defines this for functions which it implements
  18451. to always fail with ENOSYS. Some functions are actually named
  18452. something starting with __ and the normal name is an alias. */
  18453. #if defined __stub_$ac_func || defined __stub___$ac_func
  18454. choke me
  18455. #endif
  18456. int
  18457. main ()
  18458. {
  18459. return $ac_func ();
  18460. ;
  18461. return 0;
  18462. }
  18463. _ACEOF
  18464. rm -f conftest.$ac_objext conftest$ac_exeext
  18465. if { (ac_try="$ac_link"
  18466. case "(($ac_try" in
  18467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18468. *) ac_try_echo=$ac_try;;
  18469. esac
  18470. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18471. (eval "$ac_link") 2>conftest.er1
  18472. ac_status=$?
  18473. grep -v '^ *+' conftest.er1 >conftest.err
  18474. rm -f conftest.er1
  18475. cat conftest.err >&5
  18476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18477. (exit $ac_status); } && {
  18478. test -z "$ac_cxx_werror_flag" ||
  18479. test ! -s conftest.err
  18480. } && test -s conftest$ac_exeext &&
  18481. $as_test_x conftest$ac_exeext; then
  18482. eval "$as_ac_var=yes"
  18483. else
  18484. echo "$as_me: failed program was:" >&5
  18485. sed 's/^/| /' conftest.$ac_ext >&5
  18486. eval "$as_ac_var=no"
  18487. fi
  18488. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18489. conftest$ac_exeext conftest.$ac_ext
  18490. fi
  18491. ac_res=`eval echo '${'$as_ac_var'}'`
  18492. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18493. echo "${ECHO_T}$ac_res" >&6; }
  18494. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18495. cat >>confdefs.h <<_ACEOF
  18496. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18497. _ACEOF
  18498. if true; then
  18499. HAVE_LOCALTIME_R_TRUE=
  18500. HAVE_LOCALTIME_R_FALSE='#'
  18501. else
  18502. HAVE_LOCALTIME_R_TRUE='#'
  18503. HAVE_LOCALTIME_R_FALSE=
  18504. fi
  18505. else
  18506. if false; then
  18507. HAVE_LOCALTIME_R_TRUE=
  18508. HAVE_LOCALTIME_R_FALSE='#'
  18509. else
  18510. HAVE_LOCALTIME_R_TRUE='#'
  18511. HAVE_LOCALTIME_R_FALSE=
  18512. fi
  18513. fi
  18514. done
  18515. for ac_func in strptime
  18516. do
  18517. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18518. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18519. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18520. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18521. echo $ECHO_N "(cached) $ECHO_C" >&6
  18522. else
  18523. cat >conftest.$ac_ext <<_ACEOF
  18524. /* confdefs.h. */
  18525. _ACEOF
  18526. cat confdefs.h >>conftest.$ac_ext
  18527. cat >>conftest.$ac_ext <<_ACEOF
  18528. /* end confdefs.h. */
  18529. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18530. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18531. #define $ac_func innocuous_$ac_func
  18532. /* System header to define __stub macros and hopefully few prototypes,
  18533. which can conflict with char $ac_func (); below.
  18534. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18535. <limits.h> exists even on freestanding compilers. */
  18536. #ifdef __STDC__
  18537. # include <limits.h>
  18538. #else
  18539. # include <assert.h>
  18540. #endif
  18541. #undef $ac_func
  18542. /* Override any GCC internal prototype to avoid an error.
  18543. Use char because int might match the return type of a GCC
  18544. builtin and then its argument prototype would still apply. */
  18545. #ifdef __cplusplus
  18546. extern "C"
  18547. #endif
  18548. char $ac_func ();
  18549. /* The GNU C library defines this for functions which it implements
  18550. to always fail with ENOSYS. Some functions are actually named
  18551. something starting with __ and the normal name is an alias. */
  18552. #if defined __stub_$ac_func || defined __stub___$ac_func
  18553. choke me
  18554. #endif
  18555. int
  18556. main ()
  18557. {
  18558. return $ac_func ();
  18559. ;
  18560. return 0;
  18561. }
  18562. _ACEOF
  18563. rm -f conftest.$ac_objext conftest$ac_exeext
  18564. if { (ac_try="$ac_link"
  18565. case "(($ac_try" in
  18566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18567. *) ac_try_echo=$ac_try;;
  18568. esac
  18569. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18570. (eval "$ac_link") 2>conftest.er1
  18571. ac_status=$?
  18572. grep -v '^ *+' conftest.er1 >conftest.err
  18573. rm -f conftest.er1
  18574. cat conftest.err >&5
  18575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18576. (exit $ac_status); } && {
  18577. test -z "$ac_cxx_werror_flag" ||
  18578. test ! -s conftest.err
  18579. } && test -s conftest$ac_exeext &&
  18580. $as_test_x conftest$ac_exeext; then
  18581. eval "$as_ac_var=yes"
  18582. else
  18583. echo "$as_me: failed program was:" >&5
  18584. sed 's/^/| /' conftest.$ac_ext >&5
  18585. eval "$as_ac_var=no"
  18586. fi
  18587. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18588. conftest$ac_exeext conftest.$ac_ext
  18589. fi
  18590. ac_res=`eval echo '${'$as_ac_var'}'`
  18591. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18592. echo "${ECHO_T}$ac_res" >&6; }
  18593. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18594. cat >>confdefs.h <<_ACEOF
  18595. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18596. _ACEOF
  18597. if true; then
  18598. HAVE_STRPTIME_TRUE=
  18599. HAVE_STRPTIME_FALSE='#'
  18600. else
  18601. HAVE_STRPTIME_TRUE='#'
  18602. HAVE_STRPTIME_FALSE=
  18603. fi
  18604. else
  18605. if false; then
  18606. HAVE_STRPTIME_TRUE=
  18607. HAVE_STRPTIME_FALSE='#'
  18608. else
  18609. HAVE_STRPTIME_TRUE='#'
  18610. HAVE_STRPTIME_FALSE=
  18611. fi
  18612. fi
  18613. done
  18614. for ac_func in timegm
  18615. do
  18616. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18617. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18618. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18619. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18620. echo $ECHO_N "(cached) $ECHO_C" >&6
  18621. else
  18622. cat >conftest.$ac_ext <<_ACEOF
  18623. /* confdefs.h. */
  18624. _ACEOF
  18625. cat confdefs.h >>conftest.$ac_ext
  18626. cat >>conftest.$ac_ext <<_ACEOF
  18627. /* end confdefs.h. */
  18628. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18629. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18630. #define $ac_func innocuous_$ac_func
  18631. /* System header to define __stub macros and hopefully few prototypes,
  18632. which can conflict with char $ac_func (); below.
  18633. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18634. <limits.h> exists even on freestanding compilers. */
  18635. #ifdef __STDC__
  18636. # include <limits.h>
  18637. #else
  18638. # include <assert.h>
  18639. #endif
  18640. #undef $ac_func
  18641. /* Override any GCC internal prototype to avoid an error.
  18642. Use char because int might match the return type of a GCC
  18643. builtin and then its argument prototype would still apply. */
  18644. #ifdef __cplusplus
  18645. extern "C"
  18646. #endif
  18647. char $ac_func ();
  18648. /* The GNU C library defines this for functions which it implements
  18649. to always fail with ENOSYS. Some functions are actually named
  18650. something starting with __ and the normal name is an alias. */
  18651. #if defined __stub_$ac_func || defined __stub___$ac_func
  18652. choke me
  18653. #endif
  18654. int
  18655. main ()
  18656. {
  18657. return $ac_func ();
  18658. ;
  18659. return 0;
  18660. }
  18661. _ACEOF
  18662. rm -f conftest.$ac_objext conftest$ac_exeext
  18663. if { (ac_try="$ac_link"
  18664. case "(($ac_try" in
  18665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18666. *) ac_try_echo=$ac_try;;
  18667. esac
  18668. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18669. (eval "$ac_link") 2>conftest.er1
  18670. ac_status=$?
  18671. grep -v '^ *+' conftest.er1 >conftest.err
  18672. rm -f conftest.er1
  18673. cat conftest.err >&5
  18674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18675. (exit $ac_status); } && {
  18676. test -z "$ac_cxx_werror_flag" ||
  18677. test ! -s conftest.err
  18678. } && test -s conftest$ac_exeext &&
  18679. $as_test_x conftest$ac_exeext; then
  18680. eval "$as_ac_var=yes"
  18681. else
  18682. echo "$as_me: failed program was:" >&5
  18683. sed 's/^/| /' conftest.$ac_ext >&5
  18684. eval "$as_ac_var=no"
  18685. fi
  18686. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18687. conftest$ac_exeext conftest.$ac_ext
  18688. fi
  18689. ac_res=`eval echo '${'$as_ac_var'}'`
  18690. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18691. echo "${ECHO_T}$ac_res" >&6; }
  18692. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18693. cat >>confdefs.h <<_ACEOF
  18694. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18695. _ACEOF
  18696. if true; then
  18697. HAVE_TIMEGM_TRUE=
  18698. HAVE_TIMEGM_FALSE='#'
  18699. else
  18700. HAVE_TIMEGM_TRUE='#'
  18701. HAVE_TIMEGM_FALSE=
  18702. fi
  18703. else
  18704. if false; then
  18705. HAVE_TIMEGM_TRUE=
  18706. HAVE_TIMEGM_FALSE='#'
  18707. else
  18708. HAVE_TIMEGM_TRUE='#'
  18709. HAVE_TIMEGM_FALSE=
  18710. fi
  18711. fi
  18712. done
  18713. case "$target" in
  18714. *mingw*)
  18715. if true; then
  18716. HAVE_GETADDRINFO_TRUE=
  18717. HAVE_GETADDRINFO_FALSE='#'
  18718. else
  18719. HAVE_GETADDRINFO_TRUE='#'
  18720. HAVE_GETADDRINFO_FALSE=
  18721. fi
  18722. if false; then
  18723. HAVE_GAI_STRERROR_TRUE=
  18724. HAVE_GAI_STRERROR_FALSE='#'
  18725. else
  18726. HAVE_GAI_STRERROR_TRUE='#'
  18727. HAVE_GAI_STRERROR_FALSE=
  18728. fi
  18729. ;;
  18730. esac
  18731. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  18732. cat >confcache <<\_ACEOF
  18733. # This file is a shell script that caches the results of configure
  18734. # tests run on this system so they can be shared between configure
  18735. # scripts and configure runs, see configure's option --config-cache.
  18736. # It is not useful on other systems. If it contains results you don't
  18737. # want to keep, you may remove or edit it.
  18738. #
  18739. # config.status only pays attention to the cache file if you give it
  18740. # the --recheck option to rerun configure.
  18741. #
  18742. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18743. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18744. # following values.
  18745. _ACEOF
  18746. # The following way of writing the cache mishandles newlines in values,
  18747. # but we know of no workaround that is simple, portable, and efficient.
  18748. # So, we kill variables containing newlines.
  18749. # Ultrix sh set writes to stderr and can't be redirected directly,
  18750. # and sets the high bit in the cache file unless we assign to the vars.
  18751. (
  18752. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18753. eval ac_val=\$$ac_var
  18754. case $ac_val in #(
  18755. *${as_nl}*)
  18756. case $ac_var in #(
  18757. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  18758. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  18759. esac
  18760. case $ac_var in #(
  18761. _ | IFS | as_nl) ;; #(
  18762. *) $as_unset $ac_var ;;
  18763. esac ;;
  18764. esac
  18765. done
  18766. (set) 2>&1 |
  18767. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18768. *${as_nl}ac_space=\ *)
  18769. # `set' does not quote correctly, so add quotes (double-quote
  18770. # substitution turns \\\\ into \\, and sed turns \\ into \).
  18771. sed -n \
  18772. "s/'/'\\\\''/g;
  18773. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18774. ;; #(
  18775. *)
  18776. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18777. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18778. ;;
  18779. esac |
  18780. sort
  18781. ) |
  18782. sed '
  18783. /^ac_cv_env_/b end
  18784. t clear
  18785. :clear
  18786. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18787. t end
  18788. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18789. :end' >>confcache
  18790. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18791. if test -w "$cache_file"; then
  18792. test "x$cache_file" != "x/dev/null" &&
  18793. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  18794. echo "$as_me: updating cache $cache_file" >&6;}
  18795. cat confcache >$cache_file
  18796. else
  18797. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  18798. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18799. fi
  18800. fi
  18801. rm -f confcache
  18802. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18803. # Let make expand exec_prefix.
  18804. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18805. DEFS=-DHAVE_CONFIG_H
  18806. ac_libobjs=
  18807. ac_ltlibobjs=
  18808. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18809. # 1. Remove the extension, and $U if already installed.
  18810. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18811. ac_i=`echo "$ac_i" | sed "$ac_script"`
  18812. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18813. # will be set to the directory where LIBOBJS objects are built.
  18814. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18815. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  18816. done
  18817. LIBOBJS=$ac_libobjs
  18818. LTLIBOBJS=$ac_ltlibobjs
  18819. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  18820. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  18821. Usually this means the macro was only invoked conditionally." >&5
  18822. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  18823. Usually this means the macro was only invoked conditionally." >&2;}
  18824. { (exit 1); exit 1; }; }
  18825. fi
  18826. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  18827. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  18828. Usually this means the macro was only invoked conditionally." >&5
  18829. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  18830. Usually this means the macro was only invoked conditionally." >&2;}
  18831. { (exit 1); exit 1; }; }
  18832. fi
  18833. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  18834. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  18835. Usually this means the macro was only invoked conditionally." >&5
  18836. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  18837. Usually this means the macro was only invoked conditionally." >&2;}
  18838. { (exit 1); exit 1; }; }
  18839. fi
  18840. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  18841. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  18842. Usually this means the macro was only invoked conditionally." >&5
  18843. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  18844. Usually this means the macro was only invoked conditionally." >&2;}
  18845. { (exit 1); exit 1; }; }
  18846. fi
  18847. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  18848. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  18849. Usually this means the macro was only invoked conditionally." >&5
  18850. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  18851. Usually this means the macro was only invoked conditionally." >&2;}
  18852. { (exit 1); exit 1; }; }
  18853. fi
  18854. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  18855. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  18856. Usually this means the macro was only invoked conditionally." >&5
  18857. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  18858. Usually this means the macro was only invoked conditionally." >&2;}
  18859. { (exit 1); exit 1; }; }
  18860. fi
  18861. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  18862. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  18863. Usually this means the macro was only invoked conditionally." >&5
  18864. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  18865. Usually this means the macro was only invoked conditionally." >&2;}
  18866. { (exit 1); exit 1; }; }
  18867. fi
  18868. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  18869. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  18870. Usually this means the macro was only invoked conditionally." >&5
  18871. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  18872. Usually this means the macro was only invoked conditionally." >&2;}
  18873. { (exit 1); exit 1; }; }
  18874. fi
  18875. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  18876. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  18877. Usually this means the macro was only invoked conditionally." >&5
  18878. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  18879. Usually this means the macro was only invoked conditionally." >&2;}
  18880. { (exit 1); exit 1; }; }
  18881. fi
  18882. if test -z "${ENABLE_LIBXML2_TRUE}" && test -z "${ENABLE_LIBXML2_FALSE}"; then
  18883. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXML2\" was never defined.
  18884. Usually this means the macro was only invoked conditionally." >&5
  18885. echo "$as_me: error: conditional \"ENABLE_LIBXML2\" was never defined.
  18886. Usually this means the macro was only invoked conditionally." >&2;}
  18887. { (exit 1); exit 1; }; }
  18888. fi
  18889. if test -z "${ENABLE_LIBEXPAT_TRUE}" && test -z "${ENABLE_LIBEXPAT_FALSE}"; then
  18890. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  18891. Usually this means the macro was only invoked conditionally." >&5
  18892. echo "$as_me: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  18893. Usually this means the macro was only invoked conditionally." >&2;}
  18894. { (exit 1); exit 1; }; }
  18895. fi
  18896. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  18897. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  18898. Usually this means the macro was only invoked conditionally." >&5
  18899. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  18900. Usually this means the macro was only invoked conditionally." >&2;}
  18901. { (exit 1); exit 1; }; }
  18902. fi
  18903. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  18904. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  18905. Usually this means the macro was only invoked conditionally." >&5
  18906. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  18907. Usually this means the macro was only invoked conditionally." >&2;}
  18908. { (exit 1); exit 1; }; }
  18909. fi
  18910. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  18911. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  18912. Usually this means the macro was only invoked conditionally." >&5
  18913. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  18914. Usually this means the macro was only invoked conditionally." >&2;}
  18915. { (exit 1); exit 1; }; }
  18916. fi
  18917. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  18918. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  18919. Usually this means the macro was only invoked conditionally." >&5
  18920. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  18921. Usually this means the macro was only invoked conditionally." >&2;}
  18922. { (exit 1); exit 1; }; }
  18923. fi
  18924. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  18925. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  18926. Usually this means the macro was only invoked conditionally." >&5
  18927. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  18928. Usually this means the macro was only invoked conditionally." >&2;}
  18929. { (exit 1); exit 1; }; }
  18930. fi
  18931. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  18932. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  18933. Usually this means the macro was only invoked conditionally." >&5
  18934. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  18935. Usually this means the macro was only invoked conditionally." >&2;}
  18936. { (exit 1); exit 1; }; }
  18937. fi
  18938. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  18939. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  18940. Usually this means the macro was only invoked conditionally." >&5
  18941. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  18942. Usually this means the macro was only invoked conditionally." >&2;}
  18943. { (exit 1); exit 1; }; }
  18944. fi
  18945. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  18946. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  18947. Usually this means the macro was only invoked conditionally." >&5
  18948. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  18949. Usually this means the macro was only invoked conditionally." >&2;}
  18950. { (exit 1); exit 1; }; }
  18951. fi
  18952. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  18953. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  18954. Usually this means the macro was only invoked conditionally." >&5
  18955. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  18956. Usually this means the macro was only invoked conditionally." >&2;}
  18957. { (exit 1); exit 1; }; }
  18958. fi
  18959. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  18960. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  18961. Usually this means the macro was only invoked conditionally." >&5
  18962. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  18963. Usually this means the macro was only invoked conditionally." >&2;}
  18964. { (exit 1); exit 1; }; }
  18965. fi
  18966. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  18967. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  18968. Usually this means the macro was only invoked conditionally." >&5
  18969. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  18970. Usually this means the macro was only invoked conditionally." >&2;}
  18971. { (exit 1); exit 1; }; }
  18972. fi
  18973. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  18974. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  18975. Usually this means the macro was only invoked conditionally." >&5
  18976. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  18977. Usually this means the macro was only invoked conditionally." >&2;}
  18978. { (exit 1); exit 1; }; }
  18979. fi
  18980. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  18981. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  18982. Usually this means the macro was only invoked conditionally." >&5
  18983. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  18984. Usually this means the macro was only invoked conditionally." >&2;}
  18985. { (exit 1); exit 1; }; }
  18986. fi
  18987. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  18988. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  18989. Usually this means the macro was only invoked conditionally." >&5
  18990. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  18991. Usually this means the macro was only invoked conditionally." >&2;}
  18992. { (exit 1); exit 1; }; }
  18993. fi
  18994. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  18995. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  18996. Usually this means the macro was only invoked conditionally." >&5
  18997. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  18998. Usually this means the macro was only invoked conditionally." >&2;}
  18999. { (exit 1); exit 1; }; }
  19000. fi
  19001. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19002. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19003. Usually this means the macro was only invoked conditionally." >&5
  19004. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19005. Usually this means the macro was only invoked conditionally." >&2;}
  19006. { (exit 1); exit 1; }; }
  19007. fi
  19008. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19009. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19010. Usually this means the macro was only invoked conditionally." >&5
  19011. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19012. Usually this means the macro was only invoked conditionally." >&2;}
  19013. { (exit 1); exit 1; }; }
  19014. fi
  19015. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19016. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19017. Usually this means the macro was only invoked conditionally." >&5
  19018. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19019. Usually this means the macro was only invoked conditionally." >&2;}
  19020. { (exit 1); exit 1; }; }
  19021. fi
  19022. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19023. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19024. Usually this means the macro was only invoked conditionally." >&5
  19025. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19026. Usually this means the macro was only invoked conditionally." >&2;}
  19027. { (exit 1); exit 1; }; }
  19028. fi
  19029. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19030. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19031. Usually this means the macro was only invoked conditionally." >&5
  19032. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19033. Usually this means the macro was only invoked conditionally." >&2;}
  19034. { (exit 1); exit 1; }; }
  19035. fi
  19036. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19037. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19038. Usually this means the macro was only invoked conditionally." >&5
  19039. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19040. Usually this means the macro was only invoked conditionally." >&2;}
  19041. { (exit 1); exit 1; }; }
  19042. fi
  19043. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19044. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19045. Usually this means the macro was only invoked conditionally." >&5
  19046. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19047. Usually this means the macro was only invoked conditionally." >&2;}
  19048. { (exit 1); exit 1; }; }
  19049. fi
  19050. : ${CONFIG_STATUS=./config.status}
  19051. ac_clean_files_save=$ac_clean_files
  19052. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19053. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  19054. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19055. cat >$CONFIG_STATUS <<_ACEOF
  19056. #! $SHELL
  19057. # Generated by $as_me.
  19058. # Run this file to recreate the current configuration.
  19059. # Compiler output produced by configure, useful for debugging
  19060. # configure, is in config.log if it exists.
  19061. debug=false
  19062. ac_cs_recheck=false
  19063. ac_cs_silent=false
  19064. SHELL=\${CONFIG_SHELL-$SHELL}
  19065. _ACEOF
  19066. cat >>$CONFIG_STATUS <<\_ACEOF
  19067. ## --------------------- ##
  19068. ## M4sh Initialization. ##
  19069. ## --------------------- ##
  19070. # Be more Bourne compatible
  19071. DUALCASE=1; export DUALCASE # for MKS sh
  19072. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  19073. emulate sh
  19074. NULLCMD=:
  19075. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19076. # is contrary to our usage. Disable this feature.
  19077. alias -g '${1+"$@"}'='"$@"'
  19078. setopt NO_GLOB_SUBST
  19079. else
  19080. case `(set -o) 2>/dev/null` in
  19081. *posix*) set -o posix ;;
  19082. esac
  19083. fi
  19084. # PATH needs CR
  19085. # Avoid depending upon Character Ranges.
  19086. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19087. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19088. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19089. as_cr_digits='0123456789'
  19090. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19091. # The user is always right.
  19092. if test "${PATH_SEPARATOR+set}" != set; then
  19093. echo "#! /bin/sh" >conf$$.sh
  19094. echo "exit 0" >>conf$$.sh
  19095. chmod +x conf$$.sh
  19096. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  19097. PATH_SEPARATOR=';'
  19098. else
  19099. PATH_SEPARATOR=:
  19100. fi
  19101. rm -f conf$$.sh
  19102. fi
  19103. # Support unset when possible.
  19104. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  19105. as_unset=unset
  19106. else
  19107. as_unset=false
  19108. fi
  19109. # IFS
  19110. # We need space, tab and new line, in precisely that order. Quoting is
  19111. # there to prevent editors from complaining about space-tab.
  19112. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  19113. # splitting by setting IFS to empty value.)
  19114. as_nl='
  19115. '
  19116. IFS=" "" $as_nl"
  19117. # Find who we are. Look in the path if we contain no directory separator.
  19118. case $0 in
  19119. *[\\/]* ) as_myself=$0 ;;
  19120. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19121. for as_dir in $PATH
  19122. do
  19123. IFS=$as_save_IFS
  19124. test -z "$as_dir" && as_dir=.
  19125. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19126. done
  19127. IFS=$as_save_IFS
  19128. ;;
  19129. esac
  19130. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19131. # in which case we are not to be found in the path.
  19132. if test "x$as_myself" = x; then
  19133. as_myself=$0
  19134. fi
  19135. if test ! -f "$as_myself"; then
  19136. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19137. { (exit 1); exit 1; }
  19138. fi
  19139. # Work around bugs in pre-3.0 UWIN ksh.
  19140. for as_var in ENV MAIL MAILPATH
  19141. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19142. done
  19143. PS1='$ '
  19144. PS2='> '
  19145. PS4='+ '
  19146. # NLS nuisances.
  19147. for as_var in \
  19148. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  19149. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  19150. LC_TELEPHONE LC_TIME
  19151. do
  19152. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  19153. eval $as_var=C; export $as_var
  19154. else
  19155. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19156. fi
  19157. done
  19158. # Required to use basename.
  19159. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19160. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19161. as_expr=expr
  19162. else
  19163. as_expr=false
  19164. fi
  19165. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  19166. as_basename=basename
  19167. else
  19168. as_basename=false
  19169. fi
  19170. # Name of the executable.
  19171. as_me=`$as_basename -- "$0" ||
  19172. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19173. X"$0" : 'X\(//\)$' \| \
  19174. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19175. echo X/"$0" |
  19176. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19177. s//\1/
  19178. q
  19179. }
  19180. /^X\/\(\/\/\)$/{
  19181. s//\1/
  19182. q
  19183. }
  19184. /^X\/\(\/\).*/{
  19185. s//\1/
  19186. q
  19187. }
  19188. s/.*/./; q'`
  19189. # CDPATH.
  19190. $as_unset CDPATH
  19191. as_lineno_1=$LINENO
  19192. as_lineno_2=$LINENO
  19193. test "x$as_lineno_1" != "x$as_lineno_2" &&
  19194. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  19195. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  19196. # uniformly replaced by the line number. The first 'sed' inserts a
  19197. # line-number line after each line using $LINENO; the second 'sed'
  19198. # does the real work. The second script uses 'N' to pair each
  19199. # line-number line with the line containing $LINENO, and appends
  19200. # trailing '-' during substitution so that $LINENO is not a special
  19201. # case at line end.
  19202. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  19203. # scripts with optimization help from Paolo Bonzini. Blame Lee
  19204. # E. McMahon (1931-1989) for sed's syntax. :-)
  19205. sed -n '
  19206. p
  19207. /[$]LINENO/=
  19208. ' <$as_myself |
  19209. sed '
  19210. s/[$]LINENO.*/&-/
  19211. t lineno
  19212. b
  19213. :lineno
  19214. N
  19215. :loop
  19216. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  19217. t loop
  19218. s/-\n.*//
  19219. ' >$as_me.lineno &&
  19220. chmod +x "$as_me.lineno" ||
  19221. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  19222. { (exit 1); exit 1; }; }
  19223. # Don't try to exec as it changes $[0], causing all sort of problems
  19224. # (the dirname of $[0] is not the place where we might find the
  19225. # original and so on. Autoconf is especially sensitive to this).
  19226. . "./$as_me.lineno"
  19227. # Exit status is that of the last command.
  19228. exit
  19229. }
  19230. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  19231. as_dirname=dirname
  19232. else
  19233. as_dirname=false
  19234. fi
  19235. ECHO_C= ECHO_N= ECHO_T=
  19236. case `echo -n x` in
  19237. -n*)
  19238. case `echo 'x\c'` in
  19239. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  19240. *) ECHO_C='\c';;
  19241. esac;;
  19242. *)
  19243. ECHO_N='-n';;
  19244. esac
  19245. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19246. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19247. as_expr=expr
  19248. else
  19249. as_expr=false
  19250. fi
  19251. rm -f conf$$ conf$$.exe conf$$.file
  19252. if test -d conf$$.dir; then
  19253. rm -f conf$$.dir/conf$$.file
  19254. else
  19255. rm -f conf$$.dir
  19256. mkdir conf$$.dir
  19257. fi
  19258. echo >conf$$.file
  19259. if ln -s conf$$.file conf$$ 2>/dev/null; then
  19260. as_ln_s='ln -s'
  19261. # ... but there are two gotchas:
  19262. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  19263. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  19264. # In both cases, we have to default to `cp -p'.
  19265. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  19266. as_ln_s='cp -p'
  19267. elif ln conf$$.file conf$$ 2>/dev/null; then
  19268. as_ln_s=ln
  19269. else
  19270. as_ln_s='cp -p'
  19271. fi
  19272. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  19273. rmdir conf$$.dir 2>/dev/null
  19274. if mkdir -p . 2>/dev/null; then
  19275. as_mkdir_p=:
  19276. else
  19277. test -d ./-p && rmdir ./-p
  19278. as_mkdir_p=false
  19279. fi
  19280. if test -x / >/dev/null 2>&1; then
  19281. as_test_x='test -x'
  19282. else
  19283. if ls -dL / >/dev/null 2>&1; then
  19284. as_ls_L_option=L
  19285. else
  19286. as_ls_L_option=
  19287. fi
  19288. as_test_x='
  19289. eval sh -c '\''
  19290. if test -d "$1"; then
  19291. test -d "$1/.";
  19292. else
  19293. case $1 in
  19294. -*)set "./$1";;
  19295. esac;
  19296. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  19297. ???[sx]*):;;*)false;;esac;fi
  19298. '\'' sh
  19299. '
  19300. fi
  19301. as_executable_p=$as_test_x
  19302. # Sed expression to map a string onto a valid CPP name.
  19303. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19304. # Sed expression to map a string onto a valid variable name.
  19305. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19306. exec 6>&1
  19307. # Save the log message, to keep $[0] and so on meaningful, and to
  19308. # report actual input values of CONFIG_FILES etc. instead of their
  19309. # values after options handling.
  19310. ac_log="
  19311. This file was extended by aria2c $as_me 0.15.0dev, which was
  19312. generated by GNU Autoconf 2.61. Invocation command line was
  19313. CONFIG_FILES = $CONFIG_FILES
  19314. CONFIG_HEADERS = $CONFIG_HEADERS
  19315. CONFIG_LINKS = $CONFIG_LINKS
  19316. CONFIG_COMMANDS = $CONFIG_COMMANDS
  19317. $ $0 $@
  19318. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  19319. "
  19320. _ACEOF
  19321. cat >>$CONFIG_STATUS <<_ACEOF
  19322. # Files that config.status was made for.
  19323. config_files="$ac_config_files"
  19324. config_headers="$ac_config_headers"
  19325. config_commands="$ac_config_commands"
  19326. _ACEOF
  19327. cat >>$CONFIG_STATUS <<\_ACEOF
  19328. ac_cs_usage="\
  19329. \`$as_me' instantiates files from templates according to the
  19330. current configuration.
  19331. Usage: $0 [OPTIONS] [FILE]...
  19332. -h, --help print this help, then exit
  19333. -V, --version print version number and configuration settings, then exit
  19334. -q, --quiet do not print progress messages
  19335. -d, --debug don't remove temporary files
  19336. --recheck update $as_me by reconfiguring in the same conditions
  19337. --file=FILE[:TEMPLATE]
  19338. instantiate the configuration file FILE
  19339. --header=FILE[:TEMPLATE]
  19340. instantiate the configuration header FILE
  19341. Configuration files:
  19342. $config_files
  19343. Configuration headers:
  19344. $config_headers
  19345. Configuration commands:
  19346. $config_commands
  19347. Report bugs to <bug-autoconf@gnu.org>."
  19348. _ACEOF
  19349. cat >>$CONFIG_STATUS <<_ACEOF
  19350. ac_cs_version="\\
  19351. aria2c config.status 0.15.0dev
  19352. configured by $0, generated by GNU Autoconf 2.61,
  19353. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  19354. Copyright (C) 2006 Free Software Foundation, Inc.
  19355. This config.status script is free software; the Free Software Foundation
  19356. gives unlimited permission to copy, distribute and modify it."
  19357. ac_pwd='$ac_pwd'
  19358. srcdir='$srcdir'
  19359. INSTALL='$INSTALL'
  19360. MKDIR_P='$MKDIR_P'
  19361. _ACEOF
  19362. cat >>$CONFIG_STATUS <<\_ACEOF
  19363. # If no file are specified by the user, then we need to provide default
  19364. # value. By we need to know if files were specified by the user.
  19365. ac_need_defaults=:
  19366. while test $# != 0
  19367. do
  19368. case $1 in
  19369. --*=*)
  19370. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19371. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  19372. ac_shift=:
  19373. ;;
  19374. *)
  19375. ac_option=$1
  19376. ac_optarg=$2
  19377. ac_shift=shift
  19378. ;;
  19379. esac
  19380. case $ac_option in
  19381. # Handling of the options.
  19382. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19383. ac_cs_recheck=: ;;
  19384. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  19385. echo "$ac_cs_version"; exit ;;
  19386. --debug | --debu | --deb | --de | --d | -d )
  19387. debug=: ;;
  19388. --file | --fil | --fi | --f )
  19389. $ac_shift
  19390. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  19391. ac_need_defaults=false;;
  19392. --header | --heade | --head | --hea )
  19393. $ac_shift
  19394. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  19395. ac_need_defaults=false;;
  19396. --he | --h)
  19397. # Conflict between --help and --header
  19398. { echo "$as_me: error: ambiguous option: $1
  19399. Try \`$0 --help' for more information." >&2
  19400. { (exit 1); exit 1; }; };;
  19401. --help | --hel | -h )
  19402. echo "$ac_cs_usage"; exit ;;
  19403. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19404. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19405. ac_cs_silent=: ;;
  19406. # This is an error.
  19407. -*) { echo "$as_me: error: unrecognized option: $1
  19408. Try \`$0 --help' for more information." >&2
  19409. { (exit 1); exit 1; }; } ;;
  19410. *) ac_config_targets="$ac_config_targets $1"
  19411. ac_need_defaults=false ;;
  19412. esac
  19413. shift
  19414. done
  19415. ac_configure_extra_args=
  19416. if $ac_cs_silent; then
  19417. exec 6>/dev/null
  19418. ac_configure_extra_args="$ac_configure_extra_args --silent"
  19419. fi
  19420. _ACEOF
  19421. cat >>$CONFIG_STATUS <<_ACEOF
  19422. if \$ac_cs_recheck; then
  19423. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  19424. CONFIG_SHELL=$SHELL
  19425. export CONFIG_SHELL
  19426. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19427. fi
  19428. _ACEOF
  19429. cat >>$CONFIG_STATUS <<\_ACEOF
  19430. exec 5>>config.log
  19431. {
  19432. echo
  19433. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19434. ## Running $as_me. ##
  19435. _ASBOX
  19436. echo "$ac_log"
  19437. } >&5
  19438. _ACEOF
  19439. cat >>$CONFIG_STATUS <<_ACEOF
  19440. #
  19441. # INIT-COMMANDS
  19442. #
  19443. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  19444. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  19445. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  19446. # from automake < 1.5.
  19447. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  19448. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  19449. LINGUAS="${LINGUAS-%UNSET%}"
  19450. _ACEOF
  19451. cat >>$CONFIG_STATUS <<\_ACEOF
  19452. # Handling of arguments.
  19453. for ac_config_target in $ac_config_targets
  19454. do
  19455. case $ac_config_target in
  19456. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19457. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19458. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  19459. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19460. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  19461. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  19462. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  19463. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  19464. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  19465. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  19466. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  19467. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  19468. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  19469. { (exit 1); exit 1; }; };;
  19470. esac
  19471. done
  19472. # If the user did not use the arguments to specify the items to instantiate,
  19473. # then the envvar interface is used. Set only those that are not.
  19474. # We use the long form for the default assignment because of an extremely
  19475. # bizarre bug on SunOS 4.1.3.
  19476. if $ac_need_defaults; then
  19477. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19478. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19479. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19480. fi
  19481. # Have a temporary directory for convenience. Make it in the build tree
  19482. # simply because there is no reason against having it here, and in addition,
  19483. # creating and moving files from /tmp can sometimes cause problems.
  19484. # Hook for its removal unless debugging.
  19485. # Note that there is a small window in which the directory will not be cleaned:
  19486. # after its creation but before its name has been assigned to `$tmp'.
  19487. $debug ||
  19488. {
  19489. tmp=
  19490. trap 'exit_status=$?
  19491. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  19492. ' 0
  19493. trap '{ (exit 1); exit 1; }' 1 2 13 15
  19494. }
  19495. # Create a (secure) tmp directory for tmp files.
  19496. {
  19497. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19498. test -n "$tmp" && test -d "$tmp"
  19499. } ||
  19500. {
  19501. tmp=./conf$$-$RANDOM
  19502. (umask 077 && mkdir "$tmp")
  19503. } ||
  19504. {
  19505. echo "$me: cannot create a temporary directory in ." >&2
  19506. { (exit 1); exit 1; }
  19507. }
  19508. #
  19509. # Set up the sed scripts for CONFIG_FILES section.
  19510. #
  19511. # No need to generate the scripts if there are no CONFIG_FILES.
  19512. # This happens for instance when ./config.status config.h
  19513. if test -n "$CONFIG_FILES"; then
  19514. _ACEOF
  19515. ac_delim='%!_!# '
  19516. for ac_last_try in false false false false false :; do
  19517. cat >conf$$subs.sed <<_ACEOF
  19518. SHELL!$SHELL$ac_delim
  19519. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  19520. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  19521. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  19522. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  19523. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  19524. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  19525. exec_prefix!$exec_prefix$ac_delim
  19526. prefix!$prefix$ac_delim
  19527. program_transform_name!$program_transform_name$ac_delim
  19528. bindir!$bindir$ac_delim
  19529. sbindir!$sbindir$ac_delim
  19530. libexecdir!$libexecdir$ac_delim
  19531. datarootdir!$datarootdir$ac_delim
  19532. datadir!$datadir$ac_delim
  19533. sysconfdir!$sysconfdir$ac_delim
  19534. sharedstatedir!$sharedstatedir$ac_delim
  19535. localstatedir!$localstatedir$ac_delim
  19536. includedir!$includedir$ac_delim
  19537. oldincludedir!$oldincludedir$ac_delim
  19538. docdir!$docdir$ac_delim
  19539. infodir!$infodir$ac_delim
  19540. htmldir!$htmldir$ac_delim
  19541. dvidir!$dvidir$ac_delim
  19542. pdfdir!$pdfdir$ac_delim
  19543. psdir!$psdir$ac_delim
  19544. libdir!$libdir$ac_delim
  19545. localedir!$localedir$ac_delim
  19546. mandir!$mandir$ac_delim
  19547. DEFS!$DEFS$ac_delim
  19548. ECHO_C!$ECHO_C$ac_delim
  19549. ECHO_N!$ECHO_N$ac_delim
  19550. ECHO_T!$ECHO_T$ac_delim
  19551. LIBS!$LIBS$ac_delim
  19552. build_alias!$build_alias$ac_delim
  19553. host_alias!$host_alias$ac_delim
  19554. target_alias!$target_alias$ac_delim
  19555. build!$build$ac_delim
  19556. build_cpu!$build_cpu$ac_delim
  19557. build_vendor!$build_vendor$ac_delim
  19558. build_os!$build_os$ac_delim
  19559. host!$host$ac_delim
  19560. host_cpu!$host_cpu$ac_delim
  19561. host_vendor!$host_vendor$ac_delim
  19562. host_os!$host_os$ac_delim
  19563. target!$target$ac_delim
  19564. target_cpu!$target_cpu$ac_delim
  19565. target_vendor!$target_vendor$ac_delim
  19566. target_os!$target_os$ac_delim
  19567. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  19568. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  19569. INSTALL_DATA!$INSTALL_DATA$ac_delim
  19570. am__isrc!$am__isrc$ac_delim
  19571. CYGPATH_W!$CYGPATH_W$ac_delim
  19572. PACKAGE!$PACKAGE$ac_delim
  19573. VERSION!$VERSION$ac_delim
  19574. ACLOCAL!$ACLOCAL$ac_delim
  19575. AUTOCONF!$AUTOCONF$ac_delim
  19576. AUTOMAKE!$AUTOMAKE$ac_delim
  19577. AUTOHEADER!$AUTOHEADER$ac_delim
  19578. MAKEINFO!$MAKEINFO$ac_delim
  19579. install_sh!$install_sh$ac_delim
  19580. STRIP!$STRIP$ac_delim
  19581. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  19582. mkdir_p!$mkdir_p$ac_delim
  19583. AWK!$AWK$ac_delim
  19584. SET_MAKE!$SET_MAKE$ac_delim
  19585. am__leading_dot!$am__leading_dot$ac_delim
  19586. AMTAR!$AMTAR$ac_delim
  19587. am__tar!$am__tar$ac_delim
  19588. am__untar!$am__untar$ac_delim
  19589. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  19590. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  19591. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  19592. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  19593. CXX!$CXX$ac_delim
  19594. CXXFLAGS!$CXXFLAGS$ac_delim
  19595. LDFLAGS!$LDFLAGS$ac_delim
  19596. CPPFLAGS!$CPPFLAGS$ac_delim
  19597. ac_ct_CXX!$ac_ct_CXX$ac_delim
  19598. EXEEXT!$EXEEXT$ac_delim
  19599. OBJEXT!$OBJEXT$ac_delim
  19600. DEPDIR!$DEPDIR$ac_delim
  19601. am__include!$am__include$ac_delim
  19602. am__quote!$am__quote$ac_delim
  19603. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  19604. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  19605. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  19606. CXXDEPMODE!$CXXDEPMODE$ac_delim
  19607. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  19608. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  19609. CC!$CC$ac_delim
  19610. CFLAGS!$CFLAGS$ac_delim
  19611. ac_ct_CC!$ac_ct_CC$ac_delim
  19612. CCDEPMODE!$CCDEPMODE$ac_delim
  19613. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  19614. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  19615. _ACEOF
  19616. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  19617. break
  19618. elif $ac_last_try; then
  19619. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  19620. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  19621. { (exit 1); exit 1; }; }
  19622. else
  19623. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19624. fi
  19625. done
  19626. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  19627. if test -n "$ac_eof"; then
  19628. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  19629. ac_eof=`expr $ac_eof + 1`
  19630. fi
  19631. cat >>$CONFIG_STATUS <<_ACEOF
  19632. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  19633. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19634. _ACEOF
  19635. sed '
  19636. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  19637. s/^/s,@/; s/!/@,|#_!!_#|/
  19638. :n
  19639. t n
  19640. s/'"$ac_delim"'$/,g/; t
  19641. s/$/\\/; p
  19642. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  19643. ' >>$CONFIG_STATUS <conf$$subs.sed
  19644. rm -f conf$$subs.sed
  19645. cat >>$CONFIG_STATUS <<_ACEOF
  19646. CEOF$ac_eof
  19647. _ACEOF
  19648. ac_delim='%!_!# '
  19649. for ac_last_try in false false false false false :; do
  19650. cat >conf$$subs.sed <<_ACEOF
  19651. RANLIB!$RANLIB$ac_delim
  19652. YACC!$YACC$ac_delim
  19653. YFLAGS!$YFLAGS$ac_delim
  19654. CXXCPP!$CXXCPP$ac_delim
  19655. GREP!$GREP$ac_delim
  19656. EGREP!$EGREP$ac_delim
  19657. XML2_CONFIG!$XML2_CONFIG$ac_delim
  19658. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  19659. XML_LIBS!$XML_LIBS$ac_delim
  19660. LIBEXPAT_LIBS!$LIBEXPAT_LIBS$ac_delim
  19661. LIBEXPAT_CPPFLAGS!$LIBEXPAT_CPPFLAGS$ac_delim
  19662. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  19663. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  19664. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  19665. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  19666. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  19667. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  19668. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  19669. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  19670. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  19671. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  19672. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  19673. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  19674. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  19675. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  19676. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  19677. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  19678. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  19679. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  19680. ENABLE_LIBXML2_TRUE!$ENABLE_LIBXML2_TRUE$ac_delim
  19681. ENABLE_LIBXML2_FALSE!$ENABLE_LIBXML2_FALSE$ac_delim
  19682. ENABLE_LIBEXPAT_TRUE!$ENABLE_LIBEXPAT_TRUE$ac_delim
  19683. ENABLE_LIBEXPAT_FALSE!$ENABLE_LIBEXPAT_FALSE$ac_delim
  19684. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  19685. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  19686. ALLOCA!$ALLOCA$ac_delim
  19687. USE_NLS!$USE_NLS$ac_delim
  19688. GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
  19689. MSGFMT!$MSGFMT$ac_delim
  19690. GMSGFMT!$GMSGFMT$ac_delim
  19691. MSGFMT_015!$MSGFMT_015$ac_delim
  19692. GMSGFMT_015!$GMSGFMT_015$ac_delim
  19693. XGETTEXT!$XGETTEXT$ac_delim
  19694. XGETTEXT_015!$XGETTEXT_015$ac_delim
  19695. MSGMERGE!$MSGMERGE$ac_delim
  19696. XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
  19697. GLIBC2!$GLIBC2$ac_delim
  19698. CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
  19699. HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
  19700. PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
  19701. LIBPTH!$LIBPTH$ac_delim
  19702. LTLIBPTH!$LTLIBPTH$ac_delim
  19703. LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim
  19704. LIBTHREAD!$LIBTHREAD$ac_delim
  19705. LTLIBTHREAD!$LTLIBTHREAD$ac_delim
  19706. LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
  19707. LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
  19708. LIBICONV!$LIBICONV$ac_delim
  19709. LTLIBICONV!$LTLIBICONV$ac_delim
  19710. INTLBISON!$INTLBISON$ac_delim
  19711. GLIBC21!$GLIBC21$ac_delim
  19712. INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
  19713. HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
  19714. HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
  19715. HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
  19716. HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
  19717. WOE32DLL!$WOE32DLL$ac_delim
  19718. WOE32!$WOE32$ac_delim
  19719. WINDRES!$WINDRES$ac_delim
  19720. LTLIBC!$LTLIBC$ac_delim
  19721. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  19722. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  19723. CATOBJEXT!$CATOBJEXT$ac_delim
  19724. DATADIRNAME!$DATADIRNAME$ac_delim
  19725. INSTOBJEXT!$INSTOBJEXT$ac_delim
  19726. GENCAT!$GENCAT$ac_delim
  19727. INTLOBJS!$INTLOBJS$ac_delim
  19728. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  19729. INTLLIBS!$INTLLIBS$ac_delim
  19730. LIBINTL!$LIBINTL$ac_delim
  19731. LTLIBINTL!$LTLIBINTL$ac_delim
  19732. POSUB!$POSUB$ac_delim
  19733. LIBOBJS!$LIBOBJS$ac_delim
  19734. HAVE_ASCTIME_R_TRUE!$HAVE_ASCTIME_R_TRUE$ac_delim
  19735. HAVE_ASCTIME_R_FALSE!$HAVE_ASCTIME_R_FALSE$ac_delim
  19736. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  19737. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  19738. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  19739. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  19740. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  19741. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  19742. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  19743. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  19744. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  19745. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  19746. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  19747. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  19748. _ACEOF
  19749. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  19750. break
  19751. elif $ac_last_try; then
  19752. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  19753. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  19754. { (exit 1); exit 1; }; }
  19755. else
  19756. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19757. fi
  19758. done
  19759. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  19760. if test -n "$ac_eof"; then
  19761. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  19762. ac_eof=`expr $ac_eof + 1`
  19763. fi
  19764. cat >>$CONFIG_STATUS <<_ACEOF
  19765. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  19766. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19767. _ACEOF
  19768. sed '
  19769. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  19770. s/^/s,@/; s/!/@,|#_!!_#|/
  19771. :n
  19772. t n
  19773. s/'"$ac_delim"'$/,g/; t
  19774. s/$/\\/; p
  19775. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  19776. ' >>$CONFIG_STATUS <conf$$subs.sed
  19777. rm -f conf$$subs.sed
  19778. cat >>$CONFIG_STATUS <<_ACEOF
  19779. CEOF$ac_eof
  19780. _ACEOF
  19781. ac_delim='%!_!# '
  19782. for ac_last_try in false false false false false :; do
  19783. cat >conf$$subs.sed <<_ACEOF
  19784. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  19785. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  19786. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  19787. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  19788. LTLIBOBJS!$LTLIBOBJS$ac_delim
  19789. _ACEOF
  19790. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
  19791. break
  19792. elif $ac_last_try; then
  19793. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  19794. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  19795. { (exit 1); exit 1; }; }
  19796. else
  19797. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19798. fi
  19799. done
  19800. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  19801. if test -n "$ac_eof"; then
  19802. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  19803. ac_eof=`expr $ac_eof + 1`
  19804. fi
  19805. cat >>$CONFIG_STATUS <<_ACEOF
  19806. cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
  19807. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  19808. _ACEOF
  19809. sed '
  19810. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  19811. s/^/s,@/; s/!/@,|#_!!_#|/
  19812. :n
  19813. t n
  19814. s/'"$ac_delim"'$/,g/; t
  19815. s/$/\\/; p
  19816. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  19817. ' >>$CONFIG_STATUS <conf$$subs.sed
  19818. rm -f conf$$subs.sed
  19819. cat >>$CONFIG_STATUS <<_ACEOF
  19820. :end
  19821. s/|#_!!_#|//g
  19822. CEOF$ac_eof
  19823. _ACEOF
  19824. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  19825. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  19826. # trailing colons and then remove the whole line if VPATH becomes empty
  19827. # (actually we leave an empty line to preserve line numbers).
  19828. if test "x$srcdir" = x.; then
  19829. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  19830. s/:*\$(srcdir):*/:/
  19831. s/:*\${srcdir}:*/:/
  19832. s/:*@srcdir@:*/:/
  19833. s/^\([^=]*=[ ]*\):*/\1/
  19834. s/:*$//
  19835. s/^[^=]*=[ ]*$//
  19836. }'
  19837. fi
  19838. cat >>$CONFIG_STATUS <<\_ACEOF
  19839. fi # test -n "$CONFIG_FILES"
  19840. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  19841. do
  19842. case $ac_tag in
  19843. :[FHLC]) ac_mode=$ac_tag; continue;;
  19844. esac
  19845. case $ac_mode$ac_tag in
  19846. :[FHL]*:*);;
  19847. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  19848. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  19849. { (exit 1); exit 1; }; };;
  19850. :[FH]-) ac_tag=-:-;;
  19851. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19852. esac
  19853. ac_save_IFS=$IFS
  19854. IFS=:
  19855. set x $ac_tag
  19856. IFS=$ac_save_IFS
  19857. shift
  19858. ac_file=$1
  19859. shift
  19860. case $ac_mode in
  19861. :L) ac_source=$1;;
  19862. :[FH])
  19863. ac_file_inputs=
  19864. for ac_f
  19865. do
  19866. case $ac_f in
  19867. -) ac_f="$tmp/stdin";;
  19868. *) # Look for the file first in the build tree, then in the source tree
  19869. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19870. # because $ac_f cannot contain `:'.
  19871. test -f "$ac_f" ||
  19872. case $ac_f in
  19873. [\\/$]*) false;;
  19874. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19875. esac ||
  19876. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  19877. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  19878. { (exit 1); exit 1; }; };;
  19879. esac
  19880. ac_file_inputs="$ac_file_inputs $ac_f"
  19881. done
  19882. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19883. # use $as_me), people would be surprised to read:
  19884. # /* config.h. Generated by config.status. */
  19885. configure_input="Generated from "`IFS=:
  19886. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  19887. if test x"$ac_file" != x-; then
  19888. configure_input="$ac_file. $configure_input"
  19889. { echo "$as_me:$LINENO: creating $ac_file" >&5
  19890. echo "$as_me: creating $ac_file" >&6;}
  19891. fi
  19892. case $ac_tag in
  19893. *:-:* | *:-) cat >"$tmp/stdin";;
  19894. esac
  19895. ;;
  19896. esac
  19897. ac_dir=`$as_dirname -- "$ac_file" ||
  19898. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19899. X"$ac_file" : 'X\(//\)[^/]' \| \
  19900. X"$ac_file" : 'X\(//\)$' \| \
  19901. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19902. echo X"$ac_file" |
  19903. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19904. s//\1/
  19905. q
  19906. }
  19907. /^X\(\/\/\)[^/].*/{
  19908. s//\1/
  19909. q
  19910. }
  19911. /^X\(\/\/\)$/{
  19912. s//\1/
  19913. q
  19914. }
  19915. /^X\(\/\).*/{
  19916. s//\1/
  19917. q
  19918. }
  19919. s/.*/./; q'`
  19920. { as_dir="$ac_dir"
  19921. case $as_dir in #(
  19922. -*) as_dir=./$as_dir;;
  19923. esac
  19924. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  19925. as_dirs=
  19926. while :; do
  19927. case $as_dir in #(
  19928. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  19929. *) as_qdir=$as_dir;;
  19930. esac
  19931. as_dirs="'$as_qdir' $as_dirs"
  19932. as_dir=`$as_dirname -- "$as_dir" ||
  19933. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19934. X"$as_dir" : 'X\(//\)[^/]' \| \
  19935. X"$as_dir" : 'X\(//\)$' \| \
  19936. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  19937. echo X"$as_dir" |
  19938. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19939. s//\1/
  19940. q
  19941. }
  19942. /^X\(\/\/\)[^/].*/{
  19943. s//\1/
  19944. q
  19945. }
  19946. /^X\(\/\/\)$/{
  19947. s//\1/
  19948. q
  19949. }
  19950. /^X\(\/\).*/{
  19951. s//\1/
  19952. q
  19953. }
  19954. s/.*/./; q'`
  19955. test -d "$as_dir" && break
  19956. done
  19957. test -z "$as_dirs" || eval "mkdir $as_dirs"
  19958. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  19959. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  19960. { (exit 1); exit 1; }; }; }
  19961. ac_builddir=.
  19962. case "$ac_dir" in
  19963. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19964. *)
  19965. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  19966. # A ".." for each directory in $ac_dir_suffix.
  19967. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  19968. case $ac_top_builddir_sub in
  19969. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19970. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19971. esac ;;
  19972. esac
  19973. ac_abs_top_builddir=$ac_pwd
  19974. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19975. # for backward compatibility:
  19976. ac_top_builddir=$ac_top_build_prefix
  19977. case $srcdir in
  19978. .) # We are building in place.
  19979. ac_srcdir=.
  19980. ac_top_srcdir=$ac_top_builddir_sub
  19981. ac_abs_top_srcdir=$ac_pwd ;;
  19982. [\\/]* | ?:[\\/]* ) # Absolute name.
  19983. ac_srcdir=$srcdir$ac_dir_suffix;
  19984. ac_top_srcdir=$srcdir
  19985. ac_abs_top_srcdir=$srcdir ;;
  19986. *) # Relative name.
  19987. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19988. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19989. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19990. esac
  19991. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19992. case $ac_mode in
  19993. :F)
  19994. #
  19995. # CONFIG_FILE
  19996. #
  19997. case $INSTALL in
  19998. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19999. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  20000. esac
  20001. ac_MKDIR_P=$MKDIR_P
  20002. case $MKDIR_P in
  20003. [\\/$]* | ?:[\\/]* ) ;;
  20004. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  20005. esac
  20006. _ACEOF
  20007. cat >>$CONFIG_STATUS <<\_ACEOF
  20008. # If the template does not know about datarootdir, expand it.
  20009. # FIXME: This hack should be removed a few years after 2.60.
  20010. ac_datarootdir_hack=; ac_datarootdir_seen=
  20011. case `sed -n '/datarootdir/ {
  20012. p
  20013. q
  20014. }
  20015. /@datadir@/p
  20016. /@docdir@/p
  20017. /@infodir@/p
  20018. /@localedir@/p
  20019. /@mandir@/p
  20020. ' $ac_file_inputs` in
  20021. *datarootdir*) ac_datarootdir_seen=yes;;
  20022. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20023. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20024. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20025. _ACEOF
  20026. cat >>$CONFIG_STATUS <<_ACEOF
  20027. ac_datarootdir_hack='
  20028. s&@datadir@&$datadir&g
  20029. s&@docdir@&$docdir&g
  20030. s&@infodir@&$infodir&g
  20031. s&@localedir@&$localedir&g
  20032. s&@mandir@&$mandir&g
  20033. s&\\\${datarootdir}&$datarootdir&g' ;;
  20034. esac
  20035. _ACEOF
  20036. # Neutralize VPATH when `$srcdir' = `.'.
  20037. # Shell code in configure.ac might set extrasub.
  20038. # FIXME: do we really want to maintain this feature?
  20039. cat >>$CONFIG_STATUS <<_ACEOF
  20040. sed "$ac_vpsub
  20041. $extrasub
  20042. _ACEOF
  20043. cat >>$CONFIG_STATUS <<\_ACEOF
  20044. :t
  20045. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20046. s&@configure_input@&$configure_input&;t t
  20047. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20048. s&@srcdir@&$ac_srcdir&;t t
  20049. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20050. s&@top_srcdir@&$ac_top_srcdir&;t t
  20051. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20052. s&@builddir@&$ac_builddir&;t t
  20053. s&@abs_builddir@&$ac_abs_builddir&;t t
  20054. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20055. s&@INSTALL@&$ac_INSTALL&;t t
  20056. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  20057. $ac_datarootdir_hack
  20058. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
  20059. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20060. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  20061. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  20062. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20063. which seems to be undefined. Please make sure it is defined." >&5
  20064. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20065. which seems to be undefined. Please make sure it is defined." >&2;}
  20066. rm -f "$tmp/stdin"
  20067. case $ac_file in
  20068. -) cat "$tmp/out"; rm -f "$tmp/out";;
  20069. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  20070. esac
  20071. ;;
  20072. :H)
  20073. #
  20074. # CONFIG_HEADER
  20075. #
  20076. _ACEOF
  20077. # Transform confdefs.h into a sed script `conftest.defines', that
  20078. # substitutes the proper values into config.h.in to produce config.h.
  20079. rm -f conftest.defines conftest.tail
  20080. # First, append a space to every undef/define line, to ease matching.
  20081. echo 's/$/ /' >conftest.defines
  20082. # Then, protect against being on the right side of a sed subst, or in
  20083. # an unquoted here document, in config.status. If some macros were
  20084. # called several times there might be several #defines for the same
  20085. # symbol, which is useless. But do not sort them, since the last
  20086. # AC_DEFINE must be honored.
  20087. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  20088. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  20089. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  20090. # PARAMS is the parameter list in the macro definition--in most cases, it's
  20091. # just an empty string.
  20092. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  20093. ac_dB='\\)[ (].*,\\1define\\2'
  20094. ac_dC=' '
  20095. ac_dD=' ,'
  20096. uniq confdefs.h |
  20097. sed -n '
  20098. t rset
  20099. :rset
  20100. s/^[ ]*#[ ]*define[ ][ ]*//
  20101. t ok
  20102. d
  20103. :ok
  20104. s/[\\&,]/\\&/g
  20105. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  20106. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  20107. ' >>conftest.defines
  20108. # Remove the space that was appended to ease matching.
  20109. # Then replace #undef with comments. This is necessary, for
  20110. # example, in the case of _POSIX_SOURCE, which is predefined and required
  20111. # on some systems where configure will not decide to define it.
  20112. # (The regexp can be short, since the line contains either #define or #undef.)
  20113. echo 's/ $//
  20114. s,^[ #]*u.*,/* & */,' >>conftest.defines
  20115. # Break up conftest.defines:
  20116. ac_max_sed_lines=50
  20117. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  20118. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  20119. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  20120. # et cetera.
  20121. ac_in='$ac_file_inputs'
  20122. ac_out='"$tmp/out1"'
  20123. ac_nxt='"$tmp/out2"'
  20124. while :
  20125. do
  20126. # Write a here document:
  20127. cat >>$CONFIG_STATUS <<_ACEOF
  20128. # First, check the format of the line:
  20129. cat >"\$tmp/defines.sed" <<\\CEOF
  20130. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  20131. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  20132. b
  20133. :def
  20134. _ACEOF
  20135. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  20136. echo 'CEOF
  20137. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  20138. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  20139. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  20140. grep . conftest.tail >/dev/null || break
  20141. rm -f conftest.defines
  20142. mv conftest.tail conftest.defines
  20143. done
  20144. rm -f conftest.defines conftest.tail
  20145. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  20146. cat >>$CONFIG_STATUS <<\_ACEOF
  20147. if test x"$ac_file" != x-; then
  20148. echo "/* $configure_input */" >"$tmp/config.h"
  20149. cat "$ac_result" >>"$tmp/config.h"
  20150. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  20151. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  20152. echo "$as_me: $ac_file is unchanged" >&6;}
  20153. else
  20154. rm -f $ac_file
  20155. mv "$tmp/config.h" $ac_file
  20156. fi
  20157. else
  20158. echo "/* $configure_input */"
  20159. cat "$ac_result"
  20160. fi
  20161. rm -f "$tmp/out12"
  20162. # Compute $ac_file's index in $config_headers.
  20163. _am_arg=$ac_file
  20164. _am_stamp_count=1
  20165. for _am_header in $config_headers :; do
  20166. case $_am_header in
  20167. $_am_arg | $_am_arg:* )
  20168. break ;;
  20169. * )
  20170. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20171. esac
  20172. done
  20173. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  20174. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20175. X"$_am_arg" : 'X\(//\)[^/]' \| \
  20176. X"$_am_arg" : 'X\(//\)$' \| \
  20177. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  20178. echo X"$_am_arg" |
  20179. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20180. s//\1/
  20181. q
  20182. }
  20183. /^X\(\/\/\)[^/].*/{
  20184. s//\1/
  20185. q
  20186. }
  20187. /^X\(\/\/\)$/{
  20188. s//\1/
  20189. q
  20190. }
  20191. /^X\(\/\).*/{
  20192. s//\1/
  20193. q
  20194. }
  20195. s/.*/./; q'`/stamp-h$_am_stamp_count
  20196. ;;
  20197. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  20198. echo "$as_me: executing $ac_file commands" >&6;}
  20199. ;;
  20200. esac
  20201. case $ac_file$ac_mode in
  20202. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  20203. # Strip MF so we end up with the name of the file.
  20204. mf=`echo "$mf" | sed -e 's/:.*$//'`
  20205. # Check whether this is an Automake generated Makefile or not.
  20206. # We used to match only the files named `Makefile.in', but
  20207. # some people rename them; so instead we look at the file content.
  20208. # Grep'ing the first line is not enough: some people post-process
  20209. # each Makefile.in and add a new line on top of each file to say so.
  20210. # Grep'ing the whole file is not good either: AIX grep has a line
  20211. # limit of 2048, but all sed's we know have understand at least 4000.
  20212. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  20213. dirpart=`$as_dirname -- "$mf" ||
  20214. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20215. X"$mf" : 'X\(//\)[^/]' \| \
  20216. X"$mf" : 'X\(//\)$' \| \
  20217. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  20218. echo X"$mf" |
  20219. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20220. s//\1/
  20221. q
  20222. }
  20223. /^X\(\/\/\)[^/].*/{
  20224. s//\1/
  20225. q
  20226. }
  20227. /^X\(\/\/\)$/{
  20228. s//\1/
  20229. q
  20230. }
  20231. /^X\(\/\).*/{
  20232. s//\1/
  20233. q
  20234. }
  20235. s/.*/./; q'`
  20236. else
  20237. continue
  20238. fi
  20239. # Extract the definition of DEPDIR, am__include, and am__quote
  20240. # from the Makefile without running `make'.
  20241. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  20242. test -z "$DEPDIR" && continue
  20243. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  20244. test -z "am__include" && continue
  20245. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  20246. # When using ansi2knr, U may be empty or an underscore; expand it
  20247. U=`sed -n 's/^U = //p' < "$mf"`
  20248. # Find all dependency output files, they are included files with
  20249. # $(DEPDIR) in their names. We invoke sed twice because it is the
  20250. # simplest approach to changing $(DEPDIR) to its actual value in the
  20251. # expansion.
  20252. for file in `sed -n "
  20253. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  20254. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  20255. # Make sure the directory exists.
  20256. test -f "$dirpart/$file" && continue
  20257. fdir=`$as_dirname -- "$file" ||
  20258. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20259. X"$file" : 'X\(//\)[^/]' \| \
  20260. X"$file" : 'X\(//\)$' \| \
  20261. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  20262. echo X"$file" |
  20263. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20264. s//\1/
  20265. q
  20266. }
  20267. /^X\(\/\/\)[^/].*/{
  20268. s//\1/
  20269. q
  20270. }
  20271. /^X\(\/\/\)$/{
  20272. s//\1/
  20273. q
  20274. }
  20275. /^X\(\/\).*/{
  20276. s//\1/
  20277. q
  20278. }
  20279. s/.*/./; q'`
  20280. { as_dir=$dirpart/$fdir
  20281. case $as_dir in #(
  20282. -*) as_dir=./$as_dir;;
  20283. esac
  20284. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20285. as_dirs=
  20286. while :; do
  20287. case $as_dir in #(
  20288. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20289. *) as_qdir=$as_dir;;
  20290. esac
  20291. as_dirs="'$as_qdir' $as_dirs"
  20292. as_dir=`$as_dirname -- "$as_dir" ||
  20293. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20294. X"$as_dir" : 'X\(//\)[^/]' \| \
  20295. X"$as_dir" : 'X\(//\)$' \| \
  20296. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20297. echo X"$as_dir" |
  20298. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20299. s//\1/
  20300. q
  20301. }
  20302. /^X\(\/\/\)[^/].*/{
  20303. s//\1/
  20304. q
  20305. }
  20306. /^X\(\/\/\)$/{
  20307. s//\1/
  20308. q
  20309. }
  20310. /^X\(\/\).*/{
  20311. s//\1/
  20312. q
  20313. }
  20314. s/.*/./; q'`
  20315. test -d "$as_dir" && break
  20316. done
  20317. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20318. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20319. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20320. { (exit 1); exit 1; }; }; }
  20321. # echo "creating $dirpart/$file"
  20322. echo '# dummy' > "$dirpart/$file"
  20323. done
  20324. done
  20325. ;;
  20326. "po-directories":C)
  20327. for ac_file in $CONFIG_FILES; do
  20328. # Support "outfile[:infile[:infile...]]"
  20329. case "$ac_file" in
  20330. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  20331. esac
  20332. # PO directories have a Makefile.in generated from Makefile.in.in.
  20333. case "$ac_file" in */Makefile.in)
  20334. # Adjust a relative srcdir.
  20335. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  20336. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  20337. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  20338. # In autoconf-2.13 it is called $ac_given_srcdir.
  20339. # In autoconf-2.50 it is called $srcdir.
  20340. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  20341. case "$ac_given_srcdir" in
  20342. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  20343. /*) top_srcdir="$ac_given_srcdir" ;;
  20344. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  20345. esac
  20346. # Treat a directory as a PO directory if and only if it has a
  20347. # POTFILES.in file. This allows packages to have multiple PO
  20348. # directories under different names or in different locations.
  20349. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  20350. rm -f "$ac_dir/POTFILES"
  20351. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  20352. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  20353. POMAKEFILEDEPS="POTFILES.in"
  20354. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  20355. # on $ac_dir but don't depend on user-specified configuration
  20356. # parameters.
  20357. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  20358. # The LINGUAS file contains the set of available languages.
  20359. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  20360. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  20361. fi
  20362. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  20363. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  20364. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  20365. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  20366. else
  20367. # The set of available languages was given in configure.in.
  20368. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  20369. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  20370. fi
  20371. # Compute POFILES
  20372. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  20373. # Compute UPDATEPOFILES
  20374. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  20375. # Compute DUMMYPOFILES
  20376. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  20377. # Compute GMOFILES
  20378. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  20379. case "$ac_given_srcdir" in
  20380. .) srcdirpre= ;;
  20381. *) srcdirpre='$(srcdir)/' ;;
  20382. esac
  20383. POFILES=
  20384. UPDATEPOFILES=
  20385. DUMMYPOFILES=
  20386. GMOFILES=
  20387. for lang in $ALL_LINGUAS; do
  20388. POFILES="$POFILES $srcdirpre$lang.po"
  20389. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  20390. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  20391. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  20392. done
  20393. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  20394. # environment variable.
  20395. INST_LINGUAS=
  20396. if test -n "$ALL_LINGUAS"; then
  20397. for presentlang in $ALL_LINGUAS; do
  20398. useit=no
  20399. if test "%UNSET%" != "$LINGUAS"; then
  20400. desiredlanguages="$LINGUAS"
  20401. else
  20402. desiredlanguages="$ALL_LINGUAS"
  20403. fi
  20404. for desiredlang in $desiredlanguages; do
  20405. # Use the presentlang catalog if desiredlang is
  20406. # a. equal to presentlang, or
  20407. # b. a variant of presentlang (because in this case,
  20408. # presentlang can be used as a fallback for messages
  20409. # which are not translated in the desiredlang catalog).
  20410. case "$desiredlang" in
  20411. "$presentlang"*) useit=yes;;
  20412. esac
  20413. done
  20414. if test $useit = yes; then
  20415. INST_LINGUAS="$INST_LINGUAS $presentlang"
  20416. fi
  20417. done
  20418. fi
  20419. CATALOGS=
  20420. if test -n "$INST_LINGUAS"; then
  20421. for lang in $INST_LINGUAS; do
  20422. CATALOGS="$CATALOGS $lang.gmo"
  20423. done
  20424. fi
  20425. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  20426. 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"
  20427. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  20428. if test -f "$f"; then
  20429. case "$f" in
  20430. *.orig | *.bak | *~) ;;
  20431. *) cat "$f" >> "$ac_dir/Makefile" ;;
  20432. esac
  20433. fi
  20434. done
  20435. fi
  20436. ;;
  20437. esac
  20438. done ;;
  20439. esac
  20440. done # for ac_tag
  20441. { (exit 0); exit 0; }
  20442. _ACEOF
  20443. chmod +x $CONFIG_STATUS
  20444. ac_clean_files=$ac_clean_files_save
  20445. # configure is writing to config.log, and then calls config.status.
  20446. # config.status does its own redirection, appending to config.log.
  20447. # Unfortunately, on DOS this fails, as config.log is still kept open
  20448. # by configure, so config.status won't be able to write to it; its
  20449. # output is simply discarded. So we exec the FD to /dev/null,
  20450. # effectively closing config.log, so it can be properly (re)opened and
  20451. # appended to by config.status. When coming back to configure, we
  20452. # need to make the FD available again.
  20453. if test "$no_create" != yes; then
  20454. ac_cs_success=:
  20455. ac_config_status_args=
  20456. test "$silent" = yes &&
  20457. ac_config_status_args="$ac_config_status_args --quiet"
  20458. exec 5>/dev/null
  20459. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20460. exec 5>>config.log
  20461. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20462. # would make configure fail if this is the last instruction.
  20463. $ac_cs_success || { (exit 1); exit 1; }
  20464. fi
  20465. echo " "
  20466. echo "Build: $build"
  20467. echo "Target: $target"
  20468. echo "Install prefix: $prefix"
  20469. echo "CFLAGS: $CFLAGS"
  20470. echo "CPPFLAGS: $CPPFLAGS"
  20471. echo "LDFLAGS: $LDFLAGS"
  20472. echo "LIBS: $LIBS"
  20473. echo "GnuTLS: $have_libgnutls"
  20474. echo "OpenSSL: $have_openssl"
  20475. echo "LibXML2: $have_libxml2"
  20476. echo "LibExpat: $have_libexpat"
  20477. echo "LibAres: $have_libares"
  20478. echo "LibCares: $have_libcares"
  20479. echo "Bittorrent: $enable_bittorrent"
  20480. echo "Metalink: $enable_metalink"