configure 647 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 0.14.0b.
  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.14.0b'
  496. PACKAGE_STRING='aria2c 0.14.0b'
  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.14.0b 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.14.0b:";;
  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. --disable-dependency-tracking speeds up one-time build
  1253. --enable-dependency-tracking do not reject slow dependency extractors
  1254. --disable-xmltest Do not try to compile and run a test LIBXML program
  1255. --disable-largefile omit support for large files
  1256. --disable-nls do not use Native Language Support
  1257. --enable-threads={posix|solaris|pth|win32}
  1258. specify multithreading API
  1259. --disable-threads build without multithread safety
  1260. --disable-rpath do not hardcode runtime library paths
  1261. Optional Packages:
  1262. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1263. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1264. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1265. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1266. --with-gnutls use gnutls library if installed. Default: yes
  1267. --with-openssl use openssl library if installed. Default: yes
  1268. --with-libxml2 use libxml2 library if installed. Default: yes
  1269. --with-libexpat use libexpat library if installed. Default: yes
  1270. --with-libares use ares library if installed. Default: yes
  1271. --with-libcares use c-ares library if installed. Default: yes
  1272. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1273. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1274. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1275. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1276. --with-libgcrypt-prefix=PFX
  1277. prefix where LIBGCRYPT is installed (optional)
  1278. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1279. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1280. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  1281. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1282. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1283. --without-libpth-prefix don't search for libpth in includedir and libdir
  1284. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1285. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1286. --with-included-gettext use the GNU gettext library included here
  1287. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1288. --without-libintl-prefix don't search for libintl in includedir and libdir
  1289. Some influential environment variables:
  1290. CXX C++ compiler command
  1291. CXXFLAGS C++ compiler flags
  1292. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1293. nonstandard directory <lib dir>
  1294. LIBS libraries to pass to the linker, e.g. -l<library>
  1295. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1296. you have headers in a nonstandard directory <include dir>
  1297. CC C compiler command
  1298. CFLAGS C compiler flags
  1299. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1300. the first program found out of: `bison -y', `byacc', `yacc'.
  1301. YFLAGS The list of arguments that will be passed by default to $YACC.
  1302. This script will default YFLAGS to the empty string to avoid a
  1303. default value of `-d' given by some make applications.
  1304. CXXCPP C++ preprocessor
  1305. Use these variables to override the choices made by `configure' or to help
  1306. it to find libraries and programs with nonstandard names/locations.
  1307. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1308. _ACEOF
  1309. ac_status=$?
  1310. fi
  1311. if test "$ac_init_help" = "recursive"; then
  1312. # If there are subdirs, report their specific --help.
  1313. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1314. test -d "$ac_dir" || continue
  1315. ac_builddir=.
  1316. case "$ac_dir" in
  1317. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1318. *)
  1319. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1320. # A ".." for each directory in $ac_dir_suffix.
  1321. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1322. case $ac_top_builddir_sub in
  1323. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1324. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1325. esac ;;
  1326. esac
  1327. ac_abs_top_builddir=$ac_pwd
  1328. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1329. # for backward compatibility:
  1330. ac_top_builddir=$ac_top_build_prefix
  1331. case $srcdir in
  1332. .) # We are building in place.
  1333. ac_srcdir=.
  1334. ac_top_srcdir=$ac_top_builddir_sub
  1335. ac_abs_top_srcdir=$ac_pwd ;;
  1336. [\\/]* | ?:[\\/]* ) # Absolute name.
  1337. ac_srcdir=$srcdir$ac_dir_suffix;
  1338. ac_top_srcdir=$srcdir
  1339. ac_abs_top_srcdir=$srcdir ;;
  1340. *) # Relative name.
  1341. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1342. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1343. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1344. esac
  1345. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1346. cd "$ac_dir" || { ac_status=$?; continue; }
  1347. # Check for guested configure.
  1348. if test -f "$ac_srcdir/configure.gnu"; then
  1349. echo &&
  1350. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1351. elif test -f "$ac_srcdir/configure"; then
  1352. echo &&
  1353. $SHELL "$ac_srcdir/configure" --help=recursive
  1354. else
  1355. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1356. fi || ac_status=$?
  1357. cd "$ac_pwd" || { ac_status=$?; break; }
  1358. done
  1359. fi
  1360. test -n "$ac_init_help" && exit $ac_status
  1361. if $ac_init_version; then
  1362. cat <<\_ACEOF
  1363. aria2c configure 0.14.0b
  1364. generated by GNU Autoconf 2.61
  1365. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1366. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1367. This configure script is free software; the Free Software Foundation
  1368. gives unlimited permission to copy, distribute and modify it.
  1369. _ACEOF
  1370. exit
  1371. fi
  1372. cat >config.log <<_ACEOF
  1373. This file contains any messages produced by compilers while
  1374. running configure, to aid debugging if configure makes a mistake.
  1375. It was created by aria2c $as_me 0.14.0b, which was
  1376. generated by GNU Autoconf 2.61. Invocation command line was
  1377. $ $0 $@
  1378. _ACEOF
  1379. exec 5>>config.log
  1380. {
  1381. cat <<_ASUNAME
  1382. ## --------- ##
  1383. ## Platform. ##
  1384. ## --------- ##
  1385. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1386. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1387. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1388. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1389. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1390. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1391. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1392. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1393. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1394. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1395. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1396. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1397. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1398. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1399. _ASUNAME
  1400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1401. for as_dir in $PATH
  1402. do
  1403. IFS=$as_save_IFS
  1404. test -z "$as_dir" && as_dir=.
  1405. echo "PATH: $as_dir"
  1406. done
  1407. IFS=$as_save_IFS
  1408. } >&5
  1409. cat >&5 <<_ACEOF
  1410. ## ----------- ##
  1411. ## Core tests. ##
  1412. ## ----------- ##
  1413. _ACEOF
  1414. # Keep a trace of the command line.
  1415. # Strip out --no-create and --no-recursion so they do not pile up.
  1416. # Strip out --silent because we don't want to record it for future runs.
  1417. # Also quote any args containing shell meta-characters.
  1418. # Make two passes to allow for proper duplicate-argument suppression.
  1419. ac_configure_args=
  1420. ac_configure_args0=
  1421. ac_configure_args1=
  1422. ac_must_keep_next=false
  1423. for ac_pass in 1 2
  1424. do
  1425. for ac_arg
  1426. do
  1427. case $ac_arg in
  1428. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1429. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1430. | -silent | --silent | --silen | --sile | --sil)
  1431. continue ;;
  1432. *\'*)
  1433. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1434. esac
  1435. case $ac_pass in
  1436. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1437. 2)
  1438. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1439. if test $ac_must_keep_next = true; then
  1440. ac_must_keep_next=false # Got value, back to normal.
  1441. else
  1442. case $ac_arg in
  1443. *=* | --config-cache | -C | -disable-* | --disable-* \
  1444. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1445. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1446. | -with-* | --with-* | -without-* | --without-* | --x)
  1447. case "$ac_configure_args0 " in
  1448. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1449. esac
  1450. ;;
  1451. -* ) ac_must_keep_next=true ;;
  1452. esac
  1453. fi
  1454. ac_configure_args="$ac_configure_args '$ac_arg'"
  1455. ;;
  1456. esac
  1457. done
  1458. done
  1459. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1460. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1461. # When interrupted or exit'd, cleanup temporary files, and complete
  1462. # config.log. We remove comments because anyway the quotes in there
  1463. # would cause problems or look ugly.
  1464. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1465. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1466. trap 'exit_status=$?
  1467. # Save into config.log some information that might help in debugging.
  1468. {
  1469. echo
  1470. cat <<\_ASBOX
  1471. ## ---------------- ##
  1472. ## Cache variables. ##
  1473. ## ---------------- ##
  1474. _ASBOX
  1475. echo
  1476. # The following way of writing the cache mishandles newlines in values,
  1477. (
  1478. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1479. eval ac_val=\$$ac_var
  1480. case $ac_val in #(
  1481. *${as_nl}*)
  1482. case $ac_var in #(
  1483. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1484. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1485. esac
  1486. case $ac_var in #(
  1487. _ | IFS | as_nl) ;; #(
  1488. *) $as_unset $ac_var ;;
  1489. esac ;;
  1490. esac
  1491. done
  1492. (set) 2>&1 |
  1493. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1494. *${as_nl}ac_space=\ *)
  1495. sed -n \
  1496. "s/'\''/'\''\\\\'\'''\''/g;
  1497. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1498. ;; #(
  1499. *)
  1500. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1501. ;;
  1502. esac |
  1503. sort
  1504. )
  1505. echo
  1506. cat <<\_ASBOX
  1507. ## ----------------- ##
  1508. ## Output variables. ##
  1509. ## ----------------- ##
  1510. _ASBOX
  1511. echo
  1512. for ac_var in $ac_subst_vars
  1513. do
  1514. eval ac_val=\$$ac_var
  1515. case $ac_val in
  1516. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1517. esac
  1518. echo "$ac_var='\''$ac_val'\''"
  1519. done | sort
  1520. echo
  1521. if test -n "$ac_subst_files"; then
  1522. cat <<\_ASBOX
  1523. ## ------------------- ##
  1524. ## File substitutions. ##
  1525. ## ------------------- ##
  1526. _ASBOX
  1527. echo
  1528. for ac_var in $ac_subst_files
  1529. do
  1530. eval ac_val=\$$ac_var
  1531. case $ac_val in
  1532. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1533. esac
  1534. echo "$ac_var='\''$ac_val'\''"
  1535. done | sort
  1536. echo
  1537. fi
  1538. if test -s confdefs.h; then
  1539. cat <<\_ASBOX
  1540. ## ----------- ##
  1541. ## confdefs.h. ##
  1542. ## ----------- ##
  1543. _ASBOX
  1544. echo
  1545. cat confdefs.h
  1546. echo
  1547. fi
  1548. test "$ac_signal" != 0 &&
  1549. echo "$as_me: caught signal $ac_signal"
  1550. echo "$as_me: exit $exit_status"
  1551. } >&5
  1552. rm -f core *.core core.conftest.* &&
  1553. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1554. exit $exit_status
  1555. ' 0
  1556. for ac_signal in 1 2 13 15; do
  1557. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1558. done
  1559. ac_signal=0
  1560. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1561. rm -f -r conftest* confdefs.h
  1562. # Predefined preprocessor variables.
  1563. cat >>confdefs.h <<_ACEOF
  1564. #define PACKAGE_NAME "$PACKAGE_NAME"
  1565. _ACEOF
  1566. cat >>confdefs.h <<_ACEOF
  1567. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1568. _ACEOF
  1569. cat >>confdefs.h <<_ACEOF
  1570. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1571. _ACEOF
  1572. cat >>confdefs.h <<_ACEOF
  1573. #define PACKAGE_STRING "$PACKAGE_STRING"
  1574. _ACEOF
  1575. cat >>confdefs.h <<_ACEOF
  1576. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1577. _ACEOF
  1578. # Let the site file select an alternate cache file if it wants to.
  1579. # Prefer explicitly selected file to automatically selected ones.
  1580. if test -n "$CONFIG_SITE"; then
  1581. set x "$CONFIG_SITE"
  1582. elif test "x$prefix" != xNONE; then
  1583. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1584. else
  1585. set x "$ac_default_prefix/share/config.site" \
  1586. "$ac_default_prefix/etc/config.site"
  1587. fi
  1588. shift
  1589. for ac_site_file
  1590. do
  1591. if test -r "$ac_site_file"; then
  1592. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1593. echo "$as_me: loading site script $ac_site_file" >&6;}
  1594. sed 's/^/| /' "$ac_site_file" >&5
  1595. . "$ac_site_file"
  1596. fi
  1597. done
  1598. if test -r "$cache_file"; then
  1599. # Some versions of bash will fail to source /dev/null (special
  1600. # files actually), so we avoid doing that.
  1601. if test -f "$cache_file"; then
  1602. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1603. echo "$as_me: loading cache $cache_file" >&6;}
  1604. case $cache_file in
  1605. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1606. *) . "./$cache_file";;
  1607. esac
  1608. fi
  1609. else
  1610. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1611. echo "$as_me: creating cache $cache_file" >&6;}
  1612. >$cache_file
  1613. fi
  1614. gt_needs="$gt_needs "
  1615. ac_header_list="$ac_header_list sys/time.h"
  1616. ac_header_list="$ac_header_list unistd.h"
  1617. ac_func_list="$ac_func_list alarm"
  1618. # Check that the precious variables saved in the cache have kept the same
  1619. # value.
  1620. ac_cache_corrupted=false
  1621. for ac_var in $ac_precious_vars; do
  1622. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1623. eval ac_new_set=\$ac_env_${ac_var}_set
  1624. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1625. eval ac_new_val=\$ac_env_${ac_var}_value
  1626. case $ac_old_set,$ac_new_set in
  1627. set,)
  1628. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1629. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1630. ac_cache_corrupted=: ;;
  1631. ,set)
  1632. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1633. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1634. ac_cache_corrupted=: ;;
  1635. ,);;
  1636. *)
  1637. if test "x$ac_old_val" != "x$ac_new_val"; then
  1638. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1639. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1640. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1641. echo "$as_me: former value: $ac_old_val" >&2;}
  1642. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1643. echo "$as_me: current value: $ac_new_val" >&2;}
  1644. ac_cache_corrupted=:
  1645. fi;;
  1646. esac
  1647. # Pass precious variables to config.status.
  1648. if test "$ac_new_set" = set; then
  1649. case $ac_new_val in
  1650. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1651. *) ac_arg=$ac_var=$ac_new_val ;;
  1652. esac
  1653. case " $ac_configure_args " in
  1654. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1655. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1656. esac
  1657. fi
  1658. done
  1659. if $ac_cache_corrupted; then
  1660. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1661. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1662. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1663. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1664. { (exit 1); exit 1; }; }
  1665. fi
  1666. ac_ext=c
  1667. ac_cpp='$CPP $CPPFLAGS'
  1668. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1669. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1670. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1671. ac_aux_dir=
  1672. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1673. if test -f "$ac_dir/install-sh"; then
  1674. ac_aux_dir=$ac_dir
  1675. ac_install_sh="$ac_aux_dir/install-sh -c"
  1676. break
  1677. elif test -f "$ac_dir/install.sh"; then
  1678. ac_aux_dir=$ac_dir
  1679. ac_install_sh="$ac_aux_dir/install.sh -c"
  1680. break
  1681. elif test -f "$ac_dir/shtool"; then
  1682. ac_aux_dir=$ac_dir
  1683. ac_install_sh="$ac_aux_dir/shtool install -c"
  1684. break
  1685. fi
  1686. done
  1687. if test -z "$ac_aux_dir"; then
  1688. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1689. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1690. { (exit 1); exit 1; }; }
  1691. fi
  1692. # These three variables are undocumented and unsupported,
  1693. # and are intended to be withdrawn in a future Autoconf release.
  1694. # They can cause serious problems if a builder's source tree is in a directory
  1695. # whose full name contains unusual characters.
  1696. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1697. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1698. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1699. # Make sure we can run config.sub.
  1700. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1701. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1702. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1703. { (exit 1); exit 1; }; }
  1704. { echo "$as_me:$LINENO: checking build system type" >&5
  1705. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1706. if test "${ac_cv_build+set}" = set; then
  1707. echo $ECHO_N "(cached) $ECHO_C" >&6
  1708. else
  1709. ac_build_alias=$build_alias
  1710. test "x$ac_build_alias" = x &&
  1711. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1712. test "x$ac_build_alias" = x &&
  1713. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1714. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1715. { (exit 1); exit 1; }; }
  1716. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1717. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1718. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1719. { (exit 1); exit 1; }; }
  1720. fi
  1721. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1722. echo "${ECHO_T}$ac_cv_build" >&6; }
  1723. case $ac_cv_build in
  1724. *-*-*) ;;
  1725. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1726. echo "$as_me: error: invalid value of canonical build" >&2;}
  1727. { (exit 1); exit 1; }; };;
  1728. esac
  1729. build=$ac_cv_build
  1730. ac_save_IFS=$IFS; IFS='-'
  1731. set x $ac_cv_build
  1732. shift
  1733. build_cpu=$1
  1734. build_vendor=$2
  1735. shift; shift
  1736. # Remember, the first character of IFS is used to create $*,
  1737. # except with old shells:
  1738. build_os=$*
  1739. IFS=$ac_save_IFS
  1740. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1741. { echo "$as_me:$LINENO: checking host system type" >&5
  1742. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1743. if test "${ac_cv_host+set}" = set; then
  1744. echo $ECHO_N "(cached) $ECHO_C" >&6
  1745. else
  1746. if test "x$host_alias" = x; then
  1747. ac_cv_host=$ac_cv_build
  1748. else
  1749. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1750. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1751. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1752. { (exit 1); exit 1; }; }
  1753. fi
  1754. fi
  1755. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1756. echo "${ECHO_T}$ac_cv_host" >&6; }
  1757. case $ac_cv_host in
  1758. *-*-*) ;;
  1759. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1760. echo "$as_me: error: invalid value of canonical host" >&2;}
  1761. { (exit 1); exit 1; }; };;
  1762. esac
  1763. host=$ac_cv_host
  1764. ac_save_IFS=$IFS; IFS='-'
  1765. set x $ac_cv_host
  1766. shift
  1767. host_cpu=$1
  1768. host_vendor=$2
  1769. shift; shift
  1770. # Remember, the first character of IFS is used to create $*,
  1771. # except with old shells:
  1772. host_os=$*
  1773. IFS=$ac_save_IFS
  1774. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1775. { echo "$as_me:$LINENO: checking target system type" >&5
  1776. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1777. if test "${ac_cv_target+set}" = set; then
  1778. echo $ECHO_N "(cached) $ECHO_C" >&6
  1779. else
  1780. if test "x$target_alias" = x; then
  1781. ac_cv_target=$ac_cv_host
  1782. else
  1783. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1784. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1785. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1786. { (exit 1); exit 1; }; }
  1787. fi
  1788. fi
  1789. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1790. echo "${ECHO_T}$ac_cv_target" >&6; }
  1791. case $ac_cv_target in
  1792. *-*-*) ;;
  1793. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1794. echo "$as_me: error: invalid value of canonical target" >&2;}
  1795. { (exit 1); exit 1; }; };;
  1796. esac
  1797. target=$ac_cv_target
  1798. ac_save_IFS=$IFS; IFS='-'
  1799. set x $ac_cv_target
  1800. shift
  1801. target_cpu=$1
  1802. target_vendor=$2
  1803. shift; shift
  1804. # Remember, the first character of IFS is used to create $*,
  1805. # except with old shells:
  1806. target_os=$*
  1807. IFS=$ac_save_IFS
  1808. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1809. # The aliases save the names the user supplied, while $host etc.
  1810. # will get canonicalized.
  1811. test -n "$target_alias" &&
  1812. test "$program_prefix$program_suffix$program_transform_name" = \
  1813. NONENONEs,x,x, &&
  1814. program_prefix=${target_alias}-
  1815. am__api_version='1.10'
  1816. # Find a good install program. We prefer a C program (faster),
  1817. # so one script is as good as another. But avoid the broken or
  1818. # incompatible versions:
  1819. # SysV /etc/install, /usr/sbin/install
  1820. # SunOS /usr/etc/install
  1821. # IRIX /sbin/install
  1822. # AIX /bin/install
  1823. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1824. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1825. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1826. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1827. # OS/2's system install, which has a completely different semantic
  1828. # ./install, which can be erroneously created by make from ./install.sh.
  1829. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1830. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1831. if test -z "$INSTALL"; then
  1832. if test "${ac_cv_path_install+set}" = set; then
  1833. echo $ECHO_N "(cached) $ECHO_C" >&6
  1834. else
  1835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1836. for as_dir in $PATH
  1837. do
  1838. IFS=$as_save_IFS
  1839. test -z "$as_dir" && as_dir=.
  1840. # Account for people who put trailing slashes in PATH elements.
  1841. case $as_dir/ in
  1842. ./ | .// | /cC/* | \
  1843. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1844. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1845. /usr/ucb/* ) ;;
  1846. *)
  1847. # OSF1 and SCO ODT 3.0 have their own names for install.
  1848. # Don't use installbsd from OSF since it installs stuff as root
  1849. # by default.
  1850. for ac_prog in ginstall scoinst install; do
  1851. for ac_exec_ext in '' $ac_executable_extensions; do
  1852. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1853. if test $ac_prog = install &&
  1854. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1855. # AIX install. It has an incompatible calling convention.
  1856. :
  1857. elif test $ac_prog = install &&
  1858. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1859. # program-specific install script used by HP pwplus--don't use.
  1860. :
  1861. else
  1862. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1863. break 3
  1864. fi
  1865. fi
  1866. done
  1867. done
  1868. ;;
  1869. esac
  1870. done
  1871. IFS=$as_save_IFS
  1872. fi
  1873. if test "${ac_cv_path_install+set}" = set; then
  1874. INSTALL=$ac_cv_path_install
  1875. else
  1876. # As a last resort, use the slow shell script. Don't cache a
  1877. # value for INSTALL within a source directory, because that will
  1878. # break other packages using the cache if that directory is
  1879. # removed, or if the value is a relative name.
  1880. INSTALL=$ac_install_sh
  1881. fi
  1882. fi
  1883. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1884. echo "${ECHO_T}$INSTALL" >&6; }
  1885. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1886. # It thinks the first close brace ends the variable substitution.
  1887. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1888. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1889. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1890. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1891. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1892. # Just in case
  1893. sleep 1
  1894. echo timestamp > conftest.file
  1895. # Do `set' in a subshell so we don't clobber the current shell's
  1896. # arguments. Must try -L first in case configure is actually a
  1897. # symlink; some systems play weird games with the mod time of symlinks
  1898. # (eg FreeBSD returns the mod time of the symlink's containing
  1899. # directory).
  1900. if (
  1901. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1902. if test "$*" = "X"; then
  1903. # -L didn't work.
  1904. set X `ls -t $srcdir/configure conftest.file`
  1905. fi
  1906. rm -f conftest.file
  1907. if test "$*" != "X $srcdir/configure conftest.file" \
  1908. && test "$*" != "X conftest.file $srcdir/configure"; then
  1909. # If neither matched, then we have a broken ls. This can happen
  1910. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1911. # broken ls alias from the environment. This has actually
  1912. # happened. Such a system could not be considered "sane".
  1913. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1914. alias in your environment" >&5
  1915. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1916. alias in your environment" >&2;}
  1917. { (exit 1); exit 1; }; }
  1918. fi
  1919. test "$2" = conftest.file
  1920. )
  1921. then
  1922. # Ok.
  1923. :
  1924. else
  1925. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1926. Check your system clock" >&5
  1927. echo "$as_me: error: newly created file is older than distributed files!
  1928. Check your system clock" >&2;}
  1929. { (exit 1); exit 1; }; }
  1930. fi
  1931. { echo "$as_me:$LINENO: result: yes" >&5
  1932. echo "${ECHO_T}yes" >&6; }
  1933. test "$program_prefix" != NONE &&
  1934. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1935. # Use a double $ so make ignores it.
  1936. test "$program_suffix" != NONE &&
  1937. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1938. # Double any \ or $. echo might interpret backslashes.
  1939. # By default was `s,x,x', remove it if useless.
  1940. cat <<\_ACEOF >conftest.sed
  1941. s/[\\$]/&&/g;s/;s,x,x,$//
  1942. _ACEOF
  1943. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1944. rm -f conftest.sed
  1945. # expand $ac_aux_dir to an absolute path
  1946. am_aux_dir=`cd $ac_aux_dir && pwd`
  1947. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1948. # Use eval to expand $SHELL
  1949. if eval "$MISSING --run true"; then
  1950. am_missing_run="$MISSING --run "
  1951. else
  1952. am_missing_run=
  1953. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1954. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1955. fi
  1956. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1957. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  1958. if test -z "$MKDIR_P"; then
  1959. if test "${ac_cv_path_mkdir+set}" = set; then
  1960. echo $ECHO_N "(cached) $ECHO_C" >&6
  1961. else
  1962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1963. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1964. do
  1965. IFS=$as_save_IFS
  1966. test -z "$as_dir" && as_dir=.
  1967. for ac_prog in mkdir gmkdir; do
  1968. for ac_exec_ext in '' $ac_executable_extensions; do
  1969. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1970. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1971. 'mkdir (GNU coreutils) '* | \
  1972. 'mkdir (coreutils) '* | \
  1973. 'mkdir (fileutils) '4.1*)
  1974. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1975. break 3;;
  1976. esac
  1977. done
  1978. done
  1979. done
  1980. IFS=$as_save_IFS
  1981. fi
  1982. if test "${ac_cv_path_mkdir+set}" = set; then
  1983. MKDIR_P="$ac_cv_path_mkdir -p"
  1984. else
  1985. # As a last resort, use the slow shell script. Don't cache a
  1986. # value for MKDIR_P within a source directory, because that will
  1987. # break other packages using the cache if that directory is
  1988. # removed, or if the value is a relative name.
  1989. test -d ./--version && rmdir ./--version
  1990. MKDIR_P="$ac_install_sh -d"
  1991. fi
  1992. fi
  1993. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  1994. echo "${ECHO_T}$MKDIR_P" >&6; }
  1995. mkdir_p="$MKDIR_P"
  1996. case $mkdir_p in
  1997. [\\/$]* | ?:[\\/]*) ;;
  1998. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  1999. esac
  2000. for ac_prog in gawk mawk nawk awk
  2001. do
  2002. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2003. set dummy $ac_prog; ac_word=$2
  2004. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2005. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2006. if test "${ac_cv_prog_AWK+set}" = set; then
  2007. echo $ECHO_N "(cached) $ECHO_C" >&6
  2008. else
  2009. if test -n "$AWK"; then
  2010. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2011. else
  2012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2013. for as_dir in $PATH
  2014. do
  2015. IFS=$as_save_IFS
  2016. test -z "$as_dir" && as_dir=.
  2017. for ac_exec_ext in '' $ac_executable_extensions; do
  2018. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2019. ac_cv_prog_AWK="$ac_prog"
  2020. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2021. break 2
  2022. fi
  2023. done
  2024. done
  2025. IFS=$as_save_IFS
  2026. fi
  2027. fi
  2028. AWK=$ac_cv_prog_AWK
  2029. if test -n "$AWK"; then
  2030. { echo "$as_me:$LINENO: result: $AWK" >&5
  2031. echo "${ECHO_T}$AWK" >&6; }
  2032. else
  2033. { echo "$as_me:$LINENO: result: no" >&5
  2034. echo "${ECHO_T}no" >&6; }
  2035. fi
  2036. test -n "$AWK" && break
  2037. done
  2038. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2039. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2040. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2041. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2042. echo $ECHO_N "(cached) $ECHO_C" >&6
  2043. else
  2044. cat >conftest.make <<\_ACEOF
  2045. SHELL = /bin/sh
  2046. all:
  2047. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2048. _ACEOF
  2049. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2050. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2051. *@@@%%%=?*=@@@%%%*)
  2052. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2053. *)
  2054. eval ac_cv_prog_make_${ac_make}_set=no;;
  2055. esac
  2056. rm -f conftest.make
  2057. fi
  2058. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2059. { echo "$as_me:$LINENO: result: yes" >&5
  2060. echo "${ECHO_T}yes" >&6; }
  2061. SET_MAKE=
  2062. else
  2063. { echo "$as_me:$LINENO: result: no" >&5
  2064. echo "${ECHO_T}no" >&6; }
  2065. SET_MAKE="MAKE=${MAKE-make}"
  2066. fi
  2067. rm -rf .tst 2>/dev/null
  2068. mkdir .tst 2>/dev/null
  2069. if test -d .tst; then
  2070. am__leading_dot=.
  2071. else
  2072. am__leading_dot=_
  2073. fi
  2074. rmdir .tst 2>/dev/null
  2075. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2076. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2077. # is not polluted with repeated "-I."
  2078. am__isrc=' -I$(srcdir)'
  2079. # test to see if srcdir already configured
  2080. if test -f $srcdir/config.status; then
  2081. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2082. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2083. { (exit 1); exit 1; }; }
  2084. fi
  2085. fi
  2086. # test whether we have cygpath
  2087. if test -z "$CYGPATH_W"; then
  2088. if (cygpath --version) >/dev/null 2>/dev/null; then
  2089. CYGPATH_W='cygpath -w'
  2090. else
  2091. CYGPATH_W=echo
  2092. fi
  2093. fi
  2094. # Define the identity of the package.
  2095. PACKAGE='aria2c'
  2096. VERSION='0.14.0b'
  2097. cat >>confdefs.h <<_ACEOF
  2098. #define PACKAGE "$PACKAGE"
  2099. _ACEOF
  2100. cat >>confdefs.h <<_ACEOF
  2101. #define VERSION "$VERSION"
  2102. _ACEOF
  2103. # Some tools Automake needs.
  2104. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2105. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2106. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2107. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2108. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2109. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2110. # Installed binaries are usually stripped using `strip' when the user
  2111. # run `make install-strip'. However `strip' might not be the right
  2112. # tool to use in cross-compilation environments, therefore Automake
  2113. # will honor the `STRIP' environment variable to overrule this program.
  2114. if test "$cross_compiling" != no; then
  2115. if test -n "$ac_tool_prefix"; then
  2116. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2117. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2118. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2119. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2120. if test "${ac_cv_prog_STRIP+set}" = set; then
  2121. echo $ECHO_N "(cached) $ECHO_C" >&6
  2122. else
  2123. if test -n "$STRIP"; then
  2124. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2125. else
  2126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2127. for as_dir in $PATH
  2128. do
  2129. IFS=$as_save_IFS
  2130. test -z "$as_dir" && as_dir=.
  2131. for ac_exec_ext in '' $ac_executable_extensions; do
  2132. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2133. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2134. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2135. break 2
  2136. fi
  2137. done
  2138. done
  2139. IFS=$as_save_IFS
  2140. fi
  2141. fi
  2142. STRIP=$ac_cv_prog_STRIP
  2143. if test -n "$STRIP"; then
  2144. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2145. echo "${ECHO_T}$STRIP" >&6; }
  2146. else
  2147. { echo "$as_me:$LINENO: result: no" >&5
  2148. echo "${ECHO_T}no" >&6; }
  2149. fi
  2150. fi
  2151. if test -z "$ac_cv_prog_STRIP"; then
  2152. ac_ct_STRIP=$STRIP
  2153. # Extract the first word of "strip", so it can be a program name with args.
  2154. set dummy strip; ac_word=$2
  2155. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2156. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2157. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2158. echo $ECHO_N "(cached) $ECHO_C" >&6
  2159. else
  2160. if test -n "$ac_ct_STRIP"; then
  2161. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2162. else
  2163. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2164. for as_dir in $PATH
  2165. do
  2166. IFS=$as_save_IFS
  2167. test -z "$as_dir" && as_dir=.
  2168. for ac_exec_ext in '' $ac_executable_extensions; do
  2169. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2170. ac_cv_prog_ac_ct_STRIP="strip"
  2171. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2172. break 2
  2173. fi
  2174. done
  2175. done
  2176. IFS=$as_save_IFS
  2177. fi
  2178. fi
  2179. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2180. if test -n "$ac_ct_STRIP"; then
  2181. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2182. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2183. else
  2184. { echo "$as_me:$LINENO: result: no" >&5
  2185. echo "${ECHO_T}no" >&6; }
  2186. fi
  2187. if test "x$ac_ct_STRIP" = x; then
  2188. STRIP=":"
  2189. else
  2190. case $cross_compiling:$ac_tool_warned in
  2191. yes:)
  2192. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2193. whose name does not start with the host triplet. If you think this
  2194. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2195. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2196. whose name does not start with the host triplet. If you think this
  2197. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2198. ac_tool_warned=yes ;;
  2199. esac
  2200. STRIP=$ac_ct_STRIP
  2201. fi
  2202. else
  2203. STRIP="$ac_cv_prog_STRIP"
  2204. fi
  2205. fi
  2206. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2207. # We need awk for the "check" target. The system "awk" is bad on
  2208. # some platforms.
  2209. # Always define AMTAR for backward compatibility.
  2210. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2211. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2212. # Check whether --with-cppunit-prefix was given.
  2213. if test "${with_cppunit_prefix+set}" = set; then
  2214. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2215. else
  2216. cppunit_config_prefix=""
  2217. fi
  2218. # Check whether --with-cppunit-exec-prefix was given.
  2219. if test "${with_cppunit_exec_prefix+set}" = set; then
  2220. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2221. else
  2222. cppunit_config_exec_prefix=""
  2223. fi
  2224. if test x$cppunit_config_exec_prefix != x ; then
  2225. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2226. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2227. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2228. fi
  2229. fi
  2230. if test x$cppunit_config_prefix != x ; then
  2231. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2232. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2233. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2234. fi
  2235. fi
  2236. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2237. set dummy cppunit-config; ac_word=$2
  2238. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2239. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2240. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2241. echo $ECHO_N "(cached) $ECHO_C" >&6
  2242. else
  2243. case $CPPUNIT_CONFIG in
  2244. [\\/]* | ?:[\\/]*)
  2245. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2246. ;;
  2247. *)
  2248. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2249. for as_dir in $PATH
  2250. do
  2251. IFS=$as_save_IFS
  2252. test -z "$as_dir" && as_dir=.
  2253. for ac_exec_ext in '' $ac_executable_extensions; do
  2254. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2255. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2256. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2257. break 2
  2258. fi
  2259. done
  2260. done
  2261. IFS=$as_save_IFS
  2262. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2263. ;;
  2264. esac
  2265. fi
  2266. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2267. if test -n "$CPPUNIT_CONFIG"; then
  2268. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2269. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2270. else
  2271. { echo "$as_me:$LINENO: result: no" >&5
  2272. echo "${ECHO_T}no" >&6; }
  2273. fi
  2274. cppunit_version_min=1.10.2
  2275. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2276. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2277. no_cppunit=""
  2278. if test "$CPPUNIT_CONFIG" = "no" ; then
  2279. { echo "$as_me:$LINENO: result: no" >&5
  2280. echo "${ECHO_T}no" >&6; }
  2281. no_cppunit=yes
  2282. else
  2283. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2284. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2285. cppunit_version=`$CPPUNIT_CONFIG --version`
  2286. cppunit_major_version=`echo $cppunit_version | \
  2287. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2288. cppunit_minor_version=`echo $cppunit_version | \
  2289. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2290. cppunit_micro_version=`echo $cppunit_version | \
  2291. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2292. cppunit_major_min=`echo $cppunit_version_min | \
  2293. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2294. if test "x${cppunit_major_min}" = "x" ; then
  2295. cppunit_major_min=0
  2296. fi
  2297. cppunit_minor_min=`echo $cppunit_version_min | \
  2298. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2299. if test "x${cppunit_minor_min}" = "x" ; then
  2300. cppunit_minor_min=0
  2301. fi
  2302. cppunit_micro_min=`echo $cppunit_version_min | \
  2303. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2304. if test "x${cppunit_micro_min}" = "x" ; then
  2305. cppunit_micro_min=0
  2306. fi
  2307. cppunit_version_proper=`expr \
  2308. $cppunit_major_version \> $cppunit_major_min \| \
  2309. $cppunit_major_version \= $cppunit_major_min \& \
  2310. $cppunit_minor_version \> $cppunit_minor_min \| \
  2311. $cppunit_major_version \= $cppunit_major_min \& \
  2312. $cppunit_minor_version \= $cppunit_minor_min \& \
  2313. $cppunit_micro_version \>= $cppunit_micro_min `
  2314. if test "$cppunit_version_proper" = "1" ; then
  2315. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2316. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2317. else
  2318. { echo "$as_me:$LINENO: result: no" >&5
  2319. echo "${ECHO_T}no" >&6; }
  2320. no_cppunit=yes
  2321. fi
  2322. fi
  2323. if test "x$no_cppunit" = x ; then
  2324. :
  2325. else
  2326. CPPUNIT_CFLAGS=""
  2327. CPPUNIT_LIBS=""
  2328. :
  2329. fi
  2330. ac_config_headers="$ac_config_headers config.h"
  2331. case "$target" in
  2332. *mingw*|*cygwin*)
  2333. WINSOCK_LIBS="-lws2_32 -lpthread"
  2334. ;;
  2335. esac
  2336. cat >>confdefs.h <<_ACEOF
  2337. #define TARGET "$target"
  2338. _ACEOF
  2339. # Set localedir
  2340. localedir=${datadir}/locale
  2341. # Checks for arguments.
  2342. # Check whether --with-gnutls was given.
  2343. if test "${with_gnutls+set}" = set; then
  2344. withval=$with_gnutls; with_gnutls=$withval
  2345. else
  2346. with_gnutls=yes
  2347. fi
  2348. # Check whether --with-openssl was given.
  2349. if test "${with_openssl+set}" = set; then
  2350. withval=$with_openssl; with_openssl=$withval
  2351. else
  2352. with_openssl=yes
  2353. fi
  2354. # Check whether --with-libxml2 was given.
  2355. if test "${with_libxml2+set}" = set; then
  2356. withval=$with_libxml2; with_libxml2=$withval
  2357. else
  2358. with_libxml2=yes
  2359. fi
  2360. # Check whether --with-libexpat was given.
  2361. if test "${with_libexpat+set}" = set; then
  2362. withval=$with_libexpat; with_libexpat=$withval
  2363. else
  2364. with_libexpat=yes
  2365. fi
  2366. # Check whether --with-libares was given.
  2367. if test "${with_libares+set}" = set; then
  2368. withval=$with_libares; with_libares=$withval
  2369. else
  2370. with_libares=yes
  2371. fi
  2372. # Check whether --with-libcares was given.
  2373. if test "${with_libcares+set}" = set; then
  2374. withval=$with_libcares; with_libcares=$withval
  2375. else
  2376. with_libcares=yes
  2377. fi
  2378. # Check whether --enable-bittorrent was given.
  2379. if test "${enable_bittorrent+set}" = set; then
  2380. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2381. else
  2382. enable_bittorrent=yes
  2383. fi
  2384. # Check whether --enable-metalink was given.
  2385. if test "${enable_metalink+set}" = set; then
  2386. enableval=$enable_metalink; enable_metalink=$enableval
  2387. else
  2388. enable_metalink=yes
  2389. fi
  2390. # Checks for programs.
  2391. ac_ext=cpp
  2392. ac_cpp='$CXXCPP $CPPFLAGS'
  2393. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2394. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2395. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2396. if test -z "$CXX"; then
  2397. if test -n "$CCC"; then
  2398. CXX=$CCC
  2399. else
  2400. if test -n "$ac_tool_prefix"; then
  2401. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2402. do
  2403. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2404. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2405. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2406. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2407. if test "${ac_cv_prog_CXX+set}" = set; then
  2408. echo $ECHO_N "(cached) $ECHO_C" >&6
  2409. else
  2410. if test -n "$CXX"; then
  2411. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2412. else
  2413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2414. for as_dir in $PATH
  2415. do
  2416. IFS=$as_save_IFS
  2417. test -z "$as_dir" && as_dir=.
  2418. for ac_exec_ext in '' $ac_executable_extensions; do
  2419. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2420. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2421. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2422. break 2
  2423. fi
  2424. done
  2425. done
  2426. IFS=$as_save_IFS
  2427. fi
  2428. fi
  2429. CXX=$ac_cv_prog_CXX
  2430. if test -n "$CXX"; then
  2431. { echo "$as_me:$LINENO: result: $CXX" >&5
  2432. echo "${ECHO_T}$CXX" >&6; }
  2433. else
  2434. { echo "$as_me:$LINENO: result: no" >&5
  2435. echo "${ECHO_T}no" >&6; }
  2436. fi
  2437. test -n "$CXX" && break
  2438. done
  2439. fi
  2440. if test -z "$CXX"; then
  2441. ac_ct_CXX=$CXX
  2442. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2443. do
  2444. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2445. set dummy $ac_prog; ac_word=$2
  2446. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2447. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2448. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2449. echo $ECHO_N "(cached) $ECHO_C" >&6
  2450. else
  2451. if test -n "$ac_ct_CXX"; then
  2452. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2453. else
  2454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2455. for as_dir in $PATH
  2456. do
  2457. IFS=$as_save_IFS
  2458. test -z "$as_dir" && as_dir=.
  2459. for ac_exec_ext in '' $ac_executable_extensions; do
  2460. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2461. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2462. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2463. break 2
  2464. fi
  2465. done
  2466. done
  2467. IFS=$as_save_IFS
  2468. fi
  2469. fi
  2470. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2471. if test -n "$ac_ct_CXX"; then
  2472. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2473. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2474. else
  2475. { echo "$as_me:$LINENO: result: no" >&5
  2476. echo "${ECHO_T}no" >&6; }
  2477. fi
  2478. test -n "$ac_ct_CXX" && break
  2479. done
  2480. if test "x$ac_ct_CXX" = x; then
  2481. CXX="g++"
  2482. else
  2483. case $cross_compiling:$ac_tool_warned in
  2484. yes:)
  2485. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2486. whose name does not start with the host triplet. If you think this
  2487. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2488. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2489. whose name does not start with the host triplet. If you think this
  2490. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2491. ac_tool_warned=yes ;;
  2492. esac
  2493. CXX=$ac_ct_CXX
  2494. fi
  2495. fi
  2496. fi
  2497. fi
  2498. # Provide some information about the compiler.
  2499. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2500. ac_compiler=`set X $ac_compile; echo $2`
  2501. { (ac_try="$ac_compiler --version >&5"
  2502. case "(($ac_try" in
  2503. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2504. *) ac_try_echo=$ac_try;;
  2505. esac
  2506. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2507. (eval "$ac_compiler --version >&5") 2>&5
  2508. ac_status=$?
  2509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2510. (exit $ac_status); }
  2511. { (ac_try="$ac_compiler -v >&5"
  2512. case "(($ac_try" in
  2513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2514. *) ac_try_echo=$ac_try;;
  2515. esac
  2516. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2517. (eval "$ac_compiler -v >&5") 2>&5
  2518. ac_status=$?
  2519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2520. (exit $ac_status); }
  2521. { (ac_try="$ac_compiler -V >&5"
  2522. case "(($ac_try" in
  2523. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2524. *) ac_try_echo=$ac_try;;
  2525. esac
  2526. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2527. (eval "$ac_compiler -V >&5") 2>&5
  2528. ac_status=$?
  2529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2530. (exit $ac_status); }
  2531. cat >conftest.$ac_ext <<_ACEOF
  2532. /* confdefs.h. */
  2533. _ACEOF
  2534. cat confdefs.h >>conftest.$ac_ext
  2535. cat >>conftest.$ac_ext <<_ACEOF
  2536. /* end confdefs.h. */
  2537. int
  2538. main ()
  2539. {
  2540. ;
  2541. return 0;
  2542. }
  2543. _ACEOF
  2544. ac_clean_files_save=$ac_clean_files
  2545. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2546. # Try to create an executable without -o first, disregard a.out.
  2547. # It will help us diagnose broken compilers, and finding out an intuition
  2548. # of exeext.
  2549. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2550. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2551. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2552. #
  2553. # List of possible output files, starting from the most likely.
  2554. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2555. # only as a last resort. b.out is created by i960 compilers.
  2556. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2557. #
  2558. # The IRIX 6 linker writes into existing files which may not be
  2559. # executable, retaining their permissions. Remove them first so a
  2560. # subsequent execution test works.
  2561. ac_rmfiles=
  2562. for ac_file in $ac_files
  2563. do
  2564. case $ac_file in
  2565. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2566. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2567. esac
  2568. done
  2569. rm -f $ac_rmfiles
  2570. if { (ac_try="$ac_link_default"
  2571. case "(($ac_try" in
  2572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2573. *) ac_try_echo=$ac_try;;
  2574. esac
  2575. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2576. (eval "$ac_link_default") 2>&5
  2577. ac_status=$?
  2578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2579. (exit $ac_status); }; then
  2580. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2581. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2582. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2583. # so that the user can short-circuit this test for compilers unknown to
  2584. # Autoconf.
  2585. for ac_file in $ac_files ''
  2586. do
  2587. test -f "$ac_file" || continue
  2588. case $ac_file in
  2589. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2590. ;;
  2591. [ab].out )
  2592. # We found the default executable, but exeext='' is most
  2593. # certainly right.
  2594. break;;
  2595. *.* )
  2596. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2597. then :; else
  2598. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2599. fi
  2600. # We set ac_cv_exeext here because the later test for it is not
  2601. # safe: cross compilers may not add the suffix if given an `-o'
  2602. # argument, so we may need to know it at that point already.
  2603. # Even if this section looks crufty: it has the advantage of
  2604. # actually working.
  2605. break;;
  2606. * )
  2607. break;;
  2608. esac
  2609. done
  2610. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2611. else
  2612. ac_file=''
  2613. fi
  2614. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2615. echo "${ECHO_T}$ac_file" >&6; }
  2616. if test -z "$ac_file"; then
  2617. echo "$as_me: failed program was:" >&5
  2618. sed 's/^/| /' conftest.$ac_ext >&5
  2619. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2620. See \`config.log' for more details." >&5
  2621. echo "$as_me: error: C++ compiler cannot create executables
  2622. See \`config.log' for more details." >&2;}
  2623. { (exit 77); exit 77; }; }
  2624. fi
  2625. ac_exeext=$ac_cv_exeext
  2626. # Check that the compiler produces executables we can run. If not, either
  2627. # the compiler is broken, or we cross compile.
  2628. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2629. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2630. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2631. # If not cross compiling, check that we can run a simple program.
  2632. if test "$cross_compiling" != yes; then
  2633. if { ac_try='./$ac_file'
  2634. { (case "(($ac_try" in
  2635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2636. *) ac_try_echo=$ac_try;;
  2637. esac
  2638. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2639. (eval "$ac_try") 2>&5
  2640. ac_status=$?
  2641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2642. (exit $ac_status); }; }; then
  2643. cross_compiling=no
  2644. else
  2645. if test "$cross_compiling" = maybe; then
  2646. cross_compiling=yes
  2647. else
  2648. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2649. If you meant to cross compile, use \`--host'.
  2650. See \`config.log' for more details." >&5
  2651. echo "$as_me: error: cannot run C++ compiled programs.
  2652. If you meant to cross compile, use \`--host'.
  2653. See \`config.log' for more details." >&2;}
  2654. { (exit 1); exit 1; }; }
  2655. fi
  2656. fi
  2657. fi
  2658. { echo "$as_me:$LINENO: result: yes" >&5
  2659. echo "${ECHO_T}yes" >&6; }
  2660. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2661. ac_clean_files=$ac_clean_files_save
  2662. # Check that the compiler produces executables we can run. If not, either
  2663. # the compiler is broken, or we cross compile.
  2664. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2665. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2666. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2667. echo "${ECHO_T}$cross_compiling" >&6; }
  2668. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2669. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2670. if { (ac_try="$ac_link"
  2671. case "(($ac_try" in
  2672. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2673. *) ac_try_echo=$ac_try;;
  2674. esac
  2675. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2676. (eval "$ac_link") 2>&5
  2677. ac_status=$?
  2678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2679. (exit $ac_status); }; then
  2680. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2681. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2682. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2683. # `rm'.
  2684. for ac_file in conftest.exe conftest conftest.*; do
  2685. test -f "$ac_file" || continue
  2686. case $ac_file in
  2687. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2688. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2689. break;;
  2690. * ) break;;
  2691. esac
  2692. done
  2693. else
  2694. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2695. See \`config.log' for more details." >&5
  2696. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2697. See \`config.log' for more details." >&2;}
  2698. { (exit 1); exit 1; }; }
  2699. fi
  2700. rm -f conftest$ac_cv_exeext
  2701. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2702. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2703. rm -f conftest.$ac_ext
  2704. EXEEXT=$ac_cv_exeext
  2705. ac_exeext=$EXEEXT
  2706. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2707. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2708. if test "${ac_cv_objext+set}" = set; then
  2709. echo $ECHO_N "(cached) $ECHO_C" >&6
  2710. else
  2711. cat >conftest.$ac_ext <<_ACEOF
  2712. /* confdefs.h. */
  2713. _ACEOF
  2714. cat confdefs.h >>conftest.$ac_ext
  2715. cat >>conftest.$ac_ext <<_ACEOF
  2716. /* end confdefs.h. */
  2717. int
  2718. main ()
  2719. {
  2720. ;
  2721. return 0;
  2722. }
  2723. _ACEOF
  2724. rm -f conftest.o conftest.obj
  2725. if { (ac_try="$ac_compile"
  2726. case "(($ac_try" in
  2727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2728. *) ac_try_echo=$ac_try;;
  2729. esac
  2730. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2731. (eval "$ac_compile") 2>&5
  2732. ac_status=$?
  2733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2734. (exit $ac_status); }; then
  2735. for ac_file in conftest.o conftest.obj conftest.*; do
  2736. test -f "$ac_file" || continue;
  2737. case $ac_file in
  2738. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2739. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2740. break;;
  2741. esac
  2742. done
  2743. else
  2744. echo "$as_me: failed program was:" >&5
  2745. sed 's/^/| /' conftest.$ac_ext >&5
  2746. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2747. See \`config.log' for more details." >&5
  2748. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2749. See \`config.log' for more details." >&2;}
  2750. { (exit 1); exit 1; }; }
  2751. fi
  2752. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2753. fi
  2754. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2755. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2756. OBJEXT=$ac_cv_objext
  2757. ac_objext=$OBJEXT
  2758. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2759. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2760. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2761. echo $ECHO_N "(cached) $ECHO_C" >&6
  2762. else
  2763. cat >conftest.$ac_ext <<_ACEOF
  2764. /* confdefs.h. */
  2765. _ACEOF
  2766. cat confdefs.h >>conftest.$ac_ext
  2767. cat >>conftest.$ac_ext <<_ACEOF
  2768. /* end confdefs.h. */
  2769. int
  2770. main ()
  2771. {
  2772. #ifndef __GNUC__
  2773. choke me
  2774. #endif
  2775. ;
  2776. return 0;
  2777. }
  2778. _ACEOF
  2779. rm -f conftest.$ac_objext
  2780. if { (ac_try="$ac_compile"
  2781. case "(($ac_try" in
  2782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2783. *) ac_try_echo=$ac_try;;
  2784. esac
  2785. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2786. (eval "$ac_compile") 2>conftest.er1
  2787. ac_status=$?
  2788. grep -v '^ *+' conftest.er1 >conftest.err
  2789. rm -f conftest.er1
  2790. cat conftest.err >&5
  2791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2792. (exit $ac_status); } && {
  2793. test -z "$ac_cxx_werror_flag" ||
  2794. test ! -s conftest.err
  2795. } && test -s conftest.$ac_objext; then
  2796. ac_compiler_gnu=yes
  2797. else
  2798. echo "$as_me: failed program was:" >&5
  2799. sed 's/^/| /' conftest.$ac_ext >&5
  2800. ac_compiler_gnu=no
  2801. fi
  2802. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2803. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2804. fi
  2805. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2806. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2807. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2808. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2809. ac_save_CXXFLAGS=$CXXFLAGS
  2810. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2811. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2812. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2813. echo $ECHO_N "(cached) $ECHO_C" >&6
  2814. else
  2815. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2816. ac_cxx_werror_flag=yes
  2817. ac_cv_prog_cxx_g=no
  2818. CXXFLAGS="-g"
  2819. cat >conftest.$ac_ext <<_ACEOF
  2820. /* confdefs.h. */
  2821. _ACEOF
  2822. cat confdefs.h >>conftest.$ac_ext
  2823. cat >>conftest.$ac_ext <<_ACEOF
  2824. /* end confdefs.h. */
  2825. int
  2826. main ()
  2827. {
  2828. ;
  2829. return 0;
  2830. }
  2831. _ACEOF
  2832. rm -f conftest.$ac_objext
  2833. if { (ac_try="$ac_compile"
  2834. case "(($ac_try" in
  2835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2836. *) ac_try_echo=$ac_try;;
  2837. esac
  2838. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2839. (eval "$ac_compile") 2>conftest.er1
  2840. ac_status=$?
  2841. grep -v '^ *+' conftest.er1 >conftest.err
  2842. rm -f conftest.er1
  2843. cat conftest.err >&5
  2844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2845. (exit $ac_status); } && {
  2846. test -z "$ac_cxx_werror_flag" ||
  2847. test ! -s conftest.err
  2848. } && test -s conftest.$ac_objext; then
  2849. ac_cv_prog_cxx_g=yes
  2850. else
  2851. echo "$as_me: failed program was:" >&5
  2852. sed 's/^/| /' conftest.$ac_ext >&5
  2853. CXXFLAGS=""
  2854. cat >conftest.$ac_ext <<_ACEOF
  2855. /* confdefs.h. */
  2856. _ACEOF
  2857. cat confdefs.h >>conftest.$ac_ext
  2858. cat >>conftest.$ac_ext <<_ACEOF
  2859. /* end confdefs.h. */
  2860. int
  2861. main ()
  2862. {
  2863. ;
  2864. return 0;
  2865. }
  2866. _ACEOF
  2867. rm -f conftest.$ac_objext
  2868. if { (ac_try="$ac_compile"
  2869. case "(($ac_try" in
  2870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2871. *) ac_try_echo=$ac_try;;
  2872. esac
  2873. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2874. (eval "$ac_compile") 2>conftest.er1
  2875. ac_status=$?
  2876. grep -v '^ *+' conftest.er1 >conftest.err
  2877. rm -f conftest.er1
  2878. cat conftest.err >&5
  2879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2880. (exit $ac_status); } && {
  2881. test -z "$ac_cxx_werror_flag" ||
  2882. test ! -s conftest.err
  2883. } && test -s conftest.$ac_objext; then
  2884. :
  2885. else
  2886. echo "$as_me: failed program was:" >&5
  2887. sed 's/^/| /' conftest.$ac_ext >&5
  2888. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2889. CXXFLAGS="-g"
  2890. cat >conftest.$ac_ext <<_ACEOF
  2891. /* confdefs.h. */
  2892. _ACEOF
  2893. cat confdefs.h >>conftest.$ac_ext
  2894. cat >>conftest.$ac_ext <<_ACEOF
  2895. /* end confdefs.h. */
  2896. int
  2897. main ()
  2898. {
  2899. ;
  2900. return 0;
  2901. }
  2902. _ACEOF
  2903. rm -f conftest.$ac_objext
  2904. if { (ac_try="$ac_compile"
  2905. case "(($ac_try" in
  2906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2907. *) ac_try_echo=$ac_try;;
  2908. esac
  2909. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2910. (eval "$ac_compile") 2>conftest.er1
  2911. ac_status=$?
  2912. grep -v '^ *+' conftest.er1 >conftest.err
  2913. rm -f conftest.er1
  2914. cat conftest.err >&5
  2915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2916. (exit $ac_status); } && {
  2917. test -z "$ac_cxx_werror_flag" ||
  2918. test ! -s conftest.err
  2919. } && test -s conftest.$ac_objext; then
  2920. ac_cv_prog_cxx_g=yes
  2921. else
  2922. echo "$as_me: failed program was:" >&5
  2923. sed 's/^/| /' conftest.$ac_ext >&5
  2924. fi
  2925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2926. fi
  2927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2928. fi
  2929. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2930. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2931. fi
  2932. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2933. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2934. if test "$ac_test_CXXFLAGS" = set; then
  2935. CXXFLAGS=$ac_save_CXXFLAGS
  2936. elif test $ac_cv_prog_cxx_g = yes; then
  2937. if test "$GXX" = yes; then
  2938. CXXFLAGS="-g -O2"
  2939. else
  2940. CXXFLAGS="-g"
  2941. fi
  2942. else
  2943. if test "$GXX" = yes; then
  2944. CXXFLAGS="-O2"
  2945. else
  2946. CXXFLAGS=
  2947. fi
  2948. fi
  2949. ac_ext=c
  2950. ac_cpp='$CPP $CPPFLAGS'
  2951. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2952. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2953. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2954. DEPDIR="${am__leading_dot}deps"
  2955. ac_config_commands="$ac_config_commands depfiles"
  2956. am_make=${MAKE-make}
  2957. cat > confinc << 'END'
  2958. am__doit:
  2959. @echo done
  2960. .PHONY: am__doit
  2961. END
  2962. # If we don't find an include directive, just comment out the code.
  2963. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2964. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2965. am__include="#"
  2966. am__quote=
  2967. _am_result=none
  2968. # First try GNU make style include.
  2969. echo "include confinc" > confmf
  2970. # We grep out `Entering directory' and `Leaving directory'
  2971. # messages which can occur if `w' ends up in MAKEFLAGS.
  2972. # In particular we don't look at `^make:' because GNU make might
  2973. # be invoked under some other name (usually "gmake"), in which
  2974. # case it prints its new name instead of `make'.
  2975. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2976. am__include=include
  2977. am__quote=
  2978. _am_result=GNU
  2979. fi
  2980. # Now try BSD make style include.
  2981. if test "$am__include" = "#"; then
  2982. echo '.include "confinc"' > confmf
  2983. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2984. am__include=.include
  2985. am__quote="\""
  2986. _am_result=BSD
  2987. fi
  2988. fi
  2989. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2990. echo "${ECHO_T}$_am_result" >&6; }
  2991. rm -f confinc confmf
  2992. # Check whether --enable-dependency-tracking was given.
  2993. if test "${enable_dependency_tracking+set}" = set; then
  2994. enableval=$enable_dependency_tracking;
  2995. fi
  2996. if test "x$enable_dependency_tracking" != xno; then
  2997. am_depcomp="$ac_aux_dir/depcomp"
  2998. AMDEPBACKSLASH='\'
  2999. fi
  3000. if test "x$enable_dependency_tracking" != xno; then
  3001. AMDEP_TRUE=
  3002. AMDEP_FALSE='#'
  3003. else
  3004. AMDEP_TRUE='#'
  3005. AMDEP_FALSE=
  3006. fi
  3007. depcc="$CXX" am_compiler_list=
  3008. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3009. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3010. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3011. echo $ECHO_N "(cached) $ECHO_C" >&6
  3012. else
  3013. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3014. # We make a subdir and do the tests there. Otherwise we can end up
  3015. # making bogus files that we don't know about and never remove. For
  3016. # instance it was reported that on HP-UX the gcc test will end up
  3017. # making a dummy file named `D' -- because `-MD' means `put the output
  3018. # in D'.
  3019. mkdir conftest.dir
  3020. # Copy depcomp to subdir because otherwise we won't find it if we're
  3021. # using a relative directory.
  3022. cp "$am_depcomp" conftest.dir
  3023. cd conftest.dir
  3024. # We will build objects and dependencies in a subdirectory because
  3025. # it helps to detect inapplicable dependency modes. For instance
  3026. # both Tru64's cc and ICC support -MD to output dependencies as a
  3027. # side effect of compilation, but ICC will put the dependencies in
  3028. # the current directory while Tru64 will put them in the object
  3029. # directory.
  3030. mkdir sub
  3031. am_cv_CXX_dependencies_compiler_type=none
  3032. if test "$am_compiler_list" = ""; then
  3033. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3034. fi
  3035. for depmode in $am_compiler_list; do
  3036. # Setup a source with many dependencies, because some compilers
  3037. # like to wrap large dependency lists on column 80 (with \), and
  3038. # we should not choose a depcomp mode which is confused by this.
  3039. #
  3040. # We need to recreate these files for each test, as the compiler may
  3041. # overwrite some of them when testing with obscure command lines.
  3042. # This happens at least with the AIX C compiler.
  3043. : > sub/conftest.c
  3044. for i in 1 2 3 4 5 6; do
  3045. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3046. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3047. # Solaris 8's {/usr,}/bin/sh.
  3048. touch sub/conftst$i.h
  3049. done
  3050. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3051. case $depmode in
  3052. nosideeffect)
  3053. # after this tag, mechanisms are not by side-effect, so they'll
  3054. # only be used when explicitly requested
  3055. if test "x$enable_dependency_tracking" = xyes; then
  3056. continue
  3057. else
  3058. break
  3059. fi
  3060. ;;
  3061. none) break ;;
  3062. esac
  3063. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3064. # mode. It turns out that the SunPro C++ compiler does not properly
  3065. # handle `-M -o', and we need to detect this.
  3066. if depmode=$depmode \
  3067. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3068. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3069. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3070. >/dev/null 2>conftest.err &&
  3071. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3072. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3073. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3074. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3075. # icc doesn't choke on unknown options, it will just issue warnings
  3076. # or remarks (even with -Werror). So we grep stderr for any message
  3077. # that says an option was ignored or not supported.
  3078. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3079. # icc: Command line warning: ignoring option '-M'; no argument required
  3080. # The diagnosis changed in icc 8.0:
  3081. # icc: Command line remark: option '-MP' not supported
  3082. if (grep 'ignoring option' conftest.err ||
  3083. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3084. am_cv_CXX_dependencies_compiler_type=$depmode
  3085. break
  3086. fi
  3087. fi
  3088. done
  3089. cd ..
  3090. rm -rf conftest.dir
  3091. else
  3092. am_cv_CXX_dependencies_compiler_type=none
  3093. fi
  3094. fi
  3095. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3096. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3097. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3098. if
  3099. test "x$enable_dependency_tracking" != xno \
  3100. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3101. am__fastdepCXX_TRUE=
  3102. am__fastdepCXX_FALSE='#'
  3103. else
  3104. am__fastdepCXX_TRUE='#'
  3105. am__fastdepCXX_FALSE=
  3106. fi
  3107. ac_ext=c
  3108. ac_cpp='$CPP $CPPFLAGS'
  3109. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3110. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3111. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3112. if test -n "$ac_tool_prefix"; then
  3113. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3114. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3115. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3116. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3117. if test "${ac_cv_prog_CC+set}" = set; then
  3118. echo $ECHO_N "(cached) $ECHO_C" >&6
  3119. else
  3120. if test -n "$CC"; then
  3121. ac_cv_prog_CC="$CC" # Let the user override the test.
  3122. else
  3123. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3124. for as_dir in $PATH
  3125. do
  3126. IFS=$as_save_IFS
  3127. test -z "$as_dir" && as_dir=.
  3128. for ac_exec_ext in '' $ac_executable_extensions; do
  3129. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3130. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3131. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3132. break 2
  3133. fi
  3134. done
  3135. done
  3136. IFS=$as_save_IFS
  3137. fi
  3138. fi
  3139. CC=$ac_cv_prog_CC
  3140. if test -n "$CC"; then
  3141. { echo "$as_me:$LINENO: result: $CC" >&5
  3142. echo "${ECHO_T}$CC" >&6; }
  3143. else
  3144. { echo "$as_me:$LINENO: result: no" >&5
  3145. echo "${ECHO_T}no" >&6; }
  3146. fi
  3147. fi
  3148. if test -z "$ac_cv_prog_CC"; then
  3149. ac_ct_CC=$CC
  3150. # Extract the first word of "gcc", so it can be a program name with args.
  3151. set dummy gcc; ac_word=$2
  3152. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3153. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3154. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3155. echo $ECHO_N "(cached) $ECHO_C" >&6
  3156. else
  3157. if test -n "$ac_ct_CC"; then
  3158. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3159. else
  3160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3161. for as_dir in $PATH
  3162. do
  3163. IFS=$as_save_IFS
  3164. test -z "$as_dir" && as_dir=.
  3165. for ac_exec_ext in '' $ac_executable_extensions; do
  3166. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3167. ac_cv_prog_ac_ct_CC="gcc"
  3168. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3169. break 2
  3170. fi
  3171. done
  3172. done
  3173. IFS=$as_save_IFS
  3174. fi
  3175. fi
  3176. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3177. if test -n "$ac_ct_CC"; then
  3178. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3179. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3180. else
  3181. { echo "$as_me:$LINENO: result: no" >&5
  3182. echo "${ECHO_T}no" >&6; }
  3183. fi
  3184. if test "x$ac_ct_CC" = x; then
  3185. CC=""
  3186. else
  3187. case $cross_compiling:$ac_tool_warned in
  3188. yes:)
  3189. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3190. whose name does not start with the host triplet. If you think this
  3191. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3192. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3193. whose name does not start with the host triplet. If you think this
  3194. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3195. ac_tool_warned=yes ;;
  3196. esac
  3197. CC=$ac_ct_CC
  3198. fi
  3199. else
  3200. CC="$ac_cv_prog_CC"
  3201. fi
  3202. if test -z "$CC"; then
  3203. if test -n "$ac_tool_prefix"; then
  3204. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3205. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3206. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3207. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3208. if test "${ac_cv_prog_CC+set}" = set; then
  3209. echo $ECHO_N "(cached) $ECHO_C" >&6
  3210. else
  3211. if test -n "$CC"; then
  3212. ac_cv_prog_CC="$CC" # Let the user override the test.
  3213. else
  3214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3215. for as_dir in $PATH
  3216. do
  3217. IFS=$as_save_IFS
  3218. test -z "$as_dir" && as_dir=.
  3219. for ac_exec_ext in '' $ac_executable_extensions; do
  3220. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3221. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3222. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3223. break 2
  3224. fi
  3225. done
  3226. done
  3227. IFS=$as_save_IFS
  3228. fi
  3229. fi
  3230. CC=$ac_cv_prog_CC
  3231. if test -n "$CC"; then
  3232. { echo "$as_me:$LINENO: result: $CC" >&5
  3233. echo "${ECHO_T}$CC" >&6; }
  3234. else
  3235. { echo "$as_me:$LINENO: result: no" >&5
  3236. echo "${ECHO_T}no" >&6; }
  3237. fi
  3238. fi
  3239. fi
  3240. if test -z "$CC"; then
  3241. # Extract the first word of "cc", so it can be a program name with args.
  3242. set dummy cc; ac_word=$2
  3243. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3244. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3245. if test "${ac_cv_prog_CC+set}" = set; then
  3246. echo $ECHO_N "(cached) $ECHO_C" >&6
  3247. else
  3248. if test -n "$CC"; then
  3249. ac_cv_prog_CC="$CC" # Let the user override the test.
  3250. else
  3251. ac_prog_rejected=no
  3252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3253. for as_dir in $PATH
  3254. do
  3255. IFS=$as_save_IFS
  3256. test -z "$as_dir" && as_dir=.
  3257. for ac_exec_ext in '' $ac_executable_extensions; do
  3258. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3259. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3260. ac_prog_rejected=yes
  3261. continue
  3262. fi
  3263. ac_cv_prog_CC="cc"
  3264. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3265. break 2
  3266. fi
  3267. done
  3268. done
  3269. IFS=$as_save_IFS
  3270. if test $ac_prog_rejected = yes; then
  3271. # We found a bogon in the path, so make sure we never use it.
  3272. set dummy $ac_cv_prog_CC
  3273. shift
  3274. if test $# != 0; then
  3275. # We chose a different compiler from the bogus one.
  3276. # However, it has the same basename, so the bogon will be chosen
  3277. # first if we set CC to just the basename; use the full file name.
  3278. shift
  3279. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3280. fi
  3281. fi
  3282. fi
  3283. fi
  3284. CC=$ac_cv_prog_CC
  3285. if test -n "$CC"; then
  3286. { echo "$as_me:$LINENO: result: $CC" >&5
  3287. echo "${ECHO_T}$CC" >&6; }
  3288. else
  3289. { echo "$as_me:$LINENO: result: no" >&5
  3290. echo "${ECHO_T}no" >&6; }
  3291. fi
  3292. fi
  3293. if test -z "$CC"; then
  3294. if test -n "$ac_tool_prefix"; then
  3295. for ac_prog in cl.exe
  3296. do
  3297. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3298. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3299. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3300. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3301. if test "${ac_cv_prog_CC+set}" = set; then
  3302. echo $ECHO_N "(cached) $ECHO_C" >&6
  3303. else
  3304. if test -n "$CC"; then
  3305. ac_cv_prog_CC="$CC" # Let the user override the test.
  3306. else
  3307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3308. for as_dir in $PATH
  3309. do
  3310. IFS=$as_save_IFS
  3311. test -z "$as_dir" && as_dir=.
  3312. for ac_exec_ext in '' $ac_executable_extensions; do
  3313. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3314. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3315. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3316. break 2
  3317. fi
  3318. done
  3319. done
  3320. IFS=$as_save_IFS
  3321. fi
  3322. fi
  3323. CC=$ac_cv_prog_CC
  3324. if test -n "$CC"; then
  3325. { echo "$as_me:$LINENO: result: $CC" >&5
  3326. echo "${ECHO_T}$CC" >&6; }
  3327. else
  3328. { echo "$as_me:$LINENO: result: no" >&5
  3329. echo "${ECHO_T}no" >&6; }
  3330. fi
  3331. test -n "$CC" && break
  3332. done
  3333. fi
  3334. if test -z "$CC"; then
  3335. ac_ct_CC=$CC
  3336. for ac_prog in cl.exe
  3337. do
  3338. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3339. set dummy $ac_prog; ac_word=$2
  3340. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3341. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3342. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3343. echo $ECHO_N "(cached) $ECHO_C" >&6
  3344. else
  3345. if test -n "$ac_ct_CC"; then
  3346. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3347. else
  3348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3349. for as_dir in $PATH
  3350. do
  3351. IFS=$as_save_IFS
  3352. test -z "$as_dir" && as_dir=.
  3353. for ac_exec_ext in '' $ac_executable_extensions; do
  3354. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3355. ac_cv_prog_ac_ct_CC="$ac_prog"
  3356. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3357. break 2
  3358. fi
  3359. done
  3360. done
  3361. IFS=$as_save_IFS
  3362. fi
  3363. fi
  3364. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3365. if test -n "$ac_ct_CC"; then
  3366. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3367. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3368. else
  3369. { echo "$as_me:$LINENO: result: no" >&5
  3370. echo "${ECHO_T}no" >&6; }
  3371. fi
  3372. test -n "$ac_ct_CC" && break
  3373. done
  3374. if test "x$ac_ct_CC" = x; then
  3375. CC=""
  3376. else
  3377. case $cross_compiling:$ac_tool_warned in
  3378. yes:)
  3379. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3380. whose name does not start with the host triplet. If you think this
  3381. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3382. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3383. whose name does not start with the host triplet. If you think this
  3384. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3385. ac_tool_warned=yes ;;
  3386. esac
  3387. CC=$ac_ct_CC
  3388. fi
  3389. fi
  3390. fi
  3391. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3392. See \`config.log' for more details." >&5
  3393. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3394. See \`config.log' for more details." >&2;}
  3395. { (exit 1); exit 1; }; }
  3396. # Provide some information about the compiler.
  3397. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3398. ac_compiler=`set X $ac_compile; echo $2`
  3399. { (ac_try="$ac_compiler --version >&5"
  3400. case "(($ac_try" in
  3401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3402. *) ac_try_echo=$ac_try;;
  3403. esac
  3404. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3405. (eval "$ac_compiler --version >&5") 2>&5
  3406. ac_status=$?
  3407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3408. (exit $ac_status); }
  3409. { (ac_try="$ac_compiler -v >&5"
  3410. case "(($ac_try" in
  3411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3412. *) ac_try_echo=$ac_try;;
  3413. esac
  3414. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3415. (eval "$ac_compiler -v >&5") 2>&5
  3416. ac_status=$?
  3417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3418. (exit $ac_status); }
  3419. { (ac_try="$ac_compiler -V >&5"
  3420. case "(($ac_try" in
  3421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3422. *) ac_try_echo=$ac_try;;
  3423. esac
  3424. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3425. (eval "$ac_compiler -V >&5") 2>&5
  3426. ac_status=$?
  3427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3428. (exit $ac_status); }
  3429. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3430. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3431. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3432. echo $ECHO_N "(cached) $ECHO_C" >&6
  3433. else
  3434. cat >conftest.$ac_ext <<_ACEOF
  3435. /* confdefs.h. */
  3436. _ACEOF
  3437. cat confdefs.h >>conftest.$ac_ext
  3438. cat >>conftest.$ac_ext <<_ACEOF
  3439. /* end confdefs.h. */
  3440. int
  3441. main ()
  3442. {
  3443. #ifndef __GNUC__
  3444. choke me
  3445. #endif
  3446. ;
  3447. return 0;
  3448. }
  3449. _ACEOF
  3450. rm -f conftest.$ac_objext
  3451. if { (ac_try="$ac_compile"
  3452. case "(($ac_try" in
  3453. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3454. *) ac_try_echo=$ac_try;;
  3455. esac
  3456. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3457. (eval "$ac_compile") 2>conftest.er1
  3458. ac_status=$?
  3459. grep -v '^ *+' conftest.er1 >conftest.err
  3460. rm -f conftest.er1
  3461. cat conftest.err >&5
  3462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3463. (exit $ac_status); } && {
  3464. test -z "$ac_c_werror_flag" ||
  3465. test ! -s conftest.err
  3466. } && test -s conftest.$ac_objext; then
  3467. ac_compiler_gnu=yes
  3468. else
  3469. echo "$as_me: failed program was:" >&5
  3470. sed 's/^/| /' conftest.$ac_ext >&5
  3471. ac_compiler_gnu=no
  3472. fi
  3473. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3474. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3475. fi
  3476. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3477. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3478. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3479. ac_test_CFLAGS=${CFLAGS+set}
  3480. ac_save_CFLAGS=$CFLAGS
  3481. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3482. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3483. if test "${ac_cv_prog_cc_g+set}" = set; then
  3484. echo $ECHO_N "(cached) $ECHO_C" >&6
  3485. else
  3486. ac_save_c_werror_flag=$ac_c_werror_flag
  3487. ac_c_werror_flag=yes
  3488. ac_cv_prog_cc_g=no
  3489. CFLAGS="-g"
  3490. cat >conftest.$ac_ext <<_ACEOF
  3491. /* confdefs.h. */
  3492. _ACEOF
  3493. cat confdefs.h >>conftest.$ac_ext
  3494. cat >>conftest.$ac_ext <<_ACEOF
  3495. /* end confdefs.h. */
  3496. int
  3497. main ()
  3498. {
  3499. ;
  3500. return 0;
  3501. }
  3502. _ACEOF
  3503. rm -f conftest.$ac_objext
  3504. if { (ac_try="$ac_compile"
  3505. case "(($ac_try" in
  3506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3507. *) ac_try_echo=$ac_try;;
  3508. esac
  3509. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3510. (eval "$ac_compile") 2>conftest.er1
  3511. ac_status=$?
  3512. grep -v '^ *+' conftest.er1 >conftest.err
  3513. rm -f conftest.er1
  3514. cat conftest.err >&5
  3515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3516. (exit $ac_status); } && {
  3517. test -z "$ac_c_werror_flag" ||
  3518. test ! -s conftest.err
  3519. } && test -s conftest.$ac_objext; then
  3520. ac_cv_prog_cc_g=yes
  3521. else
  3522. echo "$as_me: failed program was:" >&5
  3523. sed 's/^/| /' conftest.$ac_ext >&5
  3524. CFLAGS=""
  3525. cat >conftest.$ac_ext <<_ACEOF
  3526. /* confdefs.h. */
  3527. _ACEOF
  3528. cat confdefs.h >>conftest.$ac_ext
  3529. cat >>conftest.$ac_ext <<_ACEOF
  3530. /* end confdefs.h. */
  3531. int
  3532. main ()
  3533. {
  3534. ;
  3535. return 0;
  3536. }
  3537. _ACEOF
  3538. rm -f conftest.$ac_objext
  3539. if { (ac_try="$ac_compile"
  3540. case "(($ac_try" in
  3541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3542. *) ac_try_echo=$ac_try;;
  3543. esac
  3544. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3545. (eval "$ac_compile") 2>conftest.er1
  3546. ac_status=$?
  3547. grep -v '^ *+' conftest.er1 >conftest.err
  3548. rm -f conftest.er1
  3549. cat conftest.err >&5
  3550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3551. (exit $ac_status); } && {
  3552. test -z "$ac_c_werror_flag" ||
  3553. test ! -s conftest.err
  3554. } && test -s conftest.$ac_objext; then
  3555. :
  3556. else
  3557. echo "$as_me: failed program was:" >&5
  3558. sed 's/^/| /' conftest.$ac_ext >&5
  3559. ac_c_werror_flag=$ac_save_c_werror_flag
  3560. CFLAGS="-g"
  3561. cat >conftest.$ac_ext <<_ACEOF
  3562. /* confdefs.h. */
  3563. _ACEOF
  3564. cat confdefs.h >>conftest.$ac_ext
  3565. cat >>conftest.$ac_ext <<_ACEOF
  3566. /* end confdefs.h. */
  3567. int
  3568. main ()
  3569. {
  3570. ;
  3571. return 0;
  3572. }
  3573. _ACEOF
  3574. rm -f conftest.$ac_objext
  3575. if { (ac_try="$ac_compile"
  3576. case "(($ac_try" in
  3577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3578. *) ac_try_echo=$ac_try;;
  3579. esac
  3580. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3581. (eval "$ac_compile") 2>conftest.er1
  3582. ac_status=$?
  3583. grep -v '^ *+' conftest.er1 >conftest.err
  3584. rm -f conftest.er1
  3585. cat conftest.err >&5
  3586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3587. (exit $ac_status); } && {
  3588. test -z "$ac_c_werror_flag" ||
  3589. test ! -s conftest.err
  3590. } && test -s conftest.$ac_objext; then
  3591. ac_cv_prog_cc_g=yes
  3592. else
  3593. echo "$as_me: failed program was:" >&5
  3594. sed 's/^/| /' conftest.$ac_ext >&5
  3595. fi
  3596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3597. fi
  3598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3599. fi
  3600. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3601. ac_c_werror_flag=$ac_save_c_werror_flag
  3602. fi
  3603. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3604. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3605. if test "$ac_test_CFLAGS" = set; then
  3606. CFLAGS=$ac_save_CFLAGS
  3607. elif test $ac_cv_prog_cc_g = yes; then
  3608. if test "$GCC" = yes; then
  3609. CFLAGS="-g -O2"
  3610. else
  3611. CFLAGS="-g"
  3612. fi
  3613. else
  3614. if test "$GCC" = yes; then
  3615. CFLAGS="-O2"
  3616. else
  3617. CFLAGS=
  3618. fi
  3619. fi
  3620. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3621. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3622. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3623. echo $ECHO_N "(cached) $ECHO_C" >&6
  3624. else
  3625. ac_cv_prog_cc_c89=no
  3626. ac_save_CC=$CC
  3627. cat >conftest.$ac_ext <<_ACEOF
  3628. /* confdefs.h. */
  3629. _ACEOF
  3630. cat confdefs.h >>conftest.$ac_ext
  3631. cat >>conftest.$ac_ext <<_ACEOF
  3632. /* end confdefs.h. */
  3633. #include <stdarg.h>
  3634. #include <stdio.h>
  3635. #include <sys/types.h>
  3636. #include <sys/stat.h>
  3637. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3638. struct buf { int x; };
  3639. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3640. static char *e (p, i)
  3641. char **p;
  3642. int i;
  3643. {
  3644. return p[i];
  3645. }
  3646. static char *f (char * (*g) (char **, int), char **p, ...)
  3647. {
  3648. char *s;
  3649. va_list v;
  3650. va_start (v,p);
  3651. s = g (p, va_arg (v,int));
  3652. va_end (v);
  3653. return s;
  3654. }
  3655. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3656. function prototypes and stuff, but not '\xHH' hex character constants.
  3657. These don't provoke an error unfortunately, instead are silently treated
  3658. as 'x'. The following induces an error, until -std is added to get
  3659. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3660. array size at least. It's necessary to write '\x00'==0 to get something
  3661. that's true only with -std. */
  3662. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3663. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3664. inside strings and character constants. */
  3665. #define FOO(x) 'x'
  3666. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3667. int test (int i, double x);
  3668. struct s1 {int (*f) (int a);};
  3669. struct s2 {int (*f) (double a);};
  3670. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3671. int argc;
  3672. char **argv;
  3673. int
  3674. main ()
  3675. {
  3676. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3677. ;
  3678. return 0;
  3679. }
  3680. _ACEOF
  3681. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3682. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3683. do
  3684. CC="$ac_save_CC $ac_arg"
  3685. rm -f conftest.$ac_objext
  3686. if { (ac_try="$ac_compile"
  3687. case "(($ac_try" in
  3688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3689. *) ac_try_echo=$ac_try;;
  3690. esac
  3691. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3692. (eval "$ac_compile") 2>conftest.er1
  3693. ac_status=$?
  3694. grep -v '^ *+' conftest.er1 >conftest.err
  3695. rm -f conftest.er1
  3696. cat conftest.err >&5
  3697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3698. (exit $ac_status); } && {
  3699. test -z "$ac_c_werror_flag" ||
  3700. test ! -s conftest.err
  3701. } && test -s conftest.$ac_objext; then
  3702. ac_cv_prog_cc_c89=$ac_arg
  3703. else
  3704. echo "$as_me: failed program was:" >&5
  3705. sed 's/^/| /' conftest.$ac_ext >&5
  3706. fi
  3707. rm -f core conftest.err conftest.$ac_objext
  3708. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3709. done
  3710. rm -f conftest.$ac_ext
  3711. CC=$ac_save_CC
  3712. fi
  3713. # AC_CACHE_VAL
  3714. case "x$ac_cv_prog_cc_c89" in
  3715. x)
  3716. { echo "$as_me:$LINENO: result: none needed" >&5
  3717. echo "${ECHO_T}none needed" >&6; } ;;
  3718. xno)
  3719. { echo "$as_me:$LINENO: result: unsupported" >&5
  3720. echo "${ECHO_T}unsupported" >&6; } ;;
  3721. *)
  3722. CC="$CC $ac_cv_prog_cc_c89"
  3723. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3724. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3725. esac
  3726. ac_ext=c
  3727. ac_cpp='$CPP $CPPFLAGS'
  3728. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3729. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3730. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3731. depcc="$CC" am_compiler_list=
  3732. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3733. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3734. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3735. echo $ECHO_N "(cached) $ECHO_C" >&6
  3736. else
  3737. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3738. # We make a subdir and do the tests there. Otherwise we can end up
  3739. # making bogus files that we don't know about and never remove. For
  3740. # instance it was reported that on HP-UX the gcc test will end up
  3741. # making a dummy file named `D' -- because `-MD' means `put the output
  3742. # in D'.
  3743. mkdir conftest.dir
  3744. # Copy depcomp to subdir because otherwise we won't find it if we're
  3745. # using a relative directory.
  3746. cp "$am_depcomp" conftest.dir
  3747. cd conftest.dir
  3748. # We will build objects and dependencies in a subdirectory because
  3749. # it helps to detect inapplicable dependency modes. For instance
  3750. # both Tru64's cc and ICC support -MD to output dependencies as a
  3751. # side effect of compilation, but ICC will put the dependencies in
  3752. # the current directory while Tru64 will put them in the object
  3753. # directory.
  3754. mkdir sub
  3755. am_cv_CC_dependencies_compiler_type=none
  3756. if test "$am_compiler_list" = ""; then
  3757. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3758. fi
  3759. for depmode in $am_compiler_list; do
  3760. # Setup a source with many dependencies, because some compilers
  3761. # like to wrap large dependency lists on column 80 (with \), and
  3762. # we should not choose a depcomp mode which is confused by this.
  3763. #
  3764. # We need to recreate these files for each test, as the compiler may
  3765. # overwrite some of them when testing with obscure command lines.
  3766. # This happens at least with the AIX C compiler.
  3767. : > sub/conftest.c
  3768. for i in 1 2 3 4 5 6; do
  3769. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3770. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3771. # Solaris 8's {/usr,}/bin/sh.
  3772. touch sub/conftst$i.h
  3773. done
  3774. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3775. case $depmode in
  3776. nosideeffect)
  3777. # after this tag, mechanisms are not by side-effect, so they'll
  3778. # only be used when explicitly requested
  3779. if test "x$enable_dependency_tracking" = xyes; then
  3780. continue
  3781. else
  3782. break
  3783. fi
  3784. ;;
  3785. none) break ;;
  3786. esac
  3787. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3788. # mode. It turns out that the SunPro C++ compiler does not properly
  3789. # handle `-M -o', and we need to detect this.
  3790. if depmode=$depmode \
  3791. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3792. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3793. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3794. >/dev/null 2>conftest.err &&
  3795. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3796. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3797. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3798. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3799. # icc doesn't choke on unknown options, it will just issue warnings
  3800. # or remarks (even with -Werror). So we grep stderr for any message
  3801. # that says an option was ignored or not supported.
  3802. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3803. # icc: Command line warning: ignoring option '-M'; no argument required
  3804. # The diagnosis changed in icc 8.0:
  3805. # icc: Command line remark: option '-MP' not supported
  3806. if (grep 'ignoring option' conftest.err ||
  3807. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3808. am_cv_CC_dependencies_compiler_type=$depmode
  3809. break
  3810. fi
  3811. fi
  3812. done
  3813. cd ..
  3814. rm -rf conftest.dir
  3815. else
  3816. am_cv_CC_dependencies_compiler_type=none
  3817. fi
  3818. fi
  3819. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3820. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3821. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3822. if
  3823. test "x$enable_dependency_tracking" != xno \
  3824. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3825. am__fastdepCC_TRUE=
  3826. am__fastdepCC_FALSE='#'
  3827. else
  3828. am__fastdepCC_TRUE='#'
  3829. am__fastdepCC_FALSE=
  3830. fi
  3831. # Find a good install program. We prefer a C program (faster),
  3832. # so one script is as good as another. But avoid the broken or
  3833. # incompatible versions:
  3834. # SysV /etc/install, /usr/sbin/install
  3835. # SunOS /usr/etc/install
  3836. # IRIX /sbin/install
  3837. # AIX /bin/install
  3838. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3839. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3840. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3841. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3842. # OS/2's system install, which has a completely different semantic
  3843. # ./install, which can be erroneously created by make from ./install.sh.
  3844. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3845. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3846. if test -z "$INSTALL"; then
  3847. if test "${ac_cv_path_install+set}" = set; then
  3848. echo $ECHO_N "(cached) $ECHO_C" >&6
  3849. else
  3850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3851. for as_dir in $PATH
  3852. do
  3853. IFS=$as_save_IFS
  3854. test -z "$as_dir" && as_dir=.
  3855. # Account for people who put trailing slashes in PATH elements.
  3856. case $as_dir/ in
  3857. ./ | .// | /cC/* | \
  3858. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3859. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3860. /usr/ucb/* ) ;;
  3861. *)
  3862. # OSF1 and SCO ODT 3.0 have their own names for install.
  3863. # Don't use installbsd from OSF since it installs stuff as root
  3864. # by default.
  3865. for ac_prog in ginstall scoinst install; do
  3866. for ac_exec_ext in '' $ac_executable_extensions; do
  3867. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3868. if test $ac_prog = install &&
  3869. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3870. # AIX install. It has an incompatible calling convention.
  3871. :
  3872. elif test $ac_prog = install &&
  3873. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3874. # program-specific install script used by HP pwplus--don't use.
  3875. :
  3876. else
  3877. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3878. break 3
  3879. fi
  3880. fi
  3881. done
  3882. done
  3883. ;;
  3884. esac
  3885. done
  3886. IFS=$as_save_IFS
  3887. fi
  3888. if test "${ac_cv_path_install+set}" = set; then
  3889. INSTALL=$ac_cv_path_install
  3890. else
  3891. # As a last resort, use the slow shell script. Don't cache a
  3892. # value for INSTALL within a source directory, because that will
  3893. # break other packages using the cache if that directory is
  3894. # removed, or if the value is a relative name.
  3895. INSTALL=$ac_install_sh
  3896. fi
  3897. fi
  3898. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3899. echo "${ECHO_T}$INSTALL" >&6; }
  3900. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3901. # It thinks the first close brace ends the variable substitution.
  3902. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3903. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3904. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3905. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  3906. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  3907. if test -z "$MKDIR_P"; then
  3908. if test "${ac_cv_path_mkdir+set}" = set; then
  3909. echo $ECHO_N "(cached) $ECHO_C" >&6
  3910. else
  3911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3912. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3913. do
  3914. IFS=$as_save_IFS
  3915. test -z "$as_dir" && as_dir=.
  3916. for ac_prog in mkdir gmkdir; do
  3917. for ac_exec_ext in '' $ac_executable_extensions; do
  3918. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3919. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3920. 'mkdir (GNU coreutils) '* | \
  3921. 'mkdir (coreutils) '* | \
  3922. 'mkdir (fileutils) '4.1*)
  3923. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3924. break 3;;
  3925. esac
  3926. done
  3927. done
  3928. done
  3929. IFS=$as_save_IFS
  3930. fi
  3931. if test "${ac_cv_path_mkdir+set}" = set; then
  3932. MKDIR_P="$ac_cv_path_mkdir -p"
  3933. else
  3934. # As a last resort, use the slow shell script. Don't cache a
  3935. # value for MKDIR_P within a source directory, because that will
  3936. # break other packages using the cache if that directory is
  3937. # removed, or if the value is a relative name.
  3938. test -d ./--version && rmdir ./--version
  3939. MKDIR_P="$ac_install_sh -d"
  3940. fi
  3941. fi
  3942. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  3943. echo "${ECHO_T}$MKDIR_P" >&6; }
  3944. if test -n "$ac_tool_prefix"; then
  3945. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3946. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3947. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3948. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3949. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3950. echo $ECHO_N "(cached) $ECHO_C" >&6
  3951. else
  3952. if test -n "$RANLIB"; then
  3953. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3954. else
  3955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3956. for as_dir in $PATH
  3957. do
  3958. IFS=$as_save_IFS
  3959. test -z "$as_dir" && as_dir=.
  3960. for ac_exec_ext in '' $ac_executable_extensions; do
  3961. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3962. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3963. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3964. break 2
  3965. fi
  3966. done
  3967. done
  3968. IFS=$as_save_IFS
  3969. fi
  3970. fi
  3971. RANLIB=$ac_cv_prog_RANLIB
  3972. if test -n "$RANLIB"; then
  3973. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  3974. echo "${ECHO_T}$RANLIB" >&6; }
  3975. else
  3976. { echo "$as_me:$LINENO: result: no" >&5
  3977. echo "${ECHO_T}no" >&6; }
  3978. fi
  3979. fi
  3980. if test -z "$ac_cv_prog_RANLIB"; then
  3981. ac_ct_RANLIB=$RANLIB
  3982. # Extract the first word of "ranlib", so it can be a program name with args.
  3983. set dummy ranlib; ac_word=$2
  3984. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3985. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3986. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3987. echo $ECHO_N "(cached) $ECHO_C" >&6
  3988. else
  3989. if test -n "$ac_ct_RANLIB"; then
  3990. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3991. else
  3992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3993. for as_dir in $PATH
  3994. do
  3995. IFS=$as_save_IFS
  3996. test -z "$as_dir" && as_dir=.
  3997. for ac_exec_ext in '' $ac_executable_extensions; do
  3998. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3999. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4000. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4001. break 2
  4002. fi
  4003. done
  4004. done
  4005. IFS=$as_save_IFS
  4006. fi
  4007. fi
  4008. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4009. if test -n "$ac_ct_RANLIB"; then
  4010. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4011. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  4012. else
  4013. { echo "$as_me:$LINENO: result: no" >&5
  4014. echo "${ECHO_T}no" >&6; }
  4015. fi
  4016. if test "x$ac_ct_RANLIB" = x; then
  4017. RANLIB=":"
  4018. else
  4019. case $cross_compiling:$ac_tool_warned in
  4020. yes:)
  4021. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4022. whose name does not start with the host triplet. If you think this
  4023. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4024. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4025. whose name does not start with the host triplet. If you think this
  4026. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4027. ac_tool_warned=yes ;;
  4028. esac
  4029. RANLIB=$ac_ct_RANLIB
  4030. fi
  4031. else
  4032. RANLIB="$ac_cv_prog_RANLIB"
  4033. fi
  4034. for ac_prog in 'bison -y' byacc
  4035. do
  4036. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4037. set dummy $ac_prog; ac_word=$2
  4038. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4039. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4040. if test "${ac_cv_prog_YACC+set}" = set; then
  4041. echo $ECHO_N "(cached) $ECHO_C" >&6
  4042. else
  4043. if test -n "$YACC"; then
  4044. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4045. else
  4046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4047. for as_dir in $PATH
  4048. do
  4049. IFS=$as_save_IFS
  4050. test -z "$as_dir" && as_dir=.
  4051. for ac_exec_ext in '' $ac_executable_extensions; do
  4052. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4053. ac_cv_prog_YACC="$ac_prog"
  4054. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4055. break 2
  4056. fi
  4057. done
  4058. done
  4059. IFS=$as_save_IFS
  4060. fi
  4061. fi
  4062. YACC=$ac_cv_prog_YACC
  4063. if test -n "$YACC"; then
  4064. { echo "$as_me:$LINENO: result: $YACC" >&5
  4065. echo "${ECHO_T}$YACC" >&6; }
  4066. else
  4067. { echo "$as_me:$LINENO: result: no" >&5
  4068. echo "${ECHO_T}no" >&6; }
  4069. fi
  4070. test -n "$YACC" && break
  4071. done
  4072. test -n "$YACC" || YACC="yacc"
  4073. # Setting language choice
  4074. ac_ext=cpp
  4075. ac_cpp='$CXXCPP $CPPFLAGS'
  4076. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4077. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4078. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4079. # Check for GNU library
  4080. cat >>confdefs.h <<\_ACEOF
  4081. #define _GNU_SOURCE 1
  4082. _ACEOF
  4083. # Enable system extensions
  4084. ac_ext=cpp
  4085. ac_cpp='$CXXCPP $CPPFLAGS'
  4086. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4087. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4088. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4089. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4090. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  4091. if test -z "$CXXCPP"; then
  4092. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4093. echo $ECHO_N "(cached) $ECHO_C" >&6
  4094. else
  4095. # Double quotes because CXXCPP needs to be expanded
  4096. for CXXCPP in "$CXX -E" "/lib/cpp"
  4097. do
  4098. ac_preproc_ok=false
  4099. for ac_cxx_preproc_warn_flag in '' yes
  4100. do
  4101. # Use a header file that comes with gcc, so configuring glibc
  4102. # with a fresh cross-compiler works.
  4103. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4104. # <limits.h> exists even on freestanding compilers.
  4105. # On the NeXT, cc -E runs the code through the compiler's parser,
  4106. # not just through cpp. "Syntax error" is here to catch this case.
  4107. cat >conftest.$ac_ext <<_ACEOF
  4108. /* confdefs.h. */
  4109. _ACEOF
  4110. cat confdefs.h >>conftest.$ac_ext
  4111. cat >>conftest.$ac_ext <<_ACEOF
  4112. /* end confdefs.h. */
  4113. #ifdef __STDC__
  4114. # include <limits.h>
  4115. #else
  4116. # include <assert.h>
  4117. #endif
  4118. Syntax error
  4119. _ACEOF
  4120. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4121. case "(($ac_try" in
  4122. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4123. *) ac_try_echo=$ac_try;;
  4124. esac
  4125. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4126. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4127. ac_status=$?
  4128. grep -v '^ *+' conftest.er1 >conftest.err
  4129. rm -f conftest.er1
  4130. cat conftest.err >&5
  4131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4132. (exit $ac_status); } >/dev/null && {
  4133. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4134. test ! -s conftest.err
  4135. }; then
  4136. :
  4137. else
  4138. echo "$as_me: failed program was:" >&5
  4139. sed 's/^/| /' conftest.$ac_ext >&5
  4140. # Broken: fails on valid input.
  4141. continue
  4142. fi
  4143. rm -f conftest.err conftest.$ac_ext
  4144. # OK, works on sane cases. Now check whether nonexistent headers
  4145. # can be detected and how.
  4146. cat >conftest.$ac_ext <<_ACEOF
  4147. /* confdefs.h. */
  4148. _ACEOF
  4149. cat confdefs.h >>conftest.$ac_ext
  4150. cat >>conftest.$ac_ext <<_ACEOF
  4151. /* end confdefs.h. */
  4152. #include <ac_nonexistent.h>
  4153. _ACEOF
  4154. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4155. case "(($ac_try" in
  4156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4157. *) ac_try_echo=$ac_try;;
  4158. esac
  4159. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4160. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4161. ac_status=$?
  4162. grep -v '^ *+' conftest.er1 >conftest.err
  4163. rm -f conftest.er1
  4164. cat conftest.err >&5
  4165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4166. (exit $ac_status); } >/dev/null && {
  4167. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4168. test ! -s conftest.err
  4169. }; then
  4170. # Broken: success on invalid input.
  4171. continue
  4172. else
  4173. echo "$as_me: failed program was:" >&5
  4174. sed 's/^/| /' conftest.$ac_ext >&5
  4175. # Passes both tests.
  4176. ac_preproc_ok=:
  4177. break
  4178. fi
  4179. rm -f conftest.err conftest.$ac_ext
  4180. done
  4181. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4182. rm -f conftest.err conftest.$ac_ext
  4183. if $ac_preproc_ok; then
  4184. break
  4185. fi
  4186. done
  4187. ac_cv_prog_CXXCPP=$CXXCPP
  4188. fi
  4189. CXXCPP=$ac_cv_prog_CXXCPP
  4190. else
  4191. ac_cv_prog_CXXCPP=$CXXCPP
  4192. fi
  4193. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4194. echo "${ECHO_T}$CXXCPP" >&6; }
  4195. ac_preproc_ok=false
  4196. for ac_cxx_preproc_warn_flag in '' yes
  4197. do
  4198. # Use a header file that comes with gcc, so configuring glibc
  4199. # with a fresh cross-compiler works.
  4200. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4201. # <limits.h> exists even on freestanding compilers.
  4202. # On the NeXT, cc -E runs the code through the compiler's parser,
  4203. # not just through cpp. "Syntax error" is here to catch this case.
  4204. cat >conftest.$ac_ext <<_ACEOF
  4205. /* confdefs.h. */
  4206. _ACEOF
  4207. cat confdefs.h >>conftest.$ac_ext
  4208. cat >>conftest.$ac_ext <<_ACEOF
  4209. /* end confdefs.h. */
  4210. #ifdef __STDC__
  4211. # include <limits.h>
  4212. #else
  4213. # include <assert.h>
  4214. #endif
  4215. Syntax error
  4216. _ACEOF
  4217. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4218. case "(($ac_try" in
  4219. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4220. *) ac_try_echo=$ac_try;;
  4221. esac
  4222. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4223. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4224. ac_status=$?
  4225. grep -v '^ *+' conftest.er1 >conftest.err
  4226. rm -f conftest.er1
  4227. cat conftest.err >&5
  4228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4229. (exit $ac_status); } >/dev/null && {
  4230. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4231. test ! -s conftest.err
  4232. }; then
  4233. :
  4234. else
  4235. echo "$as_me: failed program was:" >&5
  4236. sed 's/^/| /' conftest.$ac_ext >&5
  4237. # Broken: fails on valid input.
  4238. continue
  4239. fi
  4240. rm -f conftest.err conftest.$ac_ext
  4241. # OK, works on sane cases. Now check whether nonexistent headers
  4242. # can be detected and how.
  4243. cat >conftest.$ac_ext <<_ACEOF
  4244. /* confdefs.h. */
  4245. _ACEOF
  4246. cat confdefs.h >>conftest.$ac_ext
  4247. cat >>conftest.$ac_ext <<_ACEOF
  4248. /* end confdefs.h. */
  4249. #include <ac_nonexistent.h>
  4250. _ACEOF
  4251. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4252. case "(($ac_try" in
  4253. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4254. *) ac_try_echo=$ac_try;;
  4255. esac
  4256. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4257. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4258. ac_status=$?
  4259. grep -v '^ *+' conftest.er1 >conftest.err
  4260. rm -f conftest.er1
  4261. cat conftest.err >&5
  4262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4263. (exit $ac_status); } >/dev/null && {
  4264. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4265. test ! -s conftest.err
  4266. }; then
  4267. # Broken: success on invalid input.
  4268. continue
  4269. else
  4270. echo "$as_me: failed program was:" >&5
  4271. sed 's/^/| /' conftest.$ac_ext >&5
  4272. # Passes both tests.
  4273. ac_preproc_ok=:
  4274. break
  4275. fi
  4276. rm -f conftest.err conftest.$ac_ext
  4277. done
  4278. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4279. rm -f conftest.err conftest.$ac_ext
  4280. if $ac_preproc_ok; then
  4281. :
  4282. else
  4283. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4284. See \`config.log' for more details." >&5
  4285. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4286. See \`config.log' for more details." >&2;}
  4287. { (exit 1); exit 1; }; }
  4288. fi
  4289. ac_ext=cpp
  4290. ac_cpp='$CXXCPP $CPPFLAGS'
  4291. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4292. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4293. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4294. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4295. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4296. if test "${ac_cv_path_GREP+set}" = set; then
  4297. echo $ECHO_N "(cached) $ECHO_C" >&6
  4298. else
  4299. # Extract the first word of "grep ggrep" to use in msg output
  4300. if test -z "$GREP"; then
  4301. set dummy grep ggrep; ac_prog_name=$2
  4302. if test "${ac_cv_path_GREP+set}" = set; then
  4303. echo $ECHO_N "(cached) $ECHO_C" >&6
  4304. else
  4305. ac_path_GREP_found=false
  4306. # Loop through the user's path and test for each of PROGNAME-LIST
  4307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4308. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4309. do
  4310. IFS=$as_save_IFS
  4311. test -z "$as_dir" && as_dir=.
  4312. for ac_prog in grep ggrep; do
  4313. for ac_exec_ext in '' $ac_executable_extensions; do
  4314. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4315. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4316. # Check for GNU ac_path_GREP and select it if it is found.
  4317. # Check for GNU $ac_path_GREP
  4318. case `"$ac_path_GREP" --version 2>&1` in
  4319. *GNU*)
  4320. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4321. *)
  4322. ac_count=0
  4323. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4324. while :
  4325. do
  4326. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4327. mv "conftest.tmp" "conftest.in"
  4328. cp "conftest.in" "conftest.nl"
  4329. echo 'GREP' >> "conftest.nl"
  4330. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4331. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4332. ac_count=`expr $ac_count + 1`
  4333. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4334. # Best one so far, save it but keep looking for a better one
  4335. ac_cv_path_GREP="$ac_path_GREP"
  4336. ac_path_GREP_max=$ac_count
  4337. fi
  4338. # 10*(2^10) chars as input seems more than enough
  4339. test $ac_count -gt 10 && break
  4340. done
  4341. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4342. esac
  4343. $ac_path_GREP_found && break 3
  4344. done
  4345. done
  4346. done
  4347. IFS=$as_save_IFS
  4348. fi
  4349. GREP="$ac_cv_path_GREP"
  4350. if test -z "$GREP"; then
  4351. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4352. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4353. { (exit 1); exit 1; }; }
  4354. fi
  4355. else
  4356. ac_cv_path_GREP=$GREP
  4357. fi
  4358. fi
  4359. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4360. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4361. GREP="$ac_cv_path_GREP"
  4362. { echo "$as_me:$LINENO: checking for egrep" >&5
  4363. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4364. if test "${ac_cv_path_EGREP+set}" = set; then
  4365. echo $ECHO_N "(cached) $ECHO_C" >&6
  4366. else
  4367. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4368. then ac_cv_path_EGREP="$GREP -E"
  4369. else
  4370. # Extract the first word of "egrep" to use in msg output
  4371. if test -z "$EGREP"; then
  4372. set dummy egrep; ac_prog_name=$2
  4373. if test "${ac_cv_path_EGREP+set}" = set; then
  4374. echo $ECHO_N "(cached) $ECHO_C" >&6
  4375. else
  4376. ac_path_EGREP_found=false
  4377. # Loop through the user's path and test for each of PROGNAME-LIST
  4378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4379. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4380. do
  4381. IFS=$as_save_IFS
  4382. test -z "$as_dir" && as_dir=.
  4383. for ac_prog in egrep; do
  4384. for ac_exec_ext in '' $ac_executable_extensions; do
  4385. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4386. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4387. # Check for GNU ac_path_EGREP and select it if it is found.
  4388. # Check for GNU $ac_path_EGREP
  4389. case `"$ac_path_EGREP" --version 2>&1` in
  4390. *GNU*)
  4391. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4392. *)
  4393. ac_count=0
  4394. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4395. while :
  4396. do
  4397. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4398. mv "conftest.tmp" "conftest.in"
  4399. cp "conftest.in" "conftest.nl"
  4400. echo 'EGREP' >> "conftest.nl"
  4401. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4402. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4403. ac_count=`expr $ac_count + 1`
  4404. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4405. # Best one so far, save it but keep looking for a better one
  4406. ac_cv_path_EGREP="$ac_path_EGREP"
  4407. ac_path_EGREP_max=$ac_count
  4408. fi
  4409. # 10*(2^10) chars as input seems more than enough
  4410. test $ac_count -gt 10 && break
  4411. done
  4412. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4413. esac
  4414. $ac_path_EGREP_found && break 3
  4415. done
  4416. done
  4417. done
  4418. IFS=$as_save_IFS
  4419. fi
  4420. EGREP="$ac_cv_path_EGREP"
  4421. if test -z "$EGREP"; then
  4422. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4423. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4424. { (exit 1); exit 1; }; }
  4425. fi
  4426. else
  4427. ac_cv_path_EGREP=$EGREP
  4428. fi
  4429. fi
  4430. fi
  4431. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4432. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4433. EGREP="$ac_cv_path_EGREP"
  4434. { echo "$as_me:$LINENO: checking for AIX" >&5
  4435. echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
  4436. cat >conftest.$ac_ext <<_ACEOF
  4437. /* confdefs.h. */
  4438. _ACEOF
  4439. cat confdefs.h >>conftest.$ac_ext
  4440. cat >>conftest.$ac_ext <<_ACEOF
  4441. /* end confdefs.h. */
  4442. #ifdef _AIX
  4443. yes
  4444. #endif
  4445. _ACEOF
  4446. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4447. $EGREP "yes" >/dev/null 2>&1; then
  4448. { echo "$as_me:$LINENO: result: yes" >&5
  4449. echo "${ECHO_T}yes" >&6; }
  4450. cat >>confdefs.h <<\_ACEOF
  4451. #define _ALL_SOURCE 1
  4452. _ACEOF
  4453. else
  4454. { echo "$as_me:$LINENO: result: no" >&5
  4455. echo "${ECHO_T}no" >&6; }
  4456. fi
  4457. rm -f conftest*
  4458. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4459. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4460. if test "${ac_cv_header_stdc+set}" = set; then
  4461. echo $ECHO_N "(cached) $ECHO_C" >&6
  4462. else
  4463. cat >conftest.$ac_ext <<_ACEOF
  4464. /* confdefs.h. */
  4465. _ACEOF
  4466. cat confdefs.h >>conftest.$ac_ext
  4467. cat >>conftest.$ac_ext <<_ACEOF
  4468. /* end confdefs.h. */
  4469. #include <stdlib.h>
  4470. #include <stdarg.h>
  4471. #include <string.h>
  4472. #include <float.h>
  4473. int
  4474. main ()
  4475. {
  4476. ;
  4477. return 0;
  4478. }
  4479. _ACEOF
  4480. rm -f conftest.$ac_objext
  4481. if { (ac_try="$ac_compile"
  4482. case "(($ac_try" in
  4483. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4484. *) ac_try_echo=$ac_try;;
  4485. esac
  4486. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4487. (eval "$ac_compile") 2>conftest.er1
  4488. ac_status=$?
  4489. grep -v '^ *+' conftest.er1 >conftest.err
  4490. rm -f conftest.er1
  4491. cat conftest.err >&5
  4492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4493. (exit $ac_status); } && {
  4494. test -z "$ac_cxx_werror_flag" ||
  4495. test ! -s conftest.err
  4496. } && test -s conftest.$ac_objext; then
  4497. ac_cv_header_stdc=yes
  4498. else
  4499. echo "$as_me: failed program was:" >&5
  4500. sed 's/^/| /' conftest.$ac_ext >&5
  4501. ac_cv_header_stdc=no
  4502. fi
  4503. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4504. if test $ac_cv_header_stdc = yes; then
  4505. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4506. cat >conftest.$ac_ext <<_ACEOF
  4507. /* confdefs.h. */
  4508. _ACEOF
  4509. cat confdefs.h >>conftest.$ac_ext
  4510. cat >>conftest.$ac_ext <<_ACEOF
  4511. /* end confdefs.h. */
  4512. #include <string.h>
  4513. _ACEOF
  4514. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4515. $EGREP "memchr" >/dev/null 2>&1; then
  4516. :
  4517. else
  4518. ac_cv_header_stdc=no
  4519. fi
  4520. rm -f conftest*
  4521. fi
  4522. if test $ac_cv_header_stdc = yes; then
  4523. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4524. cat >conftest.$ac_ext <<_ACEOF
  4525. /* confdefs.h. */
  4526. _ACEOF
  4527. cat confdefs.h >>conftest.$ac_ext
  4528. cat >>conftest.$ac_ext <<_ACEOF
  4529. /* end confdefs.h. */
  4530. #include <stdlib.h>
  4531. _ACEOF
  4532. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4533. $EGREP "free" >/dev/null 2>&1; then
  4534. :
  4535. else
  4536. ac_cv_header_stdc=no
  4537. fi
  4538. rm -f conftest*
  4539. fi
  4540. if test $ac_cv_header_stdc = yes; then
  4541. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4542. if test "$cross_compiling" = yes; then
  4543. :
  4544. else
  4545. cat >conftest.$ac_ext <<_ACEOF
  4546. /* confdefs.h. */
  4547. _ACEOF
  4548. cat confdefs.h >>conftest.$ac_ext
  4549. cat >>conftest.$ac_ext <<_ACEOF
  4550. /* end confdefs.h. */
  4551. #include <ctype.h>
  4552. #include <stdlib.h>
  4553. #if ((' ' & 0x0FF) == 0x020)
  4554. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4555. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4556. #else
  4557. # define ISLOWER(c) \
  4558. (('a' <= (c) && (c) <= 'i') \
  4559. || ('j' <= (c) && (c) <= 'r') \
  4560. || ('s' <= (c) && (c) <= 'z'))
  4561. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4562. #endif
  4563. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4564. int
  4565. main ()
  4566. {
  4567. int i;
  4568. for (i = 0; i < 256; i++)
  4569. if (XOR (islower (i), ISLOWER (i))
  4570. || toupper (i) != TOUPPER (i))
  4571. return 2;
  4572. return 0;
  4573. }
  4574. _ACEOF
  4575. rm -f conftest$ac_exeext
  4576. if { (ac_try="$ac_link"
  4577. case "(($ac_try" in
  4578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4579. *) ac_try_echo=$ac_try;;
  4580. esac
  4581. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4582. (eval "$ac_link") 2>&5
  4583. ac_status=$?
  4584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4585. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4586. { (case "(($ac_try" in
  4587. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4588. *) ac_try_echo=$ac_try;;
  4589. esac
  4590. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4591. (eval "$ac_try") 2>&5
  4592. ac_status=$?
  4593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4594. (exit $ac_status); }; }; then
  4595. :
  4596. else
  4597. echo "$as_me: program exited with status $ac_status" >&5
  4598. echo "$as_me: failed program was:" >&5
  4599. sed 's/^/| /' conftest.$ac_ext >&5
  4600. ( exit $ac_status )
  4601. ac_cv_header_stdc=no
  4602. fi
  4603. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4604. fi
  4605. fi
  4606. fi
  4607. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4608. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4609. if test $ac_cv_header_stdc = yes; then
  4610. cat >>confdefs.h <<\_ACEOF
  4611. #define STDC_HEADERS 1
  4612. _ACEOF
  4613. fi
  4614. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4615. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4616. inttypes.h stdint.h unistd.h
  4617. do
  4618. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4619. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4620. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4621. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4622. echo $ECHO_N "(cached) $ECHO_C" >&6
  4623. else
  4624. cat >conftest.$ac_ext <<_ACEOF
  4625. /* confdefs.h. */
  4626. _ACEOF
  4627. cat confdefs.h >>conftest.$ac_ext
  4628. cat >>conftest.$ac_ext <<_ACEOF
  4629. /* end confdefs.h. */
  4630. $ac_includes_default
  4631. #include <$ac_header>
  4632. _ACEOF
  4633. rm -f conftest.$ac_objext
  4634. if { (ac_try="$ac_compile"
  4635. case "(($ac_try" in
  4636. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4637. *) ac_try_echo=$ac_try;;
  4638. esac
  4639. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4640. (eval "$ac_compile") 2>conftest.er1
  4641. ac_status=$?
  4642. grep -v '^ *+' conftest.er1 >conftest.err
  4643. rm -f conftest.er1
  4644. cat conftest.err >&5
  4645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4646. (exit $ac_status); } && {
  4647. test -z "$ac_cxx_werror_flag" ||
  4648. test ! -s conftest.err
  4649. } && test -s conftest.$ac_objext; then
  4650. eval "$as_ac_Header=yes"
  4651. else
  4652. echo "$as_me: failed program was:" >&5
  4653. sed 's/^/| /' conftest.$ac_ext >&5
  4654. eval "$as_ac_Header=no"
  4655. fi
  4656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4657. fi
  4658. ac_res=`eval echo '${'$as_ac_Header'}'`
  4659. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4660. echo "${ECHO_T}$ac_res" >&6; }
  4661. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4662. cat >>confdefs.h <<_ACEOF
  4663. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4664. _ACEOF
  4665. fi
  4666. done
  4667. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4668. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4669. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4670. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4671. echo $ECHO_N "(cached) $ECHO_C" >&6
  4672. fi
  4673. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4674. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4675. else
  4676. # Is the header compilable?
  4677. { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4678. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
  4679. cat >conftest.$ac_ext <<_ACEOF
  4680. /* confdefs.h. */
  4681. _ACEOF
  4682. cat confdefs.h >>conftest.$ac_ext
  4683. cat >>conftest.$ac_ext <<_ACEOF
  4684. /* end confdefs.h. */
  4685. $ac_includes_default
  4686. #include <minix/config.h>
  4687. _ACEOF
  4688. rm -f conftest.$ac_objext
  4689. if { (ac_try="$ac_compile"
  4690. case "(($ac_try" in
  4691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4692. *) ac_try_echo=$ac_try;;
  4693. esac
  4694. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4695. (eval "$ac_compile") 2>conftest.er1
  4696. ac_status=$?
  4697. grep -v '^ *+' conftest.er1 >conftest.err
  4698. rm -f conftest.er1
  4699. cat conftest.err >&5
  4700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4701. (exit $ac_status); } && {
  4702. test -z "$ac_cxx_werror_flag" ||
  4703. test ! -s conftest.err
  4704. } && test -s conftest.$ac_objext; then
  4705. ac_header_compiler=yes
  4706. else
  4707. echo "$as_me: failed program was:" >&5
  4708. sed 's/^/| /' conftest.$ac_ext >&5
  4709. ac_header_compiler=no
  4710. fi
  4711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4712. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4713. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4714. # Is the header present?
  4715. { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4716. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
  4717. cat >conftest.$ac_ext <<_ACEOF
  4718. /* confdefs.h. */
  4719. _ACEOF
  4720. cat confdefs.h >>conftest.$ac_ext
  4721. cat >>conftest.$ac_ext <<_ACEOF
  4722. /* end confdefs.h. */
  4723. #include <minix/config.h>
  4724. _ACEOF
  4725. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4726. case "(($ac_try" in
  4727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4728. *) ac_try_echo=$ac_try;;
  4729. esac
  4730. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4731. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4732. ac_status=$?
  4733. grep -v '^ *+' conftest.er1 >conftest.err
  4734. rm -f conftest.er1
  4735. cat conftest.err >&5
  4736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4737. (exit $ac_status); } >/dev/null && {
  4738. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4739. test ! -s conftest.err
  4740. }; then
  4741. ac_header_preproc=yes
  4742. else
  4743. echo "$as_me: failed program was:" >&5
  4744. sed 's/^/| /' conftest.$ac_ext >&5
  4745. ac_header_preproc=no
  4746. fi
  4747. rm -f conftest.err conftest.$ac_ext
  4748. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4749. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4750. # So? What about this header?
  4751. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4752. yes:no: )
  4753. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4754. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4755. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4756. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4757. ac_header_preproc=yes
  4758. ;;
  4759. no:yes:* )
  4760. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4761. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4762. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4763. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4764. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4765. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4766. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4767. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4768. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4769. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4770. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4771. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4772. ( cat <<\_ASBOX
  4773. ## ----------------------------------------------- ##
  4774. ## Report this to t-tujikawa@users.sourceforge.net ##
  4775. ## ----------------------------------------------- ##
  4776. _ASBOX
  4777. ) | sed "s/^/$as_me: WARNING: /" >&2
  4778. ;;
  4779. esac
  4780. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4781. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4782. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4783. echo $ECHO_N "(cached) $ECHO_C" >&6
  4784. else
  4785. ac_cv_header_minix_config_h=$ac_header_preproc
  4786. fi
  4787. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4788. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4789. fi
  4790. if test $ac_cv_header_minix_config_h = yes; then
  4791. MINIX=yes
  4792. else
  4793. MINIX=
  4794. fi
  4795. if test "$MINIX" = yes; then
  4796. cat >>confdefs.h <<\_ACEOF
  4797. #define _POSIX_SOURCE 1
  4798. _ACEOF
  4799. cat >>confdefs.h <<\_ACEOF
  4800. #define _POSIX_1_SOURCE 2
  4801. _ACEOF
  4802. cat >>confdefs.h <<\_ACEOF
  4803. #define _MINIX 1
  4804. _ACEOF
  4805. fi
  4806. { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  4807. echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
  4808. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  4809. echo $ECHO_N "(cached) $ECHO_C" >&6
  4810. else
  4811. cat >conftest.$ac_ext <<_ACEOF
  4812. /* confdefs.h. */
  4813. _ACEOF
  4814. cat confdefs.h >>conftest.$ac_ext
  4815. cat >>conftest.$ac_ext <<_ACEOF
  4816. /* end confdefs.h. */
  4817. # define __EXTENSIONS__ 1
  4818. $ac_includes_default
  4819. int
  4820. main ()
  4821. {
  4822. ;
  4823. return 0;
  4824. }
  4825. _ACEOF
  4826. rm -f conftest.$ac_objext
  4827. if { (ac_try="$ac_compile"
  4828. case "(($ac_try" in
  4829. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4830. *) ac_try_echo=$ac_try;;
  4831. esac
  4832. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4833. (eval "$ac_compile") 2>conftest.er1
  4834. ac_status=$?
  4835. grep -v '^ *+' conftest.er1 >conftest.err
  4836. rm -f conftest.er1
  4837. cat conftest.err >&5
  4838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4839. (exit $ac_status); } && {
  4840. test -z "$ac_cxx_werror_flag" ||
  4841. test ! -s conftest.err
  4842. } && test -s conftest.$ac_objext; then
  4843. ac_cv_safe_to_define___extensions__=yes
  4844. else
  4845. echo "$as_me: failed program was:" >&5
  4846. sed 's/^/| /' conftest.$ac_ext >&5
  4847. ac_cv_safe_to_define___extensions__=no
  4848. fi
  4849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4850. fi
  4851. { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  4852. echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
  4853. test $ac_cv_safe_to_define___extensions__ = yes &&
  4854. cat >>confdefs.h <<\_ACEOF
  4855. #define __EXTENSIONS__ 1
  4856. _ACEOF
  4857. cat >>confdefs.h <<\_ACEOF
  4858. #define _POSIX_PTHREAD_SEMANTICS 1
  4859. _ACEOF
  4860. cat >>confdefs.h <<\_ACEOF
  4861. #define _TANDEM_SOURCE 1
  4862. _ACEOF
  4863. # Checks for libraries.
  4864. if test "x$with_libxml2" = "xyes"; then
  4865. # Check whether --with-xml-prefix was given.
  4866. if test "${with_xml_prefix+set}" = set; then
  4867. withval=$with_xml_prefix; xml_config_prefix="$withval"
  4868. else
  4869. xml_config_prefix=""
  4870. fi
  4871. # Check whether --with-xml-exec-prefix was given.
  4872. if test "${with_xml_exec_prefix+set}" = set; then
  4873. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  4874. else
  4875. xml_config_exec_prefix=""
  4876. fi
  4877. # Check whether --enable-xmltest was given.
  4878. if test "${enable_xmltest+set}" = set; then
  4879. enableval=$enable_xmltest;
  4880. else
  4881. enable_xmltest=yes
  4882. fi
  4883. if test x$xml_config_exec_prefix != x ; then
  4884. xml_config_args="$xml_config_args"
  4885. if test x${XML2_CONFIG+set} != xset ; then
  4886. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  4887. fi
  4888. fi
  4889. if test x$xml_config_prefix != x ; then
  4890. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  4891. if test x${XML2_CONFIG+set} != xset ; then
  4892. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  4893. fi
  4894. fi
  4895. # Extract the first word of "xml2-config", so it can be a program name with args.
  4896. set dummy xml2-config; ac_word=$2
  4897. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4898. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4899. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  4900. echo $ECHO_N "(cached) $ECHO_C" >&6
  4901. else
  4902. case $XML2_CONFIG in
  4903. [\\/]* | ?:[\\/]*)
  4904. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  4905. ;;
  4906. *)
  4907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4908. for as_dir in $PATH
  4909. do
  4910. IFS=$as_save_IFS
  4911. test -z "$as_dir" && as_dir=.
  4912. for ac_exec_ext in '' $ac_executable_extensions; do
  4913. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4914. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4915. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4916. break 2
  4917. fi
  4918. done
  4919. done
  4920. IFS=$as_save_IFS
  4921. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4922. ;;
  4923. esac
  4924. fi
  4925. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4926. if test -n "$XML2_CONFIG"; then
  4927. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  4928. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  4929. else
  4930. { echo "$as_me:$LINENO: result: no" >&5
  4931. echo "${ECHO_T}no" >&6; }
  4932. fi
  4933. min_xml_version=2.6.24
  4934. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  4935. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  4936. no_xml=""
  4937. if test "$XML2_CONFIG" = "no" ; then
  4938. no_xml=yes
  4939. else
  4940. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4941. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4942. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4943. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4944. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4945. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4946. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4947. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4948. if test "x$enable_xmltest" = "xyes" ; then
  4949. ac_save_CPPFLAGS="$CPPFLAGS"
  4950. ac_save_LIBS="$LIBS"
  4951. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4952. LIBS="$XML_LIBS $LIBS"
  4953. rm -f conf.xmltest
  4954. if test "$cross_compiling" = yes; then
  4955. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4956. else
  4957. cat >conftest.$ac_ext <<_ACEOF
  4958. /* confdefs.h. */
  4959. _ACEOF
  4960. cat confdefs.h >>conftest.$ac_ext
  4961. cat >>conftest.$ac_ext <<_ACEOF
  4962. /* end confdefs.h. */
  4963. #include <stdlib.h>
  4964. #include <stdio.h>
  4965. #include <string.h>
  4966. #include <libxml/xmlversion.h>
  4967. int
  4968. main()
  4969. {
  4970. int xml_major_version, xml_minor_version, xml_micro_version;
  4971. int major, minor, micro;
  4972. char *tmp_version;
  4973. system("touch conf.xmltest");
  4974. /* Capture xml2-config output via autoconf/configure variables */
  4975. /* HP/UX 9 (%@#!) writes to sscanf strings */
  4976. tmp_version = (char *)strdup("$min_xml_version");
  4977. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  4978. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  4979. exit(1);
  4980. }
  4981. free(tmp_version);
  4982. /* Capture the version information from the header files */
  4983. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  4984. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  4985. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  4986. exit(1);
  4987. }
  4988. free(tmp_version);
  4989. /* Compare xml2-config output to the libxml headers */
  4990. if ((xml_major_version != $xml_config_major_version) ||
  4991. (xml_minor_version != $xml_config_minor_version) ||
  4992. (xml_micro_version != $xml_config_micro_version))
  4993. {
  4994. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  4995. xml_major_version, xml_minor_version, xml_micro_version);
  4996. printf("*** xml2-config (version %d.%d.%d)\n",
  4997. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  4998. return 1;
  4999. }
  5000. /* Compare the headers to the library to make sure we match */
  5001. /* Less than ideal -- doesn't provide us with return value feedback,
  5002. * only exits if there's a serious mismatch between header and library.
  5003. */
  5004. LIBXML_TEST_VERSION;
  5005. /* Test that the library is greater than our minimum version */
  5006. if ((xml_major_version > major) ||
  5007. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5008. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5009. (xml_micro_version >= micro)))
  5010. {
  5011. return 0;
  5012. }
  5013. else
  5014. {
  5015. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5016. xml_major_version, xml_minor_version, xml_micro_version);
  5017. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5018. major, minor, micro);
  5019. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5020. printf("***\n");
  5021. printf("*** If you have already installed a sufficiently new version, this error\n");
  5022. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5023. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5024. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5025. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5026. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5027. printf("*** so that the correct libraries are found at run-time))\n");
  5028. }
  5029. return 1;
  5030. }
  5031. _ACEOF
  5032. rm -f conftest$ac_exeext
  5033. if { (ac_try="$ac_link"
  5034. case "(($ac_try" in
  5035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5036. *) ac_try_echo=$ac_try;;
  5037. esac
  5038. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5039. (eval "$ac_link") 2>&5
  5040. ac_status=$?
  5041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5042. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5043. { (case "(($ac_try" in
  5044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5045. *) ac_try_echo=$ac_try;;
  5046. esac
  5047. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5048. (eval "$ac_try") 2>&5
  5049. ac_status=$?
  5050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5051. (exit $ac_status); }; }; then
  5052. :
  5053. else
  5054. echo "$as_me: program exited with status $ac_status" >&5
  5055. echo "$as_me: failed program was:" >&5
  5056. sed 's/^/| /' conftest.$ac_ext >&5
  5057. ( exit $ac_status )
  5058. no_xml=yes
  5059. fi
  5060. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5061. fi
  5062. CPPFLAGS="$ac_save_CPPFLAGS"
  5063. LIBS="$ac_save_LIBS"
  5064. fi
  5065. fi
  5066. if test "x$no_xml" = x ; then
  5067. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5068. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5069. have_libxml2=yes
  5070. else
  5071. { echo "$as_me:$LINENO: result: no" >&5
  5072. echo "${ECHO_T}no" >&6; }
  5073. if test "$XML2_CONFIG" = "no" ; then
  5074. echo "*** The xml2-config script installed by LIBXML could not be found"
  5075. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5076. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5077. echo "*** full path to xml2-config."
  5078. else
  5079. if test -f conf.xmltest ; then
  5080. :
  5081. else
  5082. echo "*** Could not run libxml test program, checking why..."
  5083. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5084. LIBS="$LIBS $XML_LIBS"
  5085. cat >conftest.$ac_ext <<_ACEOF
  5086. /* confdefs.h. */
  5087. _ACEOF
  5088. cat confdefs.h >>conftest.$ac_ext
  5089. cat >>conftest.$ac_ext <<_ACEOF
  5090. /* end confdefs.h. */
  5091. #include <libxml/xmlversion.h>
  5092. #include <stdio.h>
  5093. int
  5094. main ()
  5095. {
  5096. LIBXML_TEST_VERSION; return 0;
  5097. ;
  5098. return 0;
  5099. }
  5100. _ACEOF
  5101. rm -f conftest.$ac_objext conftest$ac_exeext
  5102. if { (ac_try="$ac_link"
  5103. case "(($ac_try" in
  5104. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5105. *) ac_try_echo=$ac_try;;
  5106. esac
  5107. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5108. (eval "$ac_link") 2>conftest.er1
  5109. ac_status=$?
  5110. grep -v '^ *+' conftest.er1 >conftest.err
  5111. rm -f conftest.er1
  5112. cat conftest.err >&5
  5113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5114. (exit $ac_status); } && {
  5115. test -z "$ac_cxx_werror_flag" ||
  5116. test ! -s conftest.err
  5117. } && test -s conftest$ac_exeext &&
  5118. $as_test_x conftest$ac_exeext; then
  5119. echo "*** The test program compiled, but did not run. This usually means"
  5120. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5121. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5122. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5123. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5124. echo "*** is required on your system"
  5125. echo "***"
  5126. echo "*** If you have an old version installed, it is best to remove it, although"
  5127. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5128. else
  5129. echo "$as_me: failed program was:" >&5
  5130. sed 's/^/| /' conftest.$ac_ext >&5
  5131. echo "*** The test program failed to compile or link. See the file config.log for the"
  5132. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5133. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5134. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5135. fi
  5136. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5137. conftest$ac_exeext conftest.$ac_ext
  5138. CPPFLAGS="$ac_save_CPPFLAGS"
  5139. LIBS="$ac_save_LIBS"
  5140. fi
  5141. fi
  5142. XML_CPPFLAGS=""
  5143. XML_LIBS=""
  5144. :
  5145. fi
  5146. rm -f conf.xmltest
  5147. if test "x$have_libxml2" = "xyes"; then
  5148. cat >>confdefs.h <<\_ACEOF
  5149. #define HAVE_LIBXML2 1
  5150. _ACEOF
  5151. fi
  5152. fi
  5153. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5154. # Check whether --with-libexpat-prefix was given.
  5155. if test "${with_libexpat_prefix+set}" = set; then
  5156. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5157. else
  5158. libexpat_prefix=""
  5159. fi
  5160. if test "x$libexpat_prefix" = "x"; then
  5161. libexpat_prefix="/usr"
  5162. fi
  5163. libexpat_prefix_lib=$libexpat_prefix/lib
  5164. libexpat_prefix_include=$libexpat_prefix/include
  5165. LIBS_save=$LIBS
  5166. CPPFLAGS_save=$CPPFLAGS
  5167. LIBS="-L$libexpat_prefix_lib $LIBS"
  5168. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5169. { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
  5170. echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
  5171. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
  5172. echo $ECHO_N "(cached) $ECHO_C" >&6
  5173. else
  5174. ac_check_lib_save_LIBS=$LIBS
  5175. LIBS="-lexpat $LIBS"
  5176. cat >conftest.$ac_ext <<_ACEOF
  5177. /* confdefs.h. */
  5178. _ACEOF
  5179. cat confdefs.h >>conftest.$ac_ext
  5180. cat >>conftest.$ac_ext <<_ACEOF
  5181. /* end confdefs.h. */
  5182. /* Override any GCC internal prototype to avoid an error.
  5183. Use char because int might match the return type of a GCC
  5184. builtin and then its argument prototype would still apply. */
  5185. #ifdef __cplusplus
  5186. extern "C"
  5187. #endif
  5188. char XML_ParserCreate ();
  5189. int
  5190. main ()
  5191. {
  5192. return XML_ParserCreate ();
  5193. ;
  5194. return 0;
  5195. }
  5196. _ACEOF
  5197. rm -f conftest.$ac_objext conftest$ac_exeext
  5198. if { (ac_try="$ac_link"
  5199. case "(($ac_try" in
  5200. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5201. *) ac_try_echo=$ac_try;;
  5202. esac
  5203. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5204. (eval "$ac_link") 2>conftest.er1
  5205. ac_status=$?
  5206. grep -v '^ *+' conftest.er1 >conftest.err
  5207. rm -f conftest.er1
  5208. cat conftest.err >&5
  5209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5210. (exit $ac_status); } && {
  5211. test -z "$ac_cxx_werror_flag" ||
  5212. test ! -s conftest.err
  5213. } && test -s conftest$ac_exeext &&
  5214. $as_test_x conftest$ac_exeext; then
  5215. ac_cv_lib_expat_XML_ParserCreate=yes
  5216. else
  5217. echo "$as_me: failed program was:" >&5
  5218. sed 's/^/| /' conftest.$ac_ext >&5
  5219. ac_cv_lib_expat_XML_ParserCreate=no
  5220. fi
  5221. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5222. conftest$ac_exeext conftest.$ac_ext
  5223. LIBS=$ac_check_lib_save_LIBS
  5224. fi
  5225. { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5226. echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5227. if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
  5228. have_libexpat=yes
  5229. fi
  5230. if test "x$have_libexpat" = "xyes"; then
  5231. cat >>confdefs.h <<\_ACEOF
  5232. #define HAVE_LIBEXPAT 1
  5233. _ACEOF
  5234. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5235. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5236. fi
  5237. LIBS=$LIBS_save
  5238. CPPFLAGS=$CPPFLAGS_save
  5239. fi
  5240. if test "x$with_gnutls" = "xyes"; then
  5241. # Check whether --with-libgnutls-prefix was given.
  5242. if test "${with_libgnutls_prefix+set}" = set; then
  5243. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5244. else
  5245. libgnutls_config_prefix=""
  5246. fi
  5247. if test x$libgnutls_config_prefix != x ; then
  5248. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5249. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5250. fi
  5251. fi
  5252. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5253. set dummy libgnutls-config; ac_word=$2
  5254. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5255. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5256. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  5257. echo $ECHO_N "(cached) $ECHO_C" >&6
  5258. else
  5259. case $LIBGNUTLS_CONFIG in
  5260. [\\/]* | ?:[\\/]*)
  5261. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5262. ;;
  5263. *)
  5264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5265. for as_dir in $PATH
  5266. do
  5267. IFS=$as_save_IFS
  5268. test -z "$as_dir" && as_dir=.
  5269. for ac_exec_ext in '' $ac_executable_extensions; do
  5270. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5271. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5272. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5273. break 2
  5274. fi
  5275. done
  5276. done
  5277. IFS=$as_save_IFS
  5278. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5279. ;;
  5280. esac
  5281. fi
  5282. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5283. if test -n "$LIBGNUTLS_CONFIG"; then
  5284. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  5285. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  5286. else
  5287. { echo "$as_me:$LINENO: result: no" >&5
  5288. echo "${ECHO_T}no" >&6; }
  5289. fi
  5290. min_libgnutls_version=1.2.9
  5291. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5292. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  5293. no_libgnutls=""
  5294. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5295. no_libgnutls=yes
  5296. else
  5297. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5298. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5299. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5300. ac_save_CFLAGS="$CFLAGS"
  5301. ac_save_LIBS="$LIBS"
  5302. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5303. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5304. rm -f conf.libgnutlstest
  5305. if test "$cross_compiling" = yes; then
  5306. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5307. else
  5308. cat >conftest.$ac_ext <<_ACEOF
  5309. /* confdefs.h. */
  5310. _ACEOF
  5311. cat confdefs.h >>conftest.$ac_ext
  5312. cat >>conftest.$ac_ext <<_ACEOF
  5313. /* end confdefs.h. */
  5314. #include <stdio.h>
  5315. #include <stdlib.h>
  5316. #include <string.h>
  5317. #include <gnutls/gnutls.h>
  5318. int
  5319. main ()
  5320. {
  5321. system ("touch conf.libgnutlstest");
  5322. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5323. {
  5324. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5325. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5326. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5327. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5328. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5329. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5330. printf("*** required on your system.\n");
  5331. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5332. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5333. printf("*** before re-running configure\n");
  5334. }
  5335. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5336. {
  5337. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5338. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5339. }
  5340. else
  5341. {
  5342. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5343. {
  5344. return 0;
  5345. }
  5346. else
  5347. {
  5348. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5349. gnutls_check_version(NULL) );
  5350. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5351. "$min_libgnutls_version" );
  5352. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5353. printf("*** \n");
  5354. printf("*** If you have already installed a sufficiently new version, this error\n");
  5355. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5356. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5357. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5358. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5359. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5360. printf("*** so that the correct libraries are found at run-time))\n");
  5361. }
  5362. }
  5363. return 1;
  5364. }
  5365. _ACEOF
  5366. rm -f conftest$ac_exeext
  5367. if { (ac_try="$ac_link"
  5368. case "(($ac_try" in
  5369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5370. *) ac_try_echo=$ac_try;;
  5371. esac
  5372. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5373. (eval "$ac_link") 2>&5
  5374. ac_status=$?
  5375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5376. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5377. { (case "(($ac_try" in
  5378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5379. *) ac_try_echo=$ac_try;;
  5380. esac
  5381. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5382. (eval "$ac_try") 2>&5
  5383. ac_status=$?
  5384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5385. (exit $ac_status); }; }; then
  5386. :
  5387. else
  5388. echo "$as_me: program exited with status $ac_status" >&5
  5389. echo "$as_me: failed program was:" >&5
  5390. sed 's/^/| /' conftest.$ac_ext >&5
  5391. ( exit $ac_status )
  5392. no_libgnutls=yes
  5393. fi
  5394. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5395. fi
  5396. CFLAGS="$ac_save_CFLAGS"
  5397. LIBS="$ac_save_LIBS"
  5398. fi
  5399. if test "x$no_libgnutls" = x ; then
  5400. { echo "$as_me:$LINENO: result: yes" >&5
  5401. echo "${ECHO_T}yes" >&6; }
  5402. have_libgnutls=yes
  5403. else
  5404. if test -f conf.libgnutlstest ; then
  5405. :
  5406. else
  5407. { echo "$as_me:$LINENO: result: no" >&5
  5408. echo "${ECHO_T}no" >&6; }
  5409. fi
  5410. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5411. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5412. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5413. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5414. echo "*** full path to libgnutls-config."
  5415. else
  5416. if test -f conf.libgnutlstest ; then
  5417. :
  5418. else
  5419. echo "*** Could not run libgnutls test program, checking why..."
  5420. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5421. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5422. cat >conftest.$ac_ext <<_ACEOF
  5423. /* confdefs.h. */
  5424. _ACEOF
  5425. cat confdefs.h >>conftest.$ac_ext
  5426. cat >>conftest.$ac_ext <<_ACEOF
  5427. /* end confdefs.h. */
  5428. #include <stdio.h>
  5429. #include <stdlib.h>
  5430. #include <string.h>
  5431. #include <gnutls/gnutls.h>
  5432. int
  5433. main ()
  5434. {
  5435. return !!gnutls_check_version(NULL);
  5436. ;
  5437. return 0;
  5438. }
  5439. _ACEOF
  5440. rm -f conftest.$ac_objext conftest$ac_exeext
  5441. if { (ac_try="$ac_link"
  5442. case "(($ac_try" in
  5443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5444. *) ac_try_echo=$ac_try;;
  5445. esac
  5446. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5447. (eval "$ac_link") 2>conftest.er1
  5448. ac_status=$?
  5449. grep -v '^ *+' conftest.er1 >conftest.err
  5450. rm -f conftest.er1
  5451. cat conftest.err >&5
  5452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5453. (exit $ac_status); } && {
  5454. test -z "$ac_cxx_werror_flag" ||
  5455. test ! -s conftest.err
  5456. } && test -s conftest$ac_exeext &&
  5457. $as_test_x conftest$ac_exeext; then
  5458. echo "*** The test program compiled, but did not run. This usually means"
  5459. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5460. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5461. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5462. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5463. echo "*** is required on your system"
  5464. echo "***"
  5465. echo "*** If you have an old version installed, it is best to remove it, although"
  5466. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5467. echo "***"
  5468. else
  5469. echo "$as_me: failed program was:" >&5
  5470. sed 's/^/| /' conftest.$ac_ext >&5
  5471. echo "*** The test program failed to compile or link. See the file config.log for the"
  5472. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5473. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5474. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5475. fi
  5476. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5477. conftest$ac_exeext conftest.$ac_ext
  5478. CFLAGS="$ac_save_CFLAGS"
  5479. LIBS="$ac_save_LIBS"
  5480. fi
  5481. fi
  5482. LIBGNUTLS_CFLAGS=""
  5483. LIBGNUTLS_LIBS=""
  5484. :
  5485. fi
  5486. rm -f conf.libgnutlstest
  5487. if test "x$have_libgnutls" = "xyes"; then
  5488. cat >>confdefs.h <<\_ACEOF
  5489. #define HAVE_LIBGNUTLS 1
  5490. _ACEOF
  5491. fi
  5492. fi
  5493. if test "x$have_libgnutls" = "xyes"; then
  5494. # Check whether --with-libgcrypt-prefix was given.
  5495. if test "${with_libgcrypt_prefix+set}" = set; then
  5496. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5497. else
  5498. libgcrypt_config_prefix=""
  5499. fi
  5500. if test x$libgcrypt_config_prefix != x ; then
  5501. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5502. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5503. fi
  5504. fi
  5505. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5506. set dummy libgcrypt-config; ac_word=$2
  5507. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5508. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5509. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  5510. echo $ECHO_N "(cached) $ECHO_C" >&6
  5511. else
  5512. case $LIBGCRYPT_CONFIG in
  5513. [\\/]* | ?:[\\/]*)
  5514. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5515. ;;
  5516. *)
  5517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5518. for as_dir in $PATH
  5519. do
  5520. IFS=$as_save_IFS
  5521. test -z "$as_dir" && as_dir=.
  5522. for ac_exec_ext in '' $ac_executable_extensions; do
  5523. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5524. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5525. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5526. break 2
  5527. fi
  5528. done
  5529. done
  5530. IFS=$as_save_IFS
  5531. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5532. ;;
  5533. esac
  5534. fi
  5535. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5536. if test -n "$LIBGCRYPT_CONFIG"; then
  5537. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  5538. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  5539. else
  5540. { echo "$as_me:$LINENO: result: no" >&5
  5541. echo "${ECHO_T}no" >&6; }
  5542. fi
  5543. tmp=1.2.2
  5544. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5545. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5546. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5547. else
  5548. req_libgcrypt_api=0
  5549. min_libgcrypt_version="$tmp"
  5550. fi
  5551. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5552. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  5553. ok=no
  5554. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5555. req_major=`echo $min_libgcrypt_version | \
  5556. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5557. req_minor=`echo $min_libgcrypt_version | \
  5558. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5559. req_micro=`echo $min_libgcrypt_version | \
  5560. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5561. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5562. major=`echo $libgcrypt_config_version | \
  5563. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  5564. minor=`echo $libgcrypt_config_version | \
  5565. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  5566. micro=`echo $libgcrypt_config_version | \
  5567. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  5568. if test "$major" -gt "$req_major"; then
  5569. ok=yes
  5570. else
  5571. if test "$major" -eq "$req_major"; then
  5572. if test "$minor" -gt "$req_minor"; then
  5573. ok=yes
  5574. else
  5575. if test "$minor" -eq "$req_minor"; then
  5576. if test "$micro" -ge "$req_micro"; then
  5577. ok=yes
  5578. fi
  5579. fi
  5580. fi
  5581. fi
  5582. fi
  5583. fi
  5584. if test $ok = yes; then
  5585. { echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
  5586. echo "${ECHO_T}yes ($libgcrypt_config_version)" >&6; }
  5587. else
  5588. { echo "$as_me:$LINENO: result: no" >&5
  5589. echo "${ECHO_T}no" >&6; }
  5590. fi
  5591. if test $ok = yes; then
  5592. # If we have a recent libgcrypt, we should also check that the
  5593. # API is compatible
  5594. if test "$req_libgcrypt_api" -gt 0 ; then
  5595. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  5596. if test "$tmp" -gt 0 ; then
  5597. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  5598. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  5599. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  5600. { echo "$as_me:$LINENO: result: okay" >&5
  5601. echo "${ECHO_T}okay" >&6; }
  5602. else
  5603. ok=no
  5604. { echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  5605. echo "${ECHO_T}does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  5606. fi
  5607. fi
  5608. fi
  5609. fi
  5610. if test $ok = yes; then
  5611. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  5612. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  5613. have_libgcrypt=yes
  5614. else
  5615. LIBGCRYPT_CFLAGS=""
  5616. LIBGCRYPT_LIBS=""
  5617. :
  5618. fi
  5619. if test "x$have_libgcrypt" = "xyes"; then
  5620. cat >>confdefs.h <<\_ACEOF
  5621. #define HAVE_LIBGCRYPT 1
  5622. _ACEOF
  5623. fi
  5624. fi
  5625. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  5626. # Check whether --with-openssl-prefix was given.
  5627. if test "${with_openssl_prefix+set}" = set; then
  5628. withval=$with_openssl_prefix; openssl_prefix=$withval
  5629. else
  5630. openssl_prefix=""
  5631. fi
  5632. if test "x$openssl_prefix" = "x"; then
  5633. openssl_prefix="/usr/local"
  5634. fi
  5635. openssl_prefix_lib=$openssl_prefix/lib
  5636. openssl_prefix_include=$openssl_prefix/include
  5637. LIBS_save=$LIBS
  5638. CPPFLAGS_save=$CPPFLAGS
  5639. LIBS="-L$openssl_prefix_lib $LIBS"
  5640. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  5641. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  5642. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  5643. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  5644. echo $ECHO_N "(cached) $ECHO_C" >&6
  5645. else
  5646. ac_check_lib_save_LIBS=$LIBS
  5647. LIBS="-lssl $LIBS"
  5648. cat >conftest.$ac_ext <<_ACEOF
  5649. /* confdefs.h. */
  5650. _ACEOF
  5651. cat confdefs.h >>conftest.$ac_ext
  5652. cat >>conftest.$ac_ext <<_ACEOF
  5653. /* end confdefs.h. */
  5654. /* Override any GCC internal prototype to avoid an error.
  5655. Use char because int might match the return type of a GCC
  5656. builtin and then its argument prototype would still apply. */
  5657. #ifdef __cplusplus
  5658. extern "C"
  5659. #endif
  5660. char SSL_library_init ();
  5661. int
  5662. main ()
  5663. {
  5664. return SSL_library_init ();
  5665. ;
  5666. return 0;
  5667. }
  5668. _ACEOF
  5669. rm -f conftest.$ac_objext conftest$ac_exeext
  5670. if { (ac_try="$ac_link"
  5671. case "(($ac_try" in
  5672. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5673. *) ac_try_echo=$ac_try;;
  5674. esac
  5675. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5676. (eval "$ac_link") 2>conftest.er1
  5677. ac_status=$?
  5678. grep -v '^ *+' conftest.er1 >conftest.err
  5679. rm -f conftest.er1
  5680. cat conftest.err >&5
  5681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5682. (exit $ac_status); } && {
  5683. test -z "$ac_cxx_werror_flag" ||
  5684. test ! -s conftest.err
  5685. } && test -s conftest$ac_exeext &&
  5686. $as_test_x conftest$ac_exeext; then
  5687. ac_cv_lib_ssl_SSL_library_init=yes
  5688. else
  5689. echo "$as_me: failed program was:" >&5
  5690. sed 's/^/| /' conftest.$ac_ext >&5
  5691. ac_cv_lib_ssl_SSL_library_init=no
  5692. fi
  5693. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5694. conftest$ac_exeext conftest.$ac_ext
  5695. LIBS=$ac_check_lib_save_LIBS
  5696. fi
  5697. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  5698. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  5699. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  5700. have_openssl=yes; LIBS="-lssl $LIBS"
  5701. fi
  5702. if test "x$have_openssl" = "xyes"; then
  5703. have_openssl=no
  5704. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  5705. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  5706. if test "${ac_cv_lib_crypto_main+set}" = set; then
  5707. echo $ECHO_N "(cached) $ECHO_C" >&6
  5708. else
  5709. ac_check_lib_save_LIBS=$LIBS
  5710. LIBS="-lcrypto $LIBS"
  5711. cat >conftest.$ac_ext <<_ACEOF
  5712. /* confdefs.h. */
  5713. _ACEOF
  5714. cat confdefs.h >>conftest.$ac_ext
  5715. cat >>conftest.$ac_ext <<_ACEOF
  5716. /* end confdefs.h. */
  5717. int
  5718. main ()
  5719. {
  5720. return main ();
  5721. ;
  5722. return 0;
  5723. }
  5724. _ACEOF
  5725. rm -f conftest.$ac_objext conftest$ac_exeext
  5726. if { (ac_try="$ac_link"
  5727. case "(($ac_try" in
  5728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5729. *) ac_try_echo=$ac_try;;
  5730. esac
  5731. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5732. (eval "$ac_link") 2>conftest.er1
  5733. ac_status=$?
  5734. grep -v '^ *+' conftest.er1 >conftest.err
  5735. rm -f conftest.er1
  5736. cat conftest.err >&5
  5737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5738. (exit $ac_status); } && {
  5739. test -z "$ac_cxx_werror_flag" ||
  5740. test ! -s conftest.err
  5741. } && test -s conftest$ac_exeext &&
  5742. $as_test_x conftest$ac_exeext; then
  5743. ac_cv_lib_crypto_main=yes
  5744. else
  5745. echo "$as_me: failed program was:" >&5
  5746. sed 's/^/| /' conftest.$ac_ext >&5
  5747. ac_cv_lib_crypto_main=no
  5748. fi
  5749. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5750. conftest$ac_exeext conftest.$ac_ext
  5751. LIBS=$ac_check_lib_save_LIBS
  5752. fi
  5753. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  5754. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  5755. if test $ac_cv_lib_crypto_main = yes; then
  5756. have_openssl=yes; LIBS="-lcrypto $LIBS"
  5757. fi
  5758. if test "x$have_openssl" = "xyes"; then
  5759. cat >>confdefs.h <<\_ACEOF
  5760. #define HAVE_LIBSSL 1
  5761. _ACEOF
  5762. for ac_func in EVP_DigestInit_ex
  5763. do
  5764. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5765. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5766. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5767. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5768. echo $ECHO_N "(cached) $ECHO_C" >&6
  5769. else
  5770. cat >conftest.$ac_ext <<_ACEOF
  5771. /* confdefs.h. */
  5772. _ACEOF
  5773. cat confdefs.h >>conftest.$ac_ext
  5774. cat >>conftest.$ac_ext <<_ACEOF
  5775. /* end confdefs.h. */
  5776. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5777. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5778. #define $ac_func innocuous_$ac_func
  5779. /* System header to define __stub macros and hopefully few prototypes,
  5780. which can conflict with char $ac_func (); below.
  5781. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5782. <limits.h> exists even on freestanding compilers. */
  5783. #ifdef __STDC__
  5784. # include <limits.h>
  5785. #else
  5786. # include <assert.h>
  5787. #endif
  5788. #undef $ac_func
  5789. /* Override any GCC internal prototype to avoid an error.
  5790. Use char because int might match the return type of a GCC
  5791. builtin and then its argument prototype would still apply. */
  5792. #ifdef __cplusplus
  5793. extern "C"
  5794. #endif
  5795. char $ac_func ();
  5796. /* The GNU C library defines this for functions which it implements
  5797. to always fail with ENOSYS. Some functions are actually named
  5798. something starting with __ and the normal name is an alias. */
  5799. #if defined __stub_$ac_func || defined __stub___$ac_func
  5800. choke me
  5801. #endif
  5802. int
  5803. main ()
  5804. {
  5805. return $ac_func ();
  5806. ;
  5807. return 0;
  5808. }
  5809. _ACEOF
  5810. rm -f conftest.$ac_objext conftest$ac_exeext
  5811. if { (ac_try="$ac_link"
  5812. case "(($ac_try" in
  5813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5814. *) ac_try_echo=$ac_try;;
  5815. esac
  5816. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5817. (eval "$ac_link") 2>conftest.er1
  5818. ac_status=$?
  5819. grep -v '^ *+' conftest.er1 >conftest.err
  5820. rm -f conftest.er1
  5821. cat conftest.err >&5
  5822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5823. (exit $ac_status); } && {
  5824. test -z "$ac_cxx_werror_flag" ||
  5825. test ! -s conftest.err
  5826. } && test -s conftest$ac_exeext &&
  5827. $as_test_x conftest$ac_exeext; then
  5828. eval "$as_ac_var=yes"
  5829. else
  5830. echo "$as_me: failed program was:" >&5
  5831. sed 's/^/| /' conftest.$ac_ext >&5
  5832. eval "$as_ac_var=no"
  5833. fi
  5834. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5835. conftest$ac_exeext conftest.$ac_ext
  5836. fi
  5837. ac_res=`eval echo '${'$as_ac_var'}'`
  5838. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5839. echo "${ECHO_T}$ac_res" >&6; }
  5840. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5841. cat >>confdefs.h <<_ACEOF
  5842. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5843. _ACEOF
  5844. have_digestinit_ex=yes
  5845. fi
  5846. done
  5847. if test "x$have_digestinit_ex" = "x"; then
  5848. cat >>confdefs.h <<\_ACEOF
  5849. #define HAVE_OLD_LIBSSL 1
  5850. _ACEOF
  5851. fi
  5852. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  5853. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  5854. for ac_func in EVP_sha256
  5855. do
  5856. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5857. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5858. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5859. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5860. echo $ECHO_N "(cached) $ECHO_C" >&6
  5861. else
  5862. cat >conftest.$ac_ext <<_ACEOF
  5863. /* confdefs.h. */
  5864. _ACEOF
  5865. cat confdefs.h >>conftest.$ac_ext
  5866. cat >>conftest.$ac_ext <<_ACEOF
  5867. /* end confdefs.h. */
  5868. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5869. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5870. #define $ac_func innocuous_$ac_func
  5871. /* System header to define __stub macros and hopefully few prototypes,
  5872. which can conflict with char $ac_func (); below.
  5873. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5874. <limits.h> exists even on freestanding compilers. */
  5875. #ifdef __STDC__
  5876. # include <limits.h>
  5877. #else
  5878. # include <assert.h>
  5879. #endif
  5880. #undef $ac_func
  5881. /* Override any GCC internal prototype to avoid an error.
  5882. Use char because int might match the return type of a GCC
  5883. builtin and then its argument prototype would still apply. */
  5884. #ifdef __cplusplus
  5885. extern "C"
  5886. #endif
  5887. char $ac_func ();
  5888. /* The GNU C library defines this for functions which it implements
  5889. to always fail with ENOSYS. Some functions are actually named
  5890. something starting with __ and the normal name is an alias. */
  5891. #if defined __stub_$ac_func || defined __stub___$ac_func
  5892. choke me
  5893. #endif
  5894. int
  5895. main ()
  5896. {
  5897. return $ac_func ();
  5898. ;
  5899. return 0;
  5900. }
  5901. _ACEOF
  5902. rm -f conftest.$ac_objext conftest$ac_exeext
  5903. if { (ac_try="$ac_link"
  5904. case "(($ac_try" in
  5905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5906. *) ac_try_echo=$ac_try;;
  5907. esac
  5908. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5909. (eval "$ac_link") 2>conftest.er1
  5910. ac_status=$?
  5911. grep -v '^ *+' conftest.er1 >conftest.err
  5912. rm -f conftest.er1
  5913. cat conftest.err >&5
  5914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5915. (exit $ac_status); } && {
  5916. test -z "$ac_cxx_werror_flag" ||
  5917. test ! -s conftest.err
  5918. } && test -s conftest$ac_exeext &&
  5919. $as_test_x conftest$ac_exeext; then
  5920. eval "$as_ac_var=yes"
  5921. else
  5922. echo "$as_me: failed program was:" >&5
  5923. sed 's/^/| /' conftest.$ac_ext >&5
  5924. eval "$as_ac_var=no"
  5925. fi
  5926. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5927. conftest$ac_exeext conftest.$ac_ext
  5928. fi
  5929. ac_res=`eval echo '${'$as_ac_var'}'`
  5930. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5931. echo "${ECHO_T}$ac_res" >&6; }
  5932. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5933. cat >>confdefs.h <<_ACEOF
  5934. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5935. _ACEOF
  5936. fi
  5937. done
  5938. fi
  5939. fi
  5940. LIBS=$LIBS_save
  5941. CPPFLAGS=$CPPFLAGS_save
  5942. fi
  5943. if test "x$with_libcares" = "xyes"; then
  5944. # Check whether --with-libcares-prefix was given.
  5945. if test "${with_libcares_prefix+set}" = set; then
  5946. withval=$with_libcares_prefix; libcares_prefix=$withval
  5947. else
  5948. libcares_prefix=""
  5949. fi
  5950. if test "x$libcares_prefix" = "x"; then
  5951. libcares_prefix="/usr"
  5952. fi
  5953. libcares_prefix_lib=$libcares_prefix/lib
  5954. libcares_prefix_include=$libcares_prefix/include
  5955. LIBS_save=$LIBS
  5956. CPPFLAGS_save=$CPPFLAGS
  5957. LIBS="-L$libcares_prefix_lib $LIBS"
  5958. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  5959. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  5960. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  5961. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  5962. echo $ECHO_N "(cached) $ECHO_C" >&6
  5963. else
  5964. ac_check_lib_save_LIBS=$LIBS
  5965. LIBS="-lcares $LIBS"
  5966. cat >conftest.$ac_ext <<_ACEOF
  5967. /* confdefs.h. */
  5968. _ACEOF
  5969. cat confdefs.h >>conftest.$ac_ext
  5970. cat >>conftest.$ac_ext <<_ACEOF
  5971. /* end confdefs.h. */
  5972. /* Override any GCC internal prototype to avoid an error.
  5973. Use char because int might match the return type of a GCC
  5974. builtin and then its argument prototype would still apply. */
  5975. #ifdef __cplusplus
  5976. extern "C"
  5977. #endif
  5978. char ares_init ();
  5979. int
  5980. main ()
  5981. {
  5982. return ares_init ();
  5983. ;
  5984. return 0;
  5985. }
  5986. _ACEOF
  5987. rm -f conftest.$ac_objext conftest$ac_exeext
  5988. if { (ac_try="$ac_link"
  5989. case "(($ac_try" in
  5990. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5991. *) ac_try_echo=$ac_try;;
  5992. esac
  5993. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5994. (eval "$ac_link") 2>conftest.er1
  5995. ac_status=$?
  5996. grep -v '^ *+' conftest.er1 >conftest.err
  5997. rm -f conftest.er1
  5998. cat conftest.err >&5
  5999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6000. (exit $ac_status); } && {
  6001. test -z "$ac_cxx_werror_flag" ||
  6002. test ! -s conftest.err
  6003. } && test -s conftest$ac_exeext &&
  6004. $as_test_x conftest$ac_exeext; then
  6005. ac_cv_lib_cares_ares_init=yes
  6006. else
  6007. echo "$as_me: failed program was:" >&5
  6008. sed 's/^/| /' conftest.$ac_ext >&5
  6009. ac_cv_lib_cares_ares_init=no
  6010. fi
  6011. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6012. conftest$ac_exeext conftest.$ac_ext
  6013. LIBS=$ac_check_lib_save_LIBS
  6014. fi
  6015. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6016. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  6017. if test $ac_cv_lib_cares_ares_init = yes; then
  6018. have_libcares=yes
  6019. fi
  6020. if test "x$have_libcares" = "xyes"; then
  6021. { echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6022. echo $ECHO_N "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... $ECHO_C" >&6; }
  6023. cat >conftest.$ac_ext <<_ACEOF
  6024. /* confdefs.h. */
  6025. _ACEOF
  6026. cat confdefs.h >>conftest.$ac_ext
  6027. cat >>conftest.$ac_ext <<_ACEOF
  6028. /* end confdefs.h. */
  6029. #include <ares.h>
  6030. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6031. int
  6032. main ()
  6033. {
  6034. ares_channel channel;
  6035. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6036. ;
  6037. return 0;
  6038. }
  6039. _ACEOF
  6040. rm -f conftest.$ac_objext
  6041. if { (ac_try="$ac_compile"
  6042. case "(($ac_try" in
  6043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6044. *) ac_try_echo=$ac_try;;
  6045. esac
  6046. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6047. (eval "$ac_compile") 2>conftest.er1
  6048. ac_status=$?
  6049. grep -v '^ *+' conftest.er1 >conftest.err
  6050. rm -f conftest.er1
  6051. cat conftest.err >&5
  6052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6053. (exit $ac_status); } && {
  6054. test -z "$ac_cxx_werror_flag" ||
  6055. test ! -s conftest.err
  6056. } && test -s conftest.$ac_objext; then
  6057. have_libcares1_5=yes
  6058. else
  6059. echo "$as_me: failed program was:" >&5
  6060. sed 's/^/| /' conftest.$ac_ext >&5
  6061. have_libcares1_5=no
  6062. fi
  6063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6064. { echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  6065. echo "${ECHO_T}$have_libcares1_5" >&6; }
  6066. if test "x$have_libcares1_5" = "xyes"; then
  6067. cat >>confdefs.h <<\_ACEOF
  6068. #define HAVE_LIBCARES1_5 1
  6069. _ACEOF
  6070. fi
  6071. cat >>confdefs.h <<\_ACEOF
  6072. #define HAVE_LIBCARES 1
  6073. _ACEOF
  6074. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6075. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6076. fi
  6077. LIBS=$LIBS_save
  6078. CPPFLAGS=$CPPFLAGS_save
  6079. fi
  6080. if test "x$have_libcares" = "x"; then
  6081. if test "x$with_libares" = "xyes"; then
  6082. # Check whether --with-libares-prefix was given.
  6083. if test "${with_libares_prefix+set}" = set; then
  6084. withval=$with_libares_prefix; libares_prefix=$withval
  6085. else
  6086. libares_prefix=""
  6087. fi
  6088. if test "x$libares_prefix" = "x"; then
  6089. libares_prefix="/usr"
  6090. fi
  6091. libares_prefix_lib=$libares_prefix/lib
  6092. libares_prefix_include=$libares_prefix/include
  6093. LIBS_save=$LIBS
  6094. CPPFLAGS_save=$CPPFLAGS
  6095. LIBS="-L$libares_prefix_lib $LIBS"
  6096. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  6097. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  6098. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  6099. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  6100. echo $ECHO_N "(cached) $ECHO_C" >&6
  6101. else
  6102. ac_check_lib_save_LIBS=$LIBS
  6103. LIBS="-lares $LIBS"
  6104. cat >conftest.$ac_ext <<_ACEOF
  6105. /* confdefs.h. */
  6106. _ACEOF
  6107. cat confdefs.h >>conftest.$ac_ext
  6108. cat >>conftest.$ac_ext <<_ACEOF
  6109. /* end confdefs.h. */
  6110. /* Override any GCC internal prototype to avoid an error.
  6111. Use char because int might match the return type of a GCC
  6112. builtin and then its argument prototype would still apply. */
  6113. #ifdef __cplusplus
  6114. extern "C"
  6115. #endif
  6116. char ares_init ();
  6117. int
  6118. main ()
  6119. {
  6120. return ares_init ();
  6121. ;
  6122. return 0;
  6123. }
  6124. _ACEOF
  6125. rm -f conftest.$ac_objext conftest$ac_exeext
  6126. if { (ac_try="$ac_link"
  6127. case "(($ac_try" in
  6128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6129. *) ac_try_echo=$ac_try;;
  6130. esac
  6131. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6132. (eval "$ac_link") 2>conftest.er1
  6133. ac_status=$?
  6134. grep -v '^ *+' conftest.er1 >conftest.err
  6135. rm -f conftest.er1
  6136. cat conftest.err >&5
  6137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6138. (exit $ac_status); } && {
  6139. test -z "$ac_cxx_werror_flag" ||
  6140. test ! -s conftest.err
  6141. } && test -s conftest$ac_exeext &&
  6142. $as_test_x conftest$ac_exeext; then
  6143. ac_cv_lib_ares_ares_init=yes
  6144. else
  6145. echo "$as_me: failed program was:" >&5
  6146. sed 's/^/| /' conftest.$ac_ext >&5
  6147. ac_cv_lib_ares_ares_init=no
  6148. fi
  6149. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6150. conftest$ac_exeext conftest.$ac_ext
  6151. LIBS=$ac_check_lib_save_LIBS
  6152. fi
  6153. { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  6154. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  6155. if test $ac_cv_lib_ares_ares_init = yes; then
  6156. have_libares=yes
  6157. fi
  6158. if test "x$have_libares" = "xyes"; then
  6159. cat >>confdefs.h <<\_ACEOF
  6160. #define HAVE_LIBARES 1
  6161. _ACEOF
  6162. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  6163. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  6164. fi
  6165. LIBS=$LIBS_save
  6166. CPPFLAGS=$CPPFLAGS_save
  6167. fi
  6168. fi
  6169. # Define variables based on the result of the checks for libraries.
  6170. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6171. cat >>confdefs.h <<\_ACEOF
  6172. #define ENABLE_SSL 1
  6173. _ACEOF
  6174. fi
  6175. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6176. cat >>confdefs.h <<\_ACEOF
  6177. #define ENABLE_MESSAGE_DIGEST 1
  6178. _ACEOF
  6179. if true; then
  6180. ENABLE_MESSAGE_DIGEST_TRUE=
  6181. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6182. else
  6183. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6184. ENABLE_MESSAGE_DIGEST_FALSE=
  6185. fi
  6186. enable_message_digest=yes
  6187. else
  6188. if false; then
  6189. ENABLE_MESSAGE_DIGEST_TRUE=
  6190. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6191. else
  6192. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6193. ENABLE_MESSAGE_DIGEST_FALSE=
  6194. fi
  6195. fi
  6196. if test "x$enable_bittorrent" = "xyes" && test "x$enable_message_digest" = "xyes"; then
  6197. cat >>confdefs.h <<\_ACEOF
  6198. #define ENABLE_BITTORRENT 1
  6199. _ACEOF
  6200. if true; then
  6201. ENABLE_BITTORRENT_TRUE=
  6202. ENABLE_BITTORRENT_FALSE='#'
  6203. else
  6204. ENABLE_BITTORRENT_TRUE='#'
  6205. ENABLE_BITTORRENT_FALSE=
  6206. fi
  6207. else
  6208. enable_bittorrent=no
  6209. if false; then
  6210. ENABLE_BITTORRENT_TRUE=
  6211. ENABLE_BITTORRENT_FALSE='#'
  6212. else
  6213. ENABLE_BITTORRENT_TRUE='#'
  6214. ENABLE_BITTORRENT_FALSE=
  6215. fi
  6216. fi
  6217. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") && test "x$enable_metalink" = "xyes"; then
  6218. cat >>confdefs.h <<\_ACEOF
  6219. #define ENABLE_METALINK 1
  6220. _ACEOF
  6221. if true; then
  6222. ENABLE_METALINK_TRUE=
  6223. ENABLE_METALINK_FALSE='#'
  6224. else
  6225. ENABLE_METALINK_TRUE='#'
  6226. ENABLE_METALINK_FALSE=
  6227. fi
  6228. else
  6229. enable_metalink=no
  6230. if false; then
  6231. ENABLE_METALINK_TRUE=
  6232. ENABLE_METALINK_FALSE='#'
  6233. else
  6234. ENABLE_METALINK_TRUE='#'
  6235. ENABLE_METALINK_FALSE=
  6236. fi
  6237. fi
  6238. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6239. ENABLE_LIBXML2_TRUE=
  6240. ENABLE_LIBXML2_FALSE='#'
  6241. else
  6242. ENABLE_LIBXML2_TRUE='#'
  6243. ENABLE_LIBXML2_FALSE=
  6244. fi
  6245. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6246. ENABLE_LIBEXPAT_TRUE=
  6247. ENABLE_LIBEXPAT_FALSE='#'
  6248. else
  6249. ENABLE_LIBEXPAT_TRUE='#'
  6250. ENABLE_LIBEXPAT_FALSE=
  6251. fi
  6252. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  6253. cat >>confdefs.h <<\_ACEOF
  6254. #define ENABLE_ASYNC_DNS 1
  6255. _ACEOF
  6256. if true; then
  6257. ENABLE_ASYNC_DNS_TRUE=
  6258. ENABLE_ASYNC_DNS_FALSE='#'
  6259. else
  6260. ENABLE_ASYNC_DNS_TRUE='#'
  6261. ENABLE_ASYNC_DNS_FALSE=
  6262. fi
  6263. else
  6264. if false; then
  6265. ENABLE_ASYNC_DNS_TRUE=
  6266. ENABLE_ASYNC_DNS_FALSE='#'
  6267. else
  6268. ENABLE_ASYNC_DNS_TRUE='#'
  6269. ENABLE_ASYNC_DNS_FALSE=
  6270. fi
  6271. fi
  6272. # Checks for header files.
  6273. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6274. # for constant arguments. Useless!
  6275. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  6276. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  6277. if test "${ac_cv_working_alloca_h+set}" = set; then
  6278. echo $ECHO_N "(cached) $ECHO_C" >&6
  6279. else
  6280. cat >conftest.$ac_ext <<_ACEOF
  6281. /* confdefs.h. */
  6282. _ACEOF
  6283. cat confdefs.h >>conftest.$ac_ext
  6284. cat >>conftest.$ac_ext <<_ACEOF
  6285. /* end confdefs.h. */
  6286. #include <alloca.h>
  6287. int
  6288. main ()
  6289. {
  6290. char *p = (char *) alloca (2 * sizeof (int));
  6291. if (p) return 0;
  6292. ;
  6293. return 0;
  6294. }
  6295. _ACEOF
  6296. rm -f conftest.$ac_objext conftest$ac_exeext
  6297. if { (ac_try="$ac_link"
  6298. case "(($ac_try" in
  6299. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6300. *) ac_try_echo=$ac_try;;
  6301. esac
  6302. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6303. (eval "$ac_link") 2>conftest.er1
  6304. ac_status=$?
  6305. grep -v '^ *+' conftest.er1 >conftest.err
  6306. rm -f conftest.er1
  6307. cat conftest.err >&5
  6308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6309. (exit $ac_status); } && {
  6310. test -z "$ac_cxx_werror_flag" ||
  6311. test ! -s conftest.err
  6312. } && test -s conftest$ac_exeext &&
  6313. $as_test_x conftest$ac_exeext; then
  6314. ac_cv_working_alloca_h=yes
  6315. else
  6316. echo "$as_me: failed program was:" >&5
  6317. sed 's/^/| /' conftest.$ac_ext >&5
  6318. ac_cv_working_alloca_h=no
  6319. fi
  6320. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6321. conftest$ac_exeext conftest.$ac_ext
  6322. fi
  6323. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6324. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  6325. if test $ac_cv_working_alloca_h = yes; then
  6326. cat >>confdefs.h <<\_ACEOF
  6327. #define HAVE_ALLOCA_H 1
  6328. _ACEOF
  6329. fi
  6330. { echo "$as_me:$LINENO: checking for alloca" >&5
  6331. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  6332. if test "${ac_cv_func_alloca_works+set}" = set; then
  6333. echo $ECHO_N "(cached) $ECHO_C" >&6
  6334. else
  6335. cat >conftest.$ac_ext <<_ACEOF
  6336. /* confdefs.h. */
  6337. _ACEOF
  6338. cat confdefs.h >>conftest.$ac_ext
  6339. cat >>conftest.$ac_ext <<_ACEOF
  6340. /* end confdefs.h. */
  6341. #ifdef __GNUC__
  6342. # define alloca __builtin_alloca
  6343. #else
  6344. # ifdef _MSC_VER
  6345. # include <malloc.h>
  6346. # define alloca _alloca
  6347. # else
  6348. # ifdef HAVE_ALLOCA_H
  6349. # include <alloca.h>
  6350. # else
  6351. # ifdef _AIX
  6352. #pragma alloca
  6353. # else
  6354. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6355. char *alloca ();
  6356. # endif
  6357. # endif
  6358. # endif
  6359. # endif
  6360. #endif
  6361. int
  6362. main ()
  6363. {
  6364. char *p = (char *) alloca (1);
  6365. if (p) return 0;
  6366. ;
  6367. return 0;
  6368. }
  6369. _ACEOF
  6370. rm -f conftest.$ac_objext conftest$ac_exeext
  6371. if { (ac_try="$ac_link"
  6372. case "(($ac_try" in
  6373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6374. *) ac_try_echo=$ac_try;;
  6375. esac
  6376. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6377. (eval "$ac_link") 2>conftest.er1
  6378. ac_status=$?
  6379. grep -v '^ *+' conftest.er1 >conftest.err
  6380. rm -f conftest.er1
  6381. cat conftest.err >&5
  6382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6383. (exit $ac_status); } && {
  6384. test -z "$ac_cxx_werror_flag" ||
  6385. test ! -s conftest.err
  6386. } && test -s conftest$ac_exeext &&
  6387. $as_test_x conftest$ac_exeext; then
  6388. ac_cv_func_alloca_works=yes
  6389. else
  6390. echo "$as_me: failed program was:" >&5
  6391. sed 's/^/| /' conftest.$ac_ext >&5
  6392. ac_cv_func_alloca_works=no
  6393. fi
  6394. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6395. conftest$ac_exeext conftest.$ac_ext
  6396. fi
  6397. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  6398. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  6399. if test $ac_cv_func_alloca_works = yes; then
  6400. cat >>confdefs.h <<\_ACEOF
  6401. #define HAVE_ALLOCA 1
  6402. _ACEOF
  6403. else
  6404. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6405. # that cause trouble. Some versions do not even contain alloca or
  6406. # contain a buggy version. If you still want to use their alloca,
  6407. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6408. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6409. cat >>confdefs.h <<\_ACEOF
  6410. #define C_ALLOCA 1
  6411. _ACEOF
  6412. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  6413. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  6414. if test "${ac_cv_os_cray+set}" = set; then
  6415. echo $ECHO_N "(cached) $ECHO_C" >&6
  6416. else
  6417. cat >conftest.$ac_ext <<_ACEOF
  6418. /* confdefs.h. */
  6419. _ACEOF
  6420. cat confdefs.h >>conftest.$ac_ext
  6421. cat >>conftest.$ac_ext <<_ACEOF
  6422. /* end confdefs.h. */
  6423. #if defined CRAY && ! defined CRAY2
  6424. webecray
  6425. #else
  6426. wenotbecray
  6427. #endif
  6428. _ACEOF
  6429. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6430. $EGREP "webecray" >/dev/null 2>&1; then
  6431. ac_cv_os_cray=yes
  6432. else
  6433. ac_cv_os_cray=no
  6434. fi
  6435. rm -f conftest*
  6436. fi
  6437. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  6438. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  6439. if test $ac_cv_os_cray = yes; then
  6440. for ac_func in _getb67 GETB67 getb67; do
  6441. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6442. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6443. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6444. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6445. echo $ECHO_N "(cached) $ECHO_C" >&6
  6446. else
  6447. cat >conftest.$ac_ext <<_ACEOF
  6448. /* confdefs.h. */
  6449. _ACEOF
  6450. cat confdefs.h >>conftest.$ac_ext
  6451. cat >>conftest.$ac_ext <<_ACEOF
  6452. /* end confdefs.h. */
  6453. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6454. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6455. #define $ac_func innocuous_$ac_func
  6456. /* System header to define __stub macros and hopefully few prototypes,
  6457. which can conflict with char $ac_func (); below.
  6458. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6459. <limits.h> exists even on freestanding compilers. */
  6460. #ifdef __STDC__
  6461. # include <limits.h>
  6462. #else
  6463. # include <assert.h>
  6464. #endif
  6465. #undef $ac_func
  6466. /* Override any GCC internal prototype to avoid an error.
  6467. Use char because int might match the return type of a GCC
  6468. builtin and then its argument prototype would still apply. */
  6469. #ifdef __cplusplus
  6470. extern "C"
  6471. #endif
  6472. char $ac_func ();
  6473. /* The GNU C library defines this for functions which it implements
  6474. to always fail with ENOSYS. Some functions are actually named
  6475. something starting with __ and the normal name is an alias. */
  6476. #if defined __stub_$ac_func || defined __stub___$ac_func
  6477. choke me
  6478. #endif
  6479. int
  6480. main ()
  6481. {
  6482. return $ac_func ();
  6483. ;
  6484. return 0;
  6485. }
  6486. _ACEOF
  6487. rm -f conftest.$ac_objext conftest$ac_exeext
  6488. if { (ac_try="$ac_link"
  6489. case "(($ac_try" in
  6490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6491. *) ac_try_echo=$ac_try;;
  6492. esac
  6493. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6494. (eval "$ac_link") 2>conftest.er1
  6495. ac_status=$?
  6496. grep -v '^ *+' conftest.er1 >conftest.err
  6497. rm -f conftest.er1
  6498. cat conftest.err >&5
  6499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6500. (exit $ac_status); } && {
  6501. test -z "$ac_cxx_werror_flag" ||
  6502. test ! -s conftest.err
  6503. } && test -s conftest$ac_exeext &&
  6504. $as_test_x conftest$ac_exeext; then
  6505. eval "$as_ac_var=yes"
  6506. else
  6507. echo "$as_me: failed program was:" >&5
  6508. sed 's/^/| /' conftest.$ac_ext >&5
  6509. eval "$as_ac_var=no"
  6510. fi
  6511. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6512. conftest$ac_exeext conftest.$ac_ext
  6513. fi
  6514. ac_res=`eval echo '${'$as_ac_var'}'`
  6515. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6516. echo "${ECHO_T}$ac_res" >&6; }
  6517. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6518. cat >>confdefs.h <<_ACEOF
  6519. #define CRAY_STACKSEG_END $ac_func
  6520. _ACEOF
  6521. break
  6522. fi
  6523. done
  6524. fi
  6525. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6526. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6527. if test "${ac_cv_c_stack_direction+set}" = set; then
  6528. echo $ECHO_N "(cached) $ECHO_C" >&6
  6529. else
  6530. if test "$cross_compiling" = yes; then
  6531. ac_cv_c_stack_direction=0
  6532. else
  6533. cat >conftest.$ac_ext <<_ACEOF
  6534. /* confdefs.h. */
  6535. _ACEOF
  6536. cat confdefs.h >>conftest.$ac_ext
  6537. cat >>conftest.$ac_ext <<_ACEOF
  6538. /* end confdefs.h. */
  6539. $ac_includes_default
  6540. int
  6541. find_stack_direction ()
  6542. {
  6543. static char *addr = 0;
  6544. auto char dummy;
  6545. if (addr == 0)
  6546. {
  6547. addr = &dummy;
  6548. return find_stack_direction ();
  6549. }
  6550. else
  6551. return (&dummy > addr) ? 1 : -1;
  6552. }
  6553. int
  6554. main ()
  6555. {
  6556. return find_stack_direction () < 0;
  6557. }
  6558. _ACEOF
  6559. rm -f conftest$ac_exeext
  6560. if { (ac_try="$ac_link"
  6561. case "(($ac_try" in
  6562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6563. *) ac_try_echo=$ac_try;;
  6564. esac
  6565. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6566. (eval "$ac_link") 2>&5
  6567. ac_status=$?
  6568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6569. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6570. { (case "(($ac_try" in
  6571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6572. *) ac_try_echo=$ac_try;;
  6573. esac
  6574. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6575. (eval "$ac_try") 2>&5
  6576. ac_status=$?
  6577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6578. (exit $ac_status); }; }; then
  6579. ac_cv_c_stack_direction=1
  6580. else
  6581. echo "$as_me: program exited with status $ac_status" >&5
  6582. echo "$as_me: failed program was:" >&5
  6583. sed 's/^/| /' conftest.$ac_ext >&5
  6584. ( exit $ac_status )
  6585. ac_cv_c_stack_direction=-1
  6586. fi
  6587. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6588. fi
  6589. fi
  6590. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6591. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  6592. cat >>confdefs.h <<_ACEOF
  6593. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6594. _ACEOF
  6595. fi
  6596. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6597. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  6598. if test "${ac_cv_header_stdc+set}" = set; then
  6599. echo $ECHO_N "(cached) $ECHO_C" >&6
  6600. else
  6601. cat >conftest.$ac_ext <<_ACEOF
  6602. /* confdefs.h. */
  6603. _ACEOF
  6604. cat confdefs.h >>conftest.$ac_ext
  6605. cat >>conftest.$ac_ext <<_ACEOF
  6606. /* end confdefs.h. */
  6607. #include <stdlib.h>
  6608. #include <stdarg.h>
  6609. #include <string.h>
  6610. #include <float.h>
  6611. int
  6612. main ()
  6613. {
  6614. ;
  6615. return 0;
  6616. }
  6617. _ACEOF
  6618. rm -f conftest.$ac_objext
  6619. if { (ac_try="$ac_compile"
  6620. case "(($ac_try" in
  6621. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6622. *) ac_try_echo=$ac_try;;
  6623. esac
  6624. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6625. (eval "$ac_compile") 2>conftest.er1
  6626. ac_status=$?
  6627. grep -v '^ *+' conftest.er1 >conftest.err
  6628. rm -f conftest.er1
  6629. cat conftest.err >&5
  6630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6631. (exit $ac_status); } && {
  6632. test -z "$ac_cxx_werror_flag" ||
  6633. test ! -s conftest.err
  6634. } && test -s conftest.$ac_objext; then
  6635. ac_cv_header_stdc=yes
  6636. else
  6637. echo "$as_me: failed program was:" >&5
  6638. sed 's/^/| /' conftest.$ac_ext >&5
  6639. ac_cv_header_stdc=no
  6640. fi
  6641. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6642. if test $ac_cv_header_stdc = yes; then
  6643. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6644. cat >conftest.$ac_ext <<_ACEOF
  6645. /* confdefs.h. */
  6646. _ACEOF
  6647. cat confdefs.h >>conftest.$ac_ext
  6648. cat >>conftest.$ac_ext <<_ACEOF
  6649. /* end confdefs.h. */
  6650. #include <string.h>
  6651. _ACEOF
  6652. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6653. $EGREP "memchr" >/dev/null 2>&1; then
  6654. :
  6655. else
  6656. ac_cv_header_stdc=no
  6657. fi
  6658. rm -f conftest*
  6659. fi
  6660. if test $ac_cv_header_stdc = yes; then
  6661. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6662. cat >conftest.$ac_ext <<_ACEOF
  6663. /* confdefs.h. */
  6664. _ACEOF
  6665. cat confdefs.h >>conftest.$ac_ext
  6666. cat >>conftest.$ac_ext <<_ACEOF
  6667. /* end confdefs.h. */
  6668. #include <stdlib.h>
  6669. _ACEOF
  6670. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6671. $EGREP "free" >/dev/null 2>&1; then
  6672. :
  6673. else
  6674. ac_cv_header_stdc=no
  6675. fi
  6676. rm -f conftest*
  6677. fi
  6678. if test $ac_cv_header_stdc = yes; then
  6679. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6680. if test "$cross_compiling" = yes; then
  6681. :
  6682. else
  6683. cat >conftest.$ac_ext <<_ACEOF
  6684. /* confdefs.h. */
  6685. _ACEOF
  6686. cat confdefs.h >>conftest.$ac_ext
  6687. cat >>conftest.$ac_ext <<_ACEOF
  6688. /* end confdefs.h. */
  6689. #include <ctype.h>
  6690. #include <stdlib.h>
  6691. #if ((' ' & 0x0FF) == 0x020)
  6692. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6693. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6694. #else
  6695. # define ISLOWER(c) \
  6696. (('a' <= (c) && (c) <= 'i') \
  6697. || ('j' <= (c) && (c) <= 'r') \
  6698. || ('s' <= (c) && (c) <= 'z'))
  6699. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6700. #endif
  6701. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6702. int
  6703. main ()
  6704. {
  6705. int i;
  6706. for (i = 0; i < 256; i++)
  6707. if (XOR (islower (i), ISLOWER (i))
  6708. || toupper (i) != TOUPPER (i))
  6709. return 2;
  6710. return 0;
  6711. }
  6712. _ACEOF
  6713. rm -f conftest$ac_exeext
  6714. if { (ac_try="$ac_link"
  6715. case "(($ac_try" in
  6716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6717. *) ac_try_echo=$ac_try;;
  6718. esac
  6719. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6720. (eval "$ac_link") 2>&5
  6721. ac_status=$?
  6722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6723. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6724. { (case "(($ac_try" in
  6725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6726. *) ac_try_echo=$ac_try;;
  6727. esac
  6728. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6729. (eval "$ac_try") 2>&5
  6730. ac_status=$?
  6731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6732. (exit $ac_status); }; }; then
  6733. :
  6734. else
  6735. echo "$as_me: program exited with status $ac_status" >&5
  6736. echo "$as_me: failed program was:" >&5
  6737. sed 's/^/| /' conftest.$ac_ext >&5
  6738. ( exit $ac_status )
  6739. ac_cv_header_stdc=no
  6740. fi
  6741. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6742. fi
  6743. fi
  6744. fi
  6745. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6746. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  6747. if test $ac_cv_header_stdc = yes; then
  6748. cat >>confdefs.h <<\_ACEOF
  6749. #define STDC_HEADERS 1
  6750. _ACEOF
  6751. fi
  6752. 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
  6753. do
  6754. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6755. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6756. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6757. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6758. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6759. echo $ECHO_N "(cached) $ECHO_C" >&6
  6760. fi
  6761. ac_res=`eval echo '${'$as_ac_Header'}'`
  6762. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6763. echo "${ECHO_T}$ac_res" >&6; }
  6764. else
  6765. # Is the header compilable?
  6766. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6767. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6768. cat >conftest.$ac_ext <<_ACEOF
  6769. /* confdefs.h. */
  6770. _ACEOF
  6771. cat confdefs.h >>conftest.$ac_ext
  6772. cat >>conftest.$ac_ext <<_ACEOF
  6773. /* end confdefs.h. */
  6774. $ac_includes_default
  6775. #include <$ac_header>
  6776. _ACEOF
  6777. rm -f conftest.$ac_objext
  6778. if { (ac_try="$ac_compile"
  6779. case "(($ac_try" in
  6780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6781. *) ac_try_echo=$ac_try;;
  6782. esac
  6783. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6784. (eval "$ac_compile") 2>conftest.er1
  6785. ac_status=$?
  6786. grep -v '^ *+' conftest.er1 >conftest.err
  6787. rm -f conftest.er1
  6788. cat conftest.err >&5
  6789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6790. (exit $ac_status); } && {
  6791. test -z "$ac_cxx_werror_flag" ||
  6792. test ! -s conftest.err
  6793. } && test -s conftest.$ac_objext; then
  6794. ac_header_compiler=yes
  6795. else
  6796. echo "$as_me: failed program was:" >&5
  6797. sed 's/^/| /' conftest.$ac_ext >&5
  6798. ac_header_compiler=no
  6799. fi
  6800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6801. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6802. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6803. # Is the header present?
  6804. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6805. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6806. cat >conftest.$ac_ext <<_ACEOF
  6807. /* confdefs.h. */
  6808. _ACEOF
  6809. cat confdefs.h >>conftest.$ac_ext
  6810. cat >>conftest.$ac_ext <<_ACEOF
  6811. /* end confdefs.h. */
  6812. #include <$ac_header>
  6813. _ACEOF
  6814. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6815. case "(($ac_try" in
  6816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6817. *) ac_try_echo=$ac_try;;
  6818. esac
  6819. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6820. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6821. ac_status=$?
  6822. grep -v '^ *+' conftest.er1 >conftest.err
  6823. rm -f conftest.er1
  6824. cat conftest.err >&5
  6825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6826. (exit $ac_status); } >/dev/null && {
  6827. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  6828. test ! -s conftest.err
  6829. }; then
  6830. ac_header_preproc=yes
  6831. else
  6832. echo "$as_me: failed program was:" >&5
  6833. sed 's/^/| /' conftest.$ac_ext >&5
  6834. ac_header_preproc=no
  6835. fi
  6836. rm -f conftest.err conftest.$ac_ext
  6837. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6838. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6839. # So? What about this header?
  6840. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  6841. yes:no: )
  6842. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6843. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6844. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6845. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6846. ac_header_preproc=yes
  6847. ;;
  6848. no:yes:* )
  6849. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6850. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6851. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6852. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6853. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6854. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6855. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6856. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6857. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6858. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6859. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6860. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6861. ( cat <<\_ASBOX
  6862. ## ----------------------------------------------- ##
  6863. ## Report this to t-tujikawa@users.sourceforge.net ##
  6864. ## ----------------------------------------------- ##
  6865. _ASBOX
  6866. ) | sed "s/^/$as_me: WARNING: /" >&2
  6867. ;;
  6868. esac
  6869. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6870. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6871. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6872. echo $ECHO_N "(cached) $ECHO_C" >&6
  6873. else
  6874. eval "$as_ac_Header=\$ac_header_preproc"
  6875. fi
  6876. ac_res=`eval echo '${'$as_ac_Header'}'`
  6877. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6878. echo "${ECHO_T}$ac_res" >&6; }
  6879. fi
  6880. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6881. cat >>confdefs.h <<_ACEOF
  6882. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6883. _ACEOF
  6884. fi
  6885. done
  6886. # Checks for typedefs, structures, and compiler characteristics.
  6887. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  6888. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  6889. if test "${ac_cv_header_stdbool_h+set}" = set; then
  6890. echo $ECHO_N "(cached) $ECHO_C" >&6
  6891. else
  6892. cat >conftest.$ac_ext <<_ACEOF
  6893. /* confdefs.h. */
  6894. _ACEOF
  6895. cat confdefs.h >>conftest.$ac_ext
  6896. cat >>conftest.$ac_ext <<_ACEOF
  6897. /* end confdefs.h. */
  6898. #include <stdbool.h>
  6899. #ifndef bool
  6900. "error: bool is not defined"
  6901. #endif
  6902. #ifndef false
  6903. "error: false is not defined"
  6904. #endif
  6905. #if false
  6906. "error: false is not 0"
  6907. #endif
  6908. #ifndef true
  6909. "error: true is not defined"
  6910. #endif
  6911. #if true != 1
  6912. "error: true is not 1"
  6913. #endif
  6914. #ifndef __bool_true_false_are_defined
  6915. "error: __bool_true_false_are_defined is not defined"
  6916. #endif
  6917. struct s { _Bool s: 1; _Bool t; } s;
  6918. char a[true == 1 ? 1 : -1];
  6919. char b[false == 0 ? 1 : -1];
  6920. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  6921. char d[(bool) 0.5 == true ? 1 : -1];
  6922. bool e = &s;
  6923. char f[(_Bool) 0.0 == false ? 1 : -1];
  6924. char g[true];
  6925. char h[sizeof (_Bool)];
  6926. char i[sizeof s.t];
  6927. enum { j = false, k = true, l = false * true, m = true * 256 };
  6928. _Bool n[m];
  6929. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  6930. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  6931. # if defined __xlc__ || defined __GNUC__
  6932. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  6933. reported by James Lemley on 2005-10-05; see
  6934. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  6935. This test is not quite right, since xlc is allowed to
  6936. reject this program, as the initializer for xlcbug is
  6937. not one of the forms that C requires support for.
  6938. However, doing the test right would require a runtime
  6939. test, and that would make cross-compilation harder.
  6940. Let us hope that IBM fixes the xlc bug, and also adds
  6941. support for this kind of constant expression. In the
  6942. meantime, this test will reject xlc, which is OK, since
  6943. our stdbool.h substitute should suffice. We also test
  6944. this with GCC, where it should work, to detect more
  6945. quickly whether someone messes up the test in the
  6946. future. */
  6947. char digs[] = "0123456789";
  6948. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  6949. # endif
  6950. /* Catch a bug in an HP-UX C compiler. See
  6951. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  6952. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  6953. */
  6954. _Bool q = true;
  6955. _Bool *pq = &q;
  6956. int
  6957. main ()
  6958. {
  6959. *pq |= q;
  6960. *pq |= ! q;
  6961. /* Refer to every declared value, to avoid compiler optimizations. */
  6962. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  6963. + !m + !n + !o + !p + !q + !pq);
  6964. ;
  6965. return 0;
  6966. }
  6967. _ACEOF
  6968. rm -f conftest.$ac_objext
  6969. if { (ac_try="$ac_compile"
  6970. case "(($ac_try" in
  6971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6972. *) ac_try_echo=$ac_try;;
  6973. esac
  6974. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6975. (eval "$ac_compile") 2>conftest.er1
  6976. ac_status=$?
  6977. grep -v '^ *+' conftest.er1 >conftest.err
  6978. rm -f conftest.er1
  6979. cat conftest.err >&5
  6980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6981. (exit $ac_status); } && {
  6982. test -z "$ac_cxx_werror_flag" ||
  6983. test ! -s conftest.err
  6984. } && test -s conftest.$ac_objext; then
  6985. ac_cv_header_stdbool_h=yes
  6986. else
  6987. echo "$as_me: failed program was:" >&5
  6988. sed 's/^/| /' conftest.$ac_ext >&5
  6989. ac_cv_header_stdbool_h=no
  6990. fi
  6991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6992. fi
  6993. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  6994. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  6995. { echo "$as_me:$LINENO: checking for _Bool" >&5
  6996. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  6997. if test "${ac_cv_type__Bool+set}" = set; then
  6998. echo $ECHO_N "(cached) $ECHO_C" >&6
  6999. else
  7000. cat >conftest.$ac_ext <<_ACEOF
  7001. /* confdefs.h. */
  7002. _ACEOF
  7003. cat confdefs.h >>conftest.$ac_ext
  7004. cat >>conftest.$ac_ext <<_ACEOF
  7005. /* end confdefs.h. */
  7006. $ac_includes_default
  7007. typedef _Bool ac__type_new_;
  7008. int
  7009. main ()
  7010. {
  7011. if ((ac__type_new_ *) 0)
  7012. return 0;
  7013. if (sizeof (ac__type_new_))
  7014. return 0;
  7015. ;
  7016. return 0;
  7017. }
  7018. _ACEOF
  7019. rm -f conftest.$ac_objext
  7020. if { (ac_try="$ac_compile"
  7021. case "(($ac_try" in
  7022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7023. *) ac_try_echo=$ac_try;;
  7024. esac
  7025. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7026. (eval "$ac_compile") 2>conftest.er1
  7027. ac_status=$?
  7028. grep -v '^ *+' conftest.er1 >conftest.err
  7029. rm -f conftest.er1
  7030. cat conftest.err >&5
  7031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7032. (exit $ac_status); } && {
  7033. test -z "$ac_cxx_werror_flag" ||
  7034. test ! -s conftest.err
  7035. } && test -s conftest.$ac_objext; then
  7036. ac_cv_type__Bool=yes
  7037. else
  7038. echo "$as_me: failed program was:" >&5
  7039. sed 's/^/| /' conftest.$ac_ext >&5
  7040. ac_cv_type__Bool=no
  7041. fi
  7042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7043. fi
  7044. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  7045. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  7046. if test $ac_cv_type__Bool = yes; then
  7047. cat >>confdefs.h <<_ACEOF
  7048. #define HAVE__BOOL 1
  7049. _ACEOF
  7050. fi
  7051. if test $ac_cv_header_stdbool_h = yes; then
  7052. cat >>confdefs.h <<\_ACEOF
  7053. #define HAVE_STDBOOL_H 1
  7054. _ACEOF
  7055. fi
  7056. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  7057. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  7058. if test "${ac_cv_c_const+set}" = set; then
  7059. echo $ECHO_N "(cached) $ECHO_C" >&6
  7060. else
  7061. cat >conftest.$ac_ext <<_ACEOF
  7062. /* confdefs.h. */
  7063. _ACEOF
  7064. cat confdefs.h >>conftest.$ac_ext
  7065. cat >>conftest.$ac_ext <<_ACEOF
  7066. /* end confdefs.h. */
  7067. int
  7068. main ()
  7069. {
  7070. /* FIXME: Include the comments suggested by Paul. */
  7071. #ifndef __cplusplus
  7072. /* Ultrix mips cc rejects this. */
  7073. typedef int charset[2];
  7074. const charset cs;
  7075. /* SunOS 4.1.1 cc rejects this. */
  7076. char const *const *pcpcc;
  7077. char **ppc;
  7078. /* NEC SVR4.0.2 mips cc rejects this. */
  7079. struct point {int x, y;};
  7080. static struct point const zero = {0,0};
  7081. /* AIX XL C 1.02.0.0 rejects this.
  7082. It does not let you subtract one const X* pointer from another in
  7083. an arm of an if-expression whose if-part is not a constant
  7084. expression */
  7085. const char *g = "string";
  7086. pcpcc = &g + (g ? g-g : 0);
  7087. /* HPUX 7.0 cc rejects these. */
  7088. ++pcpcc;
  7089. ppc = (char**) pcpcc;
  7090. pcpcc = (char const *const *) ppc;
  7091. { /* SCO 3.2v4 cc rejects this. */
  7092. char *t;
  7093. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7094. *t++ = 0;
  7095. if (s) return 0;
  7096. }
  7097. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7098. int x[] = {25, 17};
  7099. const int *foo = &x[0];
  7100. ++foo;
  7101. }
  7102. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7103. typedef const int *iptr;
  7104. iptr p = 0;
  7105. ++p;
  7106. }
  7107. { /* AIX XL C 1.02.0.0 rejects this saying
  7108. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7109. struct s { int j; const int *ap[3]; };
  7110. struct s *b; b->j = 5;
  7111. }
  7112. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7113. const int foo = 10;
  7114. if (!foo) return 0;
  7115. }
  7116. return !cs[0] && !zero.x;
  7117. #endif
  7118. ;
  7119. return 0;
  7120. }
  7121. _ACEOF
  7122. rm -f conftest.$ac_objext
  7123. if { (ac_try="$ac_compile"
  7124. case "(($ac_try" in
  7125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7126. *) ac_try_echo=$ac_try;;
  7127. esac
  7128. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7129. (eval "$ac_compile") 2>conftest.er1
  7130. ac_status=$?
  7131. grep -v '^ *+' conftest.er1 >conftest.err
  7132. rm -f conftest.er1
  7133. cat conftest.err >&5
  7134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7135. (exit $ac_status); } && {
  7136. test -z "$ac_cxx_werror_flag" ||
  7137. test ! -s conftest.err
  7138. } && test -s conftest.$ac_objext; then
  7139. ac_cv_c_const=yes
  7140. else
  7141. echo "$as_me: failed program was:" >&5
  7142. sed 's/^/| /' conftest.$ac_ext >&5
  7143. ac_cv_c_const=no
  7144. fi
  7145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7146. fi
  7147. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  7148. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  7149. if test $ac_cv_c_const = no; then
  7150. cat >>confdefs.h <<\_ACEOF
  7151. #define const
  7152. _ACEOF
  7153. fi
  7154. { echo "$as_me:$LINENO: checking for inline" >&5
  7155. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  7156. if test "${ac_cv_c_inline+set}" = set; then
  7157. echo $ECHO_N "(cached) $ECHO_C" >&6
  7158. else
  7159. ac_cv_c_inline=no
  7160. for ac_kw in inline __inline__ __inline; do
  7161. cat >conftest.$ac_ext <<_ACEOF
  7162. /* confdefs.h. */
  7163. _ACEOF
  7164. cat confdefs.h >>conftest.$ac_ext
  7165. cat >>conftest.$ac_ext <<_ACEOF
  7166. /* end confdefs.h. */
  7167. #ifndef __cplusplus
  7168. typedef int foo_t;
  7169. static $ac_kw foo_t static_foo () {return 0; }
  7170. $ac_kw foo_t foo () {return 0; }
  7171. #endif
  7172. _ACEOF
  7173. rm -f conftest.$ac_objext
  7174. if { (ac_try="$ac_compile"
  7175. case "(($ac_try" in
  7176. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7177. *) ac_try_echo=$ac_try;;
  7178. esac
  7179. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7180. (eval "$ac_compile") 2>conftest.er1
  7181. ac_status=$?
  7182. grep -v '^ *+' conftest.er1 >conftest.err
  7183. rm -f conftest.er1
  7184. cat conftest.err >&5
  7185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7186. (exit $ac_status); } && {
  7187. test -z "$ac_cxx_werror_flag" ||
  7188. test ! -s conftest.err
  7189. } && test -s conftest.$ac_objext; then
  7190. ac_cv_c_inline=$ac_kw
  7191. else
  7192. echo "$as_me: failed program was:" >&5
  7193. sed 's/^/| /' conftest.$ac_ext >&5
  7194. fi
  7195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7196. test "$ac_cv_c_inline" != no && break
  7197. done
  7198. fi
  7199. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  7200. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  7201. case $ac_cv_c_inline in
  7202. inline | yes) ;;
  7203. *)
  7204. case $ac_cv_c_inline in
  7205. no) ac_val=;;
  7206. *) ac_val=$ac_cv_c_inline;;
  7207. esac
  7208. cat >>confdefs.h <<_ACEOF
  7209. #ifndef __cplusplus
  7210. #define inline $ac_val
  7211. #endif
  7212. _ACEOF
  7213. ;;
  7214. esac
  7215. { echo "$as_me:$LINENO: checking for int16_t" >&5
  7216. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  7217. if test "${ac_cv_c_int16_t+set}" = set; then
  7218. echo $ECHO_N "(cached) $ECHO_C" >&6
  7219. else
  7220. ac_cv_c_int16_t=no
  7221. for ac_type in 'int16_t' 'int' 'long int' \
  7222. 'long long int' 'short int' 'signed char'; do
  7223. cat >conftest.$ac_ext <<_ACEOF
  7224. /* confdefs.h. */
  7225. _ACEOF
  7226. cat confdefs.h >>conftest.$ac_ext
  7227. cat >>conftest.$ac_ext <<_ACEOF
  7228. /* end confdefs.h. */
  7229. $ac_includes_default
  7230. int
  7231. main ()
  7232. {
  7233. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  7234. test_array [0] = 0
  7235. ;
  7236. return 0;
  7237. }
  7238. _ACEOF
  7239. rm -f conftest.$ac_objext
  7240. if { (ac_try="$ac_compile"
  7241. case "(($ac_try" in
  7242. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7243. *) ac_try_echo=$ac_try;;
  7244. esac
  7245. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7246. (eval "$ac_compile") 2>conftest.er1
  7247. ac_status=$?
  7248. grep -v '^ *+' conftest.er1 >conftest.err
  7249. rm -f conftest.er1
  7250. cat conftest.err >&5
  7251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7252. (exit $ac_status); } && {
  7253. test -z "$ac_cxx_werror_flag" ||
  7254. test ! -s conftest.err
  7255. } && test -s conftest.$ac_objext; then
  7256. cat >conftest.$ac_ext <<_ACEOF
  7257. /* confdefs.h. */
  7258. _ACEOF
  7259. cat confdefs.h >>conftest.$ac_ext
  7260. cat >>conftest.$ac_ext <<_ACEOF
  7261. /* end confdefs.h. */
  7262. $ac_includes_default
  7263. int
  7264. main ()
  7265. {
  7266. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  7267. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  7268. test_array [0] = 0
  7269. ;
  7270. return 0;
  7271. }
  7272. _ACEOF
  7273. rm -f conftest.$ac_objext
  7274. if { (ac_try="$ac_compile"
  7275. case "(($ac_try" in
  7276. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7277. *) ac_try_echo=$ac_try;;
  7278. esac
  7279. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7280. (eval "$ac_compile") 2>conftest.er1
  7281. ac_status=$?
  7282. grep -v '^ *+' conftest.er1 >conftest.err
  7283. rm -f conftest.er1
  7284. cat conftest.err >&5
  7285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7286. (exit $ac_status); } && {
  7287. test -z "$ac_cxx_werror_flag" ||
  7288. test ! -s conftest.err
  7289. } && test -s conftest.$ac_objext; then
  7290. :
  7291. else
  7292. echo "$as_me: failed program was:" >&5
  7293. sed 's/^/| /' conftest.$ac_ext >&5
  7294. case $ac_type in
  7295. int16_t) ac_cv_c_int16_t=yes ;;
  7296. *) ac_cv_c_int16_t=$ac_type ;;
  7297. esac
  7298. fi
  7299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7300. else
  7301. echo "$as_me: failed program was:" >&5
  7302. sed 's/^/| /' conftest.$ac_ext >&5
  7303. fi
  7304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7305. test "$ac_cv_c_int16_t" != no && break
  7306. done
  7307. fi
  7308. { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  7309. echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
  7310. case $ac_cv_c_int16_t in #(
  7311. no|yes) ;; #(
  7312. *)
  7313. cat >>confdefs.h <<_ACEOF
  7314. #define int16_t $ac_cv_c_int16_t
  7315. _ACEOF
  7316. ;;
  7317. esac
  7318. { echo "$as_me:$LINENO: checking for int32_t" >&5
  7319. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  7320. if test "${ac_cv_c_int32_t+set}" = set; then
  7321. echo $ECHO_N "(cached) $ECHO_C" >&6
  7322. else
  7323. ac_cv_c_int32_t=no
  7324. for ac_type in 'int32_t' 'int' 'long int' \
  7325. 'long long int' 'short int' 'signed char'; do
  7326. cat >conftest.$ac_ext <<_ACEOF
  7327. /* confdefs.h. */
  7328. _ACEOF
  7329. cat confdefs.h >>conftest.$ac_ext
  7330. cat >>conftest.$ac_ext <<_ACEOF
  7331. /* end confdefs.h. */
  7332. $ac_includes_default
  7333. int
  7334. main ()
  7335. {
  7336. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  7337. test_array [0] = 0
  7338. ;
  7339. return 0;
  7340. }
  7341. _ACEOF
  7342. rm -f conftest.$ac_objext
  7343. if { (ac_try="$ac_compile"
  7344. case "(($ac_try" in
  7345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7346. *) ac_try_echo=$ac_try;;
  7347. esac
  7348. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7349. (eval "$ac_compile") 2>conftest.er1
  7350. ac_status=$?
  7351. grep -v '^ *+' conftest.er1 >conftest.err
  7352. rm -f conftest.er1
  7353. cat conftest.err >&5
  7354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7355. (exit $ac_status); } && {
  7356. test -z "$ac_cxx_werror_flag" ||
  7357. test ! -s conftest.err
  7358. } && test -s conftest.$ac_objext; then
  7359. cat >conftest.$ac_ext <<_ACEOF
  7360. /* confdefs.h. */
  7361. _ACEOF
  7362. cat confdefs.h >>conftest.$ac_ext
  7363. cat >>conftest.$ac_ext <<_ACEOF
  7364. /* end confdefs.h. */
  7365. $ac_includes_default
  7366. int
  7367. main ()
  7368. {
  7369. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  7370. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  7371. test_array [0] = 0
  7372. ;
  7373. return 0;
  7374. }
  7375. _ACEOF
  7376. rm -f conftest.$ac_objext
  7377. if { (ac_try="$ac_compile"
  7378. case "(($ac_try" in
  7379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7380. *) ac_try_echo=$ac_try;;
  7381. esac
  7382. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7383. (eval "$ac_compile") 2>conftest.er1
  7384. ac_status=$?
  7385. grep -v '^ *+' conftest.er1 >conftest.err
  7386. rm -f conftest.er1
  7387. cat conftest.err >&5
  7388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7389. (exit $ac_status); } && {
  7390. test -z "$ac_cxx_werror_flag" ||
  7391. test ! -s conftest.err
  7392. } && test -s conftest.$ac_objext; then
  7393. :
  7394. else
  7395. echo "$as_me: failed program was:" >&5
  7396. sed 's/^/| /' conftest.$ac_ext >&5
  7397. case $ac_type in
  7398. int32_t) ac_cv_c_int32_t=yes ;;
  7399. *) ac_cv_c_int32_t=$ac_type ;;
  7400. esac
  7401. fi
  7402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7403. else
  7404. echo "$as_me: failed program was:" >&5
  7405. sed 's/^/| /' conftest.$ac_ext >&5
  7406. fi
  7407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7408. test "$ac_cv_c_int32_t" != no && break
  7409. done
  7410. fi
  7411. { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  7412. echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
  7413. case $ac_cv_c_int32_t in #(
  7414. no|yes) ;; #(
  7415. *)
  7416. cat >>confdefs.h <<_ACEOF
  7417. #define int32_t $ac_cv_c_int32_t
  7418. _ACEOF
  7419. ;;
  7420. esac
  7421. { echo "$as_me:$LINENO: checking for int64_t" >&5
  7422. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  7423. if test "${ac_cv_c_int64_t+set}" = set; then
  7424. echo $ECHO_N "(cached) $ECHO_C" >&6
  7425. else
  7426. ac_cv_c_int64_t=no
  7427. for ac_type in 'int64_t' 'int' 'long int' \
  7428. 'long long int' 'short int' 'signed char'; do
  7429. cat >conftest.$ac_ext <<_ACEOF
  7430. /* confdefs.h. */
  7431. _ACEOF
  7432. cat confdefs.h >>conftest.$ac_ext
  7433. cat >>conftest.$ac_ext <<_ACEOF
  7434. /* end confdefs.h. */
  7435. $ac_includes_default
  7436. int
  7437. main ()
  7438. {
  7439. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  7440. test_array [0] = 0
  7441. ;
  7442. return 0;
  7443. }
  7444. _ACEOF
  7445. rm -f conftest.$ac_objext
  7446. if { (ac_try="$ac_compile"
  7447. case "(($ac_try" in
  7448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7449. *) ac_try_echo=$ac_try;;
  7450. esac
  7451. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7452. (eval "$ac_compile") 2>conftest.er1
  7453. ac_status=$?
  7454. grep -v '^ *+' conftest.er1 >conftest.err
  7455. rm -f conftest.er1
  7456. cat conftest.err >&5
  7457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7458. (exit $ac_status); } && {
  7459. test -z "$ac_cxx_werror_flag" ||
  7460. test ! -s conftest.err
  7461. } && test -s conftest.$ac_objext; then
  7462. cat >conftest.$ac_ext <<_ACEOF
  7463. /* confdefs.h. */
  7464. _ACEOF
  7465. cat confdefs.h >>conftest.$ac_ext
  7466. cat >>conftest.$ac_ext <<_ACEOF
  7467. /* end confdefs.h. */
  7468. $ac_includes_default
  7469. int
  7470. main ()
  7471. {
  7472. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  7473. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  7474. test_array [0] = 0
  7475. ;
  7476. return 0;
  7477. }
  7478. _ACEOF
  7479. rm -f conftest.$ac_objext
  7480. if { (ac_try="$ac_compile"
  7481. case "(($ac_try" in
  7482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7483. *) ac_try_echo=$ac_try;;
  7484. esac
  7485. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7486. (eval "$ac_compile") 2>conftest.er1
  7487. ac_status=$?
  7488. grep -v '^ *+' conftest.er1 >conftest.err
  7489. rm -f conftest.er1
  7490. cat conftest.err >&5
  7491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7492. (exit $ac_status); } && {
  7493. test -z "$ac_cxx_werror_flag" ||
  7494. test ! -s conftest.err
  7495. } && test -s conftest.$ac_objext; then
  7496. :
  7497. else
  7498. echo "$as_me: failed program was:" >&5
  7499. sed 's/^/| /' conftest.$ac_ext >&5
  7500. case $ac_type in
  7501. int64_t) ac_cv_c_int64_t=yes ;;
  7502. *) ac_cv_c_int64_t=$ac_type ;;
  7503. esac
  7504. fi
  7505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7506. else
  7507. echo "$as_me: failed program was:" >&5
  7508. sed 's/^/| /' conftest.$ac_ext >&5
  7509. fi
  7510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7511. test "$ac_cv_c_int64_t" != no && break
  7512. done
  7513. fi
  7514. { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  7515. echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
  7516. case $ac_cv_c_int64_t in #(
  7517. no|yes) ;; #(
  7518. *)
  7519. cat >>confdefs.h <<_ACEOF
  7520. #define int64_t $ac_cv_c_int64_t
  7521. _ACEOF
  7522. ;;
  7523. esac
  7524. { echo "$as_me:$LINENO: checking for int8_t" >&5
  7525. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  7526. if test "${ac_cv_c_int8_t+set}" = set; then
  7527. echo $ECHO_N "(cached) $ECHO_C" >&6
  7528. else
  7529. ac_cv_c_int8_t=no
  7530. for ac_type in 'int8_t' 'int' 'long int' \
  7531. 'long long int' 'short int' 'signed char'; do
  7532. cat >conftest.$ac_ext <<_ACEOF
  7533. /* confdefs.h. */
  7534. _ACEOF
  7535. cat confdefs.h >>conftest.$ac_ext
  7536. cat >>conftest.$ac_ext <<_ACEOF
  7537. /* end confdefs.h. */
  7538. $ac_includes_default
  7539. int
  7540. main ()
  7541. {
  7542. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  7543. test_array [0] = 0
  7544. ;
  7545. return 0;
  7546. }
  7547. _ACEOF
  7548. rm -f conftest.$ac_objext
  7549. if { (ac_try="$ac_compile"
  7550. case "(($ac_try" in
  7551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7552. *) ac_try_echo=$ac_try;;
  7553. esac
  7554. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7555. (eval "$ac_compile") 2>conftest.er1
  7556. ac_status=$?
  7557. grep -v '^ *+' conftest.er1 >conftest.err
  7558. rm -f conftest.er1
  7559. cat conftest.err >&5
  7560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7561. (exit $ac_status); } && {
  7562. test -z "$ac_cxx_werror_flag" ||
  7563. test ! -s conftest.err
  7564. } && test -s conftest.$ac_objext; then
  7565. cat >conftest.$ac_ext <<_ACEOF
  7566. /* confdefs.h. */
  7567. _ACEOF
  7568. cat confdefs.h >>conftest.$ac_ext
  7569. cat >>conftest.$ac_ext <<_ACEOF
  7570. /* end confdefs.h. */
  7571. $ac_includes_default
  7572. int
  7573. main ()
  7574. {
  7575. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  7576. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  7577. test_array [0] = 0
  7578. ;
  7579. return 0;
  7580. }
  7581. _ACEOF
  7582. rm -f conftest.$ac_objext
  7583. if { (ac_try="$ac_compile"
  7584. case "(($ac_try" in
  7585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7586. *) ac_try_echo=$ac_try;;
  7587. esac
  7588. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7589. (eval "$ac_compile") 2>conftest.er1
  7590. ac_status=$?
  7591. grep -v '^ *+' conftest.er1 >conftest.err
  7592. rm -f conftest.er1
  7593. cat conftest.err >&5
  7594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7595. (exit $ac_status); } && {
  7596. test -z "$ac_cxx_werror_flag" ||
  7597. test ! -s conftest.err
  7598. } && test -s conftest.$ac_objext; then
  7599. :
  7600. else
  7601. echo "$as_me: failed program was:" >&5
  7602. sed 's/^/| /' conftest.$ac_ext >&5
  7603. case $ac_type in
  7604. int8_t) ac_cv_c_int8_t=yes ;;
  7605. *) ac_cv_c_int8_t=$ac_type ;;
  7606. esac
  7607. fi
  7608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7609. else
  7610. echo "$as_me: failed program was:" >&5
  7611. sed 's/^/| /' conftest.$ac_ext >&5
  7612. fi
  7613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7614. test "$ac_cv_c_int8_t" != no && break
  7615. done
  7616. fi
  7617. { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  7618. echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
  7619. case $ac_cv_c_int8_t in #(
  7620. no|yes) ;; #(
  7621. *)
  7622. cat >>confdefs.h <<_ACEOF
  7623. #define int8_t $ac_cv_c_int8_t
  7624. _ACEOF
  7625. ;;
  7626. esac
  7627. { echo "$as_me:$LINENO: checking for mode_t" >&5
  7628. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
  7629. if test "${ac_cv_type_mode_t+set}" = set; then
  7630. echo $ECHO_N "(cached) $ECHO_C" >&6
  7631. else
  7632. cat >conftest.$ac_ext <<_ACEOF
  7633. /* confdefs.h. */
  7634. _ACEOF
  7635. cat confdefs.h >>conftest.$ac_ext
  7636. cat >>conftest.$ac_ext <<_ACEOF
  7637. /* end confdefs.h. */
  7638. $ac_includes_default
  7639. typedef mode_t ac__type_new_;
  7640. int
  7641. main ()
  7642. {
  7643. if ((ac__type_new_ *) 0)
  7644. return 0;
  7645. if (sizeof (ac__type_new_))
  7646. return 0;
  7647. ;
  7648. return 0;
  7649. }
  7650. _ACEOF
  7651. rm -f conftest.$ac_objext
  7652. if { (ac_try="$ac_compile"
  7653. case "(($ac_try" in
  7654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7655. *) ac_try_echo=$ac_try;;
  7656. esac
  7657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7658. (eval "$ac_compile") 2>conftest.er1
  7659. ac_status=$?
  7660. grep -v '^ *+' conftest.er1 >conftest.err
  7661. rm -f conftest.er1
  7662. cat conftest.err >&5
  7663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7664. (exit $ac_status); } && {
  7665. test -z "$ac_cxx_werror_flag" ||
  7666. test ! -s conftest.err
  7667. } && test -s conftest.$ac_objext; then
  7668. ac_cv_type_mode_t=yes
  7669. else
  7670. echo "$as_me: failed program was:" >&5
  7671. sed 's/^/| /' conftest.$ac_ext >&5
  7672. ac_cv_type_mode_t=no
  7673. fi
  7674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7675. fi
  7676. { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  7677. echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
  7678. if test $ac_cv_type_mode_t = yes; then
  7679. :
  7680. else
  7681. cat >>confdefs.h <<_ACEOF
  7682. #define mode_t int
  7683. _ACEOF
  7684. fi
  7685. { echo "$as_me:$LINENO: checking for off_t" >&5
  7686. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  7687. if test "${ac_cv_type_off_t+set}" = set; then
  7688. echo $ECHO_N "(cached) $ECHO_C" >&6
  7689. else
  7690. cat >conftest.$ac_ext <<_ACEOF
  7691. /* confdefs.h. */
  7692. _ACEOF
  7693. cat confdefs.h >>conftest.$ac_ext
  7694. cat >>conftest.$ac_ext <<_ACEOF
  7695. /* end confdefs.h. */
  7696. $ac_includes_default
  7697. typedef off_t ac__type_new_;
  7698. int
  7699. main ()
  7700. {
  7701. if ((ac__type_new_ *) 0)
  7702. return 0;
  7703. if (sizeof (ac__type_new_))
  7704. return 0;
  7705. ;
  7706. return 0;
  7707. }
  7708. _ACEOF
  7709. rm -f conftest.$ac_objext
  7710. if { (ac_try="$ac_compile"
  7711. case "(($ac_try" in
  7712. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7713. *) ac_try_echo=$ac_try;;
  7714. esac
  7715. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7716. (eval "$ac_compile") 2>conftest.er1
  7717. ac_status=$?
  7718. grep -v '^ *+' conftest.er1 >conftest.err
  7719. rm -f conftest.er1
  7720. cat conftest.err >&5
  7721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7722. (exit $ac_status); } && {
  7723. test -z "$ac_cxx_werror_flag" ||
  7724. test ! -s conftest.err
  7725. } && test -s conftest.$ac_objext; then
  7726. ac_cv_type_off_t=yes
  7727. else
  7728. echo "$as_me: failed program was:" >&5
  7729. sed 's/^/| /' conftest.$ac_ext >&5
  7730. ac_cv_type_off_t=no
  7731. fi
  7732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7733. fi
  7734. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  7735. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  7736. if test $ac_cv_type_off_t = yes; then
  7737. :
  7738. else
  7739. cat >>confdefs.h <<_ACEOF
  7740. #define off_t long int
  7741. _ACEOF
  7742. fi
  7743. { echo "$as_me:$LINENO: checking for size_t" >&5
  7744. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  7745. if test "${ac_cv_type_size_t+set}" = set; then
  7746. echo $ECHO_N "(cached) $ECHO_C" >&6
  7747. else
  7748. cat >conftest.$ac_ext <<_ACEOF
  7749. /* confdefs.h. */
  7750. _ACEOF
  7751. cat confdefs.h >>conftest.$ac_ext
  7752. cat >>conftest.$ac_ext <<_ACEOF
  7753. /* end confdefs.h. */
  7754. $ac_includes_default
  7755. typedef size_t ac__type_new_;
  7756. int
  7757. main ()
  7758. {
  7759. if ((ac__type_new_ *) 0)
  7760. return 0;
  7761. if (sizeof (ac__type_new_))
  7762. return 0;
  7763. ;
  7764. return 0;
  7765. }
  7766. _ACEOF
  7767. rm -f conftest.$ac_objext
  7768. if { (ac_try="$ac_compile"
  7769. case "(($ac_try" in
  7770. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7771. *) ac_try_echo=$ac_try;;
  7772. esac
  7773. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7774. (eval "$ac_compile") 2>conftest.er1
  7775. ac_status=$?
  7776. grep -v '^ *+' conftest.er1 >conftest.err
  7777. rm -f conftest.er1
  7778. cat conftest.err >&5
  7779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7780. (exit $ac_status); } && {
  7781. test -z "$ac_cxx_werror_flag" ||
  7782. test ! -s conftest.err
  7783. } && test -s conftest.$ac_objext; then
  7784. ac_cv_type_size_t=yes
  7785. else
  7786. echo "$as_me: failed program was:" >&5
  7787. sed 's/^/| /' conftest.$ac_ext >&5
  7788. ac_cv_type_size_t=no
  7789. fi
  7790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7791. fi
  7792. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  7793. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  7794. if test $ac_cv_type_size_t = yes; then
  7795. :
  7796. else
  7797. cat >>confdefs.h <<_ACEOF
  7798. #define size_t unsigned int
  7799. _ACEOF
  7800. fi
  7801. { echo "$as_me:$LINENO: checking for ssize_t" >&5
  7802. echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
  7803. if test "${ac_cv_type_ssize_t+set}" = set; then
  7804. echo $ECHO_N "(cached) $ECHO_C" >&6
  7805. else
  7806. cat >conftest.$ac_ext <<_ACEOF
  7807. /* confdefs.h. */
  7808. _ACEOF
  7809. cat confdefs.h >>conftest.$ac_ext
  7810. cat >>conftest.$ac_ext <<_ACEOF
  7811. /* end confdefs.h. */
  7812. $ac_includes_default
  7813. typedef ssize_t ac__type_new_;
  7814. int
  7815. main ()
  7816. {
  7817. if ((ac__type_new_ *) 0)
  7818. return 0;
  7819. if (sizeof (ac__type_new_))
  7820. return 0;
  7821. ;
  7822. return 0;
  7823. }
  7824. _ACEOF
  7825. rm -f conftest.$ac_objext
  7826. if { (ac_try="$ac_compile"
  7827. case "(($ac_try" in
  7828. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7829. *) ac_try_echo=$ac_try;;
  7830. esac
  7831. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7832. (eval "$ac_compile") 2>conftest.er1
  7833. ac_status=$?
  7834. grep -v '^ *+' conftest.er1 >conftest.err
  7835. rm -f conftest.er1
  7836. cat conftest.err >&5
  7837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7838. (exit $ac_status); } && {
  7839. test -z "$ac_cxx_werror_flag" ||
  7840. test ! -s conftest.err
  7841. } && test -s conftest.$ac_objext; then
  7842. ac_cv_type_ssize_t=yes
  7843. else
  7844. echo "$as_me: failed program was:" >&5
  7845. sed 's/^/| /' conftest.$ac_ext >&5
  7846. ac_cv_type_ssize_t=no
  7847. fi
  7848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7849. fi
  7850. { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  7851. echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
  7852. if test $ac_cv_type_ssize_t = yes; then
  7853. :
  7854. else
  7855. cat >>confdefs.h <<_ACEOF
  7856. #define ssize_t int
  7857. _ACEOF
  7858. fi
  7859. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  7860. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  7861. if test "${ac_cv_header_time+set}" = set; then
  7862. echo $ECHO_N "(cached) $ECHO_C" >&6
  7863. else
  7864. cat >conftest.$ac_ext <<_ACEOF
  7865. /* confdefs.h. */
  7866. _ACEOF
  7867. cat confdefs.h >>conftest.$ac_ext
  7868. cat >>conftest.$ac_ext <<_ACEOF
  7869. /* end confdefs.h. */
  7870. #include <sys/types.h>
  7871. #include <sys/time.h>
  7872. #include <time.h>
  7873. int
  7874. main ()
  7875. {
  7876. if ((struct tm *) 0)
  7877. return 0;
  7878. ;
  7879. return 0;
  7880. }
  7881. _ACEOF
  7882. rm -f conftest.$ac_objext
  7883. if { (ac_try="$ac_compile"
  7884. case "(($ac_try" in
  7885. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7886. *) ac_try_echo=$ac_try;;
  7887. esac
  7888. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7889. (eval "$ac_compile") 2>conftest.er1
  7890. ac_status=$?
  7891. grep -v '^ *+' conftest.er1 >conftest.err
  7892. rm -f conftest.er1
  7893. cat conftest.err >&5
  7894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7895. (exit $ac_status); } && {
  7896. test -z "$ac_cxx_werror_flag" ||
  7897. test ! -s conftest.err
  7898. } && test -s conftest.$ac_objext; then
  7899. ac_cv_header_time=yes
  7900. else
  7901. echo "$as_me: failed program was:" >&5
  7902. sed 's/^/| /' conftest.$ac_ext >&5
  7903. ac_cv_header_time=no
  7904. fi
  7905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7906. fi
  7907. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  7908. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  7909. if test $ac_cv_header_time = yes; then
  7910. cat >>confdefs.h <<\_ACEOF
  7911. #define TIME_WITH_SYS_TIME 1
  7912. _ACEOF
  7913. fi
  7914. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7915. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  7916. if test "${ac_cv_struct_tm+set}" = set; then
  7917. echo $ECHO_N "(cached) $ECHO_C" >&6
  7918. else
  7919. cat >conftest.$ac_ext <<_ACEOF
  7920. /* confdefs.h. */
  7921. _ACEOF
  7922. cat confdefs.h >>conftest.$ac_ext
  7923. cat >>conftest.$ac_ext <<_ACEOF
  7924. /* end confdefs.h. */
  7925. #include <sys/types.h>
  7926. #include <time.h>
  7927. int
  7928. main ()
  7929. {
  7930. struct tm tm;
  7931. int *p = &tm.tm_sec;
  7932. return !p;
  7933. ;
  7934. return 0;
  7935. }
  7936. _ACEOF
  7937. rm -f conftest.$ac_objext
  7938. if { (ac_try="$ac_compile"
  7939. case "(($ac_try" in
  7940. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7941. *) ac_try_echo=$ac_try;;
  7942. esac
  7943. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7944. (eval "$ac_compile") 2>conftest.er1
  7945. ac_status=$?
  7946. grep -v '^ *+' conftest.er1 >conftest.err
  7947. rm -f conftest.er1
  7948. cat conftest.err >&5
  7949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7950. (exit $ac_status); } && {
  7951. test -z "$ac_cxx_werror_flag" ||
  7952. test ! -s conftest.err
  7953. } && test -s conftest.$ac_objext; then
  7954. ac_cv_struct_tm=time.h
  7955. else
  7956. echo "$as_me: failed program was:" >&5
  7957. sed 's/^/| /' conftest.$ac_ext >&5
  7958. ac_cv_struct_tm=sys/time.h
  7959. fi
  7960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7961. fi
  7962. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7963. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  7964. if test $ac_cv_struct_tm = sys/time.h; then
  7965. cat >>confdefs.h <<\_ACEOF
  7966. #define TM_IN_SYS_TIME 1
  7967. _ACEOF
  7968. fi
  7969. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  7970. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  7971. if test "${ac_cv_c_uint16_t+set}" = set; then
  7972. echo $ECHO_N "(cached) $ECHO_C" >&6
  7973. else
  7974. ac_cv_c_uint16_t=no
  7975. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  7976. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  7977. cat >conftest.$ac_ext <<_ACEOF
  7978. /* confdefs.h. */
  7979. _ACEOF
  7980. cat confdefs.h >>conftest.$ac_ext
  7981. cat >>conftest.$ac_ext <<_ACEOF
  7982. /* end confdefs.h. */
  7983. $ac_includes_default
  7984. int
  7985. main ()
  7986. {
  7987. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  7988. test_array [0] = 0
  7989. ;
  7990. return 0;
  7991. }
  7992. _ACEOF
  7993. rm -f conftest.$ac_objext
  7994. if { (ac_try="$ac_compile"
  7995. case "(($ac_try" in
  7996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7997. *) ac_try_echo=$ac_try;;
  7998. esac
  7999. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8000. (eval "$ac_compile") 2>conftest.er1
  8001. ac_status=$?
  8002. grep -v '^ *+' conftest.er1 >conftest.err
  8003. rm -f conftest.er1
  8004. cat conftest.err >&5
  8005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8006. (exit $ac_status); } && {
  8007. test -z "$ac_cxx_werror_flag" ||
  8008. test ! -s conftest.err
  8009. } && test -s conftest.$ac_objext; then
  8010. case $ac_type in
  8011. uint16_t) ac_cv_c_uint16_t=yes ;;
  8012. *) ac_cv_c_uint16_t=$ac_type ;;
  8013. esac
  8014. else
  8015. echo "$as_me: failed program was:" >&5
  8016. sed 's/^/| /' conftest.$ac_ext >&5
  8017. fi
  8018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8019. test "$ac_cv_c_uint16_t" != no && break
  8020. done
  8021. fi
  8022. { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  8023. echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
  8024. case $ac_cv_c_uint16_t in #(
  8025. no|yes) ;; #(
  8026. *)
  8027. cat >>confdefs.h <<_ACEOF
  8028. #define uint16_t $ac_cv_c_uint16_t
  8029. _ACEOF
  8030. ;;
  8031. esac
  8032. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  8033. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  8034. if test "${ac_cv_c_uint32_t+set}" = set; then
  8035. echo $ECHO_N "(cached) $ECHO_C" >&6
  8036. else
  8037. ac_cv_c_uint32_t=no
  8038. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  8039. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8040. cat >conftest.$ac_ext <<_ACEOF
  8041. /* confdefs.h. */
  8042. _ACEOF
  8043. cat confdefs.h >>conftest.$ac_ext
  8044. cat >>conftest.$ac_ext <<_ACEOF
  8045. /* end confdefs.h. */
  8046. $ac_includes_default
  8047. int
  8048. main ()
  8049. {
  8050. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  8051. test_array [0] = 0
  8052. ;
  8053. return 0;
  8054. }
  8055. _ACEOF
  8056. rm -f conftest.$ac_objext
  8057. if { (ac_try="$ac_compile"
  8058. case "(($ac_try" in
  8059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8060. *) ac_try_echo=$ac_try;;
  8061. esac
  8062. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8063. (eval "$ac_compile") 2>conftest.er1
  8064. ac_status=$?
  8065. grep -v '^ *+' conftest.er1 >conftest.err
  8066. rm -f conftest.er1
  8067. cat conftest.err >&5
  8068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8069. (exit $ac_status); } && {
  8070. test -z "$ac_cxx_werror_flag" ||
  8071. test ! -s conftest.err
  8072. } && test -s conftest.$ac_objext; then
  8073. case $ac_type in
  8074. uint32_t) ac_cv_c_uint32_t=yes ;;
  8075. *) ac_cv_c_uint32_t=$ac_type ;;
  8076. esac
  8077. else
  8078. echo "$as_me: failed program was:" >&5
  8079. sed 's/^/| /' conftest.$ac_ext >&5
  8080. fi
  8081. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8082. test "$ac_cv_c_uint32_t" != no && break
  8083. done
  8084. fi
  8085. { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  8086. echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
  8087. case $ac_cv_c_uint32_t in #(
  8088. no|yes) ;; #(
  8089. *)
  8090. cat >>confdefs.h <<\_ACEOF
  8091. #define _UINT32_T 1
  8092. _ACEOF
  8093. cat >>confdefs.h <<_ACEOF
  8094. #define uint32_t $ac_cv_c_uint32_t
  8095. _ACEOF
  8096. ;;
  8097. esac
  8098. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  8099. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  8100. if test "${ac_cv_c_uint64_t+set}" = set; then
  8101. echo $ECHO_N "(cached) $ECHO_C" >&6
  8102. else
  8103. ac_cv_c_uint64_t=no
  8104. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  8105. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8106. cat >conftest.$ac_ext <<_ACEOF
  8107. /* confdefs.h. */
  8108. _ACEOF
  8109. cat confdefs.h >>conftest.$ac_ext
  8110. cat >>conftest.$ac_ext <<_ACEOF
  8111. /* end confdefs.h. */
  8112. $ac_includes_default
  8113. int
  8114. main ()
  8115. {
  8116. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  8117. test_array [0] = 0
  8118. ;
  8119. return 0;
  8120. }
  8121. _ACEOF
  8122. rm -f conftest.$ac_objext
  8123. if { (ac_try="$ac_compile"
  8124. case "(($ac_try" in
  8125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8126. *) ac_try_echo=$ac_try;;
  8127. esac
  8128. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8129. (eval "$ac_compile") 2>conftest.er1
  8130. ac_status=$?
  8131. grep -v '^ *+' conftest.er1 >conftest.err
  8132. rm -f conftest.er1
  8133. cat conftest.err >&5
  8134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8135. (exit $ac_status); } && {
  8136. test -z "$ac_cxx_werror_flag" ||
  8137. test ! -s conftest.err
  8138. } && test -s conftest.$ac_objext; then
  8139. case $ac_type in
  8140. uint64_t) ac_cv_c_uint64_t=yes ;;
  8141. *) ac_cv_c_uint64_t=$ac_type ;;
  8142. esac
  8143. else
  8144. echo "$as_me: failed program was:" >&5
  8145. sed 's/^/| /' conftest.$ac_ext >&5
  8146. fi
  8147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8148. test "$ac_cv_c_uint64_t" != no && break
  8149. done
  8150. fi
  8151. { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  8152. echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
  8153. case $ac_cv_c_uint64_t in #(
  8154. no|yes) ;; #(
  8155. *)
  8156. cat >>confdefs.h <<\_ACEOF
  8157. #define _UINT64_T 1
  8158. _ACEOF
  8159. cat >>confdefs.h <<_ACEOF
  8160. #define uint64_t $ac_cv_c_uint64_t
  8161. _ACEOF
  8162. ;;
  8163. esac
  8164. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  8165. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  8166. if test "${ac_cv_c_uint8_t+set}" = set; then
  8167. echo $ECHO_N "(cached) $ECHO_C" >&6
  8168. else
  8169. ac_cv_c_uint8_t=no
  8170. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  8171. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8172. cat >conftest.$ac_ext <<_ACEOF
  8173. /* confdefs.h. */
  8174. _ACEOF
  8175. cat confdefs.h >>conftest.$ac_ext
  8176. cat >>conftest.$ac_ext <<_ACEOF
  8177. /* end confdefs.h. */
  8178. $ac_includes_default
  8179. int
  8180. main ()
  8181. {
  8182. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  8183. test_array [0] = 0
  8184. ;
  8185. return 0;
  8186. }
  8187. _ACEOF
  8188. rm -f conftest.$ac_objext
  8189. if { (ac_try="$ac_compile"
  8190. case "(($ac_try" in
  8191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8192. *) ac_try_echo=$ac_try;;
  8193. esac
  8194. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8195. (eval "$ac_compile") 2>conftest.er1
  8196. ac_status=$?
  8197. grep -v '^ *+' conftest.er1 >conftest.err
  8198. rm -f conftest.er1
  8199. cat conftest.err >&5
  8200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8201. (exit $ac_status); } && {
  8202. test -z "$ac_cxx_werror_flag" ||
  8203. test ! -s conftest.err
  8204. } && test -s conftest.$ac_objext; then
  8205. case $ac_type in
  8206. uint8_t) ac_cv_c_uint8_t=yes ;;
  8207. *) ac_cv_c_uint8_t=$ac_type ;;
  8208. esac
  8209. else
  8210. echo "$as_me: failed program was:" >&5
  8211. sed 's/^/| /' conftest.$ac_ext >&5
  8212. fi
  8213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8214. test "$ac_cv_c_uint8_t" != no && break
  8215. done
  8216. fi
  8217. { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  8218. echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
  8219. case $ac_cv_c_uint8_t in #(
  8220. no|yes) ;; #(
  8221. *)
  8222. cat >>confdefs.h <<\_ACEOF
  8223. #define _UINT8_T 1
  8224. _ACEOF
  8225. cat >>confdefs.h <<_ACEOF
  8226. #define uint8_t $ac_cv_c_uint8_t
  8227. _ACEOF
  8228. ;;
  8229. esac
  8230. { echo "$as_me:$LINENO: checking for working volatile" >&5
  8231. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  8232. if test "${ac_cv_c_volatile+set}" = set; then
  8233. echo $ECHO_N "(cached) $ECHO_C" >&6
  8234. else
  8235. cat >conftest.$ac_ext <<_ACEOF
  8236. /* confdefs.h. */
  8237. _ACEOF
  8238. cat confdefs.h >>conftest.$ac_ext
  8239. cat >>conftest.$ac_ext <<_ACEOF
  8240. /* end confdefs.h. */
  8241. int
  8242. main ()
  8243. {
  8244. volatile int x;
  8245. int * volatile y = (int *) 0;
  8246. return !x && !y;
  8247. ;
  8248. return 0;
  8249. }
  8250. _ACEOF
  8251. rm -f conftest.$ac_objext
  8252. if { (ac_try="$ac_compile"
  8253. case "(($ac_try" in
  8254. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8255. *) ac_try_echo=$ac_try;;
  8256. esac
  8257. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8258. (eval "$ac_compile") 2>conftest.er1
  8259. ac_status=$?
  8260. grep -v '^ *+' conftest.er1 >conftest.err
  8261. rm -f conftest.er1
  8262. cat conftest.err >&5
  8263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8264. (exit $ac_status); } && {
  8265. test -z "$ac_cxx_werror_flag" ||
  8266. test ! -s conftest.err
  8267. } && test -s conftest.$ac_objext; then
  8268. ac_cv_c_volatile=yes
  8269. else
  8270. echo "$as_me: failed program was:" >&5
  8271. sed 's/^/| /' conftest.$ac_ext >&5
  8272. ac_cv_c_volatile=no
  8273. fi
  8274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8275. fi
  8276. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  8277. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  8278. if test $ac_cv_c_volatile = no; then
  8279. cat >>confdefs.h <<\_ACEOF
  8280. #define volatile
  8281. _ACEOF
  8282. fi
  8283. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  8284. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  8285. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  8286. echo $ECHO_N "(cached) $ECHO_C" >&6
  8287. else
  8288. cat >conftest.$ac_ext <<_ACEOF
  8289. /* confdefs.h. */
  8290. _ACEOF
  8291. cat confdefs.h >>conftest.$ac_ext
  8292. cat >>conftest.$ac_ext <<_ACEOF
  8293. /* end confdefs.h. */
  8294. $ac_includes_default
  8295. typedef ptrdiff_t ac__type_new_;
  8296. int
  8297. main ()
  8298. {
  8299. if ((ac__type_new_ *) 0)
  8300. return 0;
  8301. if (sizeof (ac__type_new_))
  8302. return 0;
  8303. ;
  8304. return 0;
  8305. }
  8306. _ACEOF
  8307. rm -f conftest.$ac_objext
  8308. if { (ac_try="$ac_compile"
  8309. case "(($ac_try" in
  8310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8311. *) ac_try_echo=$ac_try;;
  8312. esac
  8313. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8314. (eval "$ac_compile") 2>conftest.er1
  8315. ac_status=$?
  8316. grep -v '^ *+' conftest.er1 >conftest.err
  8317. rm -f conftest.er1
  8318. cat conftest.err >&5
  8319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8320. (exit $ac_status); } && {
  8321. test -z "$ac_cxx_werror_flag" ||
  8322. test ! -s conftest.err
  8323. } && test -s conftest.$ac_objext; then
  8324. ac_cv_type_ptrdiff_t=yes
  8325. else
  8326. echo "$as_me: failed program was:" >&5
  8327. sed 's/^/| /' conftest.$ac_ext >&5
  8328. ac_cv_type_ptrdiff_t=no
  8329. fi
  8330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8331. fi
  8332. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  8333. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  8334. if test $ac_cv_type_ptrdiff_t = yes; then
  8335. cat >>confdefs.h <<_ACEOF
  8336. #define HAVE_PTRDIFF_T 1
  8337. _ACEOF
  8338. fi
  8339. # Check whether --enable-largefile was given.
  8340. if test "${enable_largefile+set}" = set; then
  8341. enableval=$enable_largefile;
  8342. fi
  8343. if test "$enable_largefile" != no; then
  8344. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  8345. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  8346. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  8347. echo $ECHO_N "(cached) $ECHO_C" >&6
  8348. else
  8349. ac_cv_sys_largefile_CC=no
  8350. if test "$GCC" != yes; then
  8351. ac_save_CC=$CC
  8352. while :; do
  8353. # IRIX 6.2 and later do not support large files by default,
  8354. # so use the C compiler's -n32 option if that helps.
  8355. cat >conftest.$ac_ext <<_ACEOF
  8356. /* confdefs.h. */
  8357. _ACEOF
  8358. cat confdefs.h >>conftest.$ac_ext
  8359. cat >>conftest.$ac_ext <<_ACEOF
  8360. /* end confdefs.h. */
  8361. #include <sys/types.h>
  8362. /* Check that off_t can represent 2**63 - 1 correctly.
  8363. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8364. since some C++ compilers masquerading as C compilers
  8365. incorrectly reject 9223372036854775807. */
  8366. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8367. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8368. && LARGE_OFF_T % 2147483647 == 1)
  8369. ? 1 : -1];
  8370. int
  8371. main ()
  8372. {
  8373. ;
  8374. return 0;
  8375. }
  8376. _ACEOF
  8377. rm -f conftest.$ac_objext
  8378. if { (ac_try="$ac_compile"
  8379. case "(($ac_try" in
  8380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8381. *) ac_try_echo=$ac_try;;
  8382. esac
  8383. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8384. (eval "$ac_compile") 2>conftest.er1
  8385. ac_status=$?
  8386. grep -v '^ *+' conftest.er1 >conftest.err
  8387. rm -f conftest.er1
  8388. cat conftest.err >&5
  8389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8390. (exit $ac_status); } && {
  8391. test -z "$ac_cxx_werror_flag" ||
  8392. test ! -s conftest.err
  8393. } && test -s conftest.$ac_objext; then
  8394. break
  8395. else
  8396. echo "$as_me: failed program was:" >&5
  8397. sed 's/^/| /' conftest.$ac_ext >&5
  8398. fi
  8399. rm -f core conftest.err conftest.$ac_objext
  8400. CC="$CC -n32"
  8401. rm -f conftest.$ac_objext
  8402. if { (ac_try="$ac_compile"
  8403. case "(($ac_try" in
  8404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8405. *) ac_try_echo=$ac_try;;
  8406. esac
  8407. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8408. (eval "$ac_compile") 2>conftest.er1
  8409. ac_status=$?
  8410. grep -v '^ *+' conftest.er1 >conftest.err
  8411. rm -f conftest.er1
  8412. cat conftest.err >&5
  8413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8414. (exit $ac_status); } && {
  8415. test -z "$ac_cxx_werror_flag" ||
  8416. test ! -s conftest.err
  8417. } && test -s conftest.$ac_objext; then
  8418. ac_cv_sys_largefile_CC=' -n32'; break
  8419. else
  8420. echo "$as_me: failed program was:" >&5
  8421. sed 's/^/| /' conftest.$ac_ext >&5
  8422. fi
  8423. rm -f core conftest.err conftest.$ac_objext
  8424. break
  8425. done
  8426. CC=$ac_save_CC
  8427. rm -f conftest.$ac_ext
  8428. fi
  8429. fi
  8430. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  8431. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  8432. if test "$ac_cv_sys_largefile_CC" != no; then
  8433. CC=$CC$ac_cv_sys_largefile_CC
  8434. fi
  8435. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  8436. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  8437. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  8438. echo $ECHO_N "(cached) $ECHO_C" >&6
  8439. else
  8440. while :; do
  8441. cat >conftest.$ac_ext <<_ACEOF
  8442. /* confdefs.h. */
  8443. _ACEOF
  8444. cat confdefs.h >>conftest.$ac_ext
  8445. cat >>conftest.$ac_ext <<_ACEOF
  8446. /* end confdefs.h. */
  8447. #include <sys/types.h>
  8448. /* Check that off_t can represent 2**63 - 1 correctly.
  8449. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8450. since some C++ compilers masquerading as C compilers
  8451. incorrectly reject 9223372036854775807. */
  8452. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8453. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8454. && LARGE_OFF_T % 2147483647 == 1)
  8455. ? 1 : -1];
  8456. int
  8457. main ()
  8458. {
  8459. ;
  8460. return 0;
  8461. }
  8462. _ACEOF
  8463. rm -f conftest.$ac_objext
  8464. if { (ac_try="$ac_compile"
  8465. case "(($ac_try" in
  8466. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8467. *) ac_try_echo=$ac_try;;
  8468. esac
  8469. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8470. (eval "$ac_compile") 2>conftest.er1
  8471. ac_status=$?
  8472. grep -v '^ *+' conftest.er1 >conftest.err
  8473. rm -f conftest.er1
  8474. cat conftest.err >&5
  8475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8476. (exit $ac_status); } && {
  8477. test -z "$ac_cxx_werror_flag" ||
  8478. test ! -s conftest.err
  8479. } && test -s conftest.$ac_objext; then
  8480. ac_cv_sys_file_offset_bits=no; break
  8481. else
  8482. echo "$as_me: failed program was:" >&5
  8483. sed 's/^/| /' conftest.$ac_ext >&5
  8484. fi
  8485. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8486. cat >conftest.$ac_ext <<_ACEOF
  8487. /* confdefs.h. */
  8488. _ACEOF
  8489. cat confdefs.h >>conftest.$ac_ext
  8490. cat >>conftest.$ac_ext <<_ACEOF
  8491. /* end confdefs.h. */
  8492. #define _FILE_OFFSET_BITS 64
  8493. #include <sys/types.h>
  8494. /* Check that off_t can represent 2**63 - 1 correctly.
  8495. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8496. since some C++ compilers masquerading as C compilers
  8497. incorrectly reject 9223372036854775807. */
  8498. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8499. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8500. && LARGE_OFF_T % 2147483647 == 1)
  8501. ? 1 : -1];
  8502. int
  8503. main ()
  8504. {
  8505. ;
  8506. return 0;
  8507. }
  8508. _ACEOF
  8509. rm -f conftest.$ac_objext
  8510. if { (ac_try="$ac_compile"
  8511. case "(($ac_try" in
  8512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8513. *) ac_try_echo=$ac_try;;
  8514. esac
  8515. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8516. (eval "$ac_compile") 2>conftest.er1
  8517. ac_status=$?
  8518. grep -v '^ *+' conftest.er1 >conftest.err
  8519. rm -f conftest.er1
  8520. cat conftest.err >&5
  8521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8522. (exit $ac_status); } && {
  8523. test -z "$ac_cxx_werror_flag" ||
  8524. test ! -s conftest.err
  8525. } && test -s conftest.$ac_objext; then
  8526. ac_cv_sys_file_offset_bits=64; break
  8527. else
  8528. echo "$as_me: failed program was:" >&5
  8529. sed 's/^/| /' conftest.$ac_ext >&5
  8530. fi
  8531. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8532. ac_cv_sys_file_offset_bits=unknown
  8533. break
  8534. done
  8535. fi
  8536. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  8537. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  8538. case $ac_cv_sys_file_offset_bits in #(
  8539. no | unknown) ;;
  8540. *)
  8541. cat >>confdefs.h <<_ACEOF
  8542. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  8543. _ACEOF
  8544. ;;
  8545. esac
  8546. rm -f conftest*
  8547. if test $ac_cv_sys_file_offset_bits = unknown; then
  8548. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  8549. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  8550. if test "${ac_cv_sys_large_files+set}" = set; then
  8551. echo $ECHO_N "(cached) $ECHO_C" >&6
  8552. else
  8553. while :; do
  8554. cat >conftest.$ac_ext <<_ACEOF
  8555. /* confdefs.h. */
  8556. _ACEOF
  8557. cat confdefs.h >>conftest.$ac_ext
  8558. cat >>conftest.$ac_ext <<_ACEOF
  8559. /* end confdefs.h. */
  8560. #include <sys/types.h>
  8561. /* Check that off_t can represent 2**63 - 1 correctly.
  8562. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8563. since some C++ compilers masquerading as C compilers
  8564. incorrectly reject 9223372036854775807. */
  8565. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8566. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8567. && LARGE_OFF_T % 2147483647 == 1)
  8568. ? 1 : -1];
  8569. int
  8570. main ()
  8571. {
  8572. ;
  8573. return 0;
  8574. }
  8575. _ACEOF
  8576. rm -f conftest.$ac_objext
  8577. if { (ac_try="$ac_compile"
  8578. case "(($ac_try" in
  8579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8580. *) ac_try_echo=$ac_try;;
  8581. esac
  8582. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8583. (eval "$ac_compile") 2>conftest.er1
  8584. ac_status=$?
  8585. grep -v '^ *+' conftest.er1 >conftest.err
  8586. rm -f conftest.er1
  8587. cat conftest.err >&5
  8588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8589. (exit $ac_status); } && {
  8590. test -z "$ac_cxx_werror_flag" ||
  8591. test ! -s conftest.err
  8592. } && test -s conftest.$ac_objext; then
  8593. ac_cv_sys_large_files=no; break
  8594. else
  8595. echo "$as_me: failed program was:" >&5
  8596. sed 's/^/| /' conftest.$ac_ext >&5
  8597. fi
  8598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8599. cat >conftest.$ac_ext <<_ACEOF
  8600. /* confdefs.h. */
  8601. _ACEOF
  8602. cat confdefs.h >>conftest.$ac_ext
  8603. cat >>conftest.$ac_ext <<_ACEOF
  8604. /* end confdefs.h. */
  8605. #define _LARGE_FILES 1
  8606. #include <sys/types.h>
  8607. /* Check that off_t can represent 2**63 - 1 correctly.
  8608. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8609. since some C++ compilers masquerading as C compilers
  8610. incorrectly reject 9223372036854775807. */
  8611. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8612. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8613. && LARGE_OFF_T % 2147483647 == 1)
  8614. ? 1 : -1];
  8615. int
  8616. main ()
  8617. {
  8618. ;
  8619. return 0;
  8620. }
  8621. _ACEOF
  8622. rm -f conftest.$ac_objext
  8623. if { (ac_try="$ac_compile"
  8624. case "(($ac_try" in
  8625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8626. *) ac_try_echo=$ac_try;;
  8627. esac
  8628. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8629. (eval "$ac_compile") 2>conftest.er1
  8630. ac_status=$?
  8631. grep -v '^ *+' conftest.er1 >conftest.err
  8632. rm -f conftest.er1
  8633. cat conftest.err >&5
  8634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8635. (exit $ac_status); } && {
  8636. test -z "$ac_cxx_werror_flag" ||
  8637. test ! -s conftest.err
  8638. } && test -s conftest.$ac_objext; then
  8639. ac_cv_sys_large_files=1; break
  8640. else
  8641. echo "$as_me: failed program was:" >&5
  8642. sed 's/^/| /' conftest.$ac_ext >&5
  8643. fi
  8644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8645. ac_cv_sys_large_files=unknown
  8646. break
  8647. done
  8648. fi
  8649. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  8650. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  8651. case $ac_cv_sys_large_files in #(
  8652. no | unknown) ;;
  8653. *)
  8654. cat >>confdefs.h <<_ACEOF
  8655. #define _LARGE_FILES $ac_cv_sys_large_files
  8656. _ACEOF
  8657. ;;
  8658. esac
  8659. rm -f conftest*
  8660. fi
  8661. fi
  8662. # Checks for library functions.
  8663. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  8664. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  8665. # Check whether --enable-nls was given.
  8666. if test "${enable_nls+set}" = set; then
  8667. enableval=$enable_nls; USE_NLS=$enableval
  8668. else
  8669. USE_NLS=yes
  8670. fi
  8671. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8672. echo "${ECHO_T}$USE_NLS" >&6; }
  8673. GETTEXT_MACRO_VERSION=0.17
  8674. # Prepare PATH_SEPARATOR.
  8675. # The user is always right.
  8676. if test "${PATH_SEPARATOR+set}" != set; then
  8677. echo "#! /bin/sh" >conf$$.sh
  8678. echo "exit 0" >>conf$$.sh
  8679. chmod +x conf$$.sh
  8680. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8681. PATH_SEPARATOR=';'
  8682. else
  8683. PATH_SEPARATOR=:
  8684. fi
  8685. rm -f conf$$.sh
  8686. fi
  8687. # Find out how to test for executable files. Don't use a zero-byte file,
  8688. # as systems may use methods other than mode bits to determine executability.
  8689. cat >conf$$.file <<_ASEOF
  8690. #! /bin/sh
  8691. exit 0
  8692. _ASEOF
  8693. chmod +x conf$$.file
  8694. if test -x conf$$.file >/dev/null 2>&1; then
  8695. ac_executable_p="test -x"
  8696. else
  8697. ac_executable_p="test -f"
  8698. fi
  8699. rm -f conf$$.file
  8700. # Extract the first word of "msgfmt", so it can be a program name with args.
  8701. set dummy msgfmt; ac_word=$2
  8702. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8703. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8704. if test "${ac_cv_path_MSGFMT+set}" = set; then
  8705. echo $ECHO_N "(cached) $ECHO_C" >&6
  8706. else
  8707. case "$MSGFMT" in
  8708. [\\/]* | ?:[\\/]*)
  8709. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  8710. ;;
  8711. *)
  8712. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8713. for ac_dir in $PATH; do
  8714. IFS="$ac_save_IFS"
  8715. test -z "$ac_dir" && ac_dir=.
  8716. for ac_exec_ext in '' $ac_executable_extensions; do
  8717. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8718. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8719. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  8720. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  8721. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  8722. break 2
  8723. fi
  8724. fi
  8725. done
  8726. done
  8727. IFS="$ac_save_IFS"
  8728. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  8729. ;;
  8730. esac
  8731. fi
  8732. MSGFMT="$ac_cv_path_MSGFMT"
  8733. if test "$MSGFMT" != ":"; then
  8734. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  8735. echo "${ECHO_T}$MSGFMT" >&6; }
  8736. else
  8737. { echo "$as_me:$LINENO: result: no" >&5
  8738. echo "${ECHO_T}no" >&6; }
  8739. fi
  8740. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  8741. set dummy gmsgfmt; ac_word=$2
  8742. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8743. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8744. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  8745. echo $ECHO_N "(cached) $ECHO_C" >&6
  8746. else
  8747. case $GMSGFMT in
  8748. [\\/]* | ?:[\\/]*)
  8749. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  8750. ;;
  8751. *)
  8752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8753. for as_dir in $PATH
  8754. do
  8755. IFS=$as_save_IFS
  8756. test -z "$as_dir" && as_dir=.
  8757. for ac_exec_ext in '' $ac_executable_extensions; do
  8758. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8759. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  8760. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8761. break 2
  8762. fi
  8763. done
  8764. done
  8765. IFS=$as_save_IFS
  8766. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  8767. ;;
  8768. esac
  8769. fi
  8770. GMSGFMT=$ac_cv_path_GMSGFMT
  8771. if test -n "$GMSGFMT"; then
  8772. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  8773. echo "${ECHO_T}$GMSGFMT" >&6; }
  8774. else
  8775. { echo "$as_me:$LINENO: result: no" >&5
  8776. echo "${ECHO_T}no" >&6; }
  8777. fi
  8778. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8779. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  8780. *) MSGFMT_015=$MSGFMT ;;
  8781. esac
  8782. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8783. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  8784. *) GMSGFMT_015=$GMSGFMT ;;
  8785. esac
  8786. # Prepare PATH_SEPARATOR.
  8787. # The user is always right.
  8788. if test "${PATH_SEPARATOR+set}" != set; then
  8789. echo "#! /bin/sh" >conf$$.sh
  8790. echo "exit 0" >>conf$$.sh
  8791. chmod +x conf$$.sh
  8792. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8793. PATH_SEPARATOR=';'
  8794. else
  8795. PATH_SEPARATOR=:
  8796. fi
  8797. rm -f conf$$.sh
  8798. fi
  8799. # Find out how to test for executable files. Don't use a zero-byte file,
  8800. # as systems may use methods other than mode bits to determine executability.
  8801. cat >conf$$.file <<_ASEOF
  8802. #! /bin/sh
  8803. exit 0
  8804. _ASEOF
  8805. chmod +x conf$$.file
  8806. if test -x conf$$.file >/dev/null 2>&1; then
  8807. ac_executable_p="test -x"
  8808. else
  8809. ac_executable_p="test -f"
  8810. fi
  8811. rm -f conf$$.file
  8812. # Extract the first word of "xgettext", so it can be a program name with args.
  8813. set dummy xgettext; ac_word=$2
  8814. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8815. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8816. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  8817. echo $ECHO_N "(cached) $ECHO_C" >&6
  8818. else
  8819. case "$XGETTEXT" in
  8820. [\\/]* | ?:[\\/]*)
  8821. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  8822. ;;
  8823. *)
  8824. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8825. for ac_dir in $PATH; do
  8826. IFS="$ac_save_IFS"
  8827. test -z "$ac_dir" && ac_dir=.
  8828. for ac_exec_ext in '' $ac_executable_extensions; do
  8829. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8830. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8831. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  8832. (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
  8833. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  8834. break 2
  8835. fi
  8836. fi
  8837. done
  8838. done
  8839. IFS="$ac_save_IFS"
  8840. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  8841. ;;
  8842. esac
  8843. fi
  8844. XGETTEXT="$ac_cv_path_XGETTEXT"
  8845. if test "$XGETTEXT" != ":"; then
  8846. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  8847. echo "${ECHO_T}$XGETTEXT" >&6; }
  8848. else
  8849. { echo "$as_me:$LINENO: result: no" >&5
  8850. echo "${ECHO_T}no" >&6; }
  8851. fi
  8852. rm -f messages.po
  8853. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8854. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  8855. *) XGETTEXT_015=$XGETTEXT ;;
  8856. esac
  8857. # Prepare PATH_SEPARATOR.
  8858. # The user is always right.
  8859. if test "${PATH_SEPARATOR+set}" != set; then
  8860. echo "#! /bin/sh" >conf$$.sh
  8861. echo "exit 0" >>conf$$.sh
  8862. chmod +x conf$$.sh
  8863. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8864. PATH_SEPARATOR=';'
  8865. else
  8866. PATH_SEPARATOR=:
  8867. fi
  8868. rm -f conf$$.sh
  8869. fi
  8870. # Find out how to test for executable files. Don't use a zero-byte file,
  8871. # as systems may use methods other than mode bits to determine executability.
  8872. cat >conf$$.file <<_ASEOF
  8873. #! /bin/sh
  8874. exit 0
  8875. _ASEOF
  8876. chmod +x conf$$.file
  8877. if test -x conf$$.file >/dev/null 2>&1; then
  8878. ac_executable_p="test -x"
  8879. else
  8880. ac_executable_p="test -f"
  8881. fi
  8882. rm -f conf$$.file
  8883. # Extract the first word of "msgmerge", so it can be a program name with args.
  8884. set dummy msgmerge; ac_word=$2
  8885. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8886. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8887. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  8888. echo $ECHO_N "(cached) $ECHO_C" >&6
  8889. else
  8890. case "$MSGMERGE" in
  8891. [\\/]* | ?:[\\/]*)
  8892. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  8893. ;;
  8894. *)
  8895. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8896. for ac_dir in $PATH; do
  8897. IFS="$ac_save_IFS"
  8898. test -z "$ac_dir" && ac_dir=.
  8899. for ac_exec_ext in '' $ac_executable_extensions; do
  8900. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8901. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8902. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  8903. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  8904. break 2
  8905. fi
  8906. fi
  8907. done
  8908. done
  8909. IFS="$ac_save_IFS"
  8910. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  8911. ;;
  8912. esac
  8913. fi
  8914. MSGMERGE="$ac_cv_path_MSGMERGE"
  8915. if test "$MSGMERGE" != ":"; then
  8916. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  8917. echo "${ECHO_T}$MSGMERGE" >&6; }
  8918. else
  8919. { echo "$as_me:$LINENO: result: no" >&5
  8920. echo "${ECHO_T}no" >&6; }
  8921. fi
  8922. test -n "$localedir" || localedir='${datadir}/locale'
  8923. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  8924. ac_config_commands="$ac_config_commands po-directories"
  8925. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  8926. echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
  8927. if test "${ac_cv_gnu_library_2+set}" = set; then
  8928. echo $ECHO_N "(cached) $ECHO_C" >&6
  8929. else
  8930. cat >conftest.$ac_ext <<_ACEOF
  8931. /* confdefs.h. */
  8932. _ACEOF
  8933. cat confdefs.h >>conftest.$ac_ext
  8934. cat >>conftest.$ac_ext <<_ACEOF
  8935. /* end confdefs.h. */
  8936. #include <features.h>
  8937. #ifdef __GNU_LIBRARY__
  8938. #if (__GLIBC__ >= 2)
  8939. Lucky GNU user
  8940. #endif
  8941. #endif
  8942. _ACEOF
  8943. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8944. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  8945. ac_cv_gnu_library_2=yes
  8946. else
  8947. ac_cv_gnu_library_2=no
  8948. fi
  8949. rm -f conftest*
  8950. fi
  8951. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  8952. echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
  8953. GLIBC2="$ac_cv_gnu_library_2"
  8954. CFLAG_VISIBILITY=
  8955. HAVE_VISIBILITY=0
  8956. if test -n "$GCC"; then
  8957. { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  8958. echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
  8959. if test "${gl_cv_cc_visibility+set}" = set; then
  8960. echo $ECHO_N "(cached) $ECHO_C" >&6
  8961. else
  8962. gl_save_CFLAGS="$CFLAGS"
  8963. CFLAGS="$CFLAGS -fvisibility=hidden"
  8964. cat >conftest.$ac_ext <<_ACEOF
  8965. /* confdefs.h. */
  8966. _ACEOF
  8967. cat confdefs.h >>conftest.$ac_ext
  8968. cat >>conftest.$ac_ext <<_ACEOF
  8969. /* end confdefs.h. */
  8970. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  8971. extern __attribute__((__visibility__("default"))) int exportedvar;
  8972. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  8973. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  8974. int
  8975. main ()
  8976. {
  8977. ;
  8978. return 0;
  8979. }
  8980. _ACEOF
  8981. rm -f conftest.$ac_objext
  8982. if { (ac_try="$ac_compile"
  8983. case "(($ac_try" in
  8984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8985. *) ac_try_echo=$ac_try;;
  8986. esac
  8987. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8988. (eval "$ac_compile") 2>conftest.er1
  8989. ac_status=$?
  8990. grep -v '^ *+' conftest.er1 >conftest.err
  8991. rm -f conftest.er1
  8992. cat conftest.err >&5
  8993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8994. (exit $ac_status); } && {
  8995. test -z "$ac_cxx_werror_flag" ||
  8996. test ! -s conftest.err
  8997. } && test -s conftest.$ac_objext; then
  8998. gl_cv_cc_visibility=yes
  8999. else
  9000. echo "$as_me: failed program was:" >&5
  9001. sed 's/^/| /' conftest.$ac_ext >&5
  9002. gl_cv_cc_visibility=no
  9003. fi
  9004. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9005. CFLAGS="$gl_save_CFLAGS"
  9006. fi
  9007. { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  9008. echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
  9009. if test $gl_cv_cc_visibility = yes; then
  9010. CFLAG_VISIBILITY="-fvisibility=hidden"
  9011. HAVE_VISIBILITY=1
  9012. fi
  9013. fi
  9014. cat >>confdefs.h <<_ACEOF
  9015. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  9016. _ACEOF
  9017. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  9018. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  9019. if test "${gl_cv_header_stdint_h+set}" = set; then
  9020. echo $ECHO_N "(cached) $ECHO_C" >&6
  9021. else
  9022. cat >conftest.$ac_ext <<_ACEOF
  9023. /* confdefs.h. */
  9024. _ACEOF
  9025. cat confdefs.h >>conftest.$ac_ext
  9026. cat >>conftest.$ac_ext <<_ACEOF
  9027. /* end confdefs.h. */
  9028. #include <sys/types.h>
  9029. #include <stdint.h>
  9030. int
  9031. main ()
  9032. {
  9033. uintmax_t i = (uintmax_t) -1; return !i;
  9034. ;
  9035. return 0;
  9036. }
  9037. _ACEOF
  9038. rm -f conftest.$ac_objext
  9039. if { (ac_try="$ac_compile"
  9040. case "(($ac_try" in
  9041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9042. *) ac_try_echo=$ac_try;;
  9043. esac
  9044. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9045. (eval "$ac_compile") 2>conftest.er1
  9046. ac_status=$?
  9047. grep -v '^ *+' conftest.er1 >conftest.err
  9048. rm -f conftest.er1
  9049. cat conftest.err >&5
  9050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9051. (exit $ac_status); } && {
  9052. test -z "$ac_cxx_werror_flag" ||
  9053. test ! -s conftest.err
  9054. } && test -s conftest.$ac_objext; then
  9055. gl_cv_header_stdint_h=yes
  9056. else
  9057. echo "$as_me: failed program was:" >&5
  9058. sed 's/^/| /' conftest.$ac_ext >&5
  9059. gl_cv_header_stdint_h=no
  9060. fi
  9061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9062. fi
  9063. { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  9064. echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
  9065. if test $gl_cv_header_stdint_h = yes; then
  9066. cat >>confdefs.h <<_ACEOF
  9067. #define HAVE_STDINT_H_WITH_UINTMAX 1
  9068. _ACEOF
  9069. fi
  9070. for ac_header in stdlib.h unistd.h
  9071. do
  9072. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9073. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9074. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9075. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9076. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9077. echo $ECHO_N "(cached) $ECHO_C" >&6
  9078. fi
  9079. ac_res=`eval echo '${'$as_ac_Header'}'`
  9080. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9081. echo "${ECHO_T}$ac_res" >&6; }
  9082. else
  9083. # Is the header compilable?
  9084. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9085. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9086. cat >conftest.$ac_ext <<_ACEOF
  9087. /* confdefs.h. */
  9088. _ACEOF
  9089. cat confdefs.h >>conftest.$ac_ext
  9090. cat >>conftest.$ac_ext <<_ACEOF
  9091. /* end confdefs.h. */
  9092. $ac_includes_default
  9093. #include <$ac_header>
  9094. _ACEOF
  9095. rm -f conftest.$ac_objext
  9096. if { (ac_try="$ac_compile"
  9097. case "(($ac_try" in
  9098. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9099. *) ac_try_echo=$ac_try;;
  9100. esac
  9101. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9102. (eval "$ac_compile") 2>conftest.er1
  9103. ac_status=$?
  9104. grep -v '^ *+' conftest.er1 >conftest.err
  9105. rm -f conftest.er1
  9106. cat conftest.err >&5
  9107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9108. (exit $ac_status); } && {
  9109. test -z "$ac_cxx_werror_flag" ||
  9110. test ! -s conftest.err
  9111. } && test -s conftest.$ac_objext; then
  9112. ac_header_compiler=yes
  9113. else
  9114. echo "$as_me: failed program was:" >&5
  9115. sed 's/^/| /' conftest.$ac_ext >&5
  9116. ac_header_compiler=no
  9117. fi
  9118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9119. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9120. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9121. # Is the header present?
  9122. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9123. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9124. cat >conftest.$ac_ext <<_ACEOF
  9125. /* confdefs.h. */
  9126. _ACEOF
  9127. cat confdefs.h >>conftest.$ac_ext
  9128. cat >>conftest.$ac_ext <<_ACEOF
  9129. /* end confdefs.h. */
  9130. #include <$ac_header>
  9131. _ACEOF
  9132. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9133. case "(($ac_try" in
  9134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9135. *) ac_try_echo=$ac_try;;
  9136. esac
  9137. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9138. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9139. ac_status=$?
  9140. grep -v '^ *+' conftest.er1 >conftest.err
  9141. rm -f conftest.er1
  9142. cat conftest.err >&5
  9143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9144. (exit $ac_status); } >/dev/null && {
  9145. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9146. test ! -s conftest.err
  9147. }; then
  9148. ac_header_preproc=yes
  9149. else
  9150. echo "$as_me: failed program was:" >&5
  9151. sed 's/^/| /' conftest.$ac_ext >&5
  9152. ac_header_preproc=no
  9153. fi
  9154. rm -f conftest.err conftest.$ac_ext
  9155. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9156. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9157. # So? What about this header?
  9158. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9159. yes:no: )
  9160. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9161. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9162. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9163. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9164. ac_header_preproc=yes
  9165. ;;
  9166. no:yes:* )
  9167. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9168. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9169. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9170. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9171. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9172. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9173. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9174. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9175. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9176. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9177. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9178. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9179. ( cat <<\_ASBOX
  9180. ## ----------------------------------------------- ##
  9181. ## Report this to t-tujikawa@users.sourceforge.net ##
  9182. ## ----------------------------------------------- ##
  9183. _ASBOX
  9184. ) | sed "s/^/$as_me: WARNING: /" >&2
  9185. ;;
  9186. esac
  9187. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9188. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9189. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9190. echo $ECHO_N "(cached) $ECHO_C" >&6
  9191. else
  9192. eval "$as_ac_Header=\$ac_header_preproc"
  9193. fi
  9194. ac_res=`eval echo '${'$as_ac_Header'}'`
  9195. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9196. echo "${ECHO_T}$ac_res" >&6; }
  9197. fi
  9198. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9199. cat >>confdefs.h <<_ACEOF
  9200. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9201. _ACEOF
  9202. fi
  9203. done
  9204. for ac_func in getpagesize
  9205. do
  9206. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9207. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9208. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9209. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9210. echo $ECHO_N "(cached) $ECHO_C" >&6
  9211. else
  9212. cat >conftest.$ac_ext <<_ACEOF
  9213. /* confdefs.h. */
  9214. _ACEOF
  9215. cat confdefs.h >>conftest.$ac_ext
  9216. cat >>conftest.$ac_ext <<_ACEOF
  9217. /* end confdefs.h. */
  9218. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9219. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9220. #define $ac_func innocuous_$ac_func
  9221. /* System header to define __stub macros and hopefully few prototypes,
  9222. which can conflict with char $ac_func (); below.
  9223. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9224. <limits.h> exists even on freestanding compilers. */
  9225. #ifdef __STDC__
  9226. # include <limits.h>
  9227. #else
  9228. # include <assert.h>
  9229. #endif
  9230. #undef $ac_func
  9231. /* Override any GCC internal prototype to avoid an error.
  9232. Use char because int might match the return type of a GCC
  9233. builtin and then its argument prototype would still apply. */
  9234. #ifdef __cplusplus
  9235. extern "C"
  9236. #endif
  9237. char $ac_func ();
  9238. /* The GNU C library defines this for functions which it implements
  9239. to always fail with ENOSYS. Some functions are actually named
  9240. something starting with __ and the normal name is an alias. */
  9241. #if defined __stub_$ac_func || defined __stub___$ac_func
  9242. choke me
  9243. #endif
  9244. int
  9245. main ()
  9246. {
  9247. return $ac_func ();
  9248. ;
  9249. return 0;
  9250. }
  9251. _ACEOF
  9252. rm -f conftest.$ac_objext conftest$ac_exeext
  9253. if { (ac_try="$ac_link"
  9254. case "(($ac_try" in
  9255. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9256. *) ac_try_echo=$ac_try;;
  9257. esac
  9258. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9259. (eval "$ac_link") 2>conftest.er1
  9260. ac_status=$?
  9261. grep -v '^ *+' conftest.er1 >conftest.err
  9262. rm -f conftest.er1
  9263. cat conftest.err >&5
  9264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9265. (exit $ac_status); } && {
  9266. test -z "$ac_cxx_werror_flag" ||
  9267. test ! -s conftest.err
  9268. } && test -s conftest$ac_exeext &&
  9269. $as_test_x conftest$ac_exeext; then
  9270. eval "$as_ac_var=yes"
  9271. else
  9272. echo "$as_me: failed program was:" >&5
  9273. sed 's/^/| /' conftest.$ac_ext >&5
  9274. eval "$as_ac_var=no"
  9275. fi
  9276. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9277. conftest$ac_exeext conftest.$ac_ext
  9278. fi
  9279. ac_res=`eval echo '${'$as_ac_var'}'`
  9280. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9281. echo "${ECHO_T}$ac_res" >&6; }
  9282. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9283. cat >>confdefs.h <<_ACEOF
  9284. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9285. _ACEOF
  9286. fi
  9287. done
  9288. { echo "$as_me:$LINENO: checking for working mmap" >&5
  9289. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  9290. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9291. echo $ECHO_N "(cached) $ECHO_C" >&6
  9292. else
  9293. if test "$cross_compiling" = yes; then
  9294. ac_cv_func_mmap_fixed_mapped=no
  9295. else
  9296. cat >conftest.$ac_ext <<_ACEOF
  9297. /* confdefs.h. */
  9298. _ACEOF
  9299. cat confdefs.h >>conftest.$ac_ext
  9300. cat >>conftest.$ac_ext <<_ACEOF
  9301. /* end confdefs.h. */
  9302. $ac_includes_default
  9303. /* malloc might have been renamed as rpl_malloc. */
  9304. #undef malloc
  9305. /* Thanks to Mike Haertel and Jim Avera for this test.
  9306. Here is a matrix of mmap possibilities:
  9307. mmap private not fixed
  9308. mmap private fixed at somewhere currently unmapped
  9309. mmap private fixed at somewhere already mapped
  9310. mmap shared not fixed
  9311. mmap shared fixed at somewhere currently unmapped
  9312. mmap shared fixed at somewhere already mapped
  9313. For private mappings, we should verify that changes cannot be read()
  9314. back from the file, nor mmap's back from the file at a different
  9315. address. (There have been systems where private was not correctly
  9316. implemented like the infamous i386 svr4.0, and systems where the
  9317. VM page cache was not coherent with the file system buffer cache
  9318. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9319. For shared mappings, we should conversely verify that changes get
  9320. propagated back to all the places they're supposed to be.
  9321. Grep wants private fixed already mapped.
  9322. The main things grep needs to know about mmap are:
  9323. * does it exist and is it safe to write into the mmap'd area
  9324. * how to use it (BSD variants) */
  9325. #include <fcntl.h>
  9326. #include <sys/mman.h>
  9327. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  9328. char *malloc ();
  9329. #endif
  9330. /* This mess was copied from the GNU getpagesize.h. */
  9331. #ifndef HAVE_GETPAGESIZE
  9332. /* Assume that all systems that can run configure have sys/param.h. */
  9333. # ifndef HAVE_SYS_PARAM_H
  9334. # define HAVE_SYS_PARAM_H 1
  9335. # endif
  9336. # ifdef _SC_PAGESIZE
  9337. # define getpagesize() sysconf(_SC_PAGESIZE)
  9338. # else /* no _SC_PAGESIZE */
  9339. # ifdef HAVE_SYS_PARAM_H
  9340. # include <sys/param.h>
  9341. # ifdef EXEC_PAGESIZE
  9342. # define getpagesize() EXEC_PAGESIZE
  9343. # else /* no EXEC_PAGESIZE */
  9344. # ifdef NBPG
  9345. # define getpagesize() NBPG * CLSIZE
  9346. # ifndef CLSIZE
  9347. # define CLSIZE 1
  9348. # endif /* no CLSIZE */
  9349. # else /* no NBPG */
  9350. # ifdef NBPC
  9351. # define getpagesize() NBPC
  9352. # else /* no NBPC */
  9353. # ifdef PAGESIZE
  9354. # define getpagesize() PAGESIZE
  9355. # endif /* PAGESIZE */
  9356. # endif /* no NBPC */
  9357. # endif /* no NBPG */
  9358. # endif /* no EXEC_PAGESIZE */
  9359. # else /* no HAVE_SYS_PARAM_H */
  9360. # define getpagesize() 8192 /* punt totally */
  9361. # endif /* no HAVE_SYS_PARAM_H */
  9362. # endif /* no _SC_PAGESIZE */
  9363. #endif /* no HAVE_GETPAGESIZE */
  9364. int
  9365. main ()
  9366. {
  9367. char *data, *data2, *data3;
  9368. int i, pagesize;
  9369. int fd;
  9370. pagesize = getpagesize ();
  9371. /* First, make a file with some known garbage in it. */
  9372. data = (char *) malloc (pagesize);
  9373. if (!data)
  9374. return 1;
  9375. for (i = 0; i < pagesize; ++i)
  9376. *(data + i) = rand ();
  9377. umask (0);
  9378. fd = creat ("conftest.mmap", 0600);
  9379. if (fd < 0)
  9380. return 1;
  9381. if (write (fd, data, pagesize) != pagesize)
  9382. return 1;
  9383. close (fd);
  9384. /* Next, try to mmap the file at a fixed address which already has
  9385. something else allocated at it. If we can, also make sure that
  9386. we see the same garbage. */
  9387. fd = open ("conftest.mmap", O_RDWR);
  9388. if (fd < 0)
  9389. return 1;
  9390. data2 = (char *) malloc (2 * pagesize);
  9391. if (!data2)
  9392. return 1;
  9393. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  9394. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9395. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9396. return 1;
  9397. for (i = 0; i < pagesize; ++i)
  9398. if (*(data + i) != *(data2 + i))
  9399. return 1;
  9400. /* Finally, make sure that changes to the mapped area do not
  9401. percolate back to the file as seen by read(). (This is a bug on
  9402. some variants of i386 svr4.0.) */
  9403. for (i = 0; i < pagesize; ++i)
  9404. *(data2 + i) = *(data2 + i) + 1;
  9405. data3 = (char *) malloc (pagesize);
  9406. if (!data3)
  9407. return 1;
  9408. if (read (fd, data3, pagesize) != pagesize)
  9409. return 1;
  9410. for (i = 0; i < pagesize; ++i)
  9411. if (*(data + i) != *(data3 + i))
  9412. return 1;
  9413. close (fd);
  9414. return 0;
  9415. }
  9416. _ACEOF
  9417. rm -f conftest$ac_exeext
  9418. if { (ac_try="$ac_link"
  9419. case "(($ac_try" in
  9420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9421. *) ac_try_echo=$ac_try;;
  9422. esac
  9423. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9424. (eval "$ac_link") 2>&5
  9425. ac_status=$?
  9426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9427. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9428. { (case "(($ac_try" in
  9429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9430. *) ac_try_echo=$ac_try;;
  9431. esac
  9432. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9433. (eval "$ac_try") 2>&5
  9434. ac_status=$?
  9435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9436. (exit $ac_status); }; }; then
  9437. ac_cv_func_mmap_fixed_mapped=yes
  9438. else
  9439. echo "$as_me: program exited with status $ac_status" >&5
  9440. echo "$as_me: failed program was:" >&5
  9441. sed 's/^/| /' conftest.$ac_ext >&5
  9442. ( exit $ac_status )
  9443. ac_cv_func_mmap_fixed_mapped=no
  9444. fi
  9445. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9446. fi
  9447. fi
  9448. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9449. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  9450. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9451. cat >>confdefs.h <<\_ACEOF
  9452. #define HAVE_MMAP 1
  9453. _ACEOF
  9454. fi
  9455. rm -f conftest.mmap
  9456. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  9457. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  9458. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  9459. echo $ECHO_N "(cached) $ECHO_C" >&6
  9460. else
  9461. gt_cv_int_divbyzero_sigfpe=
  9462. case "$host_os" in
  9463. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  9464. # On MacOS X 10.2 or newer, just assume the same as when cross-
  9465. # compiling. If we were to perform the real test, 1 Crash Report
  9466. # dialog window would pop up.
  9467. case "$host_cpu" in
  9468. i[34567]86 | x86_64)
  9469. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  9470. esac
  9471. ;;
  9472. esac
  9473. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  9474. if test "$cross_compiling" = yes; then
  9475. # Guess based on the CPU.
  9476. case "$host_cpu" in
  9477. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  9478. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  9479. *)
  9480. gt_cv_int_divbyzero_sigfpe="guessing no";;
  9481. esac
  9482. else
  9483. cat >conftest.$ac_ext <<_ACEOF
  9484. /* confdefs.h. */
  9485. _ACEOF
  9486. cat confdefs.h >>conftest.$ac_ext
  9487. cat >>conftest.$ac_ext <<_ACEOF
  9488. /* end confdefs.h. */
  9489. #include <stdlib.h>
  9490. #include <signal.h>
  9491. static void
  9492. sigfpe_handler (int sig)
  9493. {
  9494. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  9495. exit (sig != SIGFPE);
  9496. }
  9497. int x = 1;
  9498. int y = 0;
  9499. int z;
  9500. int nan;
  9501. int main ()
  9502. {
  9503. signal (SIGFPE, sigfpe_handler);
  9504. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  9505. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  9506. signal (SIGTRAP, sigfpe_handler);
  9507. #endif
  9508. /* Linux/SPARC yields signal SIGILL. */
  9509. #if defined (__sparc__) && defined (__linux__)
  9510. signal (SIGILL, sigfpe_handler);
  9511. #endif
  9512. z = x / y;
  9513. nan = y / y;
  9514. exit (1);
  9515. }
  9516. _ACEOF
  9517. rm -f conftest$ac_exeext
  9518. if { (ac_try="$ac_link"
  9519. case "(($ac_try" in
  9520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9521. *) ac_try_echo=$ac_try;;
  9522. esac
  9523. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9524. (eval "$ac_link") 2>&5
  9525. ac_status=$?
  9526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9527. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9528. { (case "(($ac_try" in
  9529. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9530. *) ac_try_echo=$ac_try;;
  9531. esac
  9532. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9533. (eval "$ac_try") 2>&5
  9534. ac_status=$?
  9535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9536. (exit $ac_status); }; }; then
  9537. gt_cv_int_divbyzero_sigfpe=yes
  9538. else
  9539. echo "$as_me: program exited with status $ac_status" >&5
  9540. echo "$as_me: failed program was:" >&5
  9541. sed 's/^/| /' conftest.$ac_ext >&5
  9542. ( exit $ac_status )
  9543. gt_cv_int_divbyzero_sigfpe=no
  9544. fi
  9545. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9546. fi
  9547. fi
  9548. fi
  9549. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  9550. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  9551. case "$gt_cv_int_divbyzero_sigfpe" in
  9552. *yes) value=1;;
  9553. *) value=0;;
  9554. esac
  9555. cat >>confdefs.h <<_ACEOF
  9556. #define INTDIV0_RAISES_SIGFPE $value
  9557. _ACEOF
  9558. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  9559. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  9560. if test "${gl_cv_header_inttypes_h+set}" = set; then
  9561. echo $ECHO_N "(cached) $ECHO_C" >&6
  9562. else
  9563. cat >conftest.$ac_ext <<_ACEOF
  9564. /* confdefs.h. */
  9565. _ACEOF
  9566. cat confdefs.h >>conftest.$ac_ext
  9567. cat >>conftest.$ac_ext <<_ACEOF
  9568. /* end confdefs.h. */
  9569. #include <sys/types.h>
  9570. #include <inttypes.h>
  9571. int
  9572. main ()
  9573. {
  9574. uintmax_t i = (uintmax_t) -1; return !i;
  9575. ;
  9576. return 0;
  9577. }
  9578. _ACEOF
  9579. rm -f conftest.$ac_objext
  9580. if { (ac_try="$ac_compile"
  9581. case "(($ac_try" in
  9582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9583. *) ac_try_echo=$ac_try;;
  9584. esac
  9585. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9586. (eval "$ac_compile") 2>conftest.er1
  9587. ac_status=$?
  9588. grep -v '^ *+' conftest.er1 >conftest.err
  9589. rm -f conftest.er1
  9590. cat conftest.err >&5
  9591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9592. (exit $ac_status); } && {
  9593. test -z "$ac_cxx_werror_flag" ||
  9594. test ! -s conftest.err
  9595. } && test -s conftest.$ac_objext; then
  9596. gl_cv_header_inttypes_h=yes
  9597. else
  9598. echo "$as_me: failed program was:" >&5
  9599. sed 's/^/| /' conftest.$ac_ext >&5
  9600. gl_cv_header_inttypes_h=no
  9601. fi
  9602. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9603. fi
  9604. { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  9605. echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
  9606. if test $gl_cv_header_inttypes_h = yes; then
  9607. cat >>confdefs.h <<_ACEOF
  9608. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  9609. _ACEOF
  9610. fi
  9611. { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  9612. echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
  9613. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  9614. echo $ECHO_N "(cached) $ECHO_C" >&6
  9615. else
  9616. cat >conftest.$ac_ext <<_ACEOF
  9617. /* confdefs.h. */
  9618. _ACEOF
  9619. cat confdefs.h >>conftest.$ac_ext
  9620. cat >>conftest.$ac_ext <<_ACEOF
  9621. /* end confdefs.h. */
  9622. /* Test preprocessor. */
  9623. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  9624. error in preprocessor;
  9625. #endif
  9626. #if ! (18446744073709551615ULL <= -1ull)
  9627. error in preprocessor;
  9628. #endif
  9629. /* Test literals. */
  9630. long long int ll = 9223372036854775807ll;
  9631. long long int nll = -9223372036854775807LL;
  9632. unsigned long long int ull = 18446744073709551615ULL;
  9633. /* Test constant expressions. */
  9634. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  9635. ? 1 : -1)];
  9636. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  9637. ? 1 : -1)];
  9638. int i = 63;
  9639. int
  9640. main ()
  9641. {
  9642. /* Test availability of runtime routines for shift and division. */
  9643. long long int llmax = 9223372036854775807ll;
  9644. unsigned long long int ullmax = 18446744073709551615ull;
  9645. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  9646. | (llmax / ll) | (llmax % ll)
  9647. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  9648. | (ullmax / ull) | (ullmax % ull));
  9649. ;
  9650. return 0;
  9651. }
  9652. _ACEOF
  9653. rm -f conftest.$ac_objext conftest$ac_exeext
  9654. if { (ac_try="$ac_link"
  9655. case "(($ac_try" in
  9656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9657. *) ac_try_echo=$ac_try;;
  9658. esac
  9659. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9660. (eval "$ac_link") 2>conftest.er1
  9661. ac_status=$?
  9662. grep -v '^ *+' conftest.er1 >conftest.err
  9663. rm -f conftest.er1
  9664. cat conftest.err >&5
  9665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9666. (exit $ac_status); } && {
  9667. test -z "$ac_cxx_werror_flag" ||
  9668. test ! -s conftest.err
  9669. } && test -s conftest$ac_exeext &&
  9670. $as_test_x conftest$ac_exeext; then
  9671. ac_cv_type_unsigned_long_long_int=yes
  9672. else
  9673. echo "$as_me: failed program was:" >&5
  9674. sed 's/^/| /' conftest.$ac_ext >&5
  9675. ac_cv_type_unsigned_long_long_int=no
  9676. fi
  9677. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9678. conftest$ac_exeext conftest.$ac_ext
  9679. fi
  9680. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  9681. echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
  9682. if test $ac_cv_type_unsigned_long_long_int = yes; then
  9683. cat >>confdefs.h <<\_ACEOF
  9684. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  9685. _ACEOF
  9686. fi
  9687. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  9688. test $ac_cv_type_unsigned_long_long_int = yes \
  9689. && ac_type='unsigned long long' \
  9690. || ac_type='unsigned long'
  9691. cat >>confdefs.h <<_ACEOF
  9692. #define uintmax_t $ac_type
  9693. _ACEOF
  9694. else
  9695. cat >>confdefs.h <<\_ACEOF
  9696. #define HAVE_UINTMAX_T 1
  9697. _ACEOF
  9698. fi
  9699. for ac_header in inttypes.h
  9700. do
  9701. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9702. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9703. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9704. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9705. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9706. echo $ECHO_N "(cached) $ECHO_C" >&6
  9707. fi
  9708. ac_res=`eval echo '${'$as_ac_Header'}'`
  9709. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9710. echo "${ECHO_T}$ac_res" >&6; }
  9711. else
  9712. # Is the header compilable?
  9713. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9714. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9715. cat >conftest.$ac_ext <<_ACEOF
  9716. /* confdefs.h. */
  9717. _ACEOF
  9718. cat confdefs.h >>conftest.$ac_ext
  9719. cat >>conftest.$ac_ext <<_ACEOF
  9720. /* end confdefs.h. */
  9721. $ac_includes_default
  9722. #include <$ac_header>
  9723. _ACEOF
  9724. rm -f conftest.$ac_objext
  9725. if { (ac_try="$ac_compile"
  9726. case "(($ac_try" in
  9727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9728. *) ac_try_echo=$ac_try;;
  9729. esac
  9730. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9731. (eval "$ac_compile") 2>conftest.er1
  9732. ac_status=$?
  9733. grep -v '^ *+' conftest.er1 >conftest.err
  9734. rm -f conftest.er1
  9735. cat conftest.err >&5
  9736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9737. (exit $ac_status); } && {
  9738. test -z "$ac_cxx_werror_flag" ||
  9739. test ! -s conftest.err
  9740. } && test -s conftest.$ac_objext; then
  9741. ac_header_compiler=yes
  9742. else
  9743. echo "$as_me: failed program was:" >&5
  9744. sed 's/^/| /' conftest.$ac_ext >&5
  9745. ac_header_compiler=no
  9746. fi
  9747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9748. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9749. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9750. # Is the header present?
  9751. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9752. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9753. cat >conftest.$ac_ext <<_ACEOF
  9754. /* confdefs.h. */
  9755. _ACEOF
  9756. cat confdefs.h >>conftest.$ac_ext
  9757. cat >>conftest.$ac_ext <<_ACEOF
  9758. /* end confdefs.h. */
  9759. #include <$ac_header>
  9760. _ACEOF
  9761. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9762. case "(($ac_try" in
  9763. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9764. *) ac_try_echo=$ac_try;;
  9765. esac
  9766. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9767. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9768. ac_status=$?
  9769. grep -v '^ *+' conftest.er1 >conftest.err
  9770. rm -f conftest.er1
  9771. cat conftest.err >&5
  9772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9773. (exit $ac_status); } >/dev/null && {
  9774. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9775. test ! -s conftest.err
  9776. }; then
  9777. ac_header_preproc=yes
  9778. else
  9779. echo "$as_me: failed program was:" >&5
  9780. sed 's/^/| /' conftest.$ac_ext >&5
  9781. ac_header_preproc=no
  9782. fi
  9783. rm -f conftest.err conftest.$ac_ext
  9784. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9785. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9786. # So? What about this header?
  9787. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9788. yes:no: )
  9789. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9790. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9791. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9792. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9793. ac_header_preproc=yes
  9794. ;;
  9795. no:yes:* )
  9796. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9797. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9798. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9799. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9800. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9801. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9802. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9803. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9804. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9805. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9806. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9807. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9808. ( cat <<\_ASBOX
  9809. ## ----------------------------------------------- ##
  9810. ## Report this to t-tujikawa@users.sourceforge.net ##
  9811. ## ----------------------------------------------- ##
  9812. _ASBOX
  9813. ) | sed "s/^/$as_me: WARNING: /" >&2
  9814. ;;
  9815. esac
  9816. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9817. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9818. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9819. echo $ECHO_N "(cached) $ECHO_C" >&6
  9820. else
  9821. eval "$as_ac_Header=\$ac_header_preproc"
  9822. fi
  9823. ac_res=`eval echo '${'$as_ac_Header'}'`
  9824. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9825. echo "${ECHO_T}$ac_res" >&6; }
  9826. fi
  9827. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9828. cat >>confdefs.h <<_ACEOF
  9829. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9830. _ACEOF
  9831. fi
  9832. done
  9833. if test $ac_cv_header_inttypes_h = yes; then
  9834. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  9835. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  9836. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  9837. echo $ECHO_N "(cached) $ECHO_C" >&6
  9838. else
  9839. cat >conftest.$ac_ext <<_ACEOF
  9840. /* confdefs.h. */
  9841. _ACEOF
  9842. cat confdefs.h >>conftest.$ac_ext
  9843. cat >>conftest.$ac_ext <<_ACEOF
  9844. /* end confdefs.h. */
  9845. #include <inttypes.h>
  9846. #ifdef PRId32
  9847. char *p = PRId32;
  9848. #endif
  9849. int
  9850. main ()
  9851. {
  9852. ;
  9853. return 0;
  9854. }
  9855. _ACEOF
  9856. rm -f conftest.$ac_objext
  9857. if { (ac_try="$ac_compile"
  9858. case "(($ac_try" in
  9859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9860. *) ac_try_echo=$ac_try;;
  9861. esac
  9862. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9863. (eval "$ac_compile") 2>conftest.er1
  9864. ac_status=$?
  9865. grep -v '^ *+' conftest.er1 >conftest.err
  9866. rm -f conftest.er1
  9867. cat conftest.err >&5
  9868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9869. (exit $ac_status); } && {
  9870. test -z "$ac_cxx_werror_flag" ||
  9871. test ! -s conftest.err
  9872. } && test -s conftest.$ac_objext; then
  9873. gt_cv_inttypes_pri_broken=no
  9874. else
  9875. echo "$as_me: failed program was:" >&5
  9876. sed 's/^/| /' conftest.$ac_ext >&5
  9877. gt_cv_inttypes_pri_broken=yes
  9878. fi
  9879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9880. fi
  9881. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  9882. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  9883. fi
  9884. if test "$gt_cv_inttypes_pri_broken" = yes; then
  9885. cat >>confdefs.h <<_ACEOF
  9886. #define PRI_MACROS_BROKEN 1
  9887. _ACEOF
  9888. PRI_MACROS_BROKEN=1
  9889. else
  9890. PRI_MACROS_BROKEN=0
  9891. fi
  9892. # Check whether --enable-threads was given.
  9893. if test "${enable_threads+set}" = set; then
  9894. enableval=$enable_threads; gl_use_threads=$enableval
  9895. else
  9896. case "$host_os" in
  9897. osf*) gl_use_threads=no ;;
  9898. *) gl_use_threads=yes ;;
  9899. esac
  9900. fi
  9901. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  9902. # For using <pthread.h>:
  9903. case "$host_os" in
  9904. osf*)
  9905. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  9906. # groks <pthread.h>. cc also understands the flag -pthread, but
  9907. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  9908. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  9909. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  9910. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  9911. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  9912. ;;
  9913. esac
  9914. # Some systems optimize for single-threaded programs by default, and
  9915. # need special flags to disable these optimizations. For example, the
  9916. # definition of 'errno' in <errno.h>.
  9917. case "$host_os" in
  9918. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  9919. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  9920. esac
  9921. fi
  9922. if test "X$prefix" = "XNONE"; then
  9923. acl_final_prefix="$ac_default_prefix"
  9924. else
  9925. acl_final_prefix="$prefix"
  9926. fi
  9927. if test "X$exec_prefix" = "XNONE"; then
  9928. acl_final_exec_prefix='${prefix}'
  9929. else
  9930. acl_final_exec_prefix="$exec_prefix"
  9931. fi
  9932. acl_save_prefix="$prefix"
  9933. prefix="$acl_final_prefix"
  9934. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  9935. prefix="$acl_save_prefix"
  9936. # Check whether --with-gnu-ld was given.
  9937. if test "${with_gnu_ld+set}" = set; then
  9938. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9939. else
  9940. with_gnu_ld=no
  9941. fi
  9942. # Prepare PATH_SEPARATOR.
  9943. # The user is always right.
  9944. if test "${PATH_SEPARATOR+set}" != set; then
  9945. echo "#! /bin/sh" >conf$$.sh
  9946. echo "exit 0" >>conf$$.sh
  9947. chmod +x conf$$.sh
  9948. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9949. PATH_SEPARATOR=';'
  9950. else
  9951. PATH_SEPARATOR=:
  9952. fi
  9953. rm -f conf$$.sh
  9954. fi
  9955. ac_prog=ld
  9956. if test "$GCC" = yes; then
  9957. # Check if gcc -print-prog-name=ld gives a path.
  9958. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  9959. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  9960. case $host in
  9961. *-*-mingw*)
  9962. # gcc leaves a trailing carriage return which upsets mingw
  9963. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9964. *)
  9965. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9966. esac
  9967. case $ac_prog in
  9968. # Accept absolute paths.
  9969. [\\/]* | [A-Za-z]:[\\/]*)
  9970. re_direlt='/[^/][^/]*/\.\./'
  9971. # Canonicalize the path of ld
  9972. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  9973. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9974. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  9975. done
  9976. test -z "$LD" && LD="$ac_prog"
  9977. ;;
  9978. "")
  9979. # If it fails, then pretend we aren't using GCC.
  9980. ac_prog=ld
  9981. ;;
  9982. *)
  9983. # If it is relative, then search for the first ld in PATH.
  9984. with_gnu_ld=unknown
  9985. ;;
  9986. esac
  9987. elif test "$with_gnu_ld" = yes; then
  9988. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  9989. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  9990. else
  9991. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9992. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  9993. fi
  9994. if test "${acl_cv_path_LD+set}" = set; then
  9995. echo $ECHO_N "(cached) $ECHO_C" >&6
  9996. else
  9997. if test -z "$LD"; then
  9998. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  9999. for ac_dir in $PATH; do
  10000. test -z "$ac_dir" && ac_dir=.
  10001. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10002. acl_cv_path_LD="$ac_dir/$ac_prog"
  10003. # Check to see if the program is GNU ld. I'd rather use --version,
  10004. # but apparently some GNU ld's only accept -v.
  10005. # Break only if it was the GNU/non-GNU ld that we prefer.
  10006. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  10007. *GNU* | *'with BFD'*)
  10008. test "$with_gnu_ld" != no && break ;;
  10009. *)
  10010. test "$with_gnu_ld" != yes && break ;;
  10011. esac
  10012. fi
  10013. done
  10014. IFS="$ac_save_ifs"
  10015. else
  10016. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  10017. fi
  10018. fi
  10019. LD="$acl_cv_path_LD"
  10020. if test -n "$LD"; then
  10021. { echo "$as_me:$LINENO: result: $LD" >&5
  10022. echo "${ECHO_T}$LD" >&6; }
  10023. else
  10024. { echo "$as_me:$LINENO: result: no" >&5
  10025. echo "${ECHO_T}no" >&6; }
  10026. fi
  10027. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10028. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10029. { (exit 1); exit 1; }; }
  10030. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10031. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  10032. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  10033. echo $ECHO_N "(cached) $ECHO_C" >&6
  10034. else
  10035. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  10036. case `$LD -v 2>&1 </dev/null` in
  10037. *GNU* | *'with BFD'*)
  10038. acl_cv_prog_gnu_ld=yes ;;
  10039. *)
  10040. acl_cv_prog_gnu_ld=no ;;
  10041. esac
  10042. fi
  10043. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  10044. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  10045. with_gnu_ld=$acl_cv_prog_gnu_ld
  10046. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  10047. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  10048. if test "${acl_cv_rpath+set}" = set; then
  10049. echo $ECHO_N "(cached) $ECHO_C" >&6
  10050. else
  10051. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  10052. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  10053. . ./conftest.sh
  10054. rm -f ./conftest.sh
  10055. acl_cv_rpath=done
  10056. fi
  10057. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  10058. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  10059. wl="$acl_cv_wl"
  10060. acl_libext="$acl_cv_libext"
  10061. acl_shlibext="$acl_cv_shlibext"
  10062. acl_libname_spec="$acl_cv_libname_spec"
  10063. acl_library_names_spec="$acl_cv_library_names_spec"
  10064. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  10065. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  10066. acl_hardcode_direct="$acl_cv_hardcode_direct"
  10067. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  10068. # Check whether --enable-rpath was given.
  10069. if test "${enable_rpath+set}" = set; then
  10070. enableval=$enable_rpath; :
  10071. else
  10072. enable_rpath=yes
  10073. fi
  10074. acl_libdirstem=lib
  10075. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  10076. if test -n "$searchpath"; then
  10077. acl_save_IFS="${IFS= }"; IFS=":"
  10078. for searchdir in $searchpath; do
  10079. if test -d "$searchdir"; then
  10080. case "$searchdir" in
  10081. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  10082. *) searchdir=`cd "$searchdir" && pwd`
  10083. case "$searchdir" in
  10084. */lib64 ) acl_libdirstem=lib64 ;;
  10085. esac ;;
  10086. esac
  10087. fi
  10088. done
  10089. IFS="$acl_save_IFS"
  10090. fi
  10091. gl_threads_api=none
  10092. LIBTHREAD=
  10093. LTLIBTHREAD=
  10094. LIBMULTITHREAD=
  10095. LTLIBMULTITHREAD=
  10096. if test "$gl_use_threads" != no; then
  10097. { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  10098. echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
  10099. gl_have_weak=no
  10100. cat >conftest.$ac_ext <<_ACEOF
  10101. /* confdefs.h. */
  10102. _ACEOF
  10103. cat confdefs.h >>conftest.$ac_ext
  10104. cat >>conftest.$ac_ext <<_ACEOF
  10105. /* end confdefs.h. */
  10106. extern void xyzzy ();
  10107. #pragma weak xyzzy
  10108. int
  10109. main ()
  10110. {
  10111. xyzzy();
  10112. ;
  10113. return 0;
  10114. }
  10115. _ACEOF
  10116. rm -f conftest.$ac_objext conftest$ac_exeext
  10117. if { (ac_try="$ac_link"
  10118. case "(($ac_try" in
  10119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10120. *) ac_try_echo=$ac_try;;
  10121. esac
  10122. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10123. (eval "$ac_link") 2>conftest.er1
  10124. ac_status=$?
  10125. grep -v '^ *+' conftest.er1 >conftest.err
  10126. rm -f conftest.er1
  10127. cat conftest.err >&5
  10128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10129. (exit $ac_status); } && {
  10130. test -z "$ac_cxx_werror_flag" ||
  10131. test ! -s conftest.err
  10132. } && test -s conftest$ac_exeext &&
  10133. $as_test_x conftest$ac_exeext; then
  10134. gl_have_weak=yes
  10135. else
  10136. echo "$as_me: failed program was:" >&5
  10137. sed 's/^/| /' conftest.$ac_ext >&5
  10138. fi
  10139. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10140. conftest$ac_exeext conftest.$ac_ext
  10141. { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  10142. echo "${ECHO_T}$gl_have_weak" >&6; }
  10143. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10144. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  10145. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  10146. if test "${ac_cv_header_pthread_h+set}" = set; then
  10147. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10148. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10149. if test "${ac_cv_header_pthread_h+set}" = set; then
  10150. echo $ECHO_N "(cached) $ECHO_C" >&6
  10151. fi
  10152. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10153. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10154. else
  10155. # Is the header compilable?
  10156. { echo "$as_me:$LINENO: checking pthread.h usability" >&5
  10157. echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
  10158. cat >conftest.$ac_ext <<_ACEOF
  10159. /* confdefs.h. */
  10160. _ACEOF
  10161. cat confdefs.h >>conftest.$ac_ext
  10162. cat >>conftest.$ac_ext <<_ACEOF
  10163. /* end confdefs.h. */
  10164. $ac_includes_default
  10165. #include <pthread.h>
  10166. _ACEOF
  10167. rm -f conftest.$ac_objext
  10168. if { (ac_try="$ac_compile"
  10169. case "(($ac_try" in
  10170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10171. *) ac_try_echo=$ac_try;;
  10172. esac
  10173. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10174. (eval "$ac_compile") 2>conftest.er1
  10175. ac_status=$?
  10176. grep -v '^ *+' conftest.er1 >conftest.err
  10177. rm -f conftest.er1
  10178. cat conftest.err >&5
  10179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10180. (exit $ac_status); } && {
  10181. test -z "$ac_cxx_werror_flag" ||
  10182. test ! -s conftest.err
  10183. } && test -s conftest.$ac_objext; then
  10184. ac_header_compiler=yes
  10185. else
  10186. echo "$as_me: failed program was:" >&5
  10187. sed 's/^/| /' conftest.$ac_ext >&5
  10188. ac_header_compiler=no
  10189. fi
  10190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10191. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10192. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10193. # Is the header present?
  10194. { echo "$as_me:$LINENO: checking pthread.h presence" >&5
  10195. echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
  10196. cat >conftest.$ac_ext <<_ACEOF
  10197. /* confdefs.h. */
  10198. _ACEOF
  10199. cat confdefs.h >>conftest.$ac_ext
  10200. cat >>conftest.$ac_ext <<_ACEOF
  10201. /* end confdefs.h. */
  10202. #include <pthread.h>
  10203. _ACEOF
  10204. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10205. case "(($ac_try" in
  10206. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10207. *) ac_try_echo=$ac_try;;
  10208. esac
  10209. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10210. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10211. ac_status=$?
  10212. grep -v '^ *+' conftest.er1 >conftest.err
  10213. rm -f conftest.er1
  10214. cat conftest.err >&5
  10215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10216. (exit $ac_status); } >/dev/null && {
  10217. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10218. test ! -s conftest.err
  10219. }; then
  10220. ac_header_preproc=yes
  10221. else
  10222. echo "$as_me: failed program was:" >&5
  10223. sed 's/^/| /' conftest.$ac_ext >&5
  10224. ac_header_preproc=no
  10225. fi
  10226. rm -f conftest.err conftest.$ac_ext
  10227. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10228. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10229. # So? What about this header?
  10230. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10231. yes:no: )
  10232. { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10233. echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10234. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  10235. echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  10236. ac_header_preproc=yes
  10237. ;;
  10238. no:yes:* )
  10239. { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  10240. echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  10241. { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  10242. echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  10243. { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  10244. echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  10245. { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  10246. echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10247. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  10248. echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  10249. { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  10250. echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  10251. ( cat <<\_ASBOX
  10252. ## ----------------------------------------------- ##
  10253. ## Report this to t-tujikawa@users.sourceforge.net ##
  10254. ## ----------------------------------------------- ##
  10255. _ASBOX
  10256. ) | sed "s/^/$as_me: WARNING: /" >&2
  10257. ;;
  10258. esac
  10259. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10260. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10261. if test "${ac_cv_header_pthread_h+set}" = set; then
  10262. echo $ECHO_N "(cached) $ECHO_C" >&6
  10263. else
  10264. ac_cv_header_pthread_h=$ac_header_preproc
  10265. fi
  10266. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10267. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10268. fi
  10269. if test $ac_cv_header_pthread_h = yes; then
  10270. gl_have_pthread_h=yes
  10271. else
  10272. gl_have_pthread_h=no
  10273. fi
  10274. if test "$gl_have_pthread_h" = yes; then
  10275. # Other possible tests:
  10276. # -lpthreads (FSU threads, PCthreads)
  10277. # -lgthreads
  10278. gl_have_pthread=
  10279. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  10280. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  10281. # the second one only in libpthread, and lock.c needs it.
  10282. cat >conftest.$ac_ext <<_ACEOF
  10283. /* confdefs.h. */
  10284. _ACEOF
  10285. cat confdefs.h >>conftest.$ac_ext
  10286. cat >>conftest.$ac_ext <<_ACEOF
  10287. /* end confdefs.h. */
  10288. #include <pthread.h>
  10289. int
  10290. main ()
  10291. {
  10292. pthread_mutex_lock((pthread_mutex_t*)0);
  10293. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  10294. ;
  10295. return 0;
  10296. }
  10297. _ACEOF
  10298. rm -f conftest.$ac_objext conftest$ac_exeext
  10299. if { (ac_try="$ac_link"
  10300. case "(($ac_try" in
  10301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10302. *) ac_try_echo=$ac_try;;
  10303. esac
  10304. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10305. (eval "$ac_link") 2>conftest.er1
  10306. ac_status=$?
  10307. grep -v '^ *+' conftest.er1 >conftest.err
  10308. rm -f conftest.er1
  10309. cat conftest.err >&5
  10310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10311. (exit $ac_status); } && {
  10312. test -z "$ac_cxx_werror_flag" ||
  10313. test ! -s conftest.err
  10314. } && test -s conftest$ac_exeext &&
  10315. $as_test_x conftest$ac_exeext; then
  10316. gl_have_pthread=yes
  10317. else
  10318. echo "$as_me: failed program was:" >&5
  10319. sed 's/^/| /' conftest.$ac_ext >&5
  10320. fi
  10321. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10322. conftest$ac_exeext conftest.$ac_ext
  10323. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  10324. # since it is defined as a macro on OSF/1.)
  10325. if test -n "$gl_have_pthread"; then
  10326. # The program links fine without libpthread. But it may actually
  10327. # need to link with libpthread in order to create multiple threads.
  10328. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  10329. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  10330. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  10331. echo $ECHO_N "(cached) $ECHO_C" >&6
  10332. else
  10333. ac_check_lib_save_LIBS=$LIBS
  10334. LIBS="-lpthread $LIBS"
  10335. cat >conftest.$ac_ext <<_ACEOF
  10336. /* confdefs.h. */
  10337. _ACEOF
  10338. cat confdefs.h >>conftest.$ac_ext
  10339. cat >>conftest.$ac_ext <<_ACEOF
  10340. /* end confdefs.h. */
  10341. /* Override any GCC internal prototype to avoid an error.
  10342. Use char because int might match the return type of a GCC
  10343. builtin and then its argument prototype would still apply. */
  10344. #ifdef __cplusplus
  10345. extern "C"
  10346. #endif
  10347. char pthread_kill ();
  10348. int
  10349. main ()
  10350. {
  10351. return pthread_kill ();
  10352. ;
  10353. return 0;
  10354. }
  10355. _ACEOF
  10356. rm -f conftest.$ac_objext conftest$ac_exeext
  10357. if { (ac_try="$ac_link"
  10358. case "(($ac_try" in
  10359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10360. *) ac_try_echo=$ac_try;;
  10361. esac
  10362. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10363. (eval "$ac_link") 2>conftest.er1
  10364. ac_status=$?
  10365. grep -v '^ *+' conftest.er1 >conftest.err
  10366. rm -f conftest.er1
  10367. cat conftest.err >&5
  10368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10369. (exit $ac_status); } && {
  10370. test -z "$ac_cxx_werror_flag" ||
  10371. test ! -s conftest.err
  10372. } && test -s conftest$ac_exeext &&
  10373. $as_test_x conftest$ac_exeext; then
  10374. ac_cv_lib_pthread_pthread_kill=yes
  10375. else
  10376. echo "$as_me: failed program was:" >&5
  10377. sed 's/^/| /' conftest.$ac_ext >&5
  10378. ac_cv_lib_pthread_pthread_kill=no
  10379. fi
  10380. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10381. conftest$ac_exeext conftest.$ac_ext
  10382. LIBS=$ac_check_lib_save_LIBS
  10383. fi
  10384. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  10385. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  10386. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  10387. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  10388. # On Solaris and HP-UX, most pthread functions exist also in libc.
  10389. # Therefore pthread_in_use() needs to actually try to create a
  10390. # thread: pthread_create from libc will fail, whereas
  10391. # pthread_create will actually create a thread.
  10392. case "$host_os" in
  10393. solaris* | hpux*)
  10394. cat >>confdefs.h <<\_ACEOF
  10395. #define PTHREAD_IN_USE_DETECTION_HARD 1
  10396. _ACEOF
  10397. esac
  10398. fi
  10399. else
  10400. # Some library is needed. Try libpthread and libc_r.
  10401. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  10402. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  10403. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  10404. echo $ECHO_N "(cached) $ECHO_C" >&6
  10405. else
  10406. ac_check_lib_save_LIBS=$LIBS
  10407. LIBS="-lpthread $LIBS"
  10408. cat >conftest.$ac_ext <<_ACEOF
  10409. /* confdefs.h. */
  10410. _ACEOF
  10411. cat confdefs.h >>conftest.$ac_ext
  10412. cat >>conftest.$ac_ext <<_ACEOF
  10413. /* end confdefs.h. */
  10414. /* Override any GCC internal prototype to avoid an error.
  10415. Use char because int might match the return type of a GCC
  10416. builtin and then its argument prototype would still apply. */
  10417. #ifdef __cplusplus
  10418. extern "C"
  10419. #endif
  10420. char pthread_kill ();
  10421. int
  10422. main ()
  10423. {
  10424. return pthread_kill ();
  10425. ;
  10426. return 0;
  10427. }
  10428. _ACEOF
  10429. rm -f conftest.$ac_objext conftest$ac_exeext
  10430. if { (ac_try="$ac_link"
  10431. case "(($ac_try" in
  10432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10433. *) ac_try_echo=$ac_try;;
  10434. esac
  10435. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10436. (eval "$ac_link") 2>conftest.er1
  10437. ac_status=$?
  10438. grep -v '^ *+' conftest.er1 >conftest.err
  10439. rm -f conftest.er1
  10440. cat conftest.err >&5
  10441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10442. (exit $ac_status); } && {
  10443. test -z "$ac_cxx_werror_flag" ||
  10444. test ! -s conftest.err
  10445. } && test -s conftest$ac_exeext &&
  10446. $as_test_x conftest$ac_exeext; then
  10447. ac_cv_lib_pthread_pthread_kill=yes
  10448. else
  10449. echo "$as_me: failed program was:" >&5
  10450. sed 's/^/| /' conftest.$ac_ext >&5
  10451. ac_cv_lib_pthread_pthread_kill=no
  10452. fi
  10453. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10454. conftest$ac_exeext conftest.$ac_ext
  10455. LIBS=$ac_check_lib_save_LIBS
  10456. fi
  10457. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  10458. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  10459. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  10460. gl_have_pthread=yes
  10461. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  10462. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  10463. fi
  10464. if test -z "$gl_have_pthread"; then
  10465. # For FreeBSD 4.
  10466. { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  10467. echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
  10468. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  10469. echo $ECHO_N "(cached) $ECHO_C" >&6
  10470. else
  10471. ac_check_lib_save_LIBS=$LIBS
  10472. LIBS="-lc_r $LIBS"
  10473. cat >conftest.$ac_ext <<_ACEOF
  10474. /* confdefs.h. */
  10475. _ACEOF
  10476. cat confdefs.h >>conftest.$ac_ext
  10477. cat >>conftest.$ac_ext <<_ACEOF
  10478. /* end confdefs.h. */
  10479. /* Override any GCC internal prototype to avoid an error.
  10480. Use char because int might match the return type of a GCC
  10481. builtin and then its argument prototype would still apply. */
  10482. #ifdef __cplusplus
  10483. extern "C"
  10484. #endif
  10485. char pthread_kill ();
  10486. int
  10487. main ()
  10488. {
  10489. return pthread_kill ();
  10490. ;
  10491. return 0;
  10492. }
  10493. _ACEOF
  10494. rm -f conftest.$ac_objext conftest$ac_exeext
  10495. if { (ac_try="$ac_link"
  10496. case "(($ac_try" in
  10497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10498. *) ac_try_echo=$ac_try;;
  10499. esac
  10500. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10501. (eval "$ac_link") 2>conftest.er1
  10502. ac_status=$?
  10503. grep -v '^ *+' conftest.er1 >conftest.err
  10504. rm -f conftest.er1
  10505. cat conftest.err >&5
  10506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10507. (exit $ac_status); } && {
  10508. test -z "$ac_cxx_werror_flag" ||
  10509. test ! -s conftest.err
  10510. } && test -s conftest$ac_exeext &&
  10511. $as_test_x conftest$ac_exeext; then
  10512. ac_cv_lib_c_r_pthread_kill=yes
  10513. else
  10514. echo "$as_me: failed program was:" >&5
  10515. sed 's/^/| /' conftest.$ac_ext >&5
  10516. ac_cv_lib_c_r_pthread_kill=no
  10517. fi
  10518. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10519. conftest$ac_exeext conftest.$ac_ext
  10520. LIBS=$ac_check_lib_save_LIBS
  10521. fi
  10522. { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  10523. echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
  10524. if test $ac_cv_lib_c_r_pthread_kill = yes; then
  10525. gl_have_pthread=yes
  10526. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  10527. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  10528. fi
  10529. fi
  10530. fi
  10531. if test -n "$gl_have_pthread"; then
  10532. gl_threads_api=posix
  10533. cat >>confdefs.h <<\_ACEOF
  10534. #define USE_POSIX_THREADS 1
  10535. _ACEOF
  10536. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  10537. if test $gl_have_weak = yes; then
  10538. cat >>confdefs.h <<\_ACEOF
  10539. #define USE_POSIX_THREADS_WEAK 1
  10540. _ACEOF
  10541. LIBTHREAD=
  10542. LTLIBTHREAD=
  10543. fi
  10544. fi
  10545. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  10546. # pthread_rwlock_* functions.
  10547. { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  10548. echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
  10549. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  10550. echo $ECHO_N "(cached) $ECHO_C" >&6
  10551. else
  10552. cat >conftest.$ac_ext <<_ACEOF
  10553. /* confdefs.h. */
  10554. _ACEOF
  10555. cat confdefs.h >>conftest.$ac_ext
  10556. cat >>conftest.$ac_ext <<_ACEOF
  10557. /* end confdefs.h. */
  10558. #include <pthread.h>
  10559. typedef pthread_rwlock_t ac__type_new_;
  10560. int
  10561. main ()
  10562. {
  10563. if ((ac__type_new_ *) 0)
  10564. return 0;
  10565. if (sizeof (ac__type_new_))
  10566. return 0;
  10567. ;
  10568. return 0;
  10569. }
  10570. _ACEOF
  10571. rm -f conftest.$ac_objext
  10572. if { (ac_try="$ac_compile"
  10573. case "(($ac_try" in
  10574. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10575. *) ac_try_echo=$ac_try;;
  10576. esac
  10577. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10578. (eval "$ac_compile") 2>conftest.er1
  10579. ac_status=$?
  10580. grep -v '^ *+' conftest.er1 >conftest.err
  10581. rm -f conftest.er1
  10582. cat conftest.err >&5
  10583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10584. (exit $ac_status); } && {
  10585. test -z "$ac_cxx_werror_flag" ||
  10586. test ! -s conftest.err
  10587. } && test -s conftest.$ac_objext; then
  10588. ac_cv_type_pthread_rwlock_t=yes
  10589. else
  10590. echo "$as_me: failed program was:" >&5
  10591. sed 's/^/| /' conftest.$ac_ext >&5
  10592. ac_cv_type_pthread_rwlock_t=no
  10593. fi
  10594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10595. fi
  10596. { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  10597. echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
  10598. if test $ac_cv_type_pthread_rwlock_t = yes; then
  10599. cat >>confdefs.h <<\_ACEOF
  10600. #define HAVE_PTHREAD_RWLOCK 1
  10601. _ACEOF
  10602. fi
  10603. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  10604. cat >conftest.$ac_ext <<_ACEOF
  10605. /* confdefs.h. */
  10606. _ACEOF
  10607. cat confdefs.h >>conftest.$ac_ext
  10608. cat >>conftest.$ac_ext <<_ACEOF
  10609. /* end confdefs.h. */
  10610. #include <pthread.h>
  10611. int
  10612. main ()
  10613. {
  10614. #if __FreeBSD__ == 4
  10615. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  10616. #else
  10617. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  10618. return !x;
  10619. #endif
  10620. ;
  10621. return 0;
  10622. }
  10623. _ACEOF
  10624. rm -f conftest.$ac_objext
  10625. if { (ac_try="$ac_compile"
  10626. case "(($ac_try" in
  10627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10628. *) ac_try_echo=$ac_try;;
  10629. esac
  10630. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10631. (eval "$ac_compile") 2>conftest.er1
  10632. ac_status=$?
  10633. grep -v '^ *+' conftest.er1 >conftest.err
  10634. rm -f conftest.er1
  10635. cat conftest.err >&5
  10636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10637. (exit $ac_status); } && {
  10638. test -z "$ac_cxx_werror_flag" ||
  10639. test ! -s conftest.err
  10640. } && test -s conftest.$ac_objext; then
  10641. cat >>confdefs.h <<\_ACEOF
  10642. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  10643. _ACEOF
  10644. else
  10645. echo "$as_me: failed program was:" >&5
  10646. sed 's/^/| /' conftest.$ac_ext >&5
  10647. fi
  10648. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10649. fi
  10650. fi
  10651. fi
  10652. if test -z "$gl_have_pthread"; then
  10653. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  10654. gl_have_solaristhread=
  10655. gl_save_LIBS="$LIBS"
  10656. LIBS="$LIBS -lthread"
  10657. cat >conftest.$ac_ext <<_ACEOF
  10658. /* confdefs.h. */
  10659. _ACEOF
  10660. cat confdefs.h >>conftest.$ac_ext
  10661. cat >>conftest.$ac_ext <<_ACEOF
  10662. /* end confdefs.h. */
  10663. #include <thread.h>
  10664. #include <synch.h>
  10665. int
  10666. main ()
  10667. {
  10668. thr_self();
  10669. ;
  10670. return 0;
  10671. }
  10672. _ACEOF
  10673. rm -f conftest.$ac_objext conftest$ac_exeext
  10674. if { (ac_try="$ac_link"
  10675. case "(($ac_try" in
  10676. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10677. *) ac_try_echo=$ac_try;;
  10678. esac
  10679. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10680. (eval "$ac_link") 2>conftest.er1
  10681. ac_status=$?
  10682. grep -v '^ *+' conftest.er1 >conftest.err
  10683. rm -f conftest.er1
  10684. cat conftest.err >&5
  10685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10686. (exit $ac_status); } && {
  10687. test -z "$ac_cxx_werror_flag" ||
  10688. test ! -s conftest.err
  10689. } && test -s conftest$ac_exeext &&
  10690. $as_test_x conftest$ac_exeext; then
  10691. gl_have_solaristhread=yes
  10692. else
  10693. echo "$as_me: failed program was:" >&5
  10694. sed 's/^/| /' conftest.$ac_ext >&5
  10695. fi
  10696. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10697. conftest$ac_exeext conftest.$ac_ext
  10698. LIBS="$gl_save_LIBS"
  10699. if test -n "$gl_have_solaristhread"; then
  10700. gl_threads_api=solaris
  10701. LIBTHREAD=-lthread
  10702. LTLIBTHREAD=-lthread
  10703. LIBMULTITHREAD="$LIBTHREAD"
  10704. LTLIBMULTITHREAD="$LTLIBTHREAD"
  10705. cat >>confdefs.h <<\_ACEOF
  10706. #define USE_SOLARIS_THREADS 1
  10707. _ACEOF
  10708. if test $gl_have_weak = yes; then
  10709. cat >>confdefs.h <<\_ACEOF
  10710. #define USE_SOLARIS_THREADS_WEAK 1
  10711. _ACEOF
  10712. LIBTHREAD=
  10713. LTLIBTHREAD=
  10714. fi
  10715. fi
  10716. fi
  10717. fi
  10718. if test "$gl_use_threads" = pth; then
  10719. gl_save_CPPFLAGS="$CPPFLAGS"
  10720. { echo "$as_me:$LINENO: checking how to link with libpth" >&5
  10721. echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
  10722. if test "${ac_cv_libpth_libs+set}" = set; then
  10723. echo $ECHO_N "(cached) $ECHO_C" >&6
  10724. else
  10725. use_additional=yes
  10726. acl_save_prefix="$prefix"
  10727. prefix="$acl_final_prefix"
  10728. acl_save_exec_prefix="$exec_prefix"
  10729. exec_prefix="$acl_final_exec_prefix"
  10730. eval additional_includedir=\"$includedir\"
  10731. eval additional_libdir=\"$libdir\"
  10732. exec_prefix="$acl_save_exec_prefix"
  10733. prefix="$acl_save_prefix"
  10734. # Check whether --with-libpth-prefix was given.
  10735. if test "${with_libpth_prefix+set}" = set; then
  10736. withval=$with_libpth_prefix;
  10737. if test "X$withval" = "Xno"; then
  10738. use_additional=no
  10739. else
  10740. if test "X$withval" = "X"; then
  10741. acl_save_prefix="$prefix"
  10742. prefix="$acl_final_prefix"
  10743. acl_save_exec_prefix="$exec_prefix"
  10744. exec_prefix="$acl_final_exec_prefix"
  10745. eval additional_includedir=\"$includedir\"
  10746. eval additional_libdir=\"$libdir\"
  10747. exec_prefix="$acl_save_exec_prefix"
  10748. prefix="$acl_save_prefix"
  10749. else
  10750. additional_includedir="$withval/include"
  10751. additional_libdir="$withval/$acl_libdirstem"
  10752. fi
  10753. fi
  10754. fi
  10755. LIBPTH=
  10756. LTLIBPTH=
  10757. INCPTH=
  10758. LIBPTH_PREFIX=
  10759. rpathdirs=
  10760. ltrpathdirs=
  10761. names_already_handled=
  10762. names_next_round='pth '
  10763. while test -n "$names_next_round"; do
  10764. names_this_round="$names_next_round"
  10765. names_next_round=
  10766. for name in $names_this_round; do
  10767. already_handled=
  10768. for n in $names_already_handled; do
  10769. if test "$n" = "$name"; then
  10770. already_handled=yes
  10771. break
  10772. fi
  10773. done
  10774. if test -z "$already_handled"; then
  10775. names_already_handled="$names_already_handled $name"
  10776. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  10777. eval value=\"\$HAVE_LIB$uppername\"
  10778. if test -n "$value"; then
  10779. if test "$value" = yes; then
  10780. eval value=\"\$LIB$uppername\"
  10781. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  10782. eval value=\"\$LTLIB$uppername\"
  10783. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  10784. else
  10785. :
  10786. fi
  10787. else
  10788. found_dir=
  10789. found_la=
  10790. found_so=
  10791. found_a=
  10792. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  10793. if test -n "$acl_shlibext"; then
  10794. shrext=".$acl_shlibext" # typically: shrext=.so
  10795. else
  10796. shrext=
  10797. fi
  10798. if test $use_additional = yes; then
  10799. dir="$additional_libdir"
  10800. if test -n "$acl_shlibext"; then
  10801. if test -f "$dir/$libname$shrext"; then
  10802. found_dir="$dir"
  10803. found_so="$dir/$libname$shrext"
  10804. else
  10805. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  10806. ver=`(cd "$dir" && \
  10807. for f in "$libname$shrext".*; do echo "$f"; done \
  10808. | sed -e "s,^$libname$shrext\\\\.,," \
  10809. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  10810. | sed 1q ) 2>/dev/null`
  10811. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  10812. found_dir="$dir"
  10813. found_so="$dir/$libname$shrext.$ver"
  10814. fi
  10815. else
  10816. eval library_names=\"$acl_library_names_spec\"
  10817. for f in $library_names; do
  10818. if test -f "$dir/$f"; then
  10819. found_dir="$dir"
  10820. found_so="$dir/$f"
  10821. break
  10822. fi
  10823. done
  10824. fi
  10825. fi
  10826. fi
  10827. if test "X$found_dir" = "X"; then
  10828. if test -f "$dir/$libname.$acl_libext"; then
  10829. found_dir="$dir"
  10830. found_a="$dir/$libname.$acl_libext"
  10831. fi
  10832. fi
  10833. if test "X$found_dir" != "X"; then
  10834. if test -f "$dir/$libname.la"; then
  10835. found_la="$dir/$libname.la"
  10836. fi
  10837. fi
  10838. fi
  10839. if test "X$found_dir" = "X"; then
  10840. for x in $LDFLAGS $LTLIBPTH; do
  10841. acl_save_prefix="$prefix"
  10842. prefix="$acl_final_prefix"
  10843. acl_save_exec_prefix="$exec_prefix"
  10844. exec_prefix="$acl_final_exec_prefix"
  10845. eval x=\"$x\"
  10846. exec_prefix="$acl_save_exec_prefix"
  10847. prefix="$acl_save_prefix"
  10848. case "$x" in
  10849. -L*)
  10850. dir=`echo "X$x" | sed -e 's/^X-L//'`
  10851. if test -n "$acl_shlibext"; then
  10852. if test -f "$dir/$libname$shrext"; then
  10853. found_dir="$dir"
  10854. found_so="$dir/$libname$shrext"
  10855. else
  10856. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  10857. ver=`(cd "$dir" && \
  10858. for f in "$libname$shrext".*; do echo "$f"; done \
  10859. | sed -e "s,^$libname$shrext\\\\.,," \
  10860. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  10861. | sed 1q ) 2>/dev/null`
  10862. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  10863. found_dir="$dir"
  10864. found_so="$dir/$libname$shrext.$ver"
  10865. fi
  10866. else
  10867. eval library_names=\"$acl_library_names_spec\"
  10868. for f in $library_names; do
  10869. if test -f "$dir/$f"; then
  10870. found_dir="$dir"
  10871. found_so="$dir/$f"
  10872. break
  10873. fi
  10874. done
  10875. fi
  10876. fi
  10877. fi
  10878. if test "X$found_dir" = "X"; then
  10879. if test -f "$dir/$libname.$acl_libext"; then
  10880. found_dir="$dir"
  10881. found_a="$dir/$libname.$acl_libext"
  10882. fi
  10883. fi
  10884. if test "X$found_dir" != "X"; then
  10885. if test -f "$dir/$libname.la"; then
  10886. found_la="$dir/$libname.la"
  10887. fi
  10888. fi
  10889. ;;
  10890. esac
  10891. if test "X$found_dir" != "X"; then
  10892. break
  10893. fi
  10894. done
  10895. fi
  10896. if test "X$found_dir" != "X"; then
  10897. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  10898. if test "X$found_so" != "X"; then
  10899. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  10900. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  10901. else
  10902. haveit=
  10903. for x in $ltrpathdirs; do
  10904. if test "X$x" = "X$found_dir"; then
  10905. haveit=yes
  10906. break
  10907. fi
  10908. done
  10909. if test -z "$haveit"; then
  10910. ltrpathdirs="$ltrpathdirs $found_dir"
  10911. fi
  10912. if test "$acl_hardcode_direct" = yes; then
  10913. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  10914. else
  10915. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  10916. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  10917. haveit=
  10918. for x in $rpathdirs; do
  10919. if test "X$x" = "X$found_dir"; then
  10920. haveit=yes
  10921. break
  10922. fi
  10923. done
  10924. if test -z "$haveit"; then
  10925. rpathdirs="$rpathdirs $found_dir"
  10926. fi
  10927. else
  10928. haveit=
  10929. for x in $LDFLAGS $LIBPTH; do
  10930. acl_save_prefix="$prefix"
  10931. prefix="$acl_final_prefix"
  10932. acl_save_exec_prefix="$exec_prefix"
  10933. exec_prefix="$acl_final_exec_prefix"
  10934. eval x=\"$x\"
  10935. exec_prefix="$acl_save_exec_prefix"
  10936. prefix="$acl_save_prefix"
  10937. if test "X$x" = "X-L$found_dir"; then
  10938. haveit=yes
  10939. break
  10940. fi
  10941. done
  10942. if test -z "$haveit"; then
  10943. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  10944. fi
  10945. if test "$acl_hardcode_minus_L" != no; then
  10946. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  10947. else
  10948. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  10949. fi
  10950. fi
  10951. fi
  10952. fi
  10953. else
  10954. if test "X$found_a" != "X"; then
  10955. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  10956. else
  10957. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  10958. fi
  10959. fi
  10960. additional_includedir=
  10961. case "$found_dir" in
  10962. */$acl_libdirstem | */$acl_libdirstem/)
  10963. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  10964. LIBPTH_PREFIX="$basedir"
  10965. additional_includedir="$basedir/include"
  10966. ;;
  10967. esac
  10968. if test "X$additional_includedir" != "X"; then
  10969. if test "X$additional_includedir" != "X/usr/include"; then
  10970. haveit=
  10971. if test "X$additional_includedir" = "X/usr/local/include"; then
  10972. if test -n "$GCC"; then
  10973. case $host_os in
  10974. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  10975. esac
  10976. fi
  10977. fi
  10978. if test -z "$haveit"; then
  10979. for x in $CPPFLAGS $INCPTH; do
  10980. acl_save_prefix="$prefix"
  10981. prefix="$acl_final_prefix"
  10982. acl_save_exec_prefix="$exec_prefix"
  10983. exec_prefix="$acl_final_exec_prefix"
  10984. eval x=\"$x\"
  10985. exec_prefix="$acl_save_exec_prefix"
  10986. prefix="$acl_save_prefix"
  10987. if test "X$x" = "X-I$additional_includedir"; then
  10988. haveit=yes
  10989. break
  10990. fi
  10991. done
  10992. if test -z "$haveit"; then
  10993. if test -d "$additional_includedir"; then
  10994. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  10995. fi
  10996. fi
  10997. fi
  10998. fi
  10999. fi
  11000. if test -n "$found_la"; then
  11001. save_libdir="$libdir"
  11002. case "$found_la" in
  11003. */* | *\\*) . "$found_la" ;;
  11004. *) . "./$found_la" ;;
  11005. esac
  11006. libdir="$save_libdir"
  11007. for dep in $dependency_libs; do
  11008. case "$dep" in
  11009. -L*)
  11010. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11011. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11012. haveit=
  11013. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11014. if test -n "$GCC"; then
  11015. case $host_os in
  11016. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11017. esac
  11018. fi
  11019. fi
  11020. if test -z "$haveit"; then
  11021. haveit=
  11022. for x in $LDFLAGS $LIBPTH; do
  11023. acl_save_prefix="$prefix"
  11024. prefix="$acl_final_prefix"
  11025. acl_save_exec_prefix="$exec_prefix"
  11026. exec_prefix="$acl_final_exec_prefix"
  11027. eval x=\"$x\"
  11028. exec_prefix="$acl_save_exec_prefix"
  11029. prefix="$acl_save_prefix"
  11030. if test "X$x" = "X-L$additional_libdir"; then
  11031. haveit=yes
  11032. break
  11033. fi
  11034. done
  11035. if test -z "$haveit"; then
  11036. if test -d "$additional_libdir"; then
  11037. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  11038. fi
  11039. fi
  11040. haveit=
  11041. for x in $LDFLAGS $LTLIBPTH; do
  11042. acl_save_prefix="$prefix"
  11043. prefix="$acl_final_prefix"
  11044. acl_save_exec_prefix="$exec_prefix"
  11045. exec_prefix="$acl_final_exec_prefix"
  11046. eval x=\"$x\"
  11047. exec_prefix="$acl_save_exec_prefix"
  11048. prefix="$acl_save_prefix"
  11049. if test "X$x" = "X-L$additional_libdir"; then
  11050. haveit=yes
  11051. break
  11052. fi
  11053. done
  11054. if test -z "$haveit"; then
  11055. if test -d "$additional_libdir"; then
  11056. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  11057. fi
  11058. fi
  11059. fi
  11060. fi
  11061. ;;
  11062. -R*)
  11063. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11064. if test "$enable_rpath" != no; then
  11065. haveit=
  11066. for x in $rpathdirs; do
  11067. if test "X$x" = "X$dir"; then
  11068. haveit=yes
  11069. break
  11070. fi
  11071. done
  11072. if test -z "$haveit"; then
  11073. rpathdirs="$rpathdirs $dir"
  11074. fi
  11075. haveit=
  11076. for x in $ltrpathdirs; do
  11077. if test "X$x" = "X$dir"; then
  11078. haveit=yes
  11079. break
  11080. fi
  11081. done
  11082. if test -z "$haveit"; then
  11083. ltrpathdirs="$ltrpathdirs $dir"
  11084. fi
  11085. fi
  11086. ;;
  11087. -l*)
  11088. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11089. ;;
  11090. *.la)
  11091. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11092. ;;
  11093. *)
  11094. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  11095. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  11096. ;;
  11097. esac
  11098. done
  11099. fi
  11100. else
  11101. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11102. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  11103. fi
  11104. fi
  11105. fi
  11106. done
  11107. done
  11108. if test "X$rpathdirs" != "X"; then
  11109. if test -n "$acl_hardcode_libdir_separator"; then
  11110. alldirs=
  11111. for found_dir in $rpathdirs; do
  11112. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11113. done
  11114. acl_save_libdir="$libdir"
  11115. libdir="$alldirs"
  11116. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11117. libdir="$acl_save_libdir"
  11118. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11119. else
  11120. for found_dir in $rpathdirs; do
  11121. acl_save_libdir="$libdir"
  11122. libdir="$found_dir"
  11123. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11124. libdir="$acl_save_libdir"
  11125. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11126. done
  11127. fi
  11128. fi
  11129. if test "X$ltrpathdirs" != "X"; then
  11130. for found_dir in $ltrpathdirs; do
  11131. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  11132. done
  11133. fi
  11134. ac_cv_libpth_libs="$LIBPTH"
  11135. ac_cv_libpth_ltlibs="$LTLIBPTH"
  11136. ac_cv_libpth_cppflags="$INCPTH"
  11137. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  11138. fi
  11139. { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  11140. echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
  11141. LIBPTH="$ac_cv_libpth_libs"
  11142. LTLIBPTH="$ac_cv_libpth_ltlibs"
  11143. INCPTH="$ac_cv_libpth_cppflags"
  11144. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  11145. for element in $INCPTH; do
  11146. haveit=
  11147. for x in $CPPFLAGS; do
  11148. acl_save_prefix="$prefix"
  11149. prefix="$acl_final_prefix"
  11150. acl_save_exec_prefix="$exec_prefix"
  11151. exec_prefix="$acl_final_exec_prefix"
  11152. eval x=\"$x\"
  11153. exec_prefix="$acl_save_exec_prefix"
  11154. prefix="$acl_save_prefix"
  11155. if test "X$x" = "X$element"; then
  11156. haveit=yes
  11157. break
  11158. fi
  11159. done
  11160. if test -z "$haveit"; then
  11161. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11162. fi
  11163. done
  11164. HAVE_LIBPTH=yes
  11165. gl_have_pth=
  11166. gl_save_LIBS="$LIBS"
  11167. LIBS="$LIBS -lpth"
  11168. cat >conftest.$ac_ext <<_ACEOF
  11169. /* confdefs.h. */
  11170. _ACEOF
  11171. cat confdefs.h >>conftest.$ac_ext
  11172. cat >>conftest.$ac_ext <<_ACEOF
  11173. /* end confdefs.h. */
  11174. #include <pth.h>
  11175. int
  11176. main ()
  11177. {
  11178. pth_self();
  11179. ;
  11180. return 0;
  11181. }
  11182. _ACEOF
  11183. rm -f conftest.$ac_objext conftest$ac_exeext
  11184. if { (ac_try="$ac_link"
  11185. case "(($ac_try" in
  11186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11187. *) ac_try_echo=$ac_try;;
  11188. esac
  11189. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11190. (eval "$ac_link") 2>conftest.er1
  11191. ac_status=$?
  11192. grep -v '^ *+' conftest.er1 >conftest.err
  11193. rm -f conftest.er1
  11194. cat conftest.err >&5
  11195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11196. (exit $ac_status); } && {
  11197. test -z "$ac_cxx_werror_flag" ||
  11198. test ! -s conftest.err
  11199. } && test -s conftest$ac_exeext &&
  11200. $as_test_x conftest$ac_exeext; then
  11201. gl_have_pth=yes
  11202. else
  11203. echo "$as_me: failed program was:" >&5
  11204. sed 's/^/| /' conftest.$ac_ext >&5
  11205. fi
  11206. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11207. conftest$ac_exeext conftest.$ac_ext
  11208. LIBS="$gl_save_LIBS"
  11209. if test -n "$gl_have_pth"; then
  11210. gl_threads_api=pth
  11211. LIBTHREAD="$LIBPTH"
  11212. LTLIBTHREAD="$LTLIBPTH"
  11213. LIBMULTITHREAD="$LIBTHREAD"
  11214. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11215. cat >>confdefs.h <<\_ACEOF
  11216. #define USE_PTH_THREADS 1
  11217. _ACEOF
  11218. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11219. if test $gl_have_weak = yes; then
  11220. cat >>confdefs.h <<\_ACEOF
  11221. #define USE_PTH_THREADS_WEAK 1
  11222. _ACEOF
  11223. LIBTHREAD=
  11224. LTLIBTHREAD=
  11225. fi
  11226. fi
  11227. else
  11228. CPPFLAGS="$gl_save_CPPFLAGS"
  11229. fi
  11230. fi
  11231. if test -z "$gl_have_pthread"; then
  11232. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  11233. if { case "$host_os" in
  11234. mingw*) true;;
  11235. *) false;;
  11236. esac
  11237. }; then
  11238. gl_threads_api=win32
  11239. cat >>confdefs.h <<\_ACEOF
  11240. #define USE_WIN32_THREADS 1
  11241. _ACEOF
  11242. fi
  11243. fi
  11244. fi
  11245. fi
  11246. { echo "$as_me:$LINENO: checking for multithread API to use" >&5
  11247. echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
  11248. { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  11249. echo "${ECHO_T}$gl_threads_api" >&6; }
  11250. use_additional=yes
  11251. acl_save_prefix="$prefix"
  11252. prefix="$acl_final_prefix"
  11253. acl_save_exec_prefix="$exec_prefix"
  11254. exec_prefix="$acl_final_exec_prefix"
  11255. eval additional_includedir=\"$includedir\"
  11256. eval additional_libdir=\"$libdir\"
  11257. exec_prefix="$acl_save_exec_prefix"
  11258. prefix="$acl_save_prefix"
  11259. # Check whether --with-libiconv-prefix was given.
  11260. if test "${with_libiconv_prefix+set}" = set; then
  11261. withval=$with_libiconv_prefix;
  11262. if test "X$withval" = "Xno"; then
  11263. use_additional=no
  11264. else
  11265. if test "X$withval" = "X"; then
  11266. acl_save_prefix="$prefix"
  11267. prefix="$acl_final_prefix"
  11268. acl_save_exec_prefix="$exec_prefix"
  11269. exec_prefix="$acl_final_exec_prefix"
  11270. eval additional_includedir=\"$includedir\"
  11271. eval additional_libdir=\"$libdir\"
  11272. exec_prefix="$acl_save_exec_prefix"
  11273. prefix="$acl_save_prefix"
  11274. else
  11275. additional_includedir="$withval/include"
  11276. additional_libdir="$withval/$acl_libdirstem"
  11277. fi
  11278. fi
  11279. fi
  11280. LIBICONV=
  11281. LTLIBICONV=
  11282. INCICONV=
  11283. LIBICONV_PREFIX=
  11284. rpathdirs=
  11285. ltrpathdirs=
  11286. names_already_handled=
  11287. names_next_round='iconv '
  11288. while test -n "$names_next_round"; do
  11289. names_this_round="$names_next_round"
  11290. names_next_round=
  11291. for name in $names_this_round; do
  11292. already_handled=
  11293. for n in $names_already_handled; do
  11294. if test "$n" = "$name"; then
  11295. already_handled=yes
  11296. break
  11297. fi
  11298. done
  11299. if test -z "$already_handled"; then
  11300. names_already_handled="$names_already_handled $name"
  11301. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11302. eval value=\"\$HAVE_LIB$uppername\"
  11303. if test -n "$value"; then
  11304. if test "$value" = yes; then
  11305. eval value=\"\$LIB$uppername\"
  11306. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  11307. eval value=\"\$LTLIB$uppername\"
  11308. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  11309. else
  11310. :
  11311. fi
  11312. else
  11313. found_dir=
  11314. found_la=
  11315. found_so=
  11316. found_a=
  11317. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11318. if test -n "$acl_shlibext"; then
  11319. shrext=".$acl_shlibext" # typically: shrext=.so
  11320. else
  11321. shrext=
  11322. fi
  11323. if test $use_additional = yes; then
  11324. dir="$additional_libdir"
  11325. if test -n "$acl_shlibext"; then
  11326. if test -f "$dir/$libname$shrext"; then
  11327. found_dir="$dir"
  11328. found_so="$dir/$libname$shrext"
  11329. else
  11330. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11331. ver=`(cd "$dir" && \
  11332. for f in "$libname$shrext".*; do echo "$f"; done \
  11333. | sed -e "s,^$libname$shrext\\\\.,," \
  11334. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11335. | sed 1q ) 2>/dev/null`
  11336. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11337. found_dir="$dir"
  11338. found_so="$dir/$libname$shrext.$ver"
  11339. fi
  11340. else
  11341. eval library_names=\"$acl_library_names_spec\"
  11342. for f in $library_names; do
  11343. if test -f "$dir/$f"; then
  11344. found_dir="$dir"
  11345. found_so="$dir/$f"
  11346. break
  11347. fi
  11348. done
  11349. fi
  11350. fi
  11351. fi
  11352. if test "X$found_dir" = "X"; then
  11353. if test -f "$dir/$libname.$acl_libext"; then
  11354. found_dir="$dir"
  11355. found_a="$dir/$libname.$acl_libext"
  11356. fi
  11357. fi
  11358. if test "X$found_dir" != "X"; then
  11359. if test -f "$dir/$libname.la"; then
  11360. found_la="$dir/$libname.la"
  11361. fi
  11362. fi
  11363. fi
  11364. if test "X$found_dir" = "X"; then
  11365. for x in $LDFLAGS $LTLIBICONV; do
  11366. acl_save_prefix="$prefix"
  11367. prefix="$acl_final_prefix"
  11368. acl_save_exec_prefix="$exec_prefix"
  11369. exec_prefix="$acl_final_exec_prefix"
  11370. eval x=\"$x\"
  11371. exec_prefix="$acl_save_exec_prefix"
  11372. prefix="$acl_save_prefix"
  11373. case "$x" in
  11374. -L*)
  11375. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11376. if test -n "$acl_shlibext"; then
  11377. if test -f "$dir/$libname$shrext"; then
  11378. found_dir="$dir"
  11379. found_so="$dir/$libname$shrext"
  11380. else
  11381. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11382. ver=`(cd "$dir" && \
  11383. for f in "$libname$shrext".*; do echo "$f"; done \
  11384. | sed -e "s,^$libname$shrext\\\\.,," \
  11385. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11386. | sed 1q ) 2>/dev/null`
  11387. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11388. found_dir="$dir"
  11389. found_so="$dir/$libname$shrext.$ver"
  11390. fi
  11391. else
  11392. eval library_names=\"$acl_library_names_spec\"
  11393. for f in $library_names; do
  11394. if test -f "$dir/$f"; then
  11395. found_dir="$dir"
  11396. found_so="$dir/$f"
  11397. break
  11398. fi
  11399. done
  11400. fi
  11401. fi
  11402. fi
  11403. if test "X$found_dir" = "X"; then
  11404. if test -f "$dir/$libname.$acl_libext"; then
  11405. found_dir="$dir"
  11406. found_a="$dir/$libname.$acl_libext"
  11407. fi
  11408. fi
  11409. if test "X$found_dir" != "X"; then
  11410. if test -f "$dir/$libname.la"; then
  11411. found_la="$dir/$libname.la"
  11412. fi
  11413. fi
  11414. ;;
  11415. esac
  11416. if test "X$found_dir" != "X"; then
  11417. break
  11418. fi
  11419. done
  11420. fi
  11421. if test "X$found_dir" != "X"; then
  11422. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  11423. if test "X$found_so" != "X"; then
  11424. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11425. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11426. else
  11427. haveit=
  11428. for x in $ltrpathdirs; do
  11429. if test "X$x" = "X$found_dir"; then
  11430. haveit=yes
  11431. break
  11432. fi
  11433. done
  11434. if test -z "$haveit"; then
  11435. ltrpathdirs="$ltrpathdirs $found_dir"
  11436. fi
  11437. if test "$acl_hardcode_direct" = yes; then
  11438. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11439. else
  11440. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11441. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11442. haveit=
  11443. for x in $rpathdirs; do
  11444. if test "X$x" = "X$found_dir"; then
  11445. haveit=yes
  11446. break
  11447. fi
  11448. done
  11449. if test -z "$haveit"; then
  11450. rpathdirs="$rpathdirs $found_dir"
  11451. fi
  11452. else
  11453. haveit=
  11454. for x in $LDFLAGS $LIBICONV; do
  11455. acl_save_prefix="$prefix"
  11456. prefix="$acl_final_prefix"
  11457. acl_save_exec_prefix="$exec_prefix"
  11458. exec_prefix="$acl_final_exec_prefix"
  11459. eval x=\"$x\"
  11460. exec_prefix="$acl_save_exec_prefix"
  11461. prefix="$acl_save_prefix"
  11462. if test "X$x" = "X-L$found_dir"; then
  11463. haveit=yes
  11464. break
  11465. fi
  11466. done
  11467. if test -z "$haveit"; then
  11468. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  11469. fi
  11470. if test "$acl_hardcode_minus_L" != no; then
  11471. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11472. else
  11473. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  11474. fi
  11475. fi
  11476. fi
  11477. fi
  11478. else
  11479. if test "X$found_a" != "X"; then
  11480. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  11481. else
  11482. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  11483. fi
  11484. fi
  11485. additional_includedir=
  11486. case "$found_dir" in
  11487. */$acl_libdirstem | */$acl_libdirstem/)
  11488. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11489. LIBICONV_PREFIX="$basedir"
  11490. additional_includedir="$basedir/include"
  11491. ;;
  11492. esac
  11493. if test "X$additional_includedir" != "X"; then
  11494. if test "X$additional_includedir" != "X/usr/include"; then
  11495. haveit=
  11496. if test "X$additional_includedir" = "X/usr/local/include"; then
  11497. if test -n "$GCC"; then
  11498. case $host_os in
  11499. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11500. esac
  11501. fi
  11502. fi
  11503. if test -z "$haveit"; then
  11504. for x in $CPPFLAGS $INCICONV; do
  11505. acl_save_prefix="$prefix"
  11506. prefix="$acl_final_prefix"
  11507. acl_save_exec_prefix="$exec_prefix"
  11508. exec_prefix="$acl_final_exec_prefix"
  11509. eval x=\"$x\"
  11510. exec_prefix="$acl_save_exec_prefix"
  11511. prefix="$acl_save_prefix"
  11512. if test "X$x" = "X-I$additional_includedir"; then
  11513. haveit=yes
  11514. break
  11515. fi
  11516. done
  11517. if test -z "$haveit"; then
  11518. if test -d "$additional_includedir"; then
  11519. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  11520. fi
  11521. fi
  11522. fi
  11523. fi
  11524. fi
  11525. if test -n "$found_la"; then
  11526. save_libdir="$libdir"
  11527. case "$found_la" in
  11528. */* | *\\*) . "$found_la" ;;
  11529. *) . "./$found_la" ;;
  11530. esac
  11531. libdir="$save_libdir"
  11532. for dep in $dependency_libs; do
  11533. case "$dep" in
  11534. -L*)
  11535. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11536. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11537. haveit=
  11538. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11539. if test -n "$GCC"; then
  11540. case $host_os in
  11541. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11542. esac
  11543. fi
  11544. fi
  11545. if test -z "$haveit"; then
  11546. haveit=
  11547. for x in $LDFLAGS $LIBICONV; do
  11548. acl_save_prefix="$prefix"
  11549. prefix="$acl_final_prefix"
  11550. acl_save_exec_prefix="$exec_prefix"
  11551. exec_prefix="$acl_final_exec_prefix"
  11552. eval x=\"$x\"
  11553. exec_prefix="$acl_save_exec_prefix"
  11554. prefix="$acl_save_prefix"
  11555. if test "X$x" = "X-L$additional_libdir"; then
  11556. haveit=yes
  11557. break
  11558. fi
  11559. done
  11560. if test -z "$haveit"; then
  11561. if test -d "$additional_libdir"; then
  11562. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  11563. fi
  11564. fi
  11565. haveit=
  11566. for x in $LDFLAGS $LTLIBICONV; do
  11567. acl_save_prefix="$prefix"
  11568. prefix="$acl_final_prefix"
  11569. acl_save_exec_prefix="$exec_prefix"
  11570. exec_prefix="$acl_final_exec_prefix"
  11571. eval x=\"$x\"
  11572. exec_prefix="$acl_save_exec_prefix"
  11573. prefix="$acl_save_prefix"
  11574. if test "X$x" = "X-L$additional_libdir"; then
  11575. haveit=yes
  11576. break
  11577. fi
  11578. done
  11579. if test -z "$haveit"; then
  11580. if test -d "$additional_libdir"; then
  11581. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  11582. fi
  11583. fi
  11584. fi
  11585. fi
  11586. ;;
  11587. -R*)
  11588. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11589. if test "$enable_rpath" != no; then
  11590. haveit=
  11591. for x in $rpathdirs; do
  11592. if test "X$x" = "X$dir"; then
  11593. haveit=yes
  11594. break
  11595. fi
  11596. done
  11597. if test -z "$haveit"; then
  11598. rpathdirs="$rpathdirs $dir"
  11599. fi
  11600. haveit=
  11601. for x in $ltrpathdirs; do
  11602. if test "X$x" = "X$dir"; then
  11603. haveit=yes
  11604. break
  11605. fi
  11606. done
  11607. if test -z "$haveit"; then
  11608. ltrpathdirs="$ltrpathdirs $dir"
  11609. fi
  11610. fi
  11611. ;;
  11612. -l*)
  11613. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11614. ;;
  11615. *.la)
  11616. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11617. ;;
  11618. *)
  11619. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  11620. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  11621. ;;
  11622. esac
  11623. done
  11624. fi
  11625. else
  11626. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  11627. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  11628. fi
  11629. fi
  11630. fi
  11631. done
  11632. done
  11633. if test "X$rpathdirs" != "X"; then
  11634. if test -n "$acl_hardcode_libdir_separator"; then
  11635. alldirs=
  11636. for found_dir in $rpathdirs; do
  11637. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11638. done
  11639. acl_save_libdir="$libdir"
  11640. libdir="$alldirs"
  11641. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11642. libdir="$acl_save_libdir"
  11643. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  11644. else
  11645. for found_dir in $rpathdirs; do
  11646. acl_save_libdir="$libdir"
  11647. libdir="$found_dir"
  11648. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11649. libdir="$acl_save_libdir"
  11650. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  11651. done
  11652. fi
  11653. fi
  11654. if test "X$ltrpathdirs" != "X"; then
  11655. for found_dir in $ltrpathdirs; do
  11656. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  11657. done
  11658. fi
  11659. cat >conftest.$ac_ext <<_ACEOF
  11660. /* confdefs.h. */
  11661. _ACEOF
  11662. cat confdefs.h >>conftest.$ac_ext
  11663. cat >>conftest.$ac_ext <<_ACEOF
  11664. /* end confdefs.h. */
  11665. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  11666. int
  11667. main ()
  11668. {
  11669. ;
  11670. return 0;
  11671. }
  11672. _ACEOF
  11673. rm -f conftest.$ac_objext conftest$ac_exeext
  11674. if { (ac_try="$ac_link"
  11675. case "(($ac_try" in
  11676. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11677. *) ac_try_echo=$ac_try;;
  11678. esac
  11679. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11680. (eval "$ac_link") 2>conftest.er1
  11681. ac_status=$?
  11682. grep -v '^ *+' conftest.er1 >conftest.err
  11683. rm -f conftest.er1
  11684. cat conftest.err >&5
  11685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11686. (exit $ac_status); } && {
  11687. test -z "$ac_cxx_werror_flag" ||
  11688. test ! -s conftest.err
  11689. } && test -s conftest$ac_exeext &&
  11690. $as_test_x conftest$ac_exeext; then
  11691. cat >>confdefs.h <<\_ACEOF
  11692. #define HAVE_BUILTIN_EXPECT 1
  11693. _ACEOF
  11694. else
  11695. echo "$as_me: failed program was:" >&5
  11696. sed 's/^/| /' conftest.$ac_ext >&5
  11697. fi
  11698. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11699. conftest$ac_exeext conftest.$ac_ext
  11700. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  11701. do
  11702. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11703. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11704. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  11705. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  11706. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11707. echo $ECHO_N "(cached) $ECHO_C" >&6
  11708. fi
  11709. ac_res=`eval echo '${'$as_ac_Header'}'`
  11710. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11711. echo "${ECHO_T}$ac_res" >&6; }
  11712. else
  11713. # Is the header compilable?
  11714. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11715. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  11716. cat >conftest.$ac_ext <<_ACEOF
  11717. /* confdefs.h. */
  11718. _ACEOF
  11719. cat confdefs.h >>conftest.$ac_ext
  11720. cat >>conftest.$ac_ext <<_ACEOF
  11721. /* end confdefs.h. */
  11722. $ac_includes_default
  11723. #include <$ac_header>
  11724. _ACEOF
  11725. rm -f conftest.$ac_objext
  11726. if { (ac_try="$ac_compile"
  11727. case "(($ac_try" in
  11728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11729. *) ac_try_echo=$ac_try;;
  11730. esac
  11731. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11732. (eval "$ac_compile") 2>conftest.er1
  11733. ac_status=$?
  11734. grep -v '^ *+' conftest.er1 >conftest.err
  11735. rm -f conftest.er1
  11736. cat conftest.err >&5
  11737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11738. (exit $ac_status); } && {
  11739. test -z "$ac_cxx_werror_flag" ||
  11740. test ! -s conftest.err
  11741. } && test -s conftest.$ac_objext; then
  11742. ac_header_compiler=yes
  11743. else
  11744. echo "$as_me: failed program was:" >&5
  11745. sed 's/^/| /' conftest.$ac_ext >&5
  11746. ac_header_compiler=no
  11747. fi
  11748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11749. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11750. echo "${ECHO_T}$ac_header_compiler" >&6; }
  11751. # Is the header present?
  11752. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11753. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  11754. cat >conftest.$ac_ext <<_ACEOF
  11755. /* confdefs.h. */
  11756. _ACEOF
  11757. cat confdefs.h >>conftest.$ac_ext
  11758. cat >>conftest.$ac_ext <<_ACEOF
  11759. /* end confdefs.h. */
  11760. #include <$ac_header>
  11761. _ACEOF
  11762. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11763. case "(($ac_try" in
  11764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11765. *) ac_try_echo=$ac_try;;
  11766. esac
  11767. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11768. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11769. ac_status=$?
  11770. grep -v '^ *+' conftest.er1 >conftest.err
  11771. rm -f conftest.er1
  11772. cat conftest.err >&5
  11773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11774. (exit $ac_status); } >/dev/null && {
  11775. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11776. test ! -s conftest.err
  11777. }; then
  11778. ac_header_preproc=yes
  11779. else
  11780. echo "$as_me: failed program was:" >&5
  11781. sed 's/^/| /' conftest.$ac_ext >&5
  11782. ac_header_preproc=no
  11783. fi
  11784. rm -f conftest.err conftest.$ac_ext
  11785. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11786. echo "${ECHO_T}$ac_header_preproc" >&6; }
  11787. # So? What about this header?
  11788. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11789. yes:no: )
  11790. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11791. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11792. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11793. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11794. ac_header_preproc=yes
  11795. ;;
  11796. no:yes:* )
  11797. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11798. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11799. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11800. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11801. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11802. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11803. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11804. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11805. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11806. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11807. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11808. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11809. ( cat <<\_ASBOX
  11810. ## ----------------------------------------------- ##
  11811. ## Report this to t-tujikawa@users.sourceforge.net ##
  11812. ## ----------------------------------------------- ##
  11813. _ASBOX
  11814. ) | sed "s/^/$as_me: WARNING: /" >&2
  11815. ;;
  11816. esac
  11817. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  11818. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  11819. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11820. echo $ECHO_N "(cached) $ECHO_C" >&6
  11821. else
  11822. eval "$as_ac_Header=\$ac_header_preproc"
  11823. fi
  11824. ac_res=`eval echo '${'$as_ac_Header'}'`
  11825. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11826. echo "${ECHO_T}$ac_res" >&6; }
  11827. fi
  11828. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  11829. cat >>confdefs.h <<_ACEOF
  11830. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11831. _ACEOF
  11832. fi
  11833. done
  11834. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  11835. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  11836. argz_next __fsetlocking
  11837. do
  11838. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11839. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11840. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11841. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11842. echo $ECHO_N "(cached) $ECHO_C" >&6
  11843. else
  11844. cat >conftest.$ac_ext <<_ACEOF
  11845. /* confdefs.h. */
  11846. _ACEOF
  11847. cat confdefs.h >>conftest.$ac_ext
  11848. cat >>conftest.$ac_ext <<_ACEOF
  11849. /* end confdefs.h. */
  11850. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11851. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11852. #define $ac_func innocuous_$ac_func
  11853. /* System header to define __stub macros and hopefully few prototypes,
  11854. which can conflict with char $ac_func (); below.
  11855. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11856. <limits.h> exists even on freestanding compilers. */
  11857. #ifdef __STDC__
  11858. # include <limits.h>
  11859. #else
  11860. # include <assert.h>
  11861. #endif
  11862. #undef $ac_func
  11863. /* Override any GCC internal prototype to avoid an error.
  11864. Use char because int might match the return type of a GCC
  11865. builtin and then its argument prototype would still apply. */
  11866. #ifdef __cplusplus
  11867. extern "C"
  11868. #endif
  11869. char $ac_func ();
  11870. /* The GNU C library defines this for functions which it implements
  11871. to always fail with ENOSYS. Some functions are actually named
  11872. something starting with __ and the normal name is an alias. */
  11873. #if defined __stub_$ac_func || defined __stub___$ac_func
  11874. choke me
  11875. #endif
  11876. int
  11877. main ()
  11878. {
  11879. return $ac_func ();
  11880. ;
  11881. return 0;
  11882. }
  11883. _ACEOF
  11884. rm -f conftest.$ac_objext conftest$ac_exeext
  11885. if { (ac_try="$ac_link"
  11886. case "(($ac_try" in
  11887. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11888. *) ac_try_echo=$ac_try;;
  11889. esac
  11890. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11891. (eval "$ac_link") 2>conftest.er1
  11892. ac_status=$?
  11893. grep -v '^ *+' conftest.er1 >conftest.err
  11894. rm -f conftest.er1
  11895. cat conftest.err >&5
  11896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11897. (exit $ac_status); } && {
  11898. test -z "$ac_cxx_werror_flag" ||
  11899. test ! -s conftest.err
  11900. } && test -s conftest$ac_exeext &&
  11901. $as_test_x conftest$ac_exeext; then
  11902. eval "$as_ac_var=yes"
  11903. else
  11904. echo "$as_me: failed program was:" >&5
  11905. sed 's/^/| /' conftest.$ac_ext >&5
  11906. eval "$as_ac_var=no"
  11907. fi
  11908. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11909. conftest$ac_exeext conftest.$ac_ext
  11910. fi
  11911. ac_res=`eval echo '${'$as_ac_var'}'`
  11912. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11913. echo "${ECHO_T}$ac_res" >&6; }
  11914. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11915. cat >>confdefs.h <<_ACEOF
  11916. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11917. _ACEOF
  11918. fi
  11919. done
  11920. { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  11921. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
  11922. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  11923. echo $ECHO_N "(cached) $ECHO_C" >&6
  11924. else
  11925. cat >conftest.$ac_ext <<_ACEOF
  11926. /* confdefs.h. */
  11927. _ACEOF
  11928. cat confdefs.h >>conftest.$ac_ext
  11929. cat >>conftest.$ac_ext <<_ACEOF
  11930. /* end confdefs.h. */
  11931. #include <stdio.h>
  11932. int
  11933. main ()
  11934. {
  11935. #ifndef feof_unlocked
  11936. char *p = (char *) feof_unlocked;
  11937. #endif
  11938. ;
  11939. return 0;
  11940. }
  11941. _ACEOF
  11942. rm -f conftest.$ac_objext
  11943. if { (ac_try="$ac_compile"
  11944. case "(($ac_try" in
  11945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11946. *) ac_try_echo=$ac_try;;
  11947. esac
  11948. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11949. (eval "$ac_compile") 2>conftest.er1
  11950. ac_status=$?
  11951. grep -v '^ *+' conftest.er1 >conftest.err
  11952. rm -f conftest.er1
  11953. cat conftest.err >&5
  11954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11955. (exit $ac_status); } && {
  11956. test -z "$ac_cxx_werror_flag" ||
  11957. test ! -s conftest.err
  11958. } && test -s conftest.$ac_objext; then
  11959. ac_cv_have_decl_feof_unlocked=yes
  11960. else
  11961. echo "$as_me: failed program was:" >&5
  11962. sed 's/^/| /' conftest.$ac_ext >&5
  11963. ac_cv_have_decl_feof_unlocked=no
  11964. fi
  11965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11966. fi
  11967. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  11968. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
  11969. if test $ac_cv_have_decl_feof_unlocked = yes; then
  11970. gt_value=1
  11971. else
  11972. gt_value=0
  11973. fi
  11974. cat >>confdefs.h <<_ACEOF
  11975. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  11976. _ACEOF
  11977. { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  11978. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
  11979. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  11980. echo $ECHO_N "(cached) $ECHO_C" >&6
  11981. else
  11982. cat >conftest.$ac_ext <<_ACEOF
  11983. /* confdefs.h. */
  11984. _ACEOF
  11985. cat confdefs.h >>conftest.$ac_ext
  11986. cat >>conftest.$ac_ext <<_ACEOF
  11987. /* end confdefs.h. */
  11988. #include <stdio.h>
  11989. int
  11990. main ()
  11991. {
  11992. #ifndef fgets_unlocked
  11993. char *p = (char *) fgets_unlocked;
  11994. #endif
  11995. ;
  11996. return 0;
  11997. }
  11998. _ACEOF
  11999. rm -f conftest.$ac_objext
  12000. if { (ac_try="$ac_compile"
  12001. case "(($ac_try" in
  12002. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12003. *) ac_try_echo=$ac_try;;
  12004. esac
  12005. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12006. (eval "$ac_compile") 2>conftest.er1
  12007. ac_status=$?
  12008. grep -v '^ *+' conftest.er1 >conftest.err
  12009. rm -f conftest.er1
  12010. cat conftest.err >&5
  12011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12012. (exit $ac_status); } && {
  12013. test -z "$ac_cxx_werror_flag" ||
  12014. test ! -s conftest.err
  12015. } && test -s conftest.$ac_objext; then
  12016. ac_cv_have_decl_fgets_unlocked=yes
  12017. else
  12018. echo "$as_me: failed program was:" >&5
  12019. sed 's/^/| /' conftest.$ac_ext >&5
  12020. ac_cv_have_decl_fgets_unlocked=no
  12021. fi
  12022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12023. fi
  12024. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  12025. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
  12026. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  12027. gt_value=1
  12028. else
  12029. gt_value=0
  12030. fi
  12031. cat >>confdefs.h <<_ACEOF
  12032. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  12033. _ACEOF
  12034. am_save_CPPFLAGS="$CPPFLAGS"
  12035. for element in $INCICONV; do
  12036. haveit=
  12037. for x in $CPPFLAGS; do
  12038. acl_save_prefix="$prefix"
  12039. prefix="$acl_final_prefix"
  12040. acl_save_exec_prefix="$exec_prefix"
  12041. exec_prefix="$acl_final_exec_prefix"
  12042. eval x=\"$x\"
  12043. exec_prefix="$acl_save_exec_prefix"
  12044. prefix="$acl_save_prefix"
  12045. if test "X$x" = "X$element"; then
  12046. haveit=yes
  12047. break
  12048. fi
  12049. done
  12050. if test -z "$haveit"; then
  12051. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12052. fi
  12053. done
  12054. { echo "$as_me:$LINENO: checking for iconv" >&5
  12055. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  12056. if test "${am_cv_func_iconv+set}" = set; then
  12057. echo $ECHO_N "(cached) $ECHO_C" >&6
  12058. else
  12059. am_cv_func_iconv="no, consider installing GNU libiconv"
  12060. am_cv_lib_iconv=no
  12061. cat >conftest.$ac_ext <<_ACEOF
  12062. /* confdefs.h. */
  12063. _ACEOF
  12064. cat confdefs.h >>conftest.$ac_ext
  12065. cat >>conftest.$ac_ext <<_ACEOF
  12066. /* end confdefs.h. */
  12067. #include <stdlib.h>
  12068. #include <iconv.h>
  12069. int
  12070. main ()
  12071. {
  12072. iconv_t cd = iconv_open("","");
  12073. iconv(cd,NULL,NULL,NULL,NULL);
  12074. iconv_close(cd);
  12075. ;
  12076. return 0;
  12077. }
  12078. _ACEOF
  12079. rm -f conftest.$ac_objext conftest$ac_exeext
  12080. if { (ac_try="$ac_link"
  12081. case "(($ac_try" in
  12082. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12083. *) ac_try_echo=$ac_try;;
  12084. esac
  12085. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12086. (eval "$ac_link") 2>conftest.er1
  12087. ac_status=$?
  12088. grep -v '^ *+' conftest.er1 >conftest.err
  12089. rm -f conftest.er1
  12090. cat conftest.err >&5
  12091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12092. (exit $ac_status); } && {
  12093. test -z "$ac_cxx_werror_flag" ||
  12094. test ! -s conftest.err
  12095. } && test -s conftest$ac_exeext &&
  12096. $as_test_x conftest$ac_exeext; then
  12097. am_cv_func_iconv=yes
  12098. else
  12099. echo "$as_me: failed program was:" >&5
  12100. sed 's/^/| /' conftest.$ac_ext >&5
  12101. fi
  12102. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12103. conftest$ac_exeext conftest.$ac_ext
  12104. if test "$am_cv_func_iconv" != yes; then
  12105. am_save_LIBS="$LIBS"
  12106. LIBS="$LIBS $LIBICONV"
  12107. cat >conftest.$ac_ext <<_ACEOF
  12108. /* confdefs.h. */
  12109. _ACEOF
  12110. cat confdefs.h >>conftest.$ac_ext
  12111. cat >>conftest.$ac_ext <<_ACEOF
  12112. /* end confdefs.h. */
  12113. #include <stdlib.h>
  12114. #include <iconv.h>
  12115. int
  12116. main ()
  12117. {
  12118. iconv_t cd = iconv_open("","");
  12119. iconv(cd,NULL,NULL,NULL,NULL);
  12120. iconv_close(cd);
  12121. ;
  12122. return 0;
  12123. }
  12124. _ACEOF
  12125. rm -f conftest.$ac_objext conftest$ac_exeext
  12126. if { (ac_try="$ac_link"
  12127. case "(($ac_try" in
  12128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12129. *) ac_try_echo=$ac_try;;
  12130. esac
  12131. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12132. (eval "$ac_link") 2>conftest.er1
  12133. ac_status=$?
  12134. grep -v '^ *+' conftest.er1 >conftest.err
  12135. rm -f conftest.er1
  12136. cat conftest.err >&5
  12137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12138. (exit $ac_status); } && {
  12139. test -z "$ac_cxx_werror_flag" ||
  12140. test ! -s conftest.err
  12141. } && test -s conftest$ac_exeext &&
  12142. $as_test_x conftest$ac_exeext; then
  12143. am_cv_lib_iconv=yes
  12144. am_cv_func_iconv=yes
  12145. else
  12146. echo "$as_me: failed program was:" >&5
  12147. sed 's/^/| /' conftest.$ac_ext >&5
  12148. fi
  12149. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12150. conftest$ac_exeext conftest.$ac_ext
  12151. LIBS="$am_save_LIBS"
  12152. fi
  12153. fi
  12154. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  12155. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  12156. if test "$am_cv_func_iconv" = yes; then
  12157. { echo "$as_me:$LINENO: checking for working iconv" >&5
  12158. echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
  12159. if test "${am_cv_func_iconv_works+set}" = set; then
  12160. echo $ECHO_N "(cached) $ECHO_C" >&6
  12161. else
  12162. am_save_LIBS="$LIBS"
  12163. if test $am_cv_lib_iconv = yes; then
  12164. LIBS="$LIBS $LIBICONV"
  12165. fi
  12166. if test "$cross_compiling" = yes; then
  12167. case "$host_os" in
  12168. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  12169. *) am_cv_func_iconv_works="guessing yes" ;;
  12170. esac
  12171. else
  12172. cat >conftest.$ac_ext <<_ACEOF
  12173. /* confdefs.h. */
  12174. _ACEOF
  12175. cat confdefs.h >>conftest.$ac_ext
  12176. cat >>conftest.$ac_ext <<_ACEOF
  12177. /* end confdefs.h. */
  12178. #include <iconv.h>
  12179. #include <string.h>
  12180. int main ()
  12181. {
  12182. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  12183. returns. */
  12184. {
  12185. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  12186. if (cd_utf8_to_88591 != (iconv_t)(-1))
  12187. {
  12188. static const char input[] = "\342\202\254"; /* EURO SIGN */
  12189. char buf[10];
  12190. const char *inptr = input;
  12191. size_t inbytesleft = strlen (input);
  12192. char *outptr = buf;
  12193. size_t outbytesleft = sizeof (buf);
  12194. size_t res = iconv (cd_utf8_to_88591,
  12195. (char **) &inptr, &inbytesleft,
  12196. &outptr, &outbytesleft);
  12197. if (res == 0)
  12198. return 1;
  12199. }
  12200. }
  12201. #if 0 /* This bug could be worked around by the caller. */
  12202. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  12203. {
  12204. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  12205. if (cd_88591_to_utf8 != (iconv_t)(-1))
  12206. {
  12207. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  12208. char buf[50];
  12209. const char *inptr = input;
  12210. size_t inbytesleft = strlen (input);
  12211. char *outptr = buf;
  12212. size_t outbytesleft = sizeof (buf);
  12213. size_t res = iconv (cd_88591_to_utf8,
  12214. (char **) &inptr, &inbytesleft,
  12215. &outptr, &outbytesleft);
  12216. if ((int)res > 0)
  12217. return 1;
  12218. }
  12219. }
  12220. #endif
  12221. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  12222. provided. */
  12223. if (/* Try standardized names. */
  12224. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  12225. /* Try IRIX, OSF/1 names. */
  12226. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  12227. /* Try AIX names. */
  12228. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  12229. /* Try HP-UX names. */
  12230. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  12231. return 1;
  12232. return 0;
  12233. }
  12234. _ACEOF
  12235. rm -f conftest$ac_exeext
  12236. if { (ac_try="$ac_link"
  12237. case "(($ac_try" in
  12238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12239. *) ac_try_echo=$ac_try;;
  12240. esac
  12241. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12242. (eval "$ac_link") 2>&5
  12243. ac_status=$?
  12244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12245. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12246. { (case "(($ac_try" in
  12247. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12248. *) ac_try_echo=$ac_try;;
  12249. esac
  12250. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12251. (eval "$ac_try") 2>&5
  12252. ac_status=$?
  12253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12254. (exit $ac_status); }; }; then
  12255. am_cv_func_iconv_works=yes
  12256. else
  12257. echo "$as_me: program exited with status $ac_status" >&5
  12258. echo "$as_me: failed program was:" >&5
  12259. sed 's/^/| /' conftest.$ac_ext >&5
  12260. ( exit $ac_status )
  12261. am_cv_func_iconv_works=no
  12262. fi
  12263. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12264. fi
  12265. LIBS="$am_save_LIBS"
  12266. fi
  12267. { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  12268. echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
  12269. case "$am_cv_func_iconv_works" in
  12270. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  12271. *) am_func_iconv=yes ;;
  12272. esac
  12273. else
  12274. am_func_iconv=no am_cv_lib_iconv=no
  12275. fi
  12276. if test "$am_func_iconv" = yes; then
  12277. cat >>confdefs.h <<\_ACEOF
  12278. #define HAVE_ICONV 1
  12279. _ACEOF
  12280. fi
  12281. if test "$am_cv_lib_iconv" = yes; then
  12282. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  12283. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  12284. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  12285. echo "${ECHO_T}$LIBICONV" >&6; }
  12286. else
  12287. CPPFLAGS="$am_save_CPPFLAGS"
  12288. LIBICONV=
  12289. LTLIBICONV=
  12290. fi
  12291. if test "$am_cv_func_iconv" = yes; then
  12292. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  12293. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  12294. if test "${am_cv_proto_iconv+set}" = set; then
  12295. echo $ECHO_N "(cached) $ECHO_C" >&6
  12296. else
  12297. cat >conftest.$ac_ext <<_ACEOF
  12298. /* confdefs.h. */
  12299. _ACEOF
  12300. cat confdefs.h >>conftest.$ac_ext
  12301. cat >>conftest.$ac_ext <<_ACEOF
  12302. /* end confdefs.h. */
  12303. #include <stdlib.h>
  12304. #include <iconv.h>
  12305. extern
  12306. #ifdef __cplusplus
  12307. "C"
  12308. #endif
  12309. #if defined(__STDC__) || defined(__cplusplus)
  12310. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  12311. #else
  12312. size_t iconv();
  12313. #endif
  12314. int
  12315. main ()
  12316. {
  12317. ;
  12318. return 0;
  12319. }
  12320. _ACEOF
  12321. rm -f conftest.$ac_objext
  12322. if { (ac_try="$ac_compile"
  12323. case "(($ac_try" in
  12324. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12325. *) ac_try_echo=$ac_try;;
  12326. esac
  12327. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12328. (eval "$ac_compile") 2>conftest.er1
  12329. ac_status=$?
  12330. grep -v '^ *+' conftest.er1 >conftest.err
  12331. rm -f conftest.er1
  12332. cat conftest.err >&5
  12333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12334. (exit $ac_status); } && {
  12335. test -z "$ac_cxx_werror_flag" ||
  12336. test ! -s conftest.err
  12337. } && test -s conftest.$ac_objext; then
  12338. am_cv_proto_iconv_arg1=""
  12339. else
  12340. echo "$as_me: failed program was:" >&5
  12341. sed 's/^/| /' conftest.$ac_ext >&5
  12342. am_cv_proto_iconv_arg1="const"
  12343. fi
  12344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12345. 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);"
  12346. fi
  12347. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  12348. { echo "$as_me:$LINENO: result: ${ac_t:-
  12349. }$am_cv_proto_iconv" >&5
  12350. echo "${ECHO_T}${ac_t:-
  12351. }$am_cv_proto_iconv" >&6; }
  12352. cat >>confdefs.h <<_ACEOF
  12353. #define ICONV_CONST $am_cv_proto_iconv_arg1
  12354. _ACEOF
  12355. fi
  12356. { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  12357. echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
  12358. if test "${gt_cv_nl_locale_name+set}" = set; then
  12359. echo $ECHO_N "(cached) $ECHO_C" >&6
  12360. else
  12361. cat >conftest.$ac_ext <<_ACEOF
  12362. /* confdefs.h. */
  12363. _ACEOF
  12364. cat confdefs.h >>conftest.$ac_ext
  12365. cat >>conftest.$ac_ext <<_ACEOF
  12366. /* end confdefs.h. */
  12367. #include <langinfo.h>
  12368. #include <locale.h>
  12369. int
  12370. main ()
  12371. {
  12372. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  12373. return !cs;
  12374. ;
  12375. return 0;
  12376. }
  12377. _ACEOF
  12378. rm -f conftest.$ac_objext conftest$ac_exeext
  12379. if { (ac_try="$ac_link"
  12380. case "(($ac_try" in
  12381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12382. *) ac_try_echo=$ac_try;;
  12383. esac
  12384. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12385. (eval "$ac_link") 2>conftest.er1
  12386. ac_status=$?
  12387. grep -v '^ *+' conftest.er1 >conftest.err
  12388. rm -f conftest.er1
  12389. cat conftest.err >&5
  12390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12391. (exit $ac_status); } && {
  12392. test -z "$ac_cxx_werror_flag" ||
  12393. test ! -s conftest.err
  12394. } && test -s conftest$ac_exeext &&
  12395. $as_test_x conftest$ac_exeext; then
  12396. gt_cv_nl_locale_name=yes
  12397. else
  12398. echo "$as_me: failed program was:" >&5
  12399. sed 's/^/| /' conftest.$ac_ext >&5
  12400. gt_cv_nl_locale_name=no
  12401. fi
  12402. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12403. conftest$ac_exeext conftest.$ac_ext
  12404. fi
  12405. { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  12406. echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
  12407. if test $gt_cv_nl_locale_name = yes; then
  12408. cat >>confdefs.h <<\_ACEOF
  12409. #define HAVE_NL_LOCALE_NAME 1
  12410. _ACEOF
  12411. fi
  12412. for ac_prog in bison
  12413. do
  12414. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12415. set dummy $ac_prog; ac_word=$2
  12416. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  12417. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12418. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  12419. echo $ECHO_N "(cached) $ECHO_C" >&6
  12420. else
  12421. if test -n "$INTLBISON"; then
  12422. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  12423. else
  12424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12425. for as_dir in $PATH
  12426. do
  12427. IFS=$as_save_IFS
  12428. test -z "$as_dir" && as_dir=.
  12429. for ac_exec_ext in '' $ac_executable_extensions; do
  12430. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12431. ac_cv_prog_INTLBISON="$ac_prog"
  12432. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12433. break 2
  12434. fi
  12435. done
  12436. done
  12437. IFS=$as_save_IFS
  12438. fi
  12439. fi
  12440. INTLBISON=$ac_cv_prog_INTLBISON
  12441. if test -n "$INTLBISON"; then
  12442. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  12443. echo "${ECHO_T}$INTLBISON" >&6; }
  12444. else
  12445. { echo "$as_me:$LINENO: result: no" >&5
  12446. echo "${ECHO_T}no" >&6; }
  12447. fi
  12448. test -n "$INTLBISON" && break
  12449. done
  12450. if test -z "$INTLBISON"; then
  12451. ac_verc_fail=yes
  12452. else
  12453. { echo "$as_me:$LINENO: checking version of bison" >&5
  12454. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  12455. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  12456. case $ac_prog_version in
  12457. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  12458. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  12459. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  12460. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  12461. esac
  12462. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  12463. echo "${ECHO_T}$ac_prog_version" >&6; }
  12464. fi
  12465. if test $ac_verc_fail = yes; then
  12466. INTLBISON=:
  12467. fi
  12468. { echo "$as_me:$LINENO: checking for long long int" >&5
  12469. echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
  12470. if test "${ac_cv_type_long_long_int+set}" = set; then
  12471. echo $ECHO_N "(cached) $ECHO_C" >&6
  12472. else
  12473. cat >conftest.$ac_ext <<_ACEOF
  12474. /* confdefs.h. */
  12475. _ACEOF
  12476. cat confdefs.h >>conftest.$ac_ext
  12477. cat >>conftest.$ac_ext <<_ACEOF
  12478. /* end confdefs.h. */
  12479. /* Test preprocessor. */
  12480. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  12481. error in preprocessor;
  12482. #endif
  12483. #if ! (18446744073709551615ULL <= -1ull)
  12484. error in preprocessor;
  12485. #endif
  12486. /* Test literals. */
  12487. long long int ll = 9223372036854775807ll;
  12488. long long int nll = -9223372036854775807LL;
  12489. unsigned long long int ull = 18446744073709551615ULL;
  12490. /* Test constant expressions. */
  12491. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  12492. ? 1 : -1)];
  12493. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  12494. ? 1 : -1)];
  12495. int i = 63;
  12496. int
  12497. main ()
  12498. {
  12499. /* Test availability of runtime routines for shift and division. */
  12500. long long int llmax = 9223372036854775807ll;
  12501. unsigned long long int ullmax = 18446744073709551615ull;
  12502. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  12503. | (llmax / ll) | (llmax % ll)
  12504. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  12505. | (ullmax / ull) | (ullmax % ull));
  12506. ;
  12507. return 0;
  12508. }
  12509. _ACEOF
  12510. rm -f conftest.$ac_objext conftest$ac_exeext
  12511. if { (ac_try="$ac_link"
  12512. case "(($ac_try" in
  12513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12514. *) ac_try_echo=$ac_try;;
  12515. esac
  12516. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12517. (eval "$ac_link") 2>conftest.er1
  12518. ac_status=$?
  12519. grep -v '^ *+' conftest.er1 >conftest.err
  12520. rm -f conftest.er1
  12521. cat conftest.err >&5
  12522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12523. (exit $ac_status); } && {
  12524. test -z "$ac_cxx_werror_flag" ||
  12525. test ! -s conftest.err
  12526. } && test -s conftest$ac_exeext &&
  12527. $as_test_x conftest$ac_exeext; then
  12528. if test "$cross_compiling" = yes; then
  12529. ac_cv_type_long_long_int=yes
  12530. else
  12531. cat >conftest.$ac_ext <<_ACEOF
  12532. /* confdefs.h. */
  12533. _ACEOF
  12534. cat confdefs.h >>conftest.$ac_ext
  12535. cat >>conftest.$ac_ext <<_ACEOF
  12536. /* end confdefs.h. */
  12537. #include <limits.h>
  12538. #ifndef LLONG_MAX
  12539. # define HALF \
  12540. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  12541. # define LLONG_MAX (HALF - 1 + HALF)
  12542. #endif
  12543. int
  12544. main ()
  12545. {
  12546. long long int n = 1;
  12547. int i;
  12548. for (i = 0; ; i++)
  12549. {
  12550. long long int m = n << i;
  12551. if (m >> i != n)
  12552. return 1;
  12553. if (LLONG_MAX / 2 < m)
  12554. break;
  12555. }
  12556. return 0;
  12557. ;
  12558. return 0;
  12559. }
  12560. _ACEOF
  12561. rm -f conftest$ac_exeext
  12562. if { (ac_try="$ac_link"
  12563. case "(($ac_try" in
  12564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12565. *) ac_try_echo=$ac_try;;
  12566. esac
  12567. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12568. (eval "$ac_link") 2>&5
  12569. ac_status=$?
  12570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12571. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12572. { (case "(($ac_try" in
  12573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12574. *) ac_try_echo=$ac_try;;
  12575. esac
  12576. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12577. (eval "$ac_try") 2>&5
  12578. ac_status=$?
  12579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12580. (exit $ac_status); }; }; then
  12581. ac_cv_type_long_long_int=yes
  12582. else
  12583. echo "$as_me: program exited with status $ac_status" >&5
  12584. echo "$as_me: failed program was:" >&5
  12585. sed 's/^/| /' conftest.$ac_ext >&5
  12586. ( exit $ac_status )
  12587. ac_cv_type_long_long_int=no
  12588. fi
  12589. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12590. fi
  12591. else
  12592. echo "$as_me: failed program was:" >&5
  12593. sed 's/^/| /' conftest.$ac_ext >&5
  12594. ac_cv_type_long_long_int=no
  12595. fi
  12596. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12597. conftest$ac_exeext conftest.$ac_ext
  12598. fi
  12599. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  12600. echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
  12601. if test $ac_cv_type_long_long_int = yes; then
  12602. cat >>confdefs.h <<\_ACEOF
  12603. #define HAVE_LONG_LONG_INT 1
  12604. _ACEOF
  12605. fi
  12606. { echo "$as_me:$LINENO: checking for wchar_t" >&5
  12607. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
  12608. if test "${gt_cv_c_wchar_t+set}" = set; then
  12609. echo $ECHO_N "(cached) $ECHO_C" >&6
  12610. else
  12611. cat >conftest.$ac_ext <<_ACEOF
  12612. /* confdefs.h. */
  12613. _ACEOF
  12614. cat confdefs.h >>conftest.$ac_ext
  12615. cat >>conftest.$ac_ext <<_ACEOF
  12616. /* end confdefs.h. */
  12617. #include <stddef.h>
  12618. wchar_t foo = (wchar_t)'\0';
  12619. int
  12620. main ()
  12621. {
  12622. ;
  12623. return 0;
  12624. }
  12625. _ACEOF
  12626. rm -f conftest.$ac_objext
  12627. if { (ac_try="$ac_compile"
  12628. case "(($ac_try" in
  12629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12630. *) ac_try_echo=$ac_try;;
  12631. esac
  12632. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12633. (eval "$ac_compile") 2>conftest.er1
  12634. ac_status=$?
  12635. grep -v '^ *+' conftest.er1 >conftest.err
  12636. rm -f conftest.er1
  12637. cat conftest.err >&5
  12638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12639. (exit $ac_status); } && {
  12640. test -z "$ac_cxx_werror_flag" ||
  12641. test ! -s conftest.err
  12642. } && test -s conftest.$ac_objext; then
  12643. gt_cv_c_wchar_t=yes
  12644. else
  12645. echo "$as_me: failed program was:" >&5
  12646. sed 's/^/| /' conftest.$ac_ext >&5
  12647. gt_cv_c_wchar_t=no
  12648. fi
  12649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12650. fi
  12651. { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  12652. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
  12653. if test $gt_cv_c_wchar_t = yes; then
  12654. cat >>confdefs.h <<\_ACEOF
  12655. #define HAVE_WCHAR_T 1
  12656. _ACEOF
  12657. fi
  12658. { echo "$as_me:$LINENO: checking for wint_t" >&5
  12659. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
  12660. if test "${gt_cv_c_wint_t+set}" = set; then
  12661. echo $ECHO_N "(cached) $ECHO_C" >&6
  12662. else
  12663. cat >conftest.$ac_ext <<_ACEOF
  12664. /* confdefs.h. */
  12665. _ACEOF
  12666. cat confdefs.h >>conftest.$ac_ext
  12667. cat >>conftest.$ac_ext <<_ACEOF
  12668. /* end confdefs.h. */
  12669. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  12670. <wchar.h>.
  12671. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  12672. before <wchar.h>. */
  12673. #include <stddef.h>
  12674. #include <stdio.h>
  12675. #include <time.h>
  12676. #include <wchar.h>
  12677. wint_t foo = (wchar_t)'\0';
  12678. int
  12679. main ()
  12680. {
  12681. ;
  12682. return 0;
  12683. }
  12684. _ACEOF
  12685. rm -f conftest.$ac_objext
  12686. if { (ac_try="$ac_compile"
  12687. case "(($ac_try" in
  12688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12689. *) ac_try_echo=$ac_try;;
  12690. esac
  12691. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12692. (eval "$ac_compile") 2>conftest.er1
  12693. ac_status=$?
  12694. grep -v '^ *+' conftest.er1 >conftest.err
  12695. rm -f conftest.er1
  12696. cat conftest.err >&5
  12697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12698. (exit $ac_status); } && {
  12699. test -z "$ac_cxx_werror_flag" ||
  12700. test ! -s conftest.err
  12701. } && test -s conftest.$ac_objext; then
  12702. gt_cv_c_wint_t=yes
  12703. else
  12704. echo "$as_me: failed program was:" >&5
  12705. sed 's/^/| /' conftest.$ac_ext >&5
  12706. gt_cv_c_wint_t=no
  12707. fi
  12708. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12709. fi
  12710. { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  12711. echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
  12712. if test $gt_cv_c_wint_t = yes; then
  12713. cat >>confdefs.h <<\_ACEOF
  12714. #define HAVE_WINT_T 1
  12715. _ACEOF
  12716. fi
  12717. { echo "$as_me:$LINENO: checking for intmax_t" >&5
  12718. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
  12719. if test "${gt_cv_c_intmax_t+set}" = set; then
  12720. echo $ECHO_N "(cached) $ECHO_C" >&6
  12721. else
  12722. cat >conftest.$ac_ext <<_ACEOF
  12723. /* confdefs.h. */
  12724. _ACEOF
  12725. cat confdefs.h >>conftest.$ac_ext
  12726. cat >>conftest.$ac_ext <<_ACEOF
  12727. /* end confdefs.h. */
  12728. #include <stddef.h>
  12729. #include <stdlib.h>
  12730. #if HAVE_STDINT_H_WITH_UINTMAX
  12731. #include <stdint.h>
  12732. #endif
  12733. #if HAVE_INTTYPES_H_WITH_UINTMAX
  12734. #include <inttypes.h>
  12735. #endif
  12736. int
  12737. main ()
  12738. {
  12739. intmax_t x = -1;
  12740. return !x;
  12741. ;
  12742. return 0;
  12743. }
  12744. _ACEOF
  12745. rm -f conftest.$ac_objext
  12746. if { (ac_try="$ac_compile"
  12747. case "(($ac_try" in
  12748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12749. *) ac_try_echo=$ac_try;;
  12750. esac
  12751. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12752. (eval "$ac_compile") 2>conftest.er1
  12753. ac_status=$?
  12754. grep -v '^ *+' conftest.er1 >conftest.err
  12755. rm -f conftest.er1
  12756. cat conftest.err >&5
  12757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12758. (exit $ac_status); } && {
  12759. test -z "$ac_cxx_werror_flag" ||
  12760. test ! -s conftest.err
  12761. } && test -s conftest.$ac_objext; then
  12762. gt_cv_c_intmax_t=yes
  12763. else
  12764. echo "$as_me: failed program was:" >&5
  12765. sed 's/^/| /' conftest.$ac_ext >&5
  12766. gt_cv_c_intmax_t=no
  12767. fi
  12768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12769. fi
  12770. { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  12771. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
  12772. if test $gt_cv_c_intmax_t = yes; then
  12773. cat >>confdefs.h <<\_ACEOF
  12774. #define HAVE_INTMAX_T 1
  12775. _ACEOF
  12776. fi
  12777. { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  12778. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
  12779. if test "${gt_cv_func_printf_posix+set}" = set; then
  12780. echo $ECHO_N "(cached) $ECHO_C" >&6
  12781. else
  12782. if test "$cross_compiling" = yes; then
  12783. cat >conftest.$ac_ext <<_ACEOF
  12784. /* confdefs.h. */
  12785. _ACEOF
  12786. cat confdefs.h >>conftest.$ac_ext
  12787. cat >>conftest.$ac_ext <<_ACEOF
  12788. /* end confdefs.h. */
  12789. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  12790. notposix
  12791. #endif
  12792. _ACEOF
  12793. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12794. $EGREP "notposix" >/dev/null 2>&1; then
  12795. gt_cv_func_printf_posix="guessing no"
  12796. else
  12797. gt_cv_func_printf_posix="guessing yes"
  12798. fi
  12799. rm -f conftest*
  12800. else
  12801. cat >conftest.$ac_ext <<_ACEOF
  12802. /* confdefs.h. */
  12803. _ACEOF
  12804. cat confdefs.h >>conftest.$ac_ext
  12805. cat >>conftest.$ac_ext <<_ACEOF
  12806. /* end confdefs.h. */
  12807. #include <stdio.h>
  12808. #include <string.h>
  12809. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  12810. dollar expansion (possibly an autoconf bug). */
  12811. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  12812. static char buf[100];
  12813. int main ()
  12814. {
  12815. sprintf (buf, format, 33, 55);
  12816. return (strcmp (buf, "55 33") != 0);
  12817. }
  12818. _ACEOF
  12819. rm -f conftest$ac_exeext
  12820. if { (ac_try="$ac_link"
  12821. case "(($ac_try" in
  12822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12823. *) ac_try_echo=$ac_try;;
  12824. esac
  12825. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12826. (eval "$ac_link") 2>&5
  12827. ac_status=$?
  12828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12829. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12830. { (case "(($ac_try" in
  12831. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12832. *) ac_try_echo=$ac_try;;
  12833. esac
  12834. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12835. (eval "$ac_try") 2>&5
  12836. ac_status=$?
  12837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12838. (exit $ac_status); }; }; then
  12839. gt_cv_func_printf_posix=yes
  12840. else
  12841. echo "$as_me: program exited with status $ac_status" >&5
  12842. echo "$as_me: failed program was:" >&5
  12843. sed 's/^/| /' conftest.$ac_ext >&5
  12844. ( exit $ac_status )
  12845. gt_cv_func_printf_posix=no
  12846. fi
  12847. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12848. fi
  12849. fi
  12850. { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  12851. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
  12852. case $gt_cv_func_printf_posix in
  12853. *yes)
  12854. cat >>confdefs.h <<\_ACEOF
  12855. #define HAVE_POSIX_PRINTF 1
  12856. _ACEOF
  12857. ;;
  12858. esac
  12859. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  12860. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  12861. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  12862. echo $ECHO_N "(cached) $ECHO_C" >&6
  12863. else
  12864. cat >conftest.$ac_ext <<_ACEOF
  12865. /* confdefs.h. */
  12866. _ACEOF
  12867. cat confdefs.h >>conftest.$ac_ext
  12868. cat >>conftest.$ac_ext <<_ACEOF
  12869. /* end confdefs.h. */
  12870. #include <features.h>
  12871. #ifdef __GNU_LIBRARY__
  12872. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  12873. Lucky GNU user
  12874. #endif
  12875. #endif
  12876. _ACEOF
  12877. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12878. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  12879. ac_cv_gnu_library_2_1=yes
  12880. else
  12881. ac_cv_gnu_library_2_1=no
  12882. fi
  12883. rm -f conftest*
  12884. fi
  12885. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  12886. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  12887. GLIBC21="$ac_cv_gnu_library_2_1"
  12888. for ac_header in stdint.h
  12889. do
  12890. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12891. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12892. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12893. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12894. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12895. echo $ECHO_N "(cached) $ECHO_C" >&6
  12896. fi
  12897. ac_res=`eval echo '${'$as_ac_Header'}'`
  12898. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12899. echo "${ECHO_T}$ac_res" >&6; }
  12900. else
  12901. # Is the header compilable?
  12902. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12903. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  12904. cat >conftest.$ac_ext <<_ACEOF
  12905. /* confdefs.h. */
  12906. _ACEOF
  12907. cat confdefs.h >>conftest.$ac_ext
  12908. cat >>conftest.$ac_ext <<_ACEOF
  12909. /* end confdefs.h. */
  12910. $ac_includes_default
  12911. #include <$ac_header>
  12912. _ACEOF
  12913. rm -f conftest.$ac_objext
  12914. if { (ac_try="$ac_compile"
  12915. case "(($ac_try" in
  12916. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12917. *) ac_try_echo=$ac_try;;
  12918. esac
  12919. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12920. (eval "$ac_compile") 2>conftest.er1
  12921. ac_status=$?
  12922. grep -v '^ *+' conftest.er1 >conftest.err
  12923. rm -f conftest.er1
  12924. cat conftest.err >&5
  12925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12926. (exit $ac_status); } && {
  12927. test -z "$ac_cxx_werror_flag" ||
  12928. test ! -s conftest.err
  12929. } && test -s conftest.$ac_objext; then
  12930. ac_header_compiler=yes
  12931. else
  12932. echo "$as_me: failed program was:" >&5
  12933. sed 's/^/| /' conftest.$ac_ext >&5
  12934. ac_header_compiler=no
  12935. fi
  12936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12937. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12938. echo "${ECHO_T}$ac_header_compiler" >&6; }
  12939. # Is the header present?
  12940. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12941. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  12942. cat >conftest.$ac_ext <<_ACEOF
  12943. /* confdefs.h. */
  12944. _ACEOF
  12945. cat confdefs.h >>conftest.$ac_ext
  12946. cat >>conftest.$ac_ext <<_ACEOF
  12947. /* end confdefs.h. */
  12948. #include <$ac_header>
  12949. _ACEOF
  12950. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12951. case "(($ac_try" in
  12952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12953. *) ac_try_echo=$ac_try;;
  12954. esac
  12955. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12956. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12957. ac_status=$?
  12958. grep -v '^ *+' conftest.er1 >conftest.err
  12959. rm -f conftest.er1
  12960. cat conftest.err >&5
  12961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12962. (exit $ac_status); } >/dev/null && {
  12963. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12964. test ! -s conftest.err
  12965. }; then
  12966. ac_header_preproc=yes
  12967. else
  12968. echo "$as_me: failed program was:" >&5
  12969. sed 's/^/| /' conftest.$ac_ext >&5
  12970. ac_header_preproc=no
  12971. fi
  12972. rm -f conftest.err conftest.$ac_ext
  12973. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12974. echo "${ECHO_T}$ac_header_preproc" >&6; }
  12975. # So? What about this header?
  12976. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  12977. yes:no: )
  12978. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12979. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12980. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12981. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12982. ac_header_preproc=yes
  12983. ;;
  12984. no:yes:* )
  12985. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12986. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12987. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12988. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12989. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12990. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12991. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12992. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12993. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12994. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12995. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12996. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12997. ( cat <<\_ASBOX
  12998. ## ----------------------------------------------- ##
  12999. ## Report this to t-tujikawa@users.sourceforge.net ##
  13000. ## ----------------------------------------------- ##
  13001. _ASBOX
  13002. ) | sed "s/^/$as_me: WARNING: /" >&2
  13003. ;;
  13004. esac
  13005. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13006. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13007. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13008. echo $ECHO_N "(cached) $ECHO_C" >&6
  13009. else
  13010. eval "$as_ac_Header=\$ac_header_preproc"
  13011. fi
  13012. ac_res=`eval echo '${'$as_ac_Header'}'`
  13013. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13014. echo "${ECHO_T}$ac_res" >&6; }
  13015. fi
  13016. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13017. cat >>confdefs.h <<_ACEOF
  13018. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13019. _ACEOF
  13020. fi
  13021. done
  13022. { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  13023. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
  13024. if test "${gl_cv_size_max+set}" = set; then
  13025. echo $ECHO_N "(cached) $ECHO_C" >&6
  13026. else
  13027. gl_cv_size_max=
  13028. cat >conftest.$ac_ext <<_ACEOF
  13029. /* confdefs.h. */
  13030. _ACEOF
  13031. cat confdefs.h >>conftest.$ac_ext
  13032. cat >>conftest.$ac_ext <<_ACEOF
  13033. /* end confdefs.h. */
  13034. #include <limits.h>
  13035. #if HAVE_STDINT_H
  13036. #include <stdint.h>
  13037. #endif
  13038. #ifdef SIZE_MAX
  13039. Found it
  13040. #endif
  13041. _ACEOF
  13042. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13043. $EGREP "Found it" >/dev/null 2>&1; then
  13044. gl_cv_size_max=yes
  13045. fi
  13046. rm -f conftest*
  13047. if test -z "$gl_cv_size_max"; then
  13048. if test "$cross_compiling" = yes; then
  13049. # Depending upon the size, compute the lo and hi bounds.
  13050. cat >conftest.$ac_ext <<_ACEOF
  13051. /* confdefs.h. */
  13052. _ACEOF
  13053. cat confdefs.h >>conftest.$ac_ext
  13054. cat >>conftest.$ac_ext <<_ACEOF
  13055. /* end confdefs.h. */
  13056. #include <stddef.h>
  13057. #include <limits.h>
  13058. int
  13059. main ()
  13060. {
  13061. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  13062. test_array [0] = 0
  13063. ;
  13064. return 0;
  13065. }
  13066. _ACEOF
  13067. rm -f conftest.$ac_objext
  13068. if { (ac_try="$ac_compile"
  13069. case "(($ac_try" in
  13070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13071. *) ac_try_echo=$ac_try;;
  13072. esac
  13073. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13074. (eval "$ac_compile") 2>conftest.er1
  13075. ac_status=$?
  13076. grep -v '^ *+' conftest.er1 >conftest.err
  13077. rm -f conftest.er1
  13078. cat conftest.err >&5
  13079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13080. (exit $ac_status); } && {
  13081. test -z "$ac_cxx_werror_flag" ||
  13082. test ! -s conftest.err
  13083. } && test -s conftest.$ac_objext; then
  13084. ac_lo=0 ac_mid=0
  13085. while :; do
  13086. cat >conftest.$ac_ext <<_ACEOF
  13087. /* confdefs.h. */
  13088. _ACEOF
  13089. cat confdefs.h >>conftest.$ac_ext
  13090. cat >>conftest.$ac_ext <<_ACEOF
  13091. /* end confdefs.h. */
  13092. #include <stddef.h>
  13093. #include <limits.h>
  13094. int
  13095. main ()
  13096. {
  13097. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13098. test_array [0] = 0
  13099. ;
  13100. return 0;
  13101. }
  13102. _ACEOF
  13103. rm -f conftest.$ac_objext
  13104. if { (ac_try="$ac_compile"
  13105. case "(($ac_try" in
  13106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13107. *) ac_try_echo=$ac_try;;
  13108. esac
  13109. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13110. (eval "$ac_compile") 2>conftest.er1
  13111. ac_status=$?
  13112. grep -v '^ *+' conftest.er1 >conftest.err
  13113. rm -f conftest.er1
  13114. cat conftest.err >&5
  13115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13116. (exit $ac_status); } && {
  13117. test -z "$ac_cxx_werror_flag" ||
  13118. test ! -s conftest.err
  13119. } && test -s conftest.$ac_objext; then
  13120. ac_hi=$ac_mid; break
  13121. else
  13122. echo "$as_me: failed program was:" >&5
  13123. sed 's/^/| /' conftest.$ac_ext >&5
  13124. ac_lo=`expr $ac_mid + 1`
  13125. if test $ac_lo -le $ac_mid; then
  13126. ac_lo= ac_hi=
  13127. break
  13128. fi
  13129. ac_mid=`expr 2 '*' $ac_mid + 1`
  13130. fi
  13131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13132. done
  13133. else
  13134. echo "$as_me: failed program was:" >&5
  13135. sed 's/^/| /' conftest.$ac_ext >&5
  13136. cat >conftest.$ac_ext <<_ACEOF
  13137. /* confdefs.h. */
  13138. _ACEOF
  13139. cat confdefs.h >>conftest.$ac_ext
  13140. cat >>conftest.$ac_ext <<_ACEOF
  13141. /* end confdefs.h. */
  13142. #include <stddef.h>
  13143. #include <limits.h>
  13144. int
  13145. main ()
  13146. {
  13147. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  13148. test_array [0] = 0
  13149. ;
  13150. return 0;
  13151. }
  13152. _ACEOF
  13153. rm -f conftest.$ac_objext
  13154. if { (ac_try="$ac_compile"
  13155. case "(($ac_try" in
  13156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13157. *) ac_try_echo=$ac_try;;
  13158. esac
  13159. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13160. (eval "$ac_compile") 2>conftest.er1
  13161. ac_status=$?
  13162. grep -v '^ *+' conftest.er1 >conftest.err
  13163. rm -f conftest.er1
  13164. cat conftest.err >&5
  13165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13166. (exit $ac_status); } && {
  13167. test -z "$ac_cxx_werror_flag" ||
  13168. test ! -s conftest.err
  13169. } && test -s conftest.$ac_objext; then
  13170. ac_hi=-1 ac_mid=-1
  13171. while :; do
  13172. cat >conftest.$ac_ext <<_ACEOF
  13173. /* confdefs.h. */
  13174. _ACEOF
  13175. cat confdefs.h >>conftest.$ac_ext
  13176. cat >>conftest.$ac_ext <<_ACEOF
  13177. /* end confdefs.h. */
  13178. #include <stddef.h>
  13179. #include <limits.h>
  13180. int
  13181. main ()
  13182. {
  13183. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  13184. test_array [0] = 0
  13185. ;
  13186. return 0;
  13187. }
  13188. _ACEOF
  13189. rm -f conftest.$ac_objext
  13190. if { (ac_try="$ac_compile"
  13191. case "(($ac_try" in
  13192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13193. *) ac_try_echo=$ac_try;;
  13194. esac
  13195. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13196. (eval "$ac_compile") 2>conftest.er1
  13197. ac_status=$?
  13198. grep -v '^ *+' conftest.er1 >conftest.err
  13199. rm -f conftest.er1
  13200. cat conftest.err >&5
  13201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13202. (exit $ac_status); } && {
  13203. test -z "$ac_cxx_werror_flag" ||
  13204. test ! -s conftest.err
  13205. } && test -s conftest.$ac_objext; then
  13206. ac_lo=$ac_mid; break
  13207. else
  13208. echo "$as_me: failed program was:" >&5
  13209. sed 's/^/| /' conftest.$ac_ext >&5
  13210. ac_hi=`expr '(' $ac_mid ')' - 1`
  13211. if test $ac_mid -le $ac_hi; then
  13212. ac_lo= ac_hi=
  13213. break
  13214. fi
  13215. ac_mid=`expr 2 '*' $ac_mid`
  13216. fi
  13217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13218. done
  13219. else
  13220. echo "$as_me: failed program was:" >&5
  13221. sed 's/^/| /' conftest.$ac_ext >&5
  13222. ac_lo= ac_hi=
  13223. fi
  13224. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13225. fi
  13226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13227. # Binary search between lo and hi bounds.
  13228. while test "x$ac_lo" != "x$ac_hi"; do
  13229. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13230. cat >conftest.$ac_ext <<_ACEOF
  13231. /* confdefs.h. */
  13232. _ACEOF
  13233. cat confdefs.h >>conftest.$ac_ext
  13234. cat >>conftest.$ac_ext <<_ACEOF
  13235. /* end confdefs.h. */
  13236. #include <stddef.h>
  13237. #include <limits.h>
  13238. int
  13239. main ()
  13240. {
  13241. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13242. test_array [0] = 0
  13243. ;
  13244. return 0;
  13245. }
  13246. _ACEOF
  13247. rm -f conftest.$ac_objext
  13248. if { (ac_try="$ac_compile"
  13249. case "(($ac_try" in
  13250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13251. *) ac_try_echo=$ac_try;;
  13252. esac
  13253. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13254. (eval "$ac_compile") 2>conftest.er1
  13255. ac_status=$?
  13256. grep -v '^ *+' conftest.er1 >conftest.err
  13257. rm -f conftest.er1
  13258. cat conftest.err >&5
  13259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13260. (exit $ac_status); } && {
  13261. test -z "$ac_cxx_werror_flag" ||
  13262. test ! -s conftest.err
  13263. } && test -s conftest.$ac_objext; then
  13264. ac_hi=$ac_mid
  13265. else
  13266. echo "$as_me: failed program was:" >&5
  13267. sed 's/^/| /' conftest.$ac_ext >&5
  13268. ac_lo=`expr '(' $ac_mid ')' + 1`
  13269. fi
  13270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13271. done
  13272. case $ac_lo in
  13273. ?*) size_t_bits_minus_1=$ac_lo;;
  13274. '') size_t_bits_minus_1= ;;
  13275. esac
  13276. else
  13277. cat >conftest.$ac_ext <<_ACEOF
  13278. /* confdefs.h. */
  13279. _ACEOF
  13280. cat confdefs.h >>conftest.$ac_ext
  13281. cat >>conftest.$ac_ext <<_ACEOF
  13282. /* end confdefs.h. */
  13283. #include <stddef.h>
  13284. #include <limits.h>
  13285. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  13286. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  13287. #include <stdio.h>
  13288. #include <stdlib.h>
  13289. int
  13290. main ()
  13291. {
  13292. FILE *f = fopen ("conftest.val", "w");
  13293. if (! f)
  13294. return 1;
  13295. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  13296. {
  13297. long int i = longval ();
  13298. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  13299. return 1;
  13300. fprintf (f, "%ld\n", i);
  13301. }
  13302. else
  13303. {
  13304. unsigned long int i = ulongval ();
  13305. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  13306. return 1;
  13307. fprintf (f, "%lu\n", i);
  13308. }
  13309. return ferror (f) || fclose (f) != 0;
  13310. ;
  13311. return 0;
  13312. }
  13313. _ACEOF
  13314. rm -f conftest$ac_exeext
  13315. if { (ac_try="$ac_link"
  13316. case "(($ac_try" in
  13317. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13318. *) ac_try_echo=$ac_try;;
  13319. esac
  13320. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13321. (eval "$ac_link") 2>&5
  13322. ac_status=$?
  13323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13324. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13325. { (case "(($ac_try" in
  13326. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13327. *) ac_try_echo=$ac_try;;
  13328. esac
  13329. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13330. (eval "$ac_try") 2>&5
  13331. ac_status=$?
  13332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13333. (exit $ac_status); }; }; then
  13334. size_t_bits_minus_1=`cat conftest.val`
  13335. else
  13336. echo "$as_me: program exited with status $ac_status" >&5
  13337. echo "$as_me: failed program was:" >&5
  13338. sed 's/^/| /' conftest.$ac_ext >&5
  13339. ( exit $ac_status )
  13340. size_t_bits_minus_1=
  13341. fi
  13342. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13343. fi
  13344. rm -f conftest.val
  13345. if test "$cross_compiling" = yes; then
  13346. # Depending upon the size, compute the lo and hi bounds.
  13347. cat >conftest.$ac_ext <<_ACEOF
  13348. /* confdefs.h. */
  13349. _ACEOF
  13350. cat confdefs.h >>conftest.$ac_ext
  13351. cat >>conftest.$ac_ext <<_ACEOF
  13352. /* end confdefs.h. */
  13353. #include <stddef.h>
  13354. int
  13355. main ()
  13356. {
  13357. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  13358. test_array [0] = 0
  13359. ;
  13360. return 0;
  13361. }
  13362. _ACEOF
  13363. rm -f conftest.$ac_objext
  13364. if { (ac_try="$ac_compile"
  13365. case "(($ac_try" in
  13366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13367. *) ac_try_echo=$ac_try;;
  13368. esac
  13369. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13370. (eval "$ac_compile") 2>conftest.er1
  13371. ac_status=$?
  13372. grep -v '^ *+' conftest.er1 >conftest.err
  13373. rm -f conftest.er1
  13374. cat conftest.err >&5
  13375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13376. (exit $ac_status); } && {
  13377. test -z "$ac_cxx_werror_flag" ||
  13378. test ! -s conftest.err
  13379. } && test -s conftest.$ac_objext; then
  13380. ac_lo=0 ac_mid=0
  13381. while :; do
  13382. cat >conftest.$ac_ext <<_ACEOF
  13383. /* confdefs.h. */
  13384. _ACEOF
  13385. cat confdefs.h >>conftest.$ac_ext
  13386. cat >>conftest.$ac_ext <<_ACEOF
  13387. /* end confdefs.h. */
  13388. #include <stddef.h>
  13389. int
  13390. main ()
  13391. {
  13392. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  13393. test_array [0] = 0
  13394. ;
  13395. return 0;
  13396. }
  13397. _ACEOF
  13398. rm -f conftest.$ac_objext
  13399. if { (ac_try="$ac_compile"
  13400. case "(($ac_try" in
  13401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13402. *) ac_try_echo=$ac_try;;
  13403. esac
  13404. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13405. (eval "$ac_compile") 2>conftest.er1
  13406. ac_status=$?
  13407. grep -v '^ *+' conftest.er1 >conftest.err
  13408. rm -f conftest.er1
  13409. cat conftest.err >&5
  13410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13411. (exit $ac_status); } && {
  13412. test -z "$ac_cxx_werror_flag" ||
  13413. test ! -s conftest.err
  13414. } && test -s conftest.$ac_objext; then
  13415. ac_hi=$ac_mid; break
  13416. else
  13417. echo "$as_me: failed program was:" >&5
  13418. sed 's/^/| /' conftest.$ac_ext >&5
  13419. ac_lo=`expr $ac_mid + 1`
  13420. if test $ac_lo -le $ac_mid; then
  13421. ac_lo= ac_hi=
  13422. break
  13423. fi
  13424. ac_mid=`expr 2 '*' $ac_mid + 1`
  13425. fi
  13426. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13427. done
  13428. else
  13429. echo "$as_me: failed program was:" >&5
  13430. sed 's/^/| /' conftest.$ac_ext >&5
  13431. cat >conftest.$ac_ext <<_ACEOF
  13432. /* confdefs.h. */
  13433. _ACEOF
  13434. cat confdefs.h >>conftest.$ac_ext
  13435. cat >>conftest.$ac_ext <<_ACEOF
  13436. /* end confdefs.h. */
  13437. #include <stddef.h>
  13438. int
  13439. main ()
  13440. {
  13441. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  13442. test_array [0] = 0
  13443. ;
  13444. return 0;
  13445. }
  13446. _ACEOF
  13447. rm -f conftest.$ac_objext
  13448. if { (ac_try="$ac_compile"
  13449. case "(($ac_try" in
  13450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13451. *) ac_try_echo=$ac_try;;
  13452. esac
  13453. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13454. (eval "$ac_compile") 2>conftest.er1
  13455. ac_status=$?
  13456. grep -v '^ *+' conftest.er1 >conftest.err
  13457. rm -f conftest.er1
  13458. cat conftest.err >&5
  13459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13460. (exit $ac_status); } && {
  13461. test -z "$ac_cxx_werror_flag" ||
  13462. test ! -s conftest.err
  13463. } && test -s conftest.$ac_objext; then
  13464. ac_hi=-1 ac_mid=-1
  13465. while :; do
  13466. cat >conftest.$ac_ext <<_ACEOF
  13467. /* confdefs.h. */
  13468. _ACEOF
  13469. cat confdefs.h >>conftest.$ac_ext
  13470. cat >>conftest.$ac_ext <<_ACEOF
  13471. /* end confdefs.h. */
  13472. #include <stddef.h>
  13473. int
  13474. main ()
  13475. {
  13476. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  13477. test_array [0] = 0
  13478. ;
  13479. return 0;
  13480. }
  13481. _ACEOF
  13482. rm -f conftest.$ac_objext
  13483. if { (ac_try="$ac_compile"
  13484. case "(($ac_try" in
  13485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13486. *) ac_try_echo=$ac_try;;
  13487. esac
  13488. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13489. (eval "$ac_compile") 2>conftest.er1
  13490. ac_status=$?
  13491. grep -v '^ *+' conftest.er1 >conftest.err
  13492. rm -f conftest.er1
  13493. cat conftest.err >&5
  13494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13495. (exit $ac_status); } && {
  13496. test -z "$ac_cxx_werror_flag" ||
  13497. test ! -s conftest.err
  13498. } && test -s conftest.$ac_objext; then
  13499. ac_lo=$ac_mid; break
  13500. else
  13501. echo "$as_me: failed program was:" >&5
  13502. sed 's/^/| /' conftest.$ac_ext >&5
  13503. ac_hi=`expr '(' $ac_mid ')' - 1`
  13504. if test $ac_mid -le $ac_hi; then
  13505. ac_lo= ac_hi=
  13506. break
  13507. fi
  13508. ac_mid=`expr 2 '*' $ac_mid`
  13509. fi
  13510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13511. done
  13512. else
  13513. echo "$as_me: failed program was:" >&5
  13514. sed 's/^/| /' conftest.$ac_ext >&5
  13515. ac_lo= ac_hi=
  13516. fi
  13517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13518. fi
  13519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13520. # Binary search between lo and hi bounds.
  13521. while test "x$ac_lo" != "x$ac_hi"; do
  13522. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13523. cat >conftest.$ac_ext <<_ACEOF
  13524. /* confdefs.h. */
  13525. _ACEOF
  13526. cat confdefs.h >>conftest.$ac_ext
  13527. cat >>conftest.$ac_ext <<_ACEOF
  13528. /* end confdefs.h. */
  13529. #include <stddef.h>
  13530. int
  13531. main ()
  13532. {
  13533. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  13534. test_array [0] = 0
  13535. ;
  13536. return 0;
  13537. }
  13538. _ACEOF
  13539. rm -f conftest.$ac_objext
  13540. if { (ac_try="$ac_compile"
  13541. case "(($ac_try" in
  13542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13543. *) ac_try_echo=$ac_try;;
  13544. esac
  13545. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13546. (eval "$ac_compile") 2>conftest.er1
  13547. ac_status=$?
  13548. grep -v '^ *+' conftest.er1 >conftest.err
  13549. rm -f conftest.er1
  13550. cat conftest.err >&5
  13551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13552. (exit $ac_status); } && {
  13553. test -z "$ac_cxx_werror_flag" ||
  13554. test ! -s conftest.err
  13555. } && test -s conftest.$ac_objext; then
  13556. ac_hi=$ac_mid
  13557. else
  13558. echo "$as_me: failed program was:" >&5
  13559. sed 's/^/| /' conftest.$ac_ext >&5
  13560. ac_lo=`expr '(' $ac_mid ')' + 1`
  13561. fi
  13562. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13563. done
  13564. case $ac_lo in
  13565. ?*) fits_in_uint=$ac_lo;;
  13566. '') fits_in_uint= ;;
  13567. esac
  13568. else
  13569. cat >conftest.$ac_ext <<_ACEOF
  13570. /* confdefs.h. */
  13571. _ACEOF
  13572. cat confdefs.h >>conftest.$ac_ext
  13573. cat >>conftest.$ac_ext <<_ACEOF
  13574. /* end confdefs.h. */
  13575. #include <stddef.h>
  13576. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  13577. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  13578. #include <stdio.h>
  13579. #include <stdlib.h>
  13580. int
  13581. main ()
  13582. {
  13583. FILE *f = fopen ("conftest.val", "w");
  13584. if (! f)
  13585. return 1;
  13586. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  13587. {
  13588. long int i = longval ();
  13589. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  13590. return 1;
  13591. fprintf (f, "%ld\n", i);
  13592. }
  13593. else
  13594. {
  13595. unsigned long int i = ulongval ();
  13596. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  13597. return 1;
  13598. fprintf (f, "%lu\n", i);
  13599. }
  13600. return ferror (f) || fclose (f) != 0;
  13601. ;
  13602. return 0;
  13603. }
  13604. _ACEOF
  13605. rm -f conftest$ac_exeext
  13606. if { (ac_try="$ac_link"
  13607. case "(($ac_try" in
  13608. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13609. *) ac_try_echo=$ac_try;;
  13610. esac
  13611. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13612. (eval "$ac_link") 2>&5
  13613. ac_status=$?
  13614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13615. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13616. { (case "(($ac_try" in
  13617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13618. *) ac_try_echo=$ac_try;;
  13619. esac
  13620. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13621. (eval "$ac_try") 2>&5
  13622. ac_status=$?
  13623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13624. (exit $ac_status); }; }; then
  13625. fits_in_uint=`cat conftest.val`
  13626. else
  13627. echo "$as_me: program exited with status $ac_status" >&5
  13628. echo "$as_me: failed program was:" >&5
  13629. sed 's/^/| /' conftest.$ac_ext >&5
  13630. ( exit $ac_status )
  13631. fits_in_uint=
  13632. fi
  13633. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13634. fi
  13635. rm -f conftest.val
  13636. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  13637. if test $fits_in_uint = 1; then
  13638. cat >conftest.$ac_ext <<_ACEOF
  13639. /* confdefs.h. */
  13640. _ACEOF
  13641. cat confdefs.h >>conftest.$ac_ext
  13642. cat >>conftest.$ac_ext <<_ACEOF
  13643. /* end confdefs.h. */
  13644. #include <stddef.h>
  13645. extern size_t foo;
  13646. extern unsigned long foo;
  13647. int
  13648. main ()
  13649. {
  13650. ;
  13651. return 0;
  13652. }
  13653. _ACEOF
  13654. rm -f conftest.$ac_objext
  13655. if { (ac_try="$ac_compile"
  13656. case "(($ac_try" in
  13657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13658. *) ac_try_echo=$ac_try;;
  13659. esac
  13660. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13661. (eval "$ac_compile") 2>conftest.er1
  13662. ac_status=$?
  13663. grep -v '^ *+' conftest.er1 >conftest.err
  13664. rm -f conftest.er1
  13665. cat conftest.err >&5
  13666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13667. (exit $ac_status); } && {
  13668. test -z "$ac_cxx_werror_flag" ||
  13669. test ! -s conftest.err
  13670. } && test -s conftest.$ac_objext; then
  13671. fits_in_uint=0
  13672. else
  13673. echo "$as_me: failed program was:" >&5
  13674. sed 's/^/| /' conftest.$ac_ext >&5
  13675. fi
  13676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13677. fi
  13678. if test $fits_in_uint = 1; then
  13679. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  13680. else
  13681. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  13682. fi
  13683. else
  13684. gl_cv_size_max='((size_t)~(size_t)0)'
  13685. fi
  13686. fi
  13687. fi
  13688. { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  13689. echo "${ECHO_T}$gl_cv_size_max" >&6; }
  13690. if test "$gl_cv_size_max" != yes; then
  13691. cat >>confdefs.h <<_ACEOF
  13692. #define SIZE_MAX $gl_cv_size_max
  13693. _ACEOF
  13694. fi
  13695. for ac_header in stdint.h
  13696. do
  13697. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13698. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13699. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13700. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13701. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13702. echo $ECHO_N "(cached) $ECHO_C" >&6
  13703. fi
  13704. ac_res=`eval echo '${'$as_ac_Header'}'`
  13705. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13706. echo "${ECHO_T}$ac_res" >&6; }
  13707. else
  13708. # Is the header compilable?
  13709. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13710. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  13711. cat >conftest.$ac_ext <<_ACEOF
  13712. /* confdefs.h. */
  13713. _ACEOF
  13714. cat confdefs.h >>conftest.$ac_ext
  13715. cat >>conftest.$ac_ext <<_ACEOF
  13716. /* end confdefs.h. */
  13717. $ac_includes_default
  13718. #include <$ac_header>
  13719. _ACEOF
  13720. rm -f conftest.$ac_objext
  13721. if { (ac_try="$ac_compile"
  13722. case "(($ac_try" in
  13723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13724. *) ac_try_echo=$ac_try;;
  13725. esac
  13726. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13727. (eval "$ac_compile") 2>conftest.er1
  13728. ac_status=$?
  13729. grep -v '^ *+' conftest.er1 >conftest.err
  13730. rm -f conftest.er1
  13731. cat conftest.err >&5
  13732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13733. (exit $ac_status); } && {
  13734. test -z "$ac_cxx_werror_flag" ||
  13735. test ! -s conftest.err
  13736. } && test -s conftest.$ac_objext; then
  13737. ac_header_compiler=yes
  13738. else
  13739. echo "$as_me: failed program was:" >&5
  13740. sed 's/^/| /' conftest.$ac_ext >&5
  13741. ac_header_compiler=no
  13742. fi
  13743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13744. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13745. echo "${ECHO_T}$ac_header_compiler" >&6; }
  13746. # Is the header present?
  13747. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13748. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  13749. cat >conftest.$ac_ext <<_ACEOF
  13750. /* confdefs.h. */
  13751. _ACEOF
  13752. cat confdefs.h >>conftest.$ac_ext
  13753. cat >>conftest.$ac_ext <<_ACEOF
  13754. /* end confdefs.h. */
  13755. #include <$ac_header>
  13756. _ACEOF
  13757. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13758. case "(($ac_try" in
  13759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13760. *) ac_try_echo=$ac_try;;
  13761. esac
  13762. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13763. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13764. ac_status=$?
  13765. grep -v '^ *+' conftest.er1 >conftest.err
  13766. rm -f conftest.er1
  13767. cat conftest.err >&5
  13768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13769. (exit $ac_status); } >/dev/null && {
  13770. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13771. test ! -s conftest.err
  13772. }; then
  13773. ac_header_preproc=yes
  13774. else
  13775. echo "$as_me: failed program was:" >&5
  13776. sed 's/^/| /' conftest.$ac_ext >&5
  13777. ac_header_preproc=no
  13778. fi
  13779. rm -f conftest.err conftest.$ac_ext
  13780. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13781. echo "${ECHO_T}$ac_header_preproc" >&6; }
  13782. # So? What about this header?
  13783. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13784. yes:no: )
  13785. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13786. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13787. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13788. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13789. ac_header_preproc=yes
  13790. ;;
  13791. no:yes:* )
  13792. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13793. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13794. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13795. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13796. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13797. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13798. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13799. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13800. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13801. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13802. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13803. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13804. ( cat <<\_ASBOX
  13805. ## ----------------------------------------------- ##
  13806. ## Report this to t-tujikawa@users.sourceforge.net ##
  13807. ## ----------------------------------------------- ##
  13808. _ASBOX
  13809. ) | sed "s/^/$as_me: WARNING: /" >&2
  13810. ;;
  13811. esac
  13812. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13813. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13814. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13815. echo $ECHO_N "(cached) $ECHO_C" >&6
  13816. else
  13817. eval "$as_ac_Header=\$ac_header_preproc"
  13818. fi
  13819. ac_res=`eval echo '${'$as_ac_Header'}'`
  13820. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13821. echo "${ECHO_T}$ac_res" >&6; }
  13822. fi
  13823. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13824. cat >>confdefs.h <<_ACEOF
  13825. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13826. _ACEOF
  13827. fi
  13828. done
  13829. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  13830. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  13831. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  13832. echo $ECHO_N "(cached) $ECHO_C" >&6
  13833. else
  13834. gt_save_LIBS="$LIBS"
  13835. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  13836. cat >conftest.$ac_ext <<_ACEOF
  13837. /* confdefs.h. */
  13838. _ACEOF
  13839. cat confdefs.h >>conftest.$ac_ext
  13840. cat >>conftest.$ac_ext <<_ACEOF
  13841. /* end confdefs.h. */
  13842. #include <CoreFoundation/CFPreferences.h>
  13843. int
  13844. main ()
  13845. {
  13846. CFPreferencesCopyAppValue(NULL, NULL)
  13847. ;
  13848. return 0;
  13849. }
  13850. _ACEOF
  13851. rm -f conftest.$ac_objext conftest$ac_exeext
  13852. if { (ac_try="$ac_link"
  13853. case "(($ac_try" in
  13854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13855. *) ac_try_echo=$ac_try;;
  13856. esac
  13857. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13858. (eval "$ac_link") 2>conftest.er1
  13859. ac_status=$?
  13860. grep -v '^ *+' conftest.er1 >conftest.err
  13861. rm -f conftest.er1
  13862. cat conftest.err >&5
  13863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13864. (exit $ac_status); } && {
  13865. test -z "$ac_cxx_werror_flag" ||
  13866. test ! -s conftest.err
  13867. } && test -s conftest$ac_exeext &&
  13868. $as_test_x conftest$ac_exeext; then
  13869. gt_cv_func_CFPreferencesCopyAppValue=yes
  13870. else
  13871. echo "$as_me: failed program was:" >&5
  13872. sed 's/^/| /' conftest.$ac_ext >&5
  13873. gt_cv_func_CFPreferencesCopyAppValue=no
  13874. fi
  13875. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13876. conftest$ac_exeext conftest.$ac_ext
  13877. LIBS="$gt_save_LIBS"
  13878. fi
  13879. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  13880. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  13881. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  13882. cat >>confdefs.h <<\_ACEOF
  13883. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  13884. _ACEOF
  13885. fi
  13886. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  13887. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  13888. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  13889. echo $ECHO_N "(cached) $ECHO_C" >&6
  13890. else
  13891. gt_save_LIBS="$LIBS"
  13892. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  13893. cat >conftest.$ac_ext <<_ACEOF
  13894. /* confdefs.h. */
  13895. _ACEOF
  13896. cat confdefs.h >>conftest.$ac_ext
  13897. cat >>conftest.$ac_ext <<_ACEOF
  13898. /* end confdefs.h. */
  13899. #include <CoreFoundation/CFLocale.h>
  13900. int
  13901. main ()
  13902. {
  13903. CFLocaleCopyCurrent();
  13904. ;
  13905. return 0;
  13906. }
  13907. _ACEOF
  13908. rm -f conftest.$ac_objext conftest$ac_exeext
  13909. if { (ac_try="$ac_link"
  13910. case "(($ac_try" in
  13911. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13912. *) ac_try_echo=$ac_try;;
  13913. esac
  13914. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13915. (eval "$ac_link") 2>conftest.er1
  13916. ac_status=$?
  13917. grep -v '^ *+' conftest.er1 >conftest.err
  13918. rm -f conftest.er1
  13919. cat conftest.err >&5
  13920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13921. (exit $ac_status); } && {
  13922. test -z "$ac_cxx_werror_flag" ||
  13923. test ! -s conftest.err
  13924. } && test -s conftest$ac_exeext &&
  13925. $as_test_x conftest$ac_exeext; then
  13926. gt_cv_func_CFLocaleCopyCurrent=yes
  13927. else
  13928. echo "$as_me: failed program was:" >&5
  13929. sed 's/^/| /' conftest.$ac_ext >&5
  13930. gt_cv_func_CFLocaleCopyCurrent=no
  13931. fi
  13932. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13933. conftest$ac_exeext conftest.$ac_ext
  13934. LIBS="$gt_save_LIBS"
  13935. fi
  13936. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  13937. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  13938. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  13939. cat >>confdefs.h <<\_ACEOF
  13940. #define HAVE_CFLOCALECOPYCURRENT 1
  13941. _ACEOF
  13942. fi
  13943. INTL_MACOSX_LIBS=
  13944. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  13945. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  13946. fi
  13947. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  13948. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  13949. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  13950. echo $ECHO_N "(cached) $ECHO_C" >&6
  13951. else
  13952. cat >conftest.$ac_ext <<_ACEOF
  13953. /* confdefs.h. */
  13954. _ACEOF
  13955. cat confdefs.h >>conftest.$ac_ext
  13956. cat >>conftest.$ac_ext <<_ACEOF
  13957. /* end confdefs.h. */
  13958. $ac_includes_default
  13959. typedef ptrdiff_t ac__type_new_;
  13960. int
  13961. main ()
  13962. {
  13963. if ((ac__type_new_ *) 0)
  13964. return 0;
  13965. if (sizeof (ac__type_new_))
  13966. return 0;
  13967. ;
  13968. return 0;
  13969. }
  13970. _ACEOF
  13971. rm -f conftest.$ac_objext
  13972. if { (ac_try="$ac_compile"
  13973. case "(($ac_try" in
  13974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13975. *) ac_try_echo=$ac_try;;
  13976. esac
  13977. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13978. (eval "$ac_compile") 2>conftest.er1
  13979. ac_status=$?
  13980. grep -v '^ *+' conftest.er1 >conftest.err
  13981. rm -f conftest.er1
  13982. cat conftest.err >&5
  13983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13984. (exit $ac_status); } && {
  13985. test -z "$ac_cxx_werror_flag" ||
  13986. test ! -s conftest.err
  13987. } && test -s conftest.$ac_objext; then
  13988. ac_cv_type_ptrdiff_t=yes
  13989. else
  13990. echo "$as_me: failed program was:" >&5
  13991. sed 's/^/| /' conftest.$ac_ext >&5
  13992. ac_cv_type_ptrdiff_t=no
  13993. fi
  13994. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13995. fi
  13996. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  13997. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  13998. if test $ac_cv_type_ptrdiff_t = yes; then
  13999. :
  14000. else
  14001. cat >>confdefs.h <<\_ACEOF
  14002. #define ptrdiff_t long
  14003. _ACEOF
  14004. fi
  14005. for ac_header in stddef.h stdlib.h string.h
  14006. do
  14007. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14008. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14009. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14010. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14011. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14012. echo $ECHO_N "(cached) $ECHO_C" >&6
  14013. fi
  14014. ac_res=`eval echo '${'$as_ac_Header'}'`
  14015. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14016. echo "${ECHO_T}$ac_res" >&6; }
  14017. else
  14018. # Is the header compilable?
  14019. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14020. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14021. cat >conftest.$ac_ext <<_ACEOF
  14022. /* confdefs.h. */
  14023. _ACEOF
  14024. cat confdefs.h >>conftest.$ac_ext
  14025. cat >>conftest.$ac_ext <<_ACEOF
  14026. /* end confdefs.h. */
  14027. $ac_includes_default
  14028. #include <$ac_header>
  14029. _ACEOF
  14030. rm -f conftest.$ac_objext
  14031. if { (ac_try="$ac_compile"
  14032. case "(($ac_try" in
  14033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14034. *) ac_try_echo=$ac_try;;
  14035. esac
  14036. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14037. (eval "$ac_compile") 2>conftest.er1
  14038. ac_status=$?
  14039. grep -v '^ *+' conftest.er1 >conftest.err
  14040. rm -f conftest.er1
  14041. cat conftest.err >&5
  14042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14043. (exit $ac_status); } && {
  14044. test -z "$ac_cxx_werror_flag" ||
  14045. test ! -s conftest.err
  14046. } && test -s conftest.$ac_objext; then
  14047. ac_header_compiler=yes
  14048. else
  14049. echo "$as_me: failed program was:" >&5
  14050. sed 's/^/| /' conftest.$ac_ext >&5
  14051. ac_header_compiler=no
  14052. fi
  14053. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14054. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14055. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14056. # Is the header present?
  14057. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14058. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14059. cat >conftest.$ac_ext <<_ACEOF
  14060. /* confdefs.h. */
  14061. _ACEOF
  14062. cat confdefs.h >>conftest.$ac_ext
  14063. cat >>conftest.$ac_ext <<_ACEOF
  14064. /* end confdefs.h. */
  14065. #include <$ac_header>
  14066. _ACEOF
  14067. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14068. case "(($ac_try" in
  14069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14070. *) ac_try_echo=$ac_try;;
  14071. esac
  14072. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14073. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14074. ac_status=$?
  14075. grep -v '^ *+' conftest.er1 >conftest.err
  14076. rm -f conftest.er1
  14077. cat conftest.err >&5
  14078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14079. (exit $ac_status); } >/dev/null && {
  14080. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14081. test ! -s conftest.err
  14082. }; then
  14083. ac_header_preproc=yes
  14084. else
  14085. echo "$as_me: failed program was:" >&5
  14086. sed 's/^/| /' conftest.$ac_ext >&5
  14087. ac_header_preproc=no
  14088. fi
  14089. rm -f conftest.err conftest.$ac_ext
  14090. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14091. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14092. # So? What about this header?
  14093. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14094. yes:no: )
  14095. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14096. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14097. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14098. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14099. ac_header_preproc=yes
  14100. ;;
  14101. no:yes:* )
  14102. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14103. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14104. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14105. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14106. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14107. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14108. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14109. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14110. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14111. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14112. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14113. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14114. ( cat <<\_ASBOX
  14115. ## ----------------------------------------------- ##
  14116. ## Report this to t-tujikawa@users.sourceforge.net ##
  14117. ## ----------------------------------------------- ##
  14118. _ASBOX
  14119. ) | sed "s/^/$as_me: WARNING: /" >&2
  14120. ;;
  14121. esac
  14122. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14123. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14124. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14125. echo $ECHO_N "(cached) $ECHO_C" >&6
  14126. else
  14127. eval "$as_ac_Header=\$ac_header_preproc"
  14128. fi
  14129. ac_res=`eval echo '${'$as_ac_Header'}'`
  14130. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14131. echo "${ECHO_T}$ac_res" >&6; }
  14132. fi
  14133. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14134. cat >>confdefs.h <<_ACEOF
  14135. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14136. _ACEOF
  14137. fi
  14138. done
  14139. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  14140. do
  14141. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14142. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  14143. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  14144. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  14145. echo $ECHO_N "(cached) $ECHO_C" >&6
  14146. else
  14147. cat >conftest.$ac_ext <<_ACEOF
  14148. /* confdefs.h. */
  14149. _ACEOF
  14150. cat confdefs.h >>conftest.$ac_ext
  14151. cat >>conftest.$ac_ext <<_ACEOF
  14152. /* end confdefs.h. */
  14153. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14154. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14155. #define $ac_func innocuous_$ac_func
  14156. /* System header to define __stub macros and hopefully few prototypes,
  14157. which can conflict with char $ac_func (); below.
  14158. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14159. <limits.h> exists even on freestanding compilers. */
  14160. #ifdef __STDC__
  14161. # include <limits.h>
  14162. #else
  14163. # include <assert.h>
  14164. #endif
  14165. #undef $ac_func
  14166. /* Override any GCC internal prototype to avoid an error.
  14167. Use char because int might match the return type of a GCC
  14168. builtin and then its argument prototype would still apply. */
  14169. #ifdef __cplusplus
  14170. extern "C"
  14171. #endif
  14172. char $ac_func ();
  14173. /* The GNU C library defines this for functions which it implements
  14174. to always fail with ENOSYS. Some functions are actually named
  14175. something starting with __ and the normal name is an alias. */
  14176. #if defined __stub_$ac_func || defined __stub___$ac_func
  14177. choke me
  14178. #endif
  14179. int
  14180. main ()
  14181. {
  14182. return $ac_func ();
  14183. ;
  14184. return 0;
  14185. }
  14186. _ACEOF
  14187. rm -f conftest.$ac_objext conftest$ac_exeext
  14188. if { (ac_try="$ac_link"
  14189. case "(($ac_try" in
  14190. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14191. *) ac_try_echo=$ac_try;;
  14192. esac
  14193. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14194. (eval "$ac_link") 2>conftest.er1
  14195. ac_status=$?
  14196. grep -v '^ *+' conftest.er1 >conftest.err
  14197. rm -f conftest.er1
  14198. cat conftest.err >&5
  14199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14200. (exit $ac_status); } && {
  14201. test -z "$ac_cxx_werror_flag" ||
  14202. test ! -s conftest.err
  14203. } && test -s conftest$ac_exeext &&
  14204. $as_test_x conftest$ac_exeext; then
  14205. eval "$as_ac_var=yes"
  14206. else
  14207. echo "$as_me: failed program was:" >&5
  14208. sed 's/^/| /' conftest.$ac_ext >&5
  14209. eval "$as_ac_var=no"
  14210. fi
  14211. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14212. conftest$ac_exeext conftest.$ac_ext
  14213. fi
  14214. ac_res=`eval echo '${'$as_ac_var'}'`
  14215. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14216. echo "${ECHO_T}$ac_res" >&6; }
  14217. if test `eval echo '${'$as_ac_var'}'` = yes; then
  14218. cat >>confdefs.h <<_ACEOF
  14219. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14220. _ACEOF
  14221. fi
  14222. done
  14223. { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  14224. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
  14225. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  14226. echo $ECHO_N "(cached) $ECHO_C" >&6
  14227. else
  14228. cat >conftest.$ac_ext <<_ACEOF
  14229. /* confdefs.h. */
  14230. _ACEOF
  14231. cat confdefs.h >>conftest.$ac_ext
  14232. cat >>conftest.$ac_ext <<_ACEOF
  14233. /* end confdefs.h. */
  14234. #include <stdio.h>
  14235. int
  14236. main ()
  14237. {
  14238. #ifndef _snprintf
  14239. char *p = (char *) _snprintf;
  14240. #endif
  14241. ;
  14242. return 0;
  14243. }
  14244. _ACEOF
  14245. rm -f conftest.$ac_objext
  14246. if { (ac_try="$ac_compile"
  14247. case "(($ac_try" in
  14248. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14249. *) ac_try_echo=$ac_try;;
  14250. esac
  14251. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14252. (eval "$ac_compile") 2>conftest.er1
  14253. ac_status=$?
  14254. grep -v '^ *+' conftest.er1 >conftest.err
  14255. rm -f conftest.er1
  14256. cat conftest.err >&5
  14257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14258. (exit $ac_status); } && {
  14259. test -z "$ac_cxx_werror_flag" ||
  14260. test ! -s conftest.err
  14261. } && test -s conftest.$ac_objext; then
  14262. ac_cv_have_decl__snprintf=yes
  14263. else
  14264. echo "$as_me: failed program was:" >&5
  14265. sed 's/^/| /' conftest.$ac_ext >&5
  14266. ac_cv_have_decl__snprintf=no
  14267. fi
  14268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14269. fi
  14270. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  14271. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
  14272. if test $ac_cv_have_decl__snprintf = yes; then
  14273. gt_value=1
  14274. else
  14275. gt_value=0
  14276. fi
  14277. cat >>confdefs.h <<_ACEOF
  14278. #define HAVE_DECL__SNPRINTF $gt_value
  14279. _ACEOF
  14280. { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  14281. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
  14282. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  14283. echo $ECHO_N "(cached) $ECHO_C" >&6
  14284. else
  14285. cat >conftest.$ac_ext <<_ACEOF
  14286. /* confdefs.h. */
  14287. _ACEOF
  14288. cat confdefs.h >>conftest.$ac_ext
  14289. cat >>conftest.$ac_ext <<_ACEOF
  14290. /* end confdefs.h. */
  14291. #include <stdio.h>
  14292. int
  14293. main ()
  14294. {
  14295. #ifndef _snwprintf
  14296. char *p = (char *) _snwprintf;
  14297. #endif
  14298. ;
  14299. return 0;
  14300. }
  14301. _ACEOF
  14302. rm -f conftest.$ac_objext
  14303. if { (ac_try="$ac_compile"
  14304. case "(($ac_try" in
  14305. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14306. *) ac_try_echo=$ac_try;;
  14307. esac
  14308. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14309. (eval "$ac_compile") 2>conftest.er1
  14310. ac_status=$?
  14311. grep -v '^ *+' conftest.er1 >conftest.err
  14312. rm -f conftest.er1
  14313. cat conftest.err >&5
  14314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14315. (exit $ac_status); } && {
  14316. test -z "$ac_cxx_werror_flag" ||
  14317. test ! -s conftest.err
  14318. } && test -s conftest.$ac_objext; then
  14319. ac_cv_have_decl__snwprintf=yes
  14320. else
  14321. echo "$as_me: failed program was:" >&5
  14322. sed 's/^/| /' conftest.$ac_ext >&5
  14323. ac_cv_have_decl__snwprintf=no
  14324. fi
  14325. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14326. fi
  14327. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  14328. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
  14329. if test $ac_cv_have_decl__snwprintf = yes; then
  14330. gt_value=1
  14331. else
  14332. gt_value=0
  14333. fi
  14334. cat >>confdefs.h <<_ACEOF
  14335. #define HAVE_DECL__SNWPRINTF $gt_value
  14336. _ACEOF
  14337. { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  14338. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
  14339. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  14340. echo $ECHO_N "(cached) $ECHO_C" >&6
  14341. else
  14342. cat >conftest.$ac_ext <<_ACEOF
  14343. /* confdefs.h. */
  14344. _ACEOF
  14345. cat confdefs.h >>conftest.$ac_ext
  14346. cat >>conftest.$ac_ext <<_ACEOF
  14347. /* end confdefs.h. */
  14348. #include <stdio.h>
  14349. int
  14350. main ()
  14351. {
  14352. #ifndef getc_unlocked
  14353. char *p = (char *) getc_unlocked;
  14354. #endif
  14355. ;
  14356. return 0;
  14357. }
  14358. _ACEOF
  14359. rm -f conftest.$ac_objext
  14360. if { (ac_try="$ac_compile"
  14361. case "(($ac_try" in
  14362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14363. *) ac_try_echo=$ac_try;;
  14364. esac
  14365. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14366. (eval "$ac_compile") 2>conftest.er1
  14367. ac_status=$?
  14368. grep -v '^ *+' conftest.er1 >conftest.err
  14369. rm -f conftest.er1
  14370. cat conftest.err >&5
  14371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14372. (exit $ac_status); } && {
  14373. test -z "$ac_cxx_werror_flag" ||
  14374. test ! -s conftest.err
  14375. } && test -s conftest.$ac_objext; then
  14376. ac_cv_have_decl_getc_unlocked=yes
  14377. else
  14378. echo "$as_me: failed program was:" >&5
  14379. sed 's/^/| /' conftest.$ac_ext >&5
  14380. ac_cv_have_decl_getc_unlocked=no
  14381. fi
  14382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14383. fi
  14384. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  14385. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
  14386. if test $ac_cv_have_decl_getc_unlocked = yes; then
  14387. gt_value=1
  14388. else
  14389. gt_value=0
  14390. fi
  14391. cat >>confdefs.h <<_ACEOF
  14392. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  14393. _ACEOF
  14394. case $gt_cv_func_printf_posix in
  14395. *yes) HAVE_POSIX_PRINTF=1 ;;
  14396. *) HAVE_POSIX_PRINTF=0 ;;
  14397. esac
  14398. if test "$ac_cv_func_asprintf" = yes; then
  14399. HAVE_ASPRINTF=1
  14400. else
  14401. HAVE_ASPRINTF=0
  14402. fi
  14403. if test "$ac_cv_func_snprintf" = yes; then
  14404. HAVE_SNPRINTF=1
  14405. else
  14406. HAVE_SNPRINTF=0
  14407. fi
  14408. if test "$ac_cv_func_wprintf" = yes; then
  14409. HAVE_WPRINTF=1
  14410. else
  14411. HAVE_WPRINTF=0
  14412. fi
  14413. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  14414. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  14415. if test "${am_cv_langinfo_codeset+set}" = set; then
  14416. echo $ECHO_N "(cached) $ECHO_C" >&6
  14417. else
  14418. cat >conftest.$ac_ext <<_ACEOF
  14419. /* confdefs.h. */
  14420. _ACEOF
  14421. cat confdefs.h >>conftest.$ac_ext
  14422. cat >>conftest.$ac_ext <<_ACEOF
  14423. /* end confdefs.h. */
  14424. #include <langinfo.h>
  14425. int
  14426. main ()
  14427. {
  14428. char* cs = nl_langinfo(CODESET); return !cs;
  14429. ;
  14430. return 0;
  14431. }
  14432. _ACEOF
  14433. rm -f conftest.$ac_objext conftest$ac_exeext
  14434. if { (ac_try="$ac_link"
  14435. case "(($ac_try" in
  14436. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14437. *) ac_try_echo=$ac_try;;
  14438. esac
  14439. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14440. (eval "$ac_link") 2>conftest.er1
  14441. ac_status=$?
  14442. grep -v '^ *+' conftest.er1 >conftest.err
  14443. rm -f conftest.er1
  14444. cat conftest.err >&5
  14445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14446. (exit $ac_status); } && {
  14447. test -z "$ac_cxx_werror_flag" ||
  14448. test ! -s conftest.err
  14449. } && test -s conftest$ac_exeext &&
  14450. $as_test_x conftest$ac_exeext; then
  14451. am_cv_langinfo_codeset=yes
  14452. else
  14453. echo "$as_me: failed program was:" >&5
  14454. sed 's/^/| /' conftest.$ac_ext >&5
  14455. am_cv_langinfo_codeset=no
  14456. fi
  14457. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14458. conftest$ac_exeext conftest.$ac_ext
  14459. fi
  14460. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  14461. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  14462. if test $am_cv_langinfo_codeset = yes; then
  14463. cat >>confdefs.h <<\_ACEOF
  14464. #define HAVE_LANGINFO_CODESET 1
  14465. _ACEOF
  14466. fi
  14467. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  14468. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  14469. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  14470. echo $ECHO_N "(cached) $ECHO_C" >&6
  14471. else
  14472. cat >conftest.$ac_ext <<_ACEOF
  14473. /* confdefs.h. */
  14474. _ACEOF
  14475. cat confdefs.h >>conftest.$ac_ext
  14476. cat >>conftest.$ac_ext <<_ACEOF
  14477. /* end confdefs.h. */
  14478. #include <locale.h>
  14479. int
  14480. main ()
  14481. {
  14482. return LC_MESSAGES
  14483. ;
  14484. return 0;
  14485. }
  14486. _ACEOF
  14487. rm -f conftest.$ac_objext conftest$ac_exeext
  14488. if { (ac_try="$ac_link"
  14489. case "(($ac_try" in
  14490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14491. *) ac_try_echo=$ac_try;;
  14492. esac
  14493. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14494. (eval "$ac_link") 2>conftest.er1
  14495. ac_status=$?
  14496. grep -v '^ *+' conftest.er1 >conftest.err
  14497. rm -f conftest.er1
  14498. cat conftest.err >&5
  14499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14500. (exit $ac_status); } && {
  14501. test -z "$ac_cxx_werror_flag" ||
  14502. test ! -s conftest.err
  14503. } && test -s conftest$ac_exeext &&
  14504. $as_test_x conftest$ac_exeext; then
  14505. gt_cv_val_LC_MESSAGES=yes
  14506. else
  14507. echo "$as_me: failed program was:" >&5
  14508. sed 's/^/| /' conftest.$ac_ext >&5
  14509. gt_cv_val_LC_MESSAGES=no
  14510. fi
  14511. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14512. conftest$ac_exeext conftest.$ac_ext
  14513. fi
  14514. { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  14515. echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
  14516. if test $gt_cv_val_LC_MESSAGES = yes; then
  14517. cat >>confdefs.h <<\_ACEOF
  14518. #define HAVE_LC_MESSAGES 1
  14519. _ACEOF
  14520. fi
  14521. if test "$enable_shared" = yes; then
  14522. case "$host_os" in
  14523. mingw* | cygwin*) is_woe32dll=yes ;;
  14524. *) is_woe32dll=no ;;
  14525. esac
  14526. else
  14527. is_woe32dll=no
  14528. fi
  14529. WOE32DLL=$is_woe32dll
  14530. case "$host_os" in
  14531. mingw* | cygwin*) is_woe32=yes ;;
  14532. *) is_woe32=no ;;
  14533. esac
  14534. WOE32=$is_woe32
  14535. if test $WOE32 = yes; then
  14536. if test -n "$ac_tool_prefix"; then
  14537. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  14538. set dummy ${ac_tool_prefix}windres; ac_word=$2
  14539. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  14540. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14541. if test "${ac_cv_prog_WINDRES+set}" = set; then
  14542. echo $ECHO_N "(cached) $ECHO_C" >&6
  14543. else
  14544. if test -n "$WINDRES"; then
  14545. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  14546. else
  14547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14548. for as_dir in $PATH
  14549. do
  14550. IFS=$as_save_IFS
  14551. test -z "$as_dir" && as_dir=.
  14552. for ac_exec_ext in '' $ac_executable_extensions; do
  14553. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14554. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  14555. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14556. break 2
  14557. fi
  14558. done
  14559. done
  14560. IFS=$as_save_IFS
  14561. fi
  14562. fi
  14563. WINDRES=$ac_cv_prog_WINDRES
  14564. if test -n "$WINDRES"; then
  14565. { echo "$as_me:$LINENO: result: $WINDRES" >&5
  14566. echo "${ECHO_T}$WINDRES" >&6; }
  14567. else
  14568. { echo "$as_me:$LINENO: result: no" >&5
  14569. echo "${ECHO_T}no" >&6; }
  14570. fi
  14571. fi
  14572. if test -z "$ac_cv_prog_WINDRES"; then
  14573. ac_ct_WINDRES=$WINDRES
  14574. # Extract the first word of "windres", so it can be a program name with args.
  14575. set dummy windres; ac_word=$2
  14576. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  14577. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14578. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  14579. echo $ECHO_N "(cached) $ECHO_C" >&6
  14580. else
  14581. if test -n "$ac_ct_WINDRES"; then
  14582. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  14583. else
  14584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14585. for as_dir in $PATH
  14586. do
  14587. IFS=$as_save_IFS
  14588. test -z "$as_dir" && as_dir=.
  14589. for ac_exec_ext in '' $ac_executable_extensions; do
  14590. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14591. ac_cv_prog_ac_ct_WINDRES="windres"
  14592. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14593. break 2
  14594. fi
  14595. done
  14596. done
  14597. IFS=$as_save_IFS
  14598. fi
  14599. fi
  14600. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  14601. if test -n "$ac_ct_WINDRES"; then
  14602. { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  14603. echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
  14604. else
  14605. { echo "$as_me:$LINENO: result: no" >&5
  14606. echo "${ECHO_T}no" >&6; }
  14607. fi
  14608. if test "x$ac_ct_WINDRES" = x; then
  14609. WINDRES=""
  14610. else
  14611. case $cross_compiling:$ac_tool_warned in
  14612. yes:)
  14613. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  14614. whose name does not start with the host triplet. If you think this
  14615. configuration is useful to you, please write to autoconf@gnu.org." >&5
  14616. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  14617. whose name does not start with the host triplet. If you think this
  14618. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  14619. ac_tool_warned=yes ;;
  14620. esac
  14621. WINDRES=$ac_ct_WINDRES
  14622. fi
  14623. else
  14624. WINDRES="$ac_cv_prog_WINDRES"
  14625. fi
  14626. fi
  14627. case "$host_os" in
  14628. hpux*) LTLIBC="" ;;
  14629. *) LTLIBC="-lc" ;;
  14630. esac
  14631. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  14632. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  14633. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  14634. echo $ECHO_N "(cached) $ECHO_C" >&6
  14635. else
  14636. gt_save_LIBS="$LIBS"
  14637. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14638. cat >conftest.$ac_ext <<_ACEOF
  14639. /* confdefs.h. */
  14640. _ACEOF
  14641. cat confdefs.h >>conftest.$ac_ext
  14642. cat >>conftest.$ac_ext <<_ACEOF
  14643. /* end confdefs.h. */
  14644. #include <CoreFoundation/CFPreferences.h>
  14645. int
  14646. main ()
  14647. {
  14648. CFPreferencesCopyAppValue(NULL, NULL)
  14649. ;
  14650. return 0;
  14651. }
  14652. _ACEOF
  14653. rm -f conftest.$ac_objext conftest$ac_exeext
  14654. if { (ac_try="$ac_link"
  14655. case "(($ac_try" in
  14656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14657. *) ac_try_echo=$ac_try;;
  14658. esac
  14659. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14660. (eval "$ac_link") 2>conftest.er1
  14661. ac_status=$?
  14662. grep -v '^ *+' conftest.er1 >conftest.err
  14663. rm -f conftest.er1
  14664. cat conftest.err >&5
  14665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14666. (exit $ac_status); } && {
  14667. test -z "$ac_cxx_werror_flag" ||
  14668. test ! -s conftest.err
  14669. } && test -s conftest$ac_exeext &&
  14670. $as_test_x conftest$ac_exeext; then
  14671. gt_cv_func_CFPreferencesCopyAppValue=yes
  14672. else
  14673. echo "$as_me: failed program was:" >&5
  14674. sed 's/^/| /' conftest.$ac_ext >&5
  14675. gt_cv_func_CFPreferencesCopyAppValue=no
  14676. fi
  14677. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14678. conftest$ac_exeext conftest.$ac_ext
  14679. LIBS="$gt_save_LIBS"
  14680. fi
  14681. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  14682. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  14683. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  14684. cat >>confdefs.h <<\_ACEOF
  14685. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  14686. _ACEOF
  14687. fi
  14688. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  14689. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  14690. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  14691. echo $ECHO_N "(cached) $ECHO_C" >&6
  14692. else
  14693. gt_save_LIBS="$LIBS"
  14694. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14695. cat >conftest.$ac_ext <<_ACEOF
  14696. /* confdefs.h. */
  14697. _ACEOF
  14698. cat confdefs.h >>conftest.$ac_ext
  14699. cat >>conftest.$ac_ext <<_ACEOF
  14700. /* end confdefs.h. */
  14701. #include <CoreFoundation/CFLocale.h>
  14702. int
  14703. main ()
  14704. {
  14705. CFLocaleCopyCurrent();
  14706. ;
  14707. return 0;
  14708. }
  14709. _ACEOF
  14710. rm -f conftest.$ac_objext conftest$ac_exeext
  14711. if { (ac_try="$ac_link"
  14712. case "(($ac_try" in
  14713. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14714. *) ac_try_echo=$ac_try;;
  14715. esac
  14716. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14717. (eval "$ac_link") 2>conftest.er1
  14718. ac_status=$?
  14719. grep -v '^ *+' conftest.er1 >conftest.err
  14720. rm -f conftest.er1
  14721. cat conftest.err >&5
  14722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14723. (exit $ac_status); } && {
  14724. test -z "$ac_cxx_werror_flag" ||
  14725. test ! -s conftest.err
  14726. } && test -s conftest$ac_exeext &&
  14727. $as_test_x conftest$ac_exeext; then
  14728. gt_cv_func_CFLocaleCopyCurrent=yes
  14729. else
  14730. echo "$as_me: failed program was:" >&5
  14731. sed 's/^/| /' conftest.$ac_ext >&5
  14732. gt_cv_func_CFLocaleCopyCurrent=no
  14733. fi
  14734. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14735. conftest$ac_exeext conftest.$ac_ext
  14736. LIBS="$gt_save_LIBS"
  14737. fi
  14738. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  14739. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  14740. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14741. cat >>confdefs.h <<\_ACEOF
  14742. #define HAVE_CFLOCALECOPYCURRENT 1
  14743. _ACEOF
  14744. fi
  14745. INTL_MACOSX_LIBS=
  14746. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14747. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  14748. fi
  14749. BUILD_INCLUDED_LIBINTL=no
  14750. USE_INCLUDED_LIBINTL=no
  14751. LIBINTL=
  14752. LTLIBINTL=
  14753. POSUB=
  14754. case " $gt_needs " in
  14755. *" need-formatstring-macros "*) gt_api_version=3 ;;
  14756. *" need-ngettext "*) gt_api_version=2 ;;
  14757. *) gt_api_version=1 ;;
  14758. esac
  14759. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  14760. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  14761. if test "$USE_NLS" = "yes"; then
  14762. gt_use_preinstalled_gnugettext=no
  14763. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  14764. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  14765. # Check whether --with-included-gettext was given.
  14766. if test "${with_included_gettext+set}" = set; then
  14767. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  14768. else
  14769. nls_cv_force_use_gnu_gettext=no
  14770. fi
  14771. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  14772. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  14773. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  14774. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  14775. if test $gt_api_version -ge 3; then
  14776. gt_revision_test_code='
  14777. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  14778. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  14779. #endif
  14780. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  14781. '
  14782. else
  14783. gt_revision_test_code=
  14784. fi
  14785. if test $gt_api_version -ge 2; then
  14786. gt_expression_test_code=' + * ngettext ("", "", 0)'
  14787. else
  14788. gt_expression_test_code=
  14789. fi
  14790. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  14791. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  14792. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  14793. echo $ECHO_N "(cached) $ECHO_C" >&6
  14794. else
  14795. cat >conftest.$ac_ext <<_ACEOF
  14796. /* confdefs.h. */
  14797. _ACEOF
  14798. cat confdefs.h >>conftest.$ac_ext
  14799. cat >>conftest.$ac_ext <<_ACEOF
  14800. /* end confdefs.h. */
  14801. #include <libintl.h>
  14802. $gt_revision_test_code
  14803. extern int _nl_msg_cat_cntr;
  14804. extern int *_nl_domain_bindings;
  14805. int
  14806. main ()
  14807. {
  14808. bindtextdomain ("", "");
  14809. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  14810. ;
  14811. return 0;
  14812. }
  14813. _ACEOF
  14814. rm -f conftest.$ac_objext conftest$ac_exeext
  14815. if { (ac_try="$ac_link"
  14816. case "(($ac_try" in
  14817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14818. *) ac_try_echo=$ac_try;;
  14819. esac
  14820. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14821. (eval "$ac_link") 2>conftest.er1
  14822. ac_status=$?
  14823. grep -v '^ *+' conftest.er1 >conftest.err
  14824. rm -f conftest.er1
  14825. cat conftest.err >&5
  14826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14827. (exit $ac_status); } && {
  14828. test -z "$ac_cxx_werror_flag" ||
  14829. test ! -s conftest.err
  14830. } && test -s conftest$ac_exeext &&
  14831. $as_test_x conftest$ac_exeext; then
  14832. eval "$gt_func_gnugettext_libc=yes"
  14833. else
  14834. echo "$as_me: failed program was:" >&5
  14835. sed 's/^/| /' conftest.$ac_ext >&5
  14836. eval "$gt_func_gnugettext_libc=no"
  14837. fi
  14838. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14839. conftest$ac_exeext conftest.$ac_ext
  14840. fi
  14841. ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
  14842. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14843. echo "${ECHO_T}$ac_res" >&6; }
  14844. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  14845. use_additional=yes
  14846. acl_save_prefix="$prefix"
  14847. prefix="$acl_final_prefix"
  14848. acl_save_exec_prefix="$exec_prefix"
  14849. exec_prefix="$acl_final_exec_prefix"
  14850. eval additional_includedir=\"$includedir\"
  14851. eval additional_libdir=\"$libdir\"
  14852. exec_prefix="$acl_save_exec_prefix"
  14853. prefix="$acl_save_prefix"
  14854. # Check whether --with-libintl-prefix was given.
  14855. if test "${with_libintl_prefix+set}" = set; then
  14856. withval=$with_libintl_prefix;
  14857. if test "X$withval" = "Xno"; then
  14858. use_additional=no
  14859. else
  14860. if test "X$withval" = "X"; then
  14861. acl_save_prefix="$prefix"
  14862. prefix="$acl_final_prefix"
  14863. acl_save_exec_prefix="$exec_prefix"
  14864. exec_prefix="$acl_final_exec_prefix"
  14865. eval additional_includedir=\"$includedir\"
  14866. eval additional_libdir=\"$libdir\"
  14867. exec_prefix="$acl_save_exec_prefix"
  14868. prefix="$acl_save_prefix"
  14869. else
  14870. additional_includedir="$withval/include"
  14871. additional_libdir="$withval/$acl_libdirstem"
  14872. fi
  14873. fi
  14874. fi
  14875. LIBINTL=
  14876. LTLIBINTL=
  14877. INCINTL=
  14878. LIBINTL_PREFIX=
  14879. rpathdirs=
  14880. ltrpathdirs=
  14881. names_already_handled=
  14882. names_next_round='intl '
  14883. while test -n "$names_next_round"; do
  14884. names_this_round="$names_next_round"
  14885. names_next_round=
  14886. for name in $names_this_round; do
  14887. already_handled=
  14888. for n in $names_already_handled; do
  14889. if test "$n" = "$name"; then
  14890. already_handled=yes
  14891. break
  14892. fi
  14893. done
  14894. if test -z "$already_handled"; then
  14895. names_already_handled="$names_already_handled $name"
  14896. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  14897. eval value=\"\$HAVE_LIB$uppername\"
  14898. if test -n "$value"; then
  14899. if test "$value" = yes; then
  14900. eval value=\"\$LIB$uppername\"
  14901. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  14902. eval value=\"\$LTLIB$uppername\"
  14903. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  14904. else
  14905. :
  14906. fi
  14907. else
  14908. found_dir=
  14909. found_la=
  14910. found_so=
  14911. found_a=
  14912. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  14913. if test -n "$acl_shlibext"; then
  14914. shrext=".$acl_shlibext" # typically: shrext=.so
  14915. else
  14916. shrext=
  14917. fi
  14918. if test $use_additional = yes; then
  14919. dir="$additional_libdir"
  14920. if test -n "$acl_shlibext"; then
  14921. if test -f "$dir/$libname$shrext"; then
  14922. found_dir="$dir"
  14923. found_so="$dir/$libname$shrext"
  14924. else
  14925. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  14926. ver=`(cd "$dir" && \
  14927. for f in "$libname$shrext".*; do echo "$f"; done \
  14928. | sed -e "s,^$libname$shrext\\\\.,," \
  14929. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  14930. | sed 1q ) 2>/dev/null`
  14931. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  14932. found_dir="$dir"
  14933. found_so="$dir/$libname$shrext.$ver"
  14934. fi
  14935. else
  14936. eval library_names=\"$acl_library_names_spec\"
  14937. for f in $library_names; do
  14938. if test -f "$dir/$f"; then
  14939. found_dir="$dir"
  14940. found_so="$dir/$f"
  14941. break
  14942. fi
  14943. done
  14944. fi
  14945. fi
  14946. fi
  14947. if test "X$found_dir" = "X"; then
  14948. if test -f "$dir/$libname.$acl_libext"; then
  14949. found_dir="$dir"
  14950. found_a="$dir/$libname.$acl_libext"
  14951. fi
  14952. fi
  14953. if test "X$found_dir" != "X"; then
  14954. if test -f "$dir/$libname.la"; then
  14955. found_la="$dir/$libname.la"
  14956. fi
  14957. fi
  14958. fi
  14959. if test "X$found_dir" = "X"; then
  14960. for x in $LDFLAGS $LTLIBINTL; do
  14961. acl_save_prefix="$prefix"
  14962. prefix="$acl_final_prefix"
  14963. acl_save_exec_prefix="$exec_prefix"
  14964. exec_prefix="$acl_final_exec_prefix"
  14965. eval x=\"$x\"
  14966. exec_prefix="$acl_save_exec_prefix"
  14967. prefix="$acl_save_prefix"
  14968. case "$x" in
  14969. -L*)
  14970. dir=`echo "X$x" | sed -e 's/^X-L//'`
  14971. if test -n "$acl_shlibext"; then
  14972. if test -f "$dir/$libname$shrext"; then
  14973. found_dir="$dir"
  14974. found_so="$dir/$libname$shrext"
  14975. else
  14976. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  14977. ver=`(cd "$dir" && \
  14978. for f in "$libname$shrext".*; do echo "$f"; done \
  14979. | sed -e "s,^$libname$shrext\\\\.,," \
  14980. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  14981. | sed 1q ) 2>/dev/null`
  14982. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  14983. found_dir="$dir"
  14984. found_so="$dir/$libname$shrext.$ver"
  14985. fi
  14986. else
  14987. eval library_names=\"$acl_library_names_spec\"
  14988. for f in $library_names; do
  14989. if test -f "$dir/$f"; then
  14990. found_dir="$dir"
  14991. found_so="$dir/$f"
  14992. break
  14993. fi
  14994. done
  14995. fi
  14996. fi
  14997. fi
  14998. if test "X$found_dir" = "X"; then
  14999. if test -f "$dir/$libname.$acl_libext"; then
  15000. found_dir="$dir"
  15001. found_a="$dir/$libname.$acl_libext"
  15002. fi
  15003. fi
  15004. if test "X$found_dir" != "X"; then
  15005. if test -f "$dir/$libname.la"; then
  15006. found_la="$dir/$libname.la"
  15007. fi
  15008. fi
  15009. ;;
  15010. esac
  15011. if test "X$found_dir" != "X"; then
  15012. break
  15013. fi
  15014. done
  15015. fi
  15016. if test "X$found_dir" != "X"; then
  15017. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  15018. if test "X$found_so" != "X"; then
  15019. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  15020. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15021. else
  15022. haveit=
  15023. for x in $ltrpathdirs; do
  15024. if test "X$x" = "X$found_dir"; then
  15025. haveit=yes
  15026. break
  15027. fi
  15028. done
  15029. if test -z "$haveit"; then
  15030. ltrpathdirs="$ltrpathdirs $found_dir"
  15031. fi
  15032. if test "$acl_hardcode_direct" = yes; then
  15033. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15034. else
  15035. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  15036. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15037. haveit=
  15038. for x in $rpathdirs; do
  15039. if test "X$x" = "X$found_dir"; then
  15040. haveit=yes
  15041. break
  15042. fi
  15043. done
  15044. if test -z "$haveit"; then
  15045. rpathdirs="$rpathdirs $found_dir"
  15046. fi
  15047. else
  15048. haveit=
  15049. for x in $LDFLAGS $LIBINTL; do
  15050. acl_save_prefix="$prefix"
  15051. prefix="$acl_final_prefix"
  15052. acl_save_exec_prefix="$exec_prefix"
  15053. exec_prefix="$acl_final_exec_prefix"
  15054. eval x=\"$x\"
  15055. exec_prefix="$acl_save_exec_prefix"
  15056. prefix="$acl_save_prefix"
  15057. if test "X$x" = "X-L$found_dir"; then
  15058. haveit=yes
  15059. break
  15060. fi
  15061. done
  15062. if test -z "$haveit"; then
  15063. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  15064. fi
  15065. if test "$acl_hardcode_minus_L" != no; then
  15066. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15067. else
  15068. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15069. fi
  15070. fi
  15071. fi
  15072. fi
  15073. else
  15074. if test "X$found_a" != "X"; then
  15075. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  15076. else
  15077. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  15078. fi
  15079. fi
  15080. additional_includedir=
  15081. case "$found_dir" in
  15082. */$acl_libdirstem | */$acl_libdirstem/)
  15083. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  15084. LIBINTL_PREFIX="$basedir"
  15085. additional_includedir="$basedir/include"
  15086. ;;
  15087. esac
  15088. if test "X$additional_includedir" != "X"; then
  15089. if test "X$additional_includedir" != "X/usr/include"; then
  15090. haveit=
  15091. if test "X$additional_includedir" = "X/usr/local/include"; then
  15092. if test -n "$GCC"; then
  15093. case $host_os in
  15094. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15095. esac
  15096. fi
  15097. fi
  15098. if test -z "$haveit"; then
  15099. for x in $CPPFLAGS $INCINTL; do
  15100. acl_save_prefix="$prefix"
  15101. prefix="$acl_final_prefix"
  15102. acl_save_exec_prefix="$exec_prefix"
  15103. exec_prefix="$acl_final_exec_prefix"
  15104. eval x=\"$x\"
  15105. exec_prefix="$acl_save_exec_prefix"
  15106. prefix="$acl_save_prefix"
  15107. if test "X$x" = "X-I$additional_includedir"; then
  15108. haveit=yes
  15109. break
  15110. fi
  15111. done
  15112. if test -z "$haveit"; then
  15113. if test -d "$additional_includedir"; then
  15114. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  15115. fi
  15116. fi
  15117. fi
  15118. fi
  15119. fi
  15120. if test -n "$found_la"; then
  15121. save_libdir="$libdir"
  15122. case "$found_la" in
  15123. */* | *\\*) . "$found_la" ;;
  15124. *) . "./$found_la" ;;
  15125. esac
  15126. libdir="$save_libdir"
  15127. for dep in $dependency_libs; do
  15128. case "$dep" in
  15129. -L*)
  15130. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  15131. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  15132. haveit=
  15133. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  15134. if test -n "$GCC"; then
  15135. case $host_os in
  15136. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15137. esac
  15138. fi
  15139. fi
  15140. if test -z "$haveit"; then
  15141. haveit=
  15142. for x in $LDFLAGS $LIBINTL; do
  15143. acl_save_prefix="$prefix"
  15144. prefix="$acl_final_prefix"
  15145. acl_save_exec_prefix="$exec_prefix"
  15146. exec_prefix="$acl_final_exec_prefix"
  15147. eval x=\"$x\"
  15148. exec_prefix="$acl_save_exec_prefix"
  15149. prefix="$acl_save_prefix"
  15150. if test "X$x" = "X-L$additional_libdir"; then
  15151. haveit=yes
  15152. break
  15153. fi
  15154. done
  15155. if test -z "$haveit"; then
  15156. if test -d "$additional_libdir"; then
  15157. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  15158. fi
  15159. fi
  15160. haveit=
  15161. for x in $LDFLAGS $LTLIBINTL; do
  15162. acl_save_prefix="$prefix"
  15163. prefix="$acl_final_prefix"
  15164. acl_save_exec_prefix="$exec_prefix"
  15165. exec_prefix="$acl_final_exec_prefix"
  15166. eval x=\"$x\"
  15167. exec_prefix="$acl_save_exec_prefix"
  15168. prefix="$acl_save_prefix"
  15169. if test "X$x" = "X-L$additional_libdir"; then
  15170. haveit=yes
  15171. break
  15172. fi
  15173. done
  15174. if test -z "$haveit"; then
  15175. if test -d "$additional_libdir"; then
  15176. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  15177. fi
  15178. fi
  15179. fi
  15180. fi
  15181. ;;
  15182. -R*)
  15183. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  15184. if test "$enable_rpath" != no; then
  15185. haveit=
  15186. for x in $rpathdirs; do
  15187. if test "X$x" = "X$dir"; then
  15188. haveit=yes
  15189. break
  15190. fi
  15191. done
  15192. if test -z "$haveit"; then
  15193. rpathdirs="$rpathdirs $dir"
  15194. fi
  15195. haveit=
  15196. for x in $ltrpathdirs; do
  15197. if test "X$x" = "X$dir"; then
  15198. haveit=yes
  15199. break
  15200. fi
  15201. done
  15202. if test -z "$haveit"; then
  15203. ltrpathdirs="$ltrpathdirs $dir"
  15204. fi
  15205. fi
  15206. ;;
  15207. -l*)
  15208. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  15209. ;;
  15210. *.la)
  15211. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  15212. ;;
  15213. *)
  15214. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  15215. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  15216. ;;
  15217. esac
  15218. done
  15219. fi
  15220. else
  15221. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15222. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  15223. fi
  15224. fi
  15225. fi
  15226. done
  15227. done
  15228. if test "X$rpathdirs" != "X"; then
  15229. if test -n "$acl_hardcode_libdir_separator"; then
  15230. alldirs=
  15231. for found_dir in $rpathdirs; do
  15232. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  15233. done
  15234. acl_save_libdir="$libdir"
  15235. libdir="$alldirs"
  15236. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15237. libdir="$acl_save_libdir"
  15238. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15239. else
  15240. for found_dir in $rpathdirs; do
  15241. acl_save_libdir="$libdir"
  15242. libdir="$found_dir"
  15243. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15244. libdir="$acl_save_libdir"
  15245. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15246. done
  15247. fi
  15248. fi
  15249. if test "X$ltrpathdirs" != "X"; then
  15250. for found_dir in $ltrpathdirs; do
  15251. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  15252. done
  15253. fi
  15254. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  15255. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  15256. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  15257. echo $ECHO_N "(cached) $ECHO_C" >&6
  15258. else
  15259. gt_save_CPPFLAGS="$CPPFLAGS"
  15260. CPPFLAGS="$CPPFLAGS $INCINTL"
  15261. gt_save_LIBS="$LIBS"
  15262. LIBS="$LIBS $LIBINTL"
  15263. cat >conftest.$ac_ext <<_ACEOF
  15264. /* confdefs.h. */
  15265. _ACEOF
  15266. cat confdefs.h >>conftest.$ac_ext
  15267. cat >>conftest.$ac_ext <<_ACEOF
  15268. /* end confdefs.h. */
  15269. #include <libintl.h>
  15270. $gt_revision_test_code
  15271. extern int _nl_msg_cat_cntr;
  15272. extern
  15273. #ifdef __cplusplus
  15274. "C"
  15275. #endif
  15276. const char *_nl_expand_alias (const char *);
  15277. int
  15278. main ()
  15279. {
  15280. bindtextdomain ("", "");
  15281. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  15282. ;
  15283. return 0;
  15284. }
  15285. _ACEOF
  15286. rm -f conftest.$ac_objext conftest$ac_exeext
  15287. if { (ac_try="$ac_link"
  15288. case "(($ac_try" in
  15289. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15290. *) ac_try_echo=$ac_try;;
  15291. esac
  15292. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15293. (eval "$ac_link") 2>conftest.er1
  15294. ac_status=$?
  15295. grep -v '^ *+' conftest.er1 >conftest.err
  15296. rm -f conftest.er1
  15297. cat conftest.err >&5
  15298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15299. (exit $ac_status); } && {
  15300. test -z "$ac_cxx_werror_flag" ||
  15301. test ! -s conftest.err
  15302. } && test -s conftest$ac_exeext &&
  15303. $as_test_x conftest$ac_exeext; then
  15304. eval "$gt_func_gnugettext_libintl=yes"
  15305. else
  15306. echo "$as_me: failed program was:" >&5
  15307. sed 's/^/| /' conftest.$ac_ext >&5
  15308. eval "$gt_func_gnugettext_libintl=no"
  15309. fi
  15310. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15311. conftest$ac_exeext conftest.$ac_ext
  15312. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  15313. LIBS="$LIBS $LIBICONV"
  15314. cat >conftest.$ac_ext <<_ACEOF
  15315. /* confdefs.h. */
  15316. _ACEOF
  15317. cat confdefs.h >>conftest.$ac_ext
  15318. cat >>conftest.$ac_ext <<_ACEOF
  15319. /* end confdefs.h. */
  15320. #include <libintl.h>
  15321. $gt_revision_test_code
  15322. extern int _nl_msg_cat_cntr;
  15323. extern
  15324. #ifdef __cplusplus
  15325. "C"
  15326. #endif
  15327. const char *_nl_expand_alias (const char *);
  15328. int
  15329. main ()
  15330. {
  15331. bindtextdomain ("", "");
  15332. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  15333. ;
  15334. return 0;
  15335. }
  15336. _ACEOF
  15337. rm -f conftest.$ac_objext conftest$ac_exeext
  15338. if { (ac_try="$ac_link"
  15339. case "(($ac_try" in
  15340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15341. *) ac_try_echo=$ac_try;;
  15342. esac
  15343. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15344. (eval "$ac_link") 2>conftest.er1
  15345. ac_status=$?
  15346. grep -v '^ *+' conftest.er1 >conftest.err
  15347. rm -f conftest.er1
  15348. cat conftest.err >&5
  15349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15350. (exit $ac_status); } && {
  15351. test -z "$ac_cxx_werror_flag" ||
  15352. test ! -s conftest.err
  15353. } && test -s conftest$ac_exeext &&
  15354. $as_test_x conftest$ac_exeext; then
  15355. LIBINTL="$LIBINTL $LIBICONV"
  15356. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  15357. eval "$gt_func_gnugettext_libintl=yes"
  15358. else
  15359. echo "$as_me: failed program was:" >&5
  15360. sed 's/^/| /' conftest.$ac_ext >&5
  15361. fi
  15362. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15363. conftest$ac_exeext conftest.$ac_ext
  15364. fi
  15365. CPPFLAGS="$gt_save_CPPFLAGS"
  15366. LIBS="$gt_save_LIBS"
  15367. fi
  15368. ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
  15369. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15370. echo "${ECHO_T}$ac_res" >&6; }
  15371. fi
  15372. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  15373. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  15374. && test "$PACKAGE" != gettext-runtime \
  15375. && test "$PACKAGE" != gettext-tools; }; then
  15376. gt_use_preinstalled_gnugettext=yes
  15377. else
  15378. LIBINTL=
  15379. LTLIBINTL=
  15380. INCINTL=
  15381. fi
  15382. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  15383. nls_cv_use_gnu_gettext=yes
  15384. fi
  15385. fi
  15386. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  15387. BUILD_INCLUDED_LIBINTL=yes
  15388. USE_INCLUDED_LIBINTL=yes
  15389. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  15390. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  15391. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  15392. fi
  15393. CATOBJEXT=
  15394. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15395. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15396. CATOBJEXT=.gmo
  15397. fi
  15398. if test -n "$INTL_MACOSX_LIBS"; then
  15399. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15400. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15401. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  15402. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  15403. fi
  15404. fi
  15405. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15406. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15407. cat >>confdefs.h <<\_ACEOF
  15408. #define ENABLE_NLS 1
  15409. _ACEOF
  15410. else
  15411. USE_NLS=no
  15412. fi
  15413. fi
  15414. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  15415. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  15416. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  15417. echo "${ECHO_T}$USE_NLS" >&6; }
  15418. if test "$USE_NLS" = "yes"; then
  15419. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  15420. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  15421. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  15422. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  15423. gt_source="external libintl"
  15424. else
  15425. gt_source="libc"
  15426. fi
  15427. else
  15428. gt_source="included intl directory"
  15429. fi
  15430. { echo "$as_me:$LINENO: result: $gt_source" >&5
  15431. echo "${ECHO_T}$gt_source" >&6; }
  15432. fi
  15433. if test "$USE_NLS" = "yes"; then
  15434. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  15435. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  15436. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  15437. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  15438. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  15439. echo "${ECHO_T}$LIBINTL" >&6; }
  15440. for element in $INCINTL; do
  15441. haveit=
  15442. for x in $CPPFLAGS; do
  15443. acl_save_prefix="$prefix"
  15444. prefix="$acl_final_prefix"
  15445. acl_save_exec_prefix="$exec_prefix"
  15446. exec_prefix="$acl_final_exec_prefix"
  15447. eval x=\"$x\"
  15448. exec_prefix="$acl_save_exec_prefix"
  15449. prefix="$acl_save_prefix"
  15450. if test "X$x" = "X$element"; then
  15451. haveit=yes
  15452. break
  15453. fi
  15454. done
  15455. if test -z "$haveit"; then
  15456. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  15457. fi
  15458. done
  15459. fi
  15460. cat >>confdefs.h <<\_ACEOF
  15461. #define HAVE_GETTEXT 1
  15462. _ACEOF
  15463. cat >>confdefs.h <<\_ACEOF
  15464. #define HAVE_DCGETTEXT 1
  15465. _ACEOF
  15466. fi
  15467. POSUB=po
  15468. fi
  15469. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  15470. BUILD_INCLUDED_LIBINTL=yes
  15471. fi
  15472. nls_cv_header_intl=
  15473. nls_cv_header_libgt=
  15474. DATADIRNAME=share
  15475. INSTOBJEXT=.mo
  15476. GENCAT=gencat
  15477. INTLOBJS=
  15478. if test "$USE_INCLUDED_LIBINTL" = yes; then
  15479. INTLOBJS="\$(GETTOBJS)"
  15480. fi
  15481. INTL_LIBTOOL_SUFFIX_PREFIX=
  15482. INTLLIBS="$LIBINTL"
  15483. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  15484. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  15485. if test "${ac_cv_lib_error_at_line+set}" = set; then
  15486. echo $ECHO_N "(cached) $ECHO_C" >&6
  15487. else
  15488. cat >conftest.$ac_ext <<_ACEOF
  15489. /* confdefs.h. */
  15490. _ACEOF
  15491. cat confdefs.h >>conftest.$ac_ext
  15492. cat >>conftest.$ac_ext <<_ACEOF
  15493. /* end confdefs.h. */
  15494. #include <error.h>
  15495. int
  15496. main ()
  15497. {
  15498. error_at_line (0, 0, "", 0, "an error occurred");
  15499. ;
  15500. return 0;
  15501. }
  15502. _ACEOF
  15503. rm -f conftest.$ac_objext conftest$ac_exeext
  15504. if { (ac_try="$ac_link"
  15505. case "(($ac_try" in
  15506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15507. *) ac_try_echo=$ac_try;;
  15508. esac
  15509. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15510. (eval "$ac_link") 2>conftest.er1
  15511. ac_status=$?
  15512. grep -v '^ *+' conftest.er1 >conftest.err
  15513. rm -f conftest.er1
  15514. cat conftest.err >&5
  15515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15516. (exit $ac_status); } && {
  15517. test -z "$ac_cxx_werror_flag" ||
  15518. test ! -s conftest.err
  15519. } && test -s conftest$ac_exeext &&
  15520. $as_test_x conftest$ac_exeext; then
  15521. ac_cv_lib_error_at_line=yes
  15522. else
  15523. echo "$as_me: failed program was:" >&5
  15524. sed 's/^/| /' conftest.$ac_ext >&5
  15525. ac_cv_lib_error_at_line=no
  15526. fi
  15527. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15528. conftest$ac_exeext conftest.$ac_ext
  15529. fi
  15530. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  15531. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  15532. if test $ac_cv_lib_error_at_line = no; then
  15533. case " $LIBOBJS " in
  15534. *" error.$ac_objext "* ) ;;
  15535. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  15536. ;;
  15537. esac
  15538. fi
  15539. if test $ac_cv_c_compiler_gnu = yes; then
  15540. { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  15541. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
  15542. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  15543. echo $ECHO_N "(cached) $ECHO_C" >&6
  15544. else
  15545. ac_pattern="Autoconf.*'x'"
  15546. cat >conftest.$ac_ext <<_ACEOF
  15547. /* confdefs.h. */
  15548. _ACEOF
  15549. cat confdefs.h >>conftest.$ac_ext
  15550. cat >>conftest.$ac_ext <<_ACEOF
  15551. /* end confdefs.h. */
  15552. #include <sgtty.h>
  15553. Autoconf TIOCGETP
  15554. _ACEOF
  15555. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15556. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  15557. ac_cv_prog_gcc_traditional=yes
  15558. else
  15559. ac_cv_prog_gcc_traditional=no
  15560. fi
  15561. rm -f conftest*
  15562. if test $ac_cv_prog_gcc_traditional = no; then
  15563. cat >conftest.$ac_ext <<_ACEOF
  15564. /* confdefs.h. */
  15565. _ACEOF
  15566. cat confdefs.h >>conftest.$ac_ext
  15567. cat >>conftest.$ac_ext <<_ACEOF
  15568. /* end confdefs.h. */
  15569. #include <termio.h>
  15570. Autoconf TCGETA
  15571. _ACEOF
  15572. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15573. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  15574. ac_cv_prog_gcc_traditional=yes
  15575. fi
  15576. rm -f conftest*
  15577. fi
  15578. fi
  15579. { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  15580. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
  15581. if test $ac_cv_prog_gcc_traditional = yes; then
  15582. CC="$CC -traditional"
  15583. fi
  15584. fi
  15585. case "$target" in
  15586. *mingw*)
  15587. ;;
  15588. *)
  15589. for ac_header in stdlib.h
  15590. do
  15591. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15592. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15593. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15594. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15595. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15596. echo $ECHO_N "(cached) $ECHO_C" >&6
  15597. fi
  15598. ac_res=`eval echo '${'$as_ac_Header'}'`
  15599. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15600. echo "${ECHO_T}$ac_res" >&6; }
  15601. else
  15602. # Is the header compilable?
  15603. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15604. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  15605. cat >conftest.$ac_ext <<_ACEOF
  15606. /* confdefs.h. */
  15607. _ACEOF
  15608. cat confdefs.h >>conftest.$ac_ext
  15609. cat >>conftest.$ac_ext <<_ACEOF
  15610. /* end confdefs.h. */
  15611. $ac_includes_default
  15612. #include <$ac_header>
  15613. _ACEOF
  15614. rm -f conftest.$ac_objext
  15615. if { (ac_try="$ac_compile"
  15616. case "(($ac_try" in
  15617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15618. *) ac_try_echo=$ac_try;;
  15619. esac
  15620. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15621. (eval "$ac_compile") 2>conftest.er1
  15622. ac_status=$?
  15623. grep -v '^ *+' conftest.er1 >conftest.err
  15624. rm -f conftest.er1
  15625. cat conftest.err >&5
  15626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15627. (exit $ac_status); } && {
  15628. test -z "$ac_cxx_werror_flag" ||
  15629. test ! -s conftest.err
  15630. } && test -s conftest.$ac_objext; then
  15631. ac_header_compiler=yes
  15632. else
  15633. echo "$as_me: failed program was:" >&5
  15634. sed 's/^/| /' conftest.$ac_ext >&5
  15635. ac_header_compiler=no
  15636. fi
  15637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15638. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15639. echo "${ECHO_T}$ac_header_compiler" >&6; }
  15640. # Is the header present?
  15641. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15642. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  15643. cat >conftest.$ac_ext <<_ACEOF
  15644. /* confdefs.h. */
  15645. _ACEOF
  15646. cat confdefs.h >>conftest.$ac_ext
  15647. cat >>conftest.$ac_ext <<_ACEOF
  15648. /* end confdefs.h. */
  15649. #include <$ac_header>
  15650. _ACEOF
  15651. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15652. case "(($ac_try" in
  15653. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15654. *) ac_try_echo=$ac_try;;
  15655. esac
  15656. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15657. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15658. ac_status=$?
  15659. grep -v '^ *+' conftest.er1 >conftest.err
  15660. rm -f conftest.er1
  15661. cat conftest.err >&5
  15662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15663. (exit $ac_status); } >/dev/null && {
  15664. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15665. test ! -s conftest.err
  15666. }; then
  15667. ac_header_preproc=yes
  15668. else
  15669. echo "$as_me: failed program was:" >&5
  15670. sed 's/^/| /' conftest.$ac_ext >&5
  15671. ac_header_preproc=no
  15672. fi
  15673. rm -f conftest.err conftest.$ac_ext
  15674. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15675. echo "${ECHO_T}$ac_header_preproc" >&6; }
  15676. # So? What about this header?
  15677. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15678. yes:no: )
  15679. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15680. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15681. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15682. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15683. ac_header_preproc=yes
  15684. ;;
  15685. no:yes:* )
  15686. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15687. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15688. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15689. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15690. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15691. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15692. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15693. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15694. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15695. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15696. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15697. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15698. ( cat <<\_ASBOX
  15699. ## ----------------------------------------------- ##
  15700. ## Report this to t-tujikawa@users.sourceforge.net ##
  15701. ## ----------------------------------------------- ##
  15702. _ASBOX
  15703. ) | sed "s/^/$as_me: WARNING: /" >&2
  15704. ;;
  15705. esac
  15706. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15707. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15708. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15709. echo $ECHO_N "(cached) $ECHO_C" >&6
  15710. else
  15711. eval "$as_ac_Header=\$ac_header_preproc"
  15712. fi
  15713. ac_res=`eval echo '${'$as_ac_Header'}'`
  15714. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15715. echo "${ECHO_T}$ac_res" >&6; }
  15716. fi
  15717. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  15718. cat >>confdefs.h <<_ACEOF
  15719. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15720. _ACEOF
  15721. fi
  15722. done
  15723. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  15724. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  15725. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  15726. echo $ECHO_N "(cached) $ECHO_C" >&6
  15727. else
  15728. if test "$cross_compiling" = yes; then
  15729. ac_cv_func_malloc_0_nonnull=no
  15730. else
  15731. cat >conftest.$ac_ext <<_ACEOF
  15732. /* confdefs.h. */
  15733. _ACEOF
  15734. cat confdefs.h >>conftest.$ac_ext
  15735. cat >>conftest.$ac_ext <<_ACEOF
  15736. /* end confdefs.h. */
  15737. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  15738. # include <stdlib.h>
  15739. #else
  15740. char *malloc ();
  15741. #endif
  15742. int
  15743. main ()
  15744. {
  15745. return ! malloc (0);
  15746. ;
  15747. return 0;
  15748. }
  15749. _ACEOF
  15750. rm -f conftest$ac_exeext
  15751. if { (ac_try="$ac_link"
  15752. case "(($ac_try" in
  15753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15754. *) ac_try_echo=$ac_try;;
  15755. esac
  15756. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15757. (eval "$ac_link") 2>&5
  15758. ac_status=$?
  15759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15760. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15761. { (case "(($ac_try" in
  15762. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15763. *) ac_try_echo=$ac_try;;
  15764. esac
  15765. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15766. (eval "$ac_try") 2>&5
  15767. ac_status=$?
  15768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15769. (exit $ac_status); }; }; then
  15770. ac_cv_func_malloc_0_nonnull=yes
  15771. else
  15772. echo "$as_me: program exited with status $ac_status" >&5
  15773. echo "$as_me: failed program was:" >&5
  15774. sed 's/^/| /' conftest.$ac_ext >&5
  15775. ( exit $ac_status )
  15776. ac_cv_func_malloc_0_nonnull=no
  15777. fi
  15778. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15779. fi
  15780. fi
  15781. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  15782. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  15783. if test $ac_cv_func_malloc_0_nonnull = yes; then
  15784. cat >>confdefs.h <<\_ACEOF
  15785. #define HAVE_MALLOC 1
  15786. _ACEOF
  15787. else
  15788. cat >>confdefs.h <<\_ACEOF
  15789. #define HAVE_MALLOC 0
  15790. _ACEOF
  15791. case " $LIBOBJS " in
  15792. *" malloc.$ac_objext "* ) ;;
  15793. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  15794. ;;
  15795. esac
  15796. cat >>confdefs.h <<\_ACEOF
  15797. #define malloc rpl_malloc
  15798. _ACEOF
  15799. fi
  15800. for ac_header in stdlib.h
  15801. do
  15802. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15803. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15804. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15805. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15806. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15807. echo $ECHO_N "(cached) $ECHO_C" >&6
  15808. fi
  15809. ac_res=`eval echo '${'$as_ac_Header'}'`
  15810. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15811. echo "${ECHO_T}$ac_res" >&6; }
  15812. else
  15813. # Is the header compilable?
  15814. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15815. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  15816. cat >conftest.$ac_ext <<_ACEOF
  15817. /* confdefs.h. */
  15818. _ACEOF
  15819. cat confdefs.h >>conftest.$ac_ext
  15820. cat >>conftest.$ac_ext <<_ACEOF
  15821. /* end confdefs.h. */
  15822. $ac_includes_default
  15823. #include <$ac_header>
  15824. _ACEOF
  15825. rm -f conftest.$ac_objext
  15826. if { (ac_try="$ac_compile"
  15827. case "(($ac_try" in
  15828. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15829. *) ac_try_echo=$ac_try;;
  15830. esac
  15831. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15832. (eval "$ac_compile") 2>conftest.er1
  15833. ac_status=$?
  15834. grep -v '^ *+' conftest.er1 >conftest.err
  15835. rm -f conftest.er1
  15836. cat conftest.err >&5
  15837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15838. (exit $ac_status); } && {
  15839. test -z "$ac_cxx_werror_flag" ||
  15840. test ! -s conftest.err
  15841. } && test -s conftest.$ac_objext; then
  15842. ac_header_compiler=yes
  15843. else
  15844. echo "$as_me: failed program was:" >&5
  15845. sed 's/^/| /' conftest.$ac_ext >&5
  15846. ac_header_compiler=no
  15847. fi
  15848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15849. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15850. echo "${ECHO_T}$ac_header_compiler" >&6; }
  15851. # Is the header present?
  15852. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15853. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  15854. cat >conftest.$ac_ext <<_ACEOF
  15855. /* confdefs.h. */
  15856. _ACEOF
  15857. cat confdefs.h >>conftest.$ac_ext
  15858. cat >>conftest.$ac_ext <<_ACEOF
  15859. /* end confdefs.h. */
  15860. #include <$ac_header>
  15861. _ACEOF
  15862. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15863. case "(($ac_try" in
  15864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15865. *) ac_try_echo=$ac_try;;
  15866. esac
  15867. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15868. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15869. ac_status=$?
  15870. grep -v '^ *+' conftest.er1 >conftest.err
  15871. rm -f conftest.er1
  15872. cat conftest.err >&5
  15873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15874. (exit $ac_status); } >/dev/null && {
  15875. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15876. test ! -s conftest.err
  15877. }; then
  15878. ac_header_preproc=yes
  15879. else
  15880. echo "$as_me: failed program was:" >&5
  15881. sed 's/^/| /' conftest.$ac_ext >&5
  15882. ac_header_preproc=no
  15883. fi
  15884. rm -f conftest.err conftest.$ac_ext
  15885. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15886. echo "${ECHO_T}$ac_header_preproc" >&6; }
  15887. # So? What about this header?
  15888. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15889. yes:no: )
  15890. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15891. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15892. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15893. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15894. ac_header_preproc=yes
  15895. ;;
  15896. no:yes:* )
  15897. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15898. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15899. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15900. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15901. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15902. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15903. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15904. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15905. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15906. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15907. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15908. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15909. ( cat <<\_ASBOX
  15910. ## ----------------------------------------------- ##
  15911. ## Report this to t-tujikawa@users.sourceforge.net ##
  15912. ## ----------------------------------------------- ##
  15913. _ASBOX
  15914. ) | sed "s/^/$as_me: WARNING: /" >&2
  15915. ;;
  15916. esac
  15917. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15918. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15919. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15920. echo $ECHO_N "(cached) $ECHO_C" >&6
  15921. else
  15922. eval "$as_ac_Header=\$ac_header_preproc"
  15923. fi
  15924. ac_res=`eval echo '${'$as_ac_Header'}'`
  15925. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15926. echo "${ECHO_T}$ac_res" >&6; }
  15927. fi
  15928. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  15929. cat >>confdefs.h <<_ACEOF
  15930. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15931. _ACEOF
  15932. fi
  15933. done
  15934. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  15935. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  15936. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  15937. echo $ECHO_N "(cached) $ECHO_C" >&6
  15938. else
  15939. if test "$cross_compiling" = yes; then
  15940. ac_cv_func_realloc_0_nonnull=no
  15941. else
  15942. cat >conftest.$ac_ext <<_ACEOF
  15943. /* confdefs.h. */
  15944. _ACEOF
  15945. cat confdefs.h >>conftest.$ac_ext
  15946. cat >>conftest.$ac_ext <<_ACEOF
  15947. /* end confdefs.h. */
  15948. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  15949. # include <stdlib.h>
  15950. #else
  15951. char *realloc ();
  15952. #endif
  15953. int
  15954. main ()
  15955. {
  15956. return ! realloc (0, 0);
  15957. ;
  15958. return 0;
  15959. }
  15960. _ACEOF
  15961. rm -f conftest$ac_exeext
  15962. if { (ac_try="$ac_link"
  15963. case "(($ac_try" in
  15964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15965. *) ac_try_echo=$ac_try;;
  15966. esac
  15967. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15968. (eval "$ac_link") 2>&5
  15969. ac_status=$?
  15970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15971. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15972. { (case "(($ac_try" in
  15973. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15974. *) ac_try_echo=$ac_try;;
  15975. esac
  15976. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15977. (eval "$ac_try") 2>&5
  15978. ac_status=$?
  15979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15980. (exit $ac_status); }; }; then
  15981. ac_cv_func_realloc_0_nonnull=yes
  15982. else
  15983. echo "$as_me: program exited with status $ac_status" >&5
  15984. echo "$as_me: failed program was:" >&5
  15985. sed 's/^/| /' conftest.$ac_ext >&5
  15986. ( exit $ac_status )
  15987. ac_cv_func_realloc_0_nonnull=no
  15988. fi
  15989. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15990. fi
  15991. fi
  15992. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  15993. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  15994. if test $ac_cv_func_realloc_0_nonnull = yes; then
  15995. cat >>confdefs.h <<\_ACEOF
  15996. #define HAVE_REALLOC 1
  15997. _ACEOF
  15998. else
  15999. cat >>confdefs.h <<\_ACEOF
  16000. #define HAVE_REALLOC 0
  16001. _ACEOF
  16002. case " $LIBOBJS " in
  16003. *" realloc.$ac_objext "* ) ;;
  16004. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  16005. ;;
  16006. esac
  16007. cat >>confdefs.h <<\_ACEOF
  16008. #define realloc rpl_realloc
  16009. _ACEOF
  16010. fi
  16011. ;;
  16012. esac
  16013. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  16014. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  16015. if test "${ac_cv_func_memcmp_working+set}" = set; then
  16016. echo $ECHO_N "(cached) $ECHO_C" >&6
  16017. else
  16018. if test "$cross_compiling" = yes; then
  16019. ac_cv_func_memcmp_working=no
  16020. else
  16021. cat >conftest.$ac_ext <<_ACEOF
  16022. /* confdefs.h. */
  16023. _ACEOF
  16024. cat confdefs.h >>conftest.$ac_ext
  16025. cat >>conftest.$ac_ext <<_ACEOF
  16026. /* end confdefs.h. */
  16027. $ac_includes_default
  16028. int
  16029. main ()
  16030. {
  16031. /* Some versions of memcmp are not 8-bit clean. */
  16032. char c0 = '\100', c1 = '\200', c2 = '\201';
  16033. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16034. return 1;
  16035. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16036. or more and with at least one buffer not starting on a 4-byte boundary.
  16037. William Lewis provided this test program. */
  16038. {
  16039. char foo[21];
  16040. char bar[21];
  16041. int i;
  16042. for (i = 0; i < 4; i++)
  16043. {
  16044. char *a = foo + i;
  16045. char *b = bar + i;
  16046. strcpy (a, "--------01111111");
  16047. strcpy (b, "--------10000000");
  16048. if (memcmp (a, b, 16) >= 0)
  16049. return 1;
  16050. }
  16051. return 0;
  16052. }
  16053. ;
  16054. return 0;
  16055. }
  16056. _ACEOF
  16057. rm -f conftest$ac_exeext
  16058. if { (ac_try="$ac_link"
  16059. case "(($ac_try" in
  16060. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16061. *) ac_try_echo=$ac_try;;
  16062. esac
  16063. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16064. (eval "$ac_link") 2>&5
  16065. ac_status=$?
  16066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16067. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16068. { (case "(($ac_try" in
  16069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16070. *) ac_try_echo=$ac_try;;
  16071. esac
  16072. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16073. (eval "$ac_try") 2>&5
  16074. ac_status=$?
  16075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16076. (exit $ac_status); }; }; then
  16077. ac_cv_func_memcmp_working=yes
  16078. else
  16079. echo "$as_me: program exited with status $ac_status" >&5
  16080. echo "$as_me: failed program was:" >&5
  16081. sed 's/^/| /' conftest.$ac_ext >&5
  16082. ( exit $ac_status )
  16083. ac_cv_func_memcmp_working=no
  16084. fi
  16085. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16086. fi
  16087. fi
  16088. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  16089. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  16090. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16091. *" memcmp.$ac_objext "* ) ;;
  16092. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16093. ;;
  16094. esac
  16095. for ac_header in $ac_header_list
  16096. do
  16097. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16098. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16099. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16100. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16101. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16102. echo $ECHO_N "(cached) $ECHO_C" >&6
  16103. fi
  16104. ac_res=`eval echo '${'$as_ac_Header'}'`
  16105. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16106. echo "${ECHO_T}$ac_res" >&6; }
  16107. else
  16108. # Is the header compilable?
  16109. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16110. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16111. cat >conftest.$ac_ext <<_ACEOF
  16112. /* confdefs.h. */
  16113. _ACEOF
  16114. cat confdefs.h >>conftest.$ac_ext
  16115. cat >>conftest.$ac_ext <<_ACEOF
  16116. /* end confdefs.h. */
  16117. $ac_includes_default
  16118. #include <$ac_header>
  16119. _ACEOF
  16120. rm -f conftest.$ac_objext
  16121. if { (ac_try="$ac_compile"
  16122. case "(($ac_try" in
  16123. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16124. *) ac_try_echo=$ac_try;;
  16125. esac
  16126. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16127. (eval "$ac_compile") 2>conftest.er1
  16128. ac_status=$?
  16129. grep -v '^ *+' conftest.er1 >conftest.err
  16130. rm -f conftest.er1
  16131. cat conftest.err >&5
  16132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16133. (exit $ac_status); } && {
  16134. test -z "$ac_cxx_werror_flag" ||
  16135. test ! -s conftest.err
  16136. } && test -s conftest.$ac_objext; then
  16137. ac_header_compiler=yes
  16138. else
  16139. echo "$as_me: failed program was:" >&5
  16140. sed 's/^/| /' conftest.$ac_ext >&5
  16141. ac_header_compiler=no
  16142. fi
  16143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16144. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16145. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16146. # Is the header present?
  16147. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16148. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16149. cat >conftest.$ac_ext <<_ACEOF
  16150. /* confdefs.h. */
  16151. _ACEOF
  16152. cat confdefs.h >>conftest.$ac_ext
  16153. cat >>conftest.$ac_ext <<_ACEOF
  16154. /* end confdefs.h. */
  16155. #include <$ac_header>
  16156. _ACEOF
  16157. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16158. case "(($ac_try" in
  16159. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16160. *) ac_try_echo=$ac_try;;
  16161. esac
  16162. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16163. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16164. ac_status=$?
  16165. grep -v '^ *+' conftest.er1 >conftest.err
  16166. rm -f conftest.er1
  16167. cat conftest.err >&5
  16168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16169. (exit $ac_status); } >/dev/null && {
  16170. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16171. test ! -s conftest.err
  16172. }; then
  16173. ac_header_preproc=yes
  16174. else
  16175. echo "$as_me: failed program was:" >&5
  16176. sed 's/^/| /' conftest.$ac_ext >&5
  16177. ac_header_preproc=no
  16178. fi
  16179. rm -f conftest.err conftest.$ac_ext
  16180. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16181. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16182. # So? What about this header?
  16183. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16184. yes:no: )
  16185. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16186. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16187. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16188. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16189. ac_header_preproc=yes
  16190. ;;
  16191. no:yes:* )
  16192. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16193. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16194. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16195. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16196. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16197. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16198. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16199. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16200. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16201. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16202. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16203. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16204. ( cat <<\_ASBOX
  16205. ## ----------------------------------------------- ##
  16206. ## Report this to t-tujikawa@users.sourceforge.net ##
  16207. ## ----------------------------------------------- ##
  16208. _ASBOX
  16209. ) | sed "s/^/$as_me: WARNING: /" >&2
  16210. ;;
  16211. esac
  16212. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16213. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16214. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16215. echo $ECHO_N "(cached) $ECHO_C" >&6
  16216. else
  16217. eval "$as_ac_Header=\$ac_header_preproc"
  16218. fi
  16219. ac_res=`eval echo '${'$as_ac_Header'}'`
  16220. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16221. echo "${ECHO_T}$ac_res" >&6; }
  16222. fi
  16223. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16224. cat >>confdefs.h <<_ACEOF
  16225. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16226. _ACEOF
  16227. fi
  16228. done
  16229. for ac_func in $ac_func_list
  16230. do
  16231. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16232. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16233. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16234. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16235. echo $ECHO_N "(cached) $ECHO_C" >&6
  16236. else
  16237. cat >conftest.$ac_ext <<_ACEOF
  16238. /* confdefs.h. */
  16239. _ACEOF
  16240. cat confdefs.h >>conftest.$ac_ext
  16241. cat >>conftest.$ac_ext <<_ACEOF
  16242. /* end confdefs.h. */
  16243. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16244. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16245. #define $ac_func innocuous_$ac_func
  16246. /* System header to define __stub macros and hopefully few prototypes,
  16247. which can conflict with char $ac_func (); below.
  16248. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16249. <limits.h> exists even on freestanding compilers. */
  16250. #ifdef __STDC__
  16251. # include <limits.h>
  16252. #else
  16253. # include <assert.h>
  16254. #endif
  16255. #undef $ac_func
  16256. /* Override any GCC internal prototype to avoid an error.
  16257. Use char because int might match the return type of a GCC
  16258. builtin and then its argument prototype would still apply. */
  16259. #ifdef __cplusplus
  16260. extern "C"
  16261. #endif
  16262. char $ac_func ();
  16263. /* The GNU C library defines this for functions which it implements
  16264. to always fail with ENOSYS. Some functions are actually named
  16265. something starting with __ and the normal name is an alias. */
  16266. #if defined __stub_$ac_func || defined __stub___$ac_func
  16267. choke me
  16268. #endif
  16269. int
  16270. main ()
  16271. {
  16272. return $ac_func ();
  16273. ;
  16274. return 0;
  16275. }
  16276. _ACEOF
  16277. rm -f conftest.$ac_objext conftest$ac_exeext
  16278. if { (ac_try="$ac_link"
  16279. case "(($ac_try" in
  16280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16281. *) ac_try_echo=$ac_try;;
  16282. esac
  16283. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16284. (eval "$ac_link") 2>conftest.er1
  16285. ac_status=$?
  16286. grep -v '^ *+' conftest.er1 >conftest.err
  16287. rm -f conftest.er1
  16288. cat conftest.err >&5
  16289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16290. (exit $ac_status); } && {
  16291. test -z "$ac_cxx_werror_flag" ||
  16292. test ! -s conftest.err
  16293. } && test -s conftest$ac_exeext &&
  16294. $as_test_x conftest$ac_exeext; then
  16295. eval "$as_ac_var=yes"
  16296. else
  16297. echo "$as_me: failed program was:" >&5
  16298. sed 's/^/| /' conftest.$ac_ext >&5
  16299. eval "$as_ac_var=no"
  16300. fi
  16301. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16302. conftest$ac_exeext conftest.$ac_ext
  16303. fi
  16304. ac_res=`eval echo '${'$as_ac_var'}'`
  16305. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16306. echo "${ECHO_T}$ac_res" >&6; }
  16307. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16308. cat >>confdefs.h <<_ACEOF
  16309. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16310. _ACEOF
  16311. fi
  16312. done
  16313. { echo "$as_me:$LINENO: checking for working mktime" >&5
  16314. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
  16315. if test "${ac_cv_func_working_mktime+set}" = set; then
  16316. echo $ECHO_N "(cached) $ECHO_C" >&6
  16317. else
  16318. if test "$cross_compiling" = yes; then
  16319. ac_cv_func_working_mktime=no
  16320. else
  16321. cat >conftest.$ac_ext <<_ACEOF
  16322. /* confdefs.h. */
  16323. _ACEOF
  16324. cat confdefs.h >>conftest.$ac_ext
  16325. cat >>conftest.$ac_ext <<_ACEOF
  16326. /* end confdefs.h. */
  16327. /* Test program from Paul Eggert and Tony Leneis. */
  16328. #ifdef TIME_WITH_SYS_TIME
  16329. # include <sys/time.h>
  16330. # include <time.h>
  16331. #else
  16332. # ifdef HAVE_SYS_TIME_H
  16333. # include <sys/time.h>
  16334. # else
  16335. # include <time.h>
  16336. # endif
  16337. #endif
  16338. #include <limits.h>
  16339. #include <stdlib.h>
  16340. #ifdef HAVE_UNISTD_H
  16341. # include <unistd.h>
  16342. #endif
  16343. #ifndef HAVE_ALARM
  16344. # define alarm(X) /* empty */
  16345. #endif
  16346. /* Work around redefinition to rpl_putenv by other config tests. */
  16347. #undef putenv
  16348. static time_t time_t_max;
  16349. static time_t time_t_min;
  16350. /* Values we'll use to set the TZ environment variable. */
  16351. static char *tz_strings[] = {
  16352. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  16353. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  16354. };
  16355. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  16356. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  16357. Based on a problem report from Andreas Jaeger. */
  16358. static int
  16359. spring_forward_gap ()
  16360. {
  16361. /* glibc (up to about 1998-10-07) failed this test. */
  16362. struct tm tm;
  16363. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  16364. instead of "TZ=America/Vancouver" in order to detect the bug even
  16365. on systems that don't support the Olson extension, or don't have the
  16366. full zoneinfo tables installed. */
  16367. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  16368. tm.tm_year = 98;
  16369. tm.tm_mon = 3;
  16370. tm.tm_mday = 5;
  16371. tm.tm_hour = 2;
  16372. tm.tm_min = 0;
  16373. tm.tm_sec = 0;
  16374. tm.tm_isdst = -1;
  16375. return mktime (&tm) != (time_t) -1;
  16376. }
  16377. static int
  16378. mktime_test1 (now)
  16379. time_t now;
  16380. {
  16381. struct tm *lt;
  16382. return ! (lt = localtime (&now)) || mktime (lt) == now;
  16383. }
  16384. static int
  16385. mktime_test (now)
  16386. time_t now;
  16387. {
  16388. return (mktime_test1 (now)
  16389. && mktime_test1 ((time_t) (time_t_max - now))
  16390. && mktime_test1 ((time_t) (time_t_min + now)));
  16391. }
  16392. static int
  16393. irix_6_4_bug ()
  16394. {
  16395. /* Based on code from Ariel Faigon. */
  16396. struct tm tm;
  16397. tm.tm_year = 96;
  16398. tm.tm_mon = 3;
  16399. tm.tm_mday = 0;
  16400. tm.tm_hour = 0;
  16401. tm.tm_min = 0;
  16402. tm.tm_sec = 0;
  16403. tm.tm_isdst = -1;
  16404. mktime (&tm);
  16405. return tm.tm_mon == 2 && tm.tm_mday == 31;
  16406. }
  16407. static int
  16408. bigtime_test (j)
  16409. int j;
  16410. {
  16411. struct tm tm;
  16412. time_t now;
  16413. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  16414. now = mktime (&tm);
  16415. if (now != (time_t) -1)
  16416. {
  16417. struct tm *lt = localtime (&now);
  16418. if (! (lt
  16419. && lt->tm_year == tm.tm_year
  16420. && lt->tm_mon == tm.tm_mon
  16421. && lt->tm_mday == tm.tm_mday
  16422. && lt->tm_hour == tm.tm_hour
  16423. && lt->tm_min == tm.tm_min
  16424. && lt->tm_sec == tm.tm_sec
  16425. && lt->tm_yday == tm.tm_yday
  16426. && lt->tm_wday == tm.tm_wday
  16427. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  16428. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  16429. return 0;
  16430. }
  16431. return 1;
  16432. }
  16433. static int
  16434. year_2050_test ()
  16435. {
  16436. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  16437. ignoring leap seconds. */
  16438. unsigned long int answer = 2527315200UL;
  16439. struct tm tm;
  16440. time_t t;
  16441. tm.tm_year = 2050 - 1900;
  16442. tm.tm_mon = 2 - 1;
  16443. tm.tm_mday = 1;
  16444. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  16445. tm.tm_isdst = -1;
  16446. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  16447. instead of "TZ=America/Vancouver" in order to detect the bug even
  16448. on systems that don't support the Olson extension, or don't have the
  16449. full zoneinfo tables installed. */
  16450. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  16451. t = mktime (&tm);
  16452. /* Check that the result is either a failure, or close enough
  16453. to the correct answer that we can assume the discrepancy is
  16454. due to leap seconds. */
  16455. return (t == (time_t) -1
  16456. || (0 < t && answer - 120 <= t && t <= answer + 120));
  16457. }
  16458. int
  16459. main ()
  16460. {
  16461. time_t t, delta;
  16462. int i, j;
  16463. /* This test makes some buggy mktime implementations loop.
  16464. Give up after 60 seconds; a mktime slower than that
  16465. isn't worth using anyway. */
  16466. alarm (60);
  16467. for (;;)
  16468. {
  16469. t = (time_t_max << 1) + 1;
  16470. if (t <= time_t_max)
  16471. break;
  16472. time_t_max = t;
  16473. }
  16474. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  16475. delta = time_t_max / 997; /* a suitable prime number */
  16476. for (i = 0; i < N_STRINGS; i++)
  16477. {
  16478. if (tz_strings[i])
  16479. putenv (tz_strings[i]);
  16480. for (t = 0; t <= time_t_max - delta; t += delta)
  16481. if (! mktime_test (t))
  16482. return 1;
  16483. if (! (mktime_test ((time_t) 1)
  16484. && mktime_test ((time_t) (60 * 60))
  16485. && mktime_test ((time_t) (60 * 60 * 24))))
  16486. return 1;
  16487. for (j = 1; ; j <<= 1)
  16488. if (! bigtime_test (j))
  16489. return 1;
  16490. else if (INT_MAX / 2 < j)
  16491. break;
  16492. if (! bigtime_test (INT_MAX))
  16493. return 1;
  16494. }
  16495. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  16496. }
  16497. _ACEOF
  16498. rm -f conftest$ac_exeext
  16499. if { (ac_try="$ac_link"
  16500. case "(($ac_try" in
  16501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16502. *) ac_try_echo=$ac_try;;
  16503. esac
  16504. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16505. (eval "$ac_link") 2>&5
  16506. ac_status=$?
  16507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16508. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16509. { (case "(($ac_try" in
  16510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16511. *) ac_try_echo=$ac_try;;
  16512. esac
  16513. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16514. (eval "$ac_try") 2>&5
  16515. ac_status=$?
  16516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16517. (exit $ac_status); }; }; then
  16518. ac_cv_func_working_mktime=yes
  16519. else
  16520. echo "$as_me: program exited with status $ac_status" >&5
  16521. echo "$as_me: failed program was:" >&5
  16522. sed 's/^/| /' conftest.$ac_ext >&5
  16523. ( exit $ac_status )
  16524. ac_cv_func_working_mktime=no
  16525. fi
  16526. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16527. fi
  16528. fi
  16529. { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  16530. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
  16531. if test $ac_cv_func_working_mktime = no; then
  16532. case " $LIBOBJS " in
  16533. *" mktime.$ac_objext "* ) ;;
  16534. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  16535. ;;
  16536. esac
  16537. fi
  16538. for ac_header in stdlib.h unistd.h
  16539. do
  16540. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16541. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16542. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16543. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16544. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16545. echo $ECHO_N "(cached) $ECHO_C" >&6
  16546. fi
  16547. ac_res=`eval echo '${'$as_ac_Header'}'`
  16548. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16549. echo "${ECHO_T}$ac_res" >&6; }
  16550. else
  16551. # Is the header compilable?
  16552. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16553. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16554. cat >conftest.$ac_ext <<_ACEOF
  16555. /* confdefs.h. */
  16556. _ACEOF
  16557. cat confdefs.h >>conftest.$ac_ext
  16558. cat >>conftest.$ac_ext <<_ACEOF
  16559. /* end confdefs.h. */
  16560. $ac_includes_default
  16561. #include <$ac_header>
  16562. _ACEOF
  16563. rm -f conftest.$ac_objext
  16564. if { (ac_try="$ac_compile"
  16565. case "(($ac_try" in
  16566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16567. *) ac_try_echo=$ac_try;;
  16568. esac
  16569. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16570. (eval "$ac_compile") 2>conftest.er1
  16571. ac_status=$?
  16572. grep -v '^ *+' conftest.er1 >conftest.err
  16573. rm -f conftest.er1
  16574. cat conftest.err >&5
  16575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16576. (exit $ac_status); } && {
  16577. test -z "$ac_cxx_werror_flag" ||
  16578. test ! -s conftest.err
  16579. } && test -s conftest.$ac_objext; then
  16580. ac_header_compiler=yes
  16581. else
  16582. echo "$as_me: failed program was:" >&5
  16583. sed 's/^/| /' conftest.$ac_ext >&5
  16584. ac_header_compiler=no
  16585. fi
  16586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16587. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16588. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16589. # Is the header present?
  16590. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16591. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16592. cat >conftest.$ac_ext <<_ACEOF
  16593. /* confdefs.h. */
  16594. _ACEOF
  16595. cat confdefs.h >>conftest.$ac_ext
  16596. cat >>conftest.$ac_ext <<_ACEOF
  16597. /* end confdefs.h. */
  16598. #include <$ac_header>
  16599. _ACEOF
  16600. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16601. case "(($ac_try" in
  16602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16603. *) ac_try_echo=$ac_try;;
  16604. esac
  16605. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16606. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16607. ac_status=$?
  16608. grep -v '^ *+' conftest.er1 >conftest.err
  16609. rm -f conftest.er1
  16610. cat conftest.err >&5
  16611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16612. (exit $ac_status); } >/dev/null && {
  16613. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16614. test ! -s conftest.err
  16615. }; then
  16616. ac_header_preproc=yes
  16617. else
  16618. echo "$as_me: failed program was:" >&5
  16619. sed 's/^/| /' conftest.$ac_ext >&5
  16620. ac_header_preproc=no
  16621. fi
  16622. rm -f conftest.err conftest.$ac_ext
  16623. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16624. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16625. # So? What about this header?
  16626. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16627. yes:no: )
  16628. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16629. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16630. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16631. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16632. ac_header_preproc=yes
  16633. ;;
  16634. no:yes:* )
  16635. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16636. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16637. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16638. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16639. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16640. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16641. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16642. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16643. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16644. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16645. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16646. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16647. ( cat <<\_ASBOX
  16648. ## ----------------------------------------------- ##
  16649. ## Report this to t-tujikawa@users.sourceforge.net ##
  16650. ## ----------------------------------------------- ##
  16651. _ASBOX
  16652. ) | sed "s/^/$as_me: WARNING: /" >&2
  16653. ;;
  16654. esac
  16655. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16656. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16657. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16658. echo $ECHO_N "(cached) $ECHO_C" >&6
  16659. else
  16660. eval "$as_ac_Header=\$ac_header_preproc"
  16661. fi
  16662. ac_res=`eval echo '${'$as_ac_Header'}'`
  16663. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16664. echo "${ECHO_T}$ac_res" >&6; }
  16665. fi
  16666. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16667. cat >>confdefs.h <<_ACEOF
  16668. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16669. _ACEOF
  16670. fi
  16671. done
  16672. for ac_func in getpagesize
  16673. do
  16674. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16675. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16676. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16677. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16678. echo $ECHO_N "(cached) $ECHO_C" >&6
  16679. else
  16680. cat >conftest.$ac_ext <<_ACEOF
  16681. /* confdefs.h. */
  16682. _ACEOF
  16683. cat confdefs.h >>conftest.$ac_ext
  16684. cat >>conftest.$ac_ext <<_ACEOF
  16685. /* end confdefs.h. */
  16686. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16687. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16688. #define $ac_func innocuous_$ac_func
  16689. /* System header to define __stub macros and hopefully few prototypes,
  16690. which can conflict with char $ac_func (); below.
  16691. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16692. <limits.h> exists even on freestanding compilers. */
  16693. #ifdef __STDC__
  16694. # include <limits.h>
  16695. #else
  16696. # include <assert.h>
  16697. #endif
  16698. #undef $ac_func
  16699. /* Override any GCC internal prototype to avoid an error.
  16700. Use char because int might match the return type of a GCC
  16701. builtin and then its argument prototype would still apply. */
  16702. #ifdef __cplusplus
  16703. extern "C"
  16704. #endif
  16705. char $ac_func ();
  16706. /* The GNU C library defines this for functions which it implements
  16707. to always fail with ENOSYS. Some functions are actually named
  16708. something starting with __ and the normal name is an alias. */
  16709. #if defined __stub_$ac_func || defined __stub___$ac_func
  16710. choke me
  16711. #endif
  16712. int
  16713. main ()
  16714. {
  16715. return $ac_func ();
  16716. ;
  16717. return 0;
  16718. }
  16719. _ACEOF
  16720. rm -f conftest.$ac_objext conftest$ac_exeext
  16721. if { (ac_try="$ac_link"
  16722. case "(($ac_try" in
  16723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16724. *) ac_try_echo=$ac_try;;
  16725. esac
  16726. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16727. (eval "$ac_link") 2>conftest.er1
  16728. ac_status=$?
  16729. grep -v '^ *+' conftest.er1 >conftest.err
  16730. rm -f conftest.er1
  16731. cat conftest.err >&5
  16732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16733. (exit $ac_status); } && {
  16734. test -z "$ac_cxx_werror_flag" ||
  16735. test ! -s conftest.err
  16736. } && test -s conftest$ac_exeext &&
  16737. $as_test_x conftest$ac_exeext; then
  16738. eval "$as_ac_var=yes"
  16739. else
  16740. echo "$as_me: failed program was:" >&5
  16741. sed 's/^/| /' conftest.$ac_ext >&5
  16742. eval "$as_ac_var=no"
  16743. fi
  16744. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16745. conftest$ac_exeext conftest.$ac_ext
  16746. fi
  16747. ac_res=`eval echo '${'$as_ac_var'}'`
  16748. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16749. echo "${ECHO_T}$ac_res" >&6; }
  16750. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16751. cat >>confdefs.h <<_ACEOF
  16752. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16753. _ACEOF
  16754. fi
  16755. done
  16756. { echo "$as_me:$LINENO: checking for working mmap" >&5
  16757. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  16758. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  16759. echo $ECHO_N "(cached) $ECHO_C" >&6
  16760. else
  16761. if test "$cross_compiling" = yes; then
  16762. ac_cv_func_mmap_fixed_mapped=no
  16763. else
  16764. cat >conftest.$ac_ext <<_ACEOF
  16765. /* confdefs.h. */
  16766. _ACEOF
  16767. cat confdefs.h >>conftest.$ac_ext
  16768. cat >>conftest.$ac_ext <<_ACEOF
  16769. /* end confdefs.h. */
  16770. $ac_includes_default
  16771. /* malloc might have been renamed as rpl_malloc. */
  16772. #undef malloc
  16773. /* Thanks to Mike Haertel and Jim Avera for this test.
  16774. Here is a matrix of mmap possibilities:
  16775. mmap private not fixed
  16776. mmap private fixed at somewhere currently unmapped
  16777. mmap private fixed at somewhere already mapped
  16778. mmap shared not fixed
  16779. mmap shared fixed at somewhere currently unmapped
  16780. mmap shared fixed at somewhere already mapped
  16781. For private mappings, we should verify that changes cannot be read()
  16782. back from the file, nor mmap's back from the file at a different
  16783. address. (There have been systems where private was not correctly
  16784. implemented like the infamous i386 svr4.0, and systems where the
  16785. VM page cache was not coherent with the file system buffer cache
  16786. like early versions of FreeBSD and possibly contemporary NetBSD.)
  16787. For shared mappings, we should conversely verify that changes get
  16788. propagated back to all the places they're supposed to be.
  16789. Grep wants private fixed already mapped.
  16790. The main things grep needs to know about mmap are:
  16791. * does it exist and is it safe to write into the mmap'd area
  16792. * how to use it (BSD variants) */
  16793. #include <fcntl.h>
  16794. #include <sys/mman.h>
  16795. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  16796. char *malloc ();
  16797. #endif
  16798. /* This mess was copied from the GNU getpagesize.h. */
  16799. #ifndef HAVE_GETPAGESIZE
  16800. /* Assume that all systems that can run configure have sys/param.h. */
  16801. # ifndef HAVE_SYS_PARAM_H
  16802. # define HAVE_SYS_PARAM_H 1
  16803. # endif
  16804. # ifdef _SC_PAGESIZE
  16805. # define getpagesize() sysconf(_SC_PAGESIZE)
  16806. # else /* no _SC_PAGESIZE */
  16807. # ifdef HAVE_SYS_PARAM_H
  16808. # include <sys/param.h>
  16809. # ifdef EXEC_PAGESIZE
  16810. # define getpagesize() EXEC_PAGESIZE
  16811. # else /* no EXEC_PAGESIZE */
  16812. # ifdef NBPG
  16813. # define getpagesize() NBPG * CLSIZE
  16814. # ifndef CLSIZE
  16815. # define CLSIZE 1
  16816. # endif /* no CLSIZE */
  16817. # else /* no NBPG */
  16818. # ifdef NBPC
  16819. # define getpagesize() NBPC
  16820. # else /* no NBPC */
  16821. # ifdef PAGESIZE
  16822. # define getpagesize() PAGESIZE
  16823. # endif /* PAGESIZE */
  16824. # endif /* no NBPC */
  16825. # endif /* no NBPG */
  16826. # endif /* no EXEC_PAGESIZE */
  16827. # else /* no HAVE_SYS_PARAM_H */
  16828. # define getpagesize() 8192 /* punt totally */
  16829. # endif /* no HAVE_SYS_PARAM_H */
  16830. # endif /* no _SC_PAGESIZE */
  16831. #endif /* no HAVE_GETPAGESIZE */
  16832. int
  16833. main ()
  16834. {
  16835. char *data, *data2, *data3;
  16836. int i, pagesize;
  16837. int fd;
  16838. pagesize = getpagesize ();
  16839. /* First, make a file with some known garbage in it. */
  16840. data = (char *) malloc (pagesize);
  16841. if (!data)
  16842. return 1;
  16843. for (i = 0; i < pagesize; ++i)
  16844. *(data + i) = rand ();
  16845. umask (0);
  16846. fd = creat ("conftest.mmap", 0600);
  16847. if (fd < 0)
  16848. return 1;
  16849. if (write (fd, data, pagesize) != pagesize)
  16850. return 1;
  16851. close (fd);
  16852. /* Next, try to mmap the file at a fixed address which already has
  16853. something else allocated at it. If we can, also make sure that
  16854. we see the same garbage. */
  16855. fd = open ("conftest.mmap", O_RDWR);
  16856. if (fd < 0)
  16857. return 1;
  16858. data2 = (char *) malloc (2 * pagesize);
  16859. if (!data2)
  16860. return 1;
  16861. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  16862. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  16863. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  16864. return 1;
  16865. for (i = 0; i < pagesize; ++i)
  16866. if (*(data + i) != *(data2 + i))
  16867. return 1;
  16868. /* Finally, make sure that changes to the mapped area do not
  16869. percolate back to the file as seen by read(). (This is a bug on
  16870. some variants of i386 svr4.0.) */
  16871. for (i = 0; i < pagesize; ++i)
  16872. *(data2 + i) = *(data2 + i) + 1;
  16873. data3 = (char *) malloc (pagesize);
  16874. if (!data3)
  16875. return 1;
  16876. if (read (fd, data3, pagesize) != pagesize)
  16877. return 1;
  16878. for (i = 0; i < pagesize; ++i)
  16879. if (*(data + i) != *(data3 + i))
  16880. return 1;
  16881. close (fd);
  16882. return 0;
  16883. }
  16884. _ACEOF
  16885. rm -f conftest$ac_exeext
  16886. if { (ac_try="$ac_link"
  16887. case "(($ac_try" in
  16888. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16889. *) ac_try_echo=$ac_try;;
  16890. esac
  16891. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16892. (eval "$ac_link") 2>&5
  16893. ac_status=$?
  16894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16895. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16896. { (case "(($ac_try" in
  16897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16898. *) ac_try_echo=$ac_try;;
  16899. esac
  16900. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16901. (eval "$ac_try") 2>&5
  16902. ac_status=$?
  16903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16904. (exit $ac_status); }; }; then
  16905. ac_cv_func_mmap_fixed_mapped=yes
  16906. else
  16907. echo "$as_me: program exited with status $ac_status" >&5
  16908. echo "$as_me: failed program was:" >&5
  16909. sed 's/^/| /' conftest.$ac_ext >&5
  16910. ( exit $ac_status )
  16911. ac_cv_func_mmap_fixed_mapped=no
  16912. fi
  16913. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16914. fi
  16915. fi
  16916. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  16917. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  16918. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  16919. cat >>confdefs.h <<\_ACEOF
  16920. #define HAVE_MMAP 1
  16921. _ACEOF
  16922. fi
  16923. rm -f conftest.mmap
  16924. for ac_header in sys/select.h sys/socket.h
  16925. do
  16926. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16927. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16928. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16929. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16930. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16931. echo $ECHO_N "(cached) $ECHO_C" >&6
  16932. fi
  16933. ac_res=`eval echo '${'$as_ac_Header'}'`
  16934. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16935. echo "${ECHO_T}$ac_res" >&6; }
  16936. else
  16937. # Is the header compilable?
  16938. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16939. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16940. cat >conftest.$ac_ext <<_ACEOF
  16941. /* confdefs.h. */
  16942. _ACEOF
  16943. cat confdefs.h >>conftest.$ac_ext
  16944. cat >>conftest.$ac_ext <<_ACEOF
  16945. /* end confdefs.h. */
  16946. $ac_includes_default
  16947. #include <$ac_header>
  16948. _ACEOF
  16949. rm -f conftest.$ac_objext
  16950. if { (ac_try="$ac_compile"
  16951. case "(($ac_try" in
  16952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16953. *) ac_try_echo=$ac_try;;
  16954. esac
  16955. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16956. (eval "$ac_compile") 2>conftest.er1
  16957. ac_status=$?
  16958. grep -v '^ *+' conftest.er1 >conftest.err
  16959. rm -f conftest.er1
  16960. cat conftest.err >&5
  16961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16962. (exit $ac_status); } && {
  16963. test -z "$ac_cxx_werror_flag" ||
  16964. test ! -s conftest.err
  16965. } && test -s conftest.$ac_objext; then
  16966. ac_header_compiler=yes
  16967. else
  16968. echo "$as_me: failed program was:" >&5
  16969. sed 's/^/| /' conftest.$ac_ext >&5
  16970. ac_header_compiler=no
  16971. fi
  16972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16973. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16974. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16975. # Is the header present?
  16976. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16977. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16978. cat >conftest.$ac_ext <<_ACEOF
  16979. /* confdefs.h. */
  16980. _ACEOF
  16981. cat confdefs.h >>conftest.$ac_ext
  16982. cat >>conftest.$ac_ext <<_ACEOF
  16983. /* end confdefs.h. */
  16984. #include <$ac_header>
  16985. _ACEOF
  16986. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16987. case "(($ac_try" in
  16988. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16989. *) ac_try_echo=$ac_try;;
  16990. esac
  16991. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16992. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16993. ac_status=$?
  16994. grep -v '^ *+' conftest.er1 >conftest.err
  16995. rm -f conftest.er1
  16996. cat conftest.err >&5
  16997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16998. (exit $ac_status); } >/dev/null && {
  16999. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17000. test ! -s conftest.err
  17001. }; then
  17002. ac_header_preproc=yes
  17003. else
  17004. echo "$as_me: failed program was:" >&5
  17005. sed 's/^/| /' conftest.$ac_ext >&5
  17006. ac_header_preproc=no
  17007. fi
  17008. rm -f conftest.err conftest.$ac_ext
  17009. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17010. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17011. # So? What about this header?
  17012. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17013. yes:no: )
  17014. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17015. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17016. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17017. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17018. ac_header_preproc=yes
  17019. ;;
  17020. no:yes:* )
  17021. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17022. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17023. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17024. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17025. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17026. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17027. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17028. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17029. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17030. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17031. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17032. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17033. ( cat <<\_ASBOX
  17034. ## ----------------------------------------------- ##
  17035. ## Report this to t-tujikawa@users.sourceforge.net ##
  17036. ## ----------------------------------------------- ##
  17037. _ASBOX
  17038. ) | sed "s/^/$as_me: WARNING: /" >&2
  17039. ;;
  17040. esac
  17041. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17042. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17043. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17044. echo $ECHO_N "(cached) $ECHO_C" >&6
  17045. else
  17046. eval "$as_ac_Header=\$ac_header_preproc"
  17047. fi
  17048. ac_res=`eval echo '${'$as_ac_Header'}'`
  17049. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17050. echo "${ECHO_T}$ac_res" >&6; }
  17051. fi
  17052. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17053. cat >>confdefs.h <<_ACEOF
  17054. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17055. _ACEOF
  17056. fi
  17057. done
  17058. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  17059. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  17060. if test "${ac_cv_func_select_args+set}" = set; then
  17061. echo $ECHO_N "(cached) $ECHO_C" >&6
  17062. else
  17063. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  17064. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  17065. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  17066. cat >conftest.$ac_ext <<_ACEOF
  17067. /* confdefs.h. */
  17068. _ACEOF
  17069. cat confdefs.h >>conftest.$ac_ext
  17070. cat >>conftest.$ac_ext <<_ACEOF
  17071. /* end confdefs.h. */
  17072. $ac_includes_default
  17073. #ifdef HAVE_SYS_SELECT_H
  17074. # include <sys/select.h>
  17075. #endif
  17076. #ifdef HAVE_SYS_SOCKET_H
  17077. # include <sys/socket.h>
  17078. #endif
  17079. int
  17080. main ()
  17081. {
  17082. extern int select ($ac_arg1,
  17083. $ac_arg234, $ac_arg234, $ac_arg234,
  17084. $ac_arg5);
  17085. ;
  17086. return 0;
  17087. }
  17088. _ACEOF
  17089. rm -f conftest.$ac_objext
  17090. if { (ac_try="$ac_compile"
  17091. case "(($ac_try" in
  17092. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17093. *) ac_try_echo=$ac_try;;
  17094. esac
  17095. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17096. (eval "$ac_compile") 2>conftest.er1
  17097. ac_status=$?
  17098. grep -v '^ *+' conftest.er1 >conftest.err
  17099. rm -f conftest.er1
  17100. cat conftest.err >&5
  17101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17102. (exit $ac_status); } && {
  17103. test -z "$ac_cxx_werror_flag" ||
  17104. test ! -s conftest.err
  17105. } && test -s conftest.$ac_objext; then
  17106. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  17107. else
  17108. echo "$as_me: failed program was:" >&5
  17109. sed 's/^/| /' conftest.$ac_ext >&5
  17110. fi
  17111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17112. done
  17113. done
  17114. done
  17115. # Provide a safe default value.
  17116. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  17117. fi
  17118. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  17119. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  17120. ac_save_IFS=$IFS; IFS=','
  17121. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  17122. IFS=$ac_save_IFS
  17123. shift
  17124. cat >>confdefs.h <<_ACEOF
  17125. #define SELECT_TYPE_ARG1 $1
  17126. _ACEOF
  17127. cat >>confdefs.h <<_ACEOF
  17128. #define SELECT_TYPE_ARG234 ($2)
  17129. _ACEOF
  17130. cat >>confdefs.h <<_ACEOF
  17131. #define SELECT_TYPE_ARG5 ($3)
  17132. _ACEOF
  17133. rm -f conftest*
  17134. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  17135. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  17136. if test "${ac_cv_type_signal+set}" = set; then
  17137. echo $ECHO_N "(cached) $ECHO_C" >&6
  17138. else
  17139. cat >conftest.$ac_ext <<_ACEOF
  17140. /* confdefs.h. */
  17141. _ACEOF
  17142. cat confdefs.h >>conftest.$ac_ext
  17143. cat >>conftest.$ac_ext <<_ACEOF
  17144. /* end confdefs.h. */
  17145. #include <sys/types.h>
  17146. #include <signal.h>
  17147. int
  17148. main ()
  17149. {
  17150. return *(signal (0, 0)) (0) == 1;
  17151. ;
  17152. return 0;
  17153. }
  17154. _ACEOF
  17155. rm -f conftest.$ac_objext
  17156. if { (ac_try="$ac_compile"
  17157. case "(($ac_try" in
  17158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17159. *) ac_try_echo=$ac_try;;
  17160. esac
  17161. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17162. (eval "$ac_compile") 2>conftest.er1
  17163. ac_status=$?
  17164. grep -v '^ *+' conftest.er1 >conftest.err
  17165. rm -f conftest.er1
  17166. cat conftest.err >&5
  17167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17168. (exit $ac_status); } && {
  17169. test -z "$ac_cxx_werror_flag" ||
  17170. test ! -s conftest.err
  17171. } && test -s conftest.$ac_objext; then
  17172. ac_cv_type_signal=int
  17173. else
  17174. echo "$as_me: failed program was:" >&5
  17175. sed 's/^/| /' conftest.$ac_ext >&5
  17176. ac_cv_type_signal=void
  17177. fi
  17178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17179. fi
  17180. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  17181. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  17182. cat >>confdefs.h <<_ACEOF
  17183. #define RETSIGTYPE $ac_cv_type_signal
  17184. _ACEOF
  17185. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  17186. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  17187. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  17188. echo $ECHO_N "(cached) $ECHO_C" >&6
  17189. else
  17190. rm -f conftest.sym conftest.file
  17191. echo >conftest.file
  17192. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  17193. if test "$cross_compiling" = yes; then
  17194. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17195. else
  17196. cat >conftest.$ac_ext <<_ACEOF
  17197. /* confdefs.h. */
  17198. _ACEOF
  17199. cat confdefs.h >>conftest.$ac_ext
  17200. cat >>conftest.$ac_ext <<_ACEOF
  17201. /* end confdefs.h. */
  17202. $ac_includes_default
  17203. int
  17204. main ()
  17205. {
  17206. struct stat sbuf;
  17207. /* Linux will dereference the symlink and fail.
  17208. That is better in the sense that it means we will not
  17209. have to compile and use the lstat wrapper. */
  17210. return lstat ("conftest.sym/", &sbuf) == 0;
  17211. ;
  17212. return 0;
  17213. }
  17214. _ACEOF
  17215. rm -f conftest$ac_exeext
  17216. if { (ac_try="$ac_link"
  17217. case "(($ac_try" in
  17218. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17219. *) ac_try_echo=$ac_try;;
  17220. esac
  17221. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17222. (eval "$ac_link") 2>&5
  17223. ac_status=$?
  17224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17225. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17226. { (case "(($ac_try" in
  17227. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17228. *) ac_try_echo=$ac_try;;
  17229. esac
  17230. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17231. (eval "$ac_try") 2>&5
  17232. ac_status=$?
  17233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17234. (exit $ac_status); }; }; then
  17235. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  17236. else
  17237. echo "$as_me: program exited with status $ac_status" >&5
  17238. echo "$as_me: failed program was:" >&5
  17239. sed 's/^/| /' conftest.$ac_ext >&5
  17240. ( exit $ac_status )
  17241. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17242. fi
  17243. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17244. fi
  17245. else
  17246. # If the `ln -s' command failed, then we probably don't even
  17247. # have an lstat function.
  17248. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17249. fi
  17250. rm -f conftest.sym conftest.file
  17251. fi
  17252. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  17253. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  17254. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  17255. cat >>confdefs.h <<_ACEOF
  17256. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  17257. _ACEOF
  17258. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  17259. case " $LIBOBJS " in
  17260. *" lstat.$ac_objext "* ) ;;
  17261. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  17262. ;;
  17263. esac
  17264. fi
  17265. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  17266. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  17267. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  17268. echo $ECHO_N "(cached) $ECHO_C" >&6
  17269. else
  17270. if test "$cross_compiling" = yes; then
  17271. ac_cv_func_stat_empty_string_bug=yes
  17272. else
  17273. cat >conftest.$ac_ext <<_ACEOF
  17274. /* confdefs.h. */
  17275. _ACEOF
  17276. cat confdefs.h >>conftest.$ac_ext
  17277. cat >>conftest.$ac_ext <<_ACEOF
  17278. /* end confdefs.h. */
  17279. $ac_includes_default
  17280. int
  17281. main ()
  17282. {
  17283. struct stat sbuf;
  17284. return stat ("", &sbuf) == 0;
  17285. ;
  17286. return 0;
  17287. }
  17288. _ACEOF
  17289. rm -f conftest$ac_exeext
  17290. if { (ac_try="$ac_link"
  17291. case "(($ac_try" in
  17292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17293. *) ac_try_echo=$ac_try;;
  17294. esac
  17295. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17296. (eval "$ac_link") 2>&5
  17297. ac_status=$?
  17298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17299. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17300. { (case "(($ac_try" in
  17301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17302. *) ac_try_echo=$ac_try;;
  17303. esac
  17304. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17305. (eval "$ac_try") 2>&5
  17306. ac_status=$?
  17307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17308. (exit $ac_status); }; }; then
  17309. ac_cv_func_stat_empty_string_bug=no
  17310. else
  17311. echo "$as_me: program exited with status $ac_status" >&5
  17312. echo "$as_me: failed program was:" >&5
  17313. sed 's/^/| /' conftest.$ac_ext >&5
  17314. ( exit $ac_status )
  17315. ac_cv_func_stat_empty_string_bug=yes
  17316. fi
  17317. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17318. fi
  17319. fi
  17320. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  17321. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  17322. if test $ac_cv_func_stat_empty_string_bug = yes; then
  17323. case " $LIBOBJS " in
  17324. *" stat.$ac_objext "* ) ;;
  17325. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  17326. ;;
  17327. esac
  17328. cat >>confdefs.h <<_ACEOF
  17329. #define HAVE_STAT_EMPTY_STRING_BUG 1
  17330. _ACEOF
  17331. fi
  17332. for ac_func in strftime
  17333. do
  17334. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17335. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17336. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17337. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17338. echo $ECHO_N "(cached) $ECHO_C" >&6
  17339. else
  17340. cat >conftest.$ac_ext <<_ACEOF
  17341. /* confdefs.h. */
  17342. _ACEOF
  17343. cat confdefs.h >>conftest.$ac_ext
  17344. cat >>conftest.$ac_ext <<_ACEOF
  17345. /* end confdefs.h. */
  17346. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17347. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17348. #define $ac_func innocuous_$ac_func
  17349. /* System header to define __stub macros and hopefully few prototypes,
  17350. which can conflict with char $ac_func (); below.
  17351. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17352. <limits.h> exists even on freestanding compilers. */
  17353. #ifdef __STDC__
  17354. # include <limits.h>
  17355. #else
  17356. # include <assert.h>
  17357. #endif
  17358. #undef $ac_func
  17359. /* Override any GCC internal prototype to avoid an error.
  17360. Use char because int might match the return type of a GCC
  17361. builtin and then its argument prototype would still apply. */
  17362. #ifdef __cplusplus
  17363. extern "C"
  17364. #endif
  17365. char $ac_func ();
  17366. /* The GNU C library defines this for functions which it implements
  17367. to always fail with ENOSYS. Some functions are actually named
  17368. something starting with __ and the normal name is an alias. */
  17369. #if defined __stub_$ac_func || defined __stub___$ac_func
  17370. choke me
  17371. #endif
  17372. int
  17373. main ()
  17374. {
  17375. return $ac_func ();
  17376. ;
  17377. return 0;
  17378. }
  17379. _ACEOF
  17380. rm -f conftest.$ac_objext conftest$ac_exeext
  17381. if { (ac_try="$ac_link"
  17382. case "(($ac_try" in
  17383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17384. *) ac_try_echo=$ac_try;;
  17385. esac
  17386. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17387. (eval "$ac_link") 2>conftest.er1
  17388. ac_status=$?
  17389. grep -v '^ *+' conftest.er1 >conftest.err
  17390. rm -f conftest.er1
  17391. cat conftest.err >&5
  17392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17393. (exit $ac_status); } && {
  17394. test -z "$ac_cxx_werror_flag" ||
  17395. test ! -s conftest.err
  17396. } && test -s conftest$ac_exeext &&
  17397. $as_test_x conftest$ac_exeext; then
  17398. eval "$as_ac_var=yes"
  17399. else
  17400. echo "$as_me: failed program was:" >&5
  17401. sed 's/^/| /' conftest.$ac_ext >&5
  17402. eval "$as_ac_var=no"
  17403. fi
  17404. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17405. conftest$ac_exeext conftest.$ac_ext
  17406. fi
  17407. ac_res=`eval echo '${'$as_ac_var'}'`
  17408. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17409. echo "${ECHO_T}$ac_res" >&6; }
  17410. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17411. cat >>confdefs.h <<_ACEOF
  17412. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17413. _ACEOF
  17414. else
  17415. # strftime is in -lintl on SCO UNIX.
  17416. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  17417. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  17418. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  17419. echo $ECHO_N "(cached) $ECHO_C" >&6
  17420. else
  17421. ac_check_lib_save_LIBS=$LIBS
  17422. LIBS="-lintl $LIBS"
  17423. cat >conftest.$ac_ext <<_ACEOF
  17424. /* confdefs.h. */
  17425. _ACEOF
  17426. cat confdefs.h >>conftest.$ac_ext
  17427. cat >>conftest.$ac_ext <<_ACEOF
  17428. /* end confdefs.h. */
  17429. /* Override any GCC internal prototype to avoid an error.
  17430. Use char because int might match the return type of a GCC
  17431. builtin and then its argument prototype would still apply. */
  17432. #ifdef __cplusplus
  17433. extern "C"
  17434. #endif
  17435. char strftime ();
  17436. int
  17437. main ()
  17438. {
  17439. return strftime ();
  17440. ;
  17441. return 0;
  17442. }
  17443. _ACEOF
  17444. rm -f conftest.$ac_objext conftest$ac_exeext
  17445. if { (ac_try="$ac_link"
  17446. case "(($ac_try" in
  17447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17448. *) ac_try_echo=$ac_try;;
  17449. esac
  17450. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17451. (eval "$ac_link") 2>conftest.er1
  17452. ac_status=$?
  17453. grep -v '^ *+' conftest.er1 >conftest.err
  17454. rm -f conftest.er1
  17455. cat conftest.err >&5
  17456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17457. (exit $ac_status); } && {
  17458. test -z "$ac_cxx_werror_flag" ||
  17459. test ! -s conftest.err
  17460. } && test -s conftest$ac_exeext &&
  17461. $as_test_x conftest$ac_exeext; then
  17462. ac_cv_lib_intl_strftime=yes
  17463. else
  17464. echo "$as_me: failed program was:" >&5
  17465. sed 's/^/| /' conftest.$ac_ext >&5
  17466. ac_cv_lib_intl_strftime=no
  17467. fi
  17468. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17469. conftest$ac_exeext conftest.$ac_ext
  17470. LIBS=$ac_check_lib_save_LIBS
  17471. fi
  17472. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  17473. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  17474. if test $ac_cv_lib_intl_strftime = yes; then
  17475. cat >>confdefs.h <<\_ACEOF
  17476. #define HAVE_STRFTIME 1
  17477. _ACEOF
  17478. LIBS="-lintl $LIBS"
  17479. fi
  17480. fi
  17481. done
  17482. for ac_func in vprintf
  17483. do
  17484. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17485. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17486. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17487. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17488. echo $ECHO_N "(cached) $ECHO_C" >&6
  17489. else
  17490. cat >conftest.$ac_ext <<_ACEOF
  17491. /* confdefs.h. */
  17492. _ACEOF
  17493. cat confdefs.h >>conftest.$ac_ext
  17494. cat >>conftest.$ac_ext <<_ACEOF
  17495. /* end confdefs.h. */
  17496. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17497. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17498. #define $ac_func innocuous_$ac_func
  17499. /* System header to define __stub macros and hopefully few prototypes,
  17500. which can conflict with char $ac_func (); below.
  17501. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17502. <limits.h> exists even on freestanding compilers. */
  17503. #ifdef __STDC__
  17504. # include <limits.h>
  17505. #else
  17506. # include <assert.h>
  17507. #endif
  17508. #undef $ac_func
  17509. /* Override any GCC internal prototype to avoid an error.
  17510. Use char because int might match the return type of a GCC
  17511. builtin and then its argument prototype would still apply. */
  17512. #ifdef __cplusplus
  17513. extern "C"
  17514. #endif
  17515. char $ac_func ();
  17516. /* The GNU C library defines this for functions which it implements
  17517. to always fail with ENOSYS. Some functions are actually named
  17518. something starting with __ and the normal name is an alias. */
  17519. #if defined __stub_$ac_func || defined __stub___$ac_func
  17520. choke me
  17521. #endif
  17522. int
  17523. main ()
  17524. {
  17525. return $ac_func ();
  17526. ;
  17527. return 0;
  17528. }
  17529. _ACEOF
  17530. rm -f conftest.$ac_objext conftest$ac_exeext
  17531. if { (ac_try="$ac_link"
  17532. case "(($ac_try" in
  17533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17534. *) ac_try_echo=$ac_try;;
  17535. esac
  17536. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17537. (eval "$ac_link") 2>conftest.er1
  17538. ac_status=$?
  17539. grep -v '^ *+' conftest.er1 >conftest.err
  17540. rm -f conftest.er1
  17541. cat conftest.err >&5
  17542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17543. (exit $ac_status); } && {
  17544. test -z "$ac_cxx_werror_flag" ||
  17545. test ! -s conftest.err
  17546. } && test -s conftest$ac_exeext &&
  17547. $as_test_x conftest$ac_exeext; then
  17548. eval "$as_ac_var=yes"
  17549. else
  17550. echo "$as_me: failed program was:" >&5
  17551. sed 's/^/| /' conftest.$ac_ext >&5
  17552. eval "$as_ac_var=no"
  17553. fi
  17554. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17555. conftest$ac_exeext conftest.$ac_ext
  17556. fi
  17557. ac_res=`eval echo '${'$as_ac_var'}'`
  17558. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17559. echo "${ECHO_T}$ac_res" >&6; }
  17560. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17561. cat >>confdefs.h <<_ACEOF
  17562. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17563. _ACEOF
  17564. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  17565. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  17566. if test "${ac_cv_func__doprnt+set}" = set; then
  17567. echo $ECHO_N "(cached) $ECHO_C" >&6
  17568. else
  17569. cat >conftest.$ac_ext <<_ACEOF
  17570. /* confdefs.h. */
  17571. _ACEOF
  17572. cat confdefs.h >>conftest.$ac_ext
  17573. cat >>conftest.$ac_ext <<_ACEOF
  17574. /* end confdefs.h. */
  17575. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  17576. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17577. #define _doprnt innocuous__doprnt
  17578. /* System header to define __stub macros and hopefully few prototypes,
  17579. which can conflict with char _doprnt (); below.
  17580. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17581. <limits.h> exists even on freestanding compilers. */
  17582. #ifdef __STDC__
  17583. # include <limits.h>
  17584. #else
  17585. # include <assert.h>
  17586. #endif
  17587. #undef _doprnt
  17588. /* Override any GCC internal prototype to avoid an error.
  17589. Use char because int might match the return type of a GCC
  17590. builtin and then its argument prototype would still apply. */
  17591. #ifdef __cplusplus
  17592. extern "C"
  17593. #endif
  17594. char _doprnt ();
  17595. /* The GNU C library defines this for functions which it implements
  17596. to always fail with ENOSYS. Some functions are actually named
  17597. something starting with __ and the normal name is an alias. */
  17598. #if defined __stub__doprnt || defined __stub____doprnt
  17599. choke me
  17600. #endif
  17601. int
  17602. main ()
  17603. {
  17604. return _doprnt ();
  17605. ;
  17606. return 0;
  17607. }
  17608. _ACEOF
  17609. rm -f conftest.$ac_objext conftest$ac_exeext
  17610. if { (ac_try="$ac_link"
  17611. case "(($ac_try" in
  17612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17613. *) ac_try_echo=$ac_try;;
  17614. esac
  17615. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17616. (eval "$ac_link") 2>conftest.er1
  17617. ac_status=$?
  17618. grep -v '^ *+' conftest.er1 >conftest.err
  17619. rm -f conftest.er1
  17620. cat conftest.err >&5
  17621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17622. (exit $ac_status); } && {
  17623. test -z "$ac_cxx_werror_flag" ||
  17624. test ! -s conftest.err
  17625. } && test -s conftest$ac_exeext &&
  17626. $as_test_x conftest$ac_exeext; then
  17627. ac_cv_func__doprnt=yes
  17628. else
  17629. echo "$as_me: failed program was:" >&5
  17630. sed 's/^/| /' conftest.$ac_ext >&5
  17631. ac_cv_func__doprnt=no
  17632. fi
  17633. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17634. conftest$ac_exeext conftest.$ac_ext
  17635. fi
  17636. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  17637. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  17638. if test $ac_cv_func__doprnt = yes; then
  17639. cat >>confdefs.h <<\_ACEOF
  17640. #define HAVE_DOPRNT 1
  17641. _ACEOF
  17642. fi
  17643. fi
  17644. done
  17645. 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
  17646. do
  17647. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17648. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17649. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17650. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17651. echo $ECHO_N "(cached) $ECHO_C" >&6
  17652. else
  17653. cat >conftest.$ac_ext <<_ACEOF
  17654. /* confdefs.h. */
  17655. _ACEOF
  17656. cat confdefs.h >>conftest.$ac_ext
  17657. cat >>conftest.$ac_ext <<_ACEOF
  17658. /* end confdefs.h. */
  17659. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17660. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17661. #define $ac_func innocuous_$ac_func
  17662. /* System header to define __stub macros and hopefully few prototypes,
  17663. which can conflict with char $ac_func (); below.
  17664. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17665. <limits.h> exists even on freestanding compilers. */
  17666. #ifdef __STDC__
  17667. # include <limits.h>
  17668. #else
  17669. # include <assert.h>
  17670. #endif
  17671. #undef $ac_func
  17672. /* Override any GCC internal prototype to avoid an error.
  17673. Use char because int might match the return type of a GCC
  17674. builtin and then its argument prototype would still apply. */
  17675. #ifdef __cplusplus
  17676. extern "C"
  17677. #endif
  17678. char $ac_func ();
  17679. /* The GNU C library defines this for functions which it implements
  17680. to always fail with ENOSYS. Some functions are actually named
  17681. something starting with __ and the normal name is an alias. */
  17682. #if defined __stub_$ac_func || defined __stub___$ac_func
  17683. choke me
  17684. #endif
  17685. int
  17686. main ()
  17687. {
  17688. return $ac_func ();
  17689. ;
  17690. return 0;
  17691. }
  17692. _ACEOF
  17693. rm -f conftest.$ac_objext conftest$ac_exeext
  17694. if { (ac_try="$ac_link"
  17695. case "(($ac_try" in
  17696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17697. *) ac_try_echo=$ac_try;;
  17698. esac
  17699. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17700. (eval "$ac_link") 2>conftest.er1
  17701. ac_status=$?
  17702. grep -v '^ *+' conftest.er1 >conftest.err
  17703. rm -f conftest.er1
  17704. cat conftest.err >&5
  17705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17706. (exit $ac_status); } && {
  17707. test -z "$ac_cxx_werror_flag" ||
  17708. test ! -s conftest.err
  17709. } && test -s conftest$ac_exeext &&
  17710. $as_test_x conftest$ac_exeext; then
  17711. eval "$as_ac_var=yes"
  17712. else
  17713. echo "$as_me: failed program was:" >&5
  17714. sed 's/^/| /' conftest.$ac_ext >&5
  17715. eval "$as_ac_var=no"
  17716. fi
  17717. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17718. conftest$ac_exeext conftest.$ac_ext
  17719. fi
  17720. ac_res=`eval echo '${'$as_ac_var'}'`
  17721. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17722. echo "${ECHO_T}$ac_res" >&6; }
  17723. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17724. cat >>confdefs.h <<_ACEOF
  17725. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17726. _ACEOF
  17727. fi
  17728. done
  17729. for ac_func in epoll_create
  17730. do
  17731. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17732. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17733. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17734. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17735. echo $ECHO_N "(cached) $ECHO_C" >&6
  17736. else
  17737. cat >conftest.$ac_ext <<_ACEOF
  17738. /* confdefs.h. */
  17739. _ACEOF
  17740. cat confdefs.h >>conftest.$ac_ext
  17741. cat >>conftest.$ac_ext <<_ACEOF
  17742. /* end confdefs.h. */
  17743. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17744. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17745. #define $ac_func innocuous_$ac_func
  17746. /* System header to define __stub macros and hopefully few prototypes,
  17747. which can conflict with char $ac_func (); below.
  17748. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17749. <limits.h> exists even on freestanding compilers. */
  17750. #ifdef __STDC__
  17751. # include <limits.h>
  17752. #else
  17753. # include <assert.h>
  17754. #endif
  17755. #undef $ac_func
  17756. /* Override any GCC internal prototype to avoid an error.
  17757. Use char because int might match the return type of a GCC
  17758. builtin and then its argument prototype would still apply. */
  17759. #ifdef __cplusplus
  17760. extern "C"
  17761. #endif
  17762. char $ac_func ();
  17763. /* The GNU C library defines this for functions which it implements
  17764. to always fail with ENOSYS. Some functions are actually named
  17765. something starting with __ and the normal name is an alias. */
  17766. #if defined __stub_$ac_func || defined __stub___$ac_func
  17767. choke me
  17768. #endif
  17769. int
  17770. main ()
  17771. {
  17772. return $ac_func ();
  17773. ;
  17774. return 0;
  17775. }
  17776. _ACEOF
  17777. rm -f conftest.$ac_objext conftest$ac_exeext
  17778. if { (ac_try="$ac_link"
  17779. case "(($ac_try" in
  17780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17781. *) ac_try_echo=$ac_try;;
  17782. esac
  17783. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17784. (eval "$ac_link") 2>conftest.er1
  17785. ac_status=$?
  17786. grep -v '^ *+' conftest.er1 >conftest.err
  17787. rm -f conftest.er1
  17788. cat conftest.err >&5
  17789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17790. (exit $ac_status); } && {
  17791. test -z "$ac_cxx_werror_flag" ||
  17792. test ! -s conftest.err
  17793. } && test -s conftest$ac_exeext &&
  17794. $as_test_x conftest$ac_exeext; then
  17795. eval "$as_ac_var=yes"
  17796. else
  17797. echo "$as_me: failed program was:" >&5
  17798. sed 's/^/| /' conftest.$ac_ext >&5
  17799. eval "$as_ac_var=no"
  17800. fi
  17801. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17802. conftest$ac_exeext conftest.$ac_ext
  17803. fi
  17804. ac_res=`eval echo '${'$as_ac_var'}'`
  17805. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17806. echo "${ECHO_T}$ac_res" >&6; }
  17807. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17808. cat >>confdefs.h <<_ACEOF
  17809. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17810. _ACEOF
  17811. fi
  17812. done
  17813. for ac_func in asctime_r
  17814. do
  17815. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17816. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17817. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17818. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17819. echo $ECHO_N "(cached) $ECHO_C" >&6
  17820. else
  17821. cat >conftest.$ac_ext <<_ACEOF
  17822. /* confdefs.h. */
  17823. _ACEOF
  17824. cat confdefs.h >>conftest.$ac_ext
  17825. cat >>conftest.$ac_ext <<_ACEOF
  17826. /* end confdefs.h. */
  17827. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17828. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17829. #define $ac_func innocuous_$ac_func
  17830. /* System header to define __stub macros and hopefully few prototypes,
  17831. which can conflict with char $ac_func (); below.
  17832. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17833. <limits.h> exists even on freestanding compilers. */
  17834. #ifdef __STDC__
  17835. # include <limits.h>
  17836. #else
  17837. # include <assert.h>
  17838. #endif
  17839. #undef $ac_func
  17840. /* Override any GCC internal prototype to avoid an error.
  17841. Use char because int might match the return type of a GCC
  17842. builtin and then its argument prototype would still apply. */
  17843. #ifdef __cplusplus
  17844. extern "C"
  17845. #endif
  17846. char $ac_func ();
  17847. /* The GNU C library defines this for functions which it implements
  17848. to always fail with ENOSYS. Some functions are actually named
  17849. something starting with __ and the normal name is an alias. */
  17850. #if defined __stub_$ac_func || defined __stub___$ac_func
  17851. choke me
  17852. #endif
  17853. int
  17854. main ()
  17855. {
  17856. return $ac_func ();
  17857. ;
  17858. return 0;
  17859. }
  17860. _ACEOF
  17861. rm -f conftest.$ac_objext conftest$ac_exeext
  17862. if { (ac_try="$ac_link"
  17863. case "(($ac_try" in
  17864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17865. *) ac_try_echo=$ac_try;;
  17866. esac
  17867. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17868. (eval "$ac_link") 2>conftest.er1
  17869. ac_status=$?
  17870. grep -v '^ *+' conftest.er1 >conftest.err
  17871. rm -f conftest.er1
  17872. cat conftest.err >&5
  17873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17874. (exit $ac_status); } && {
  17875. test -z "$ac_cxx_werror_flag" ||
  17876. test ! -s conftest.err
  17877. } && test -s conftest$ac_exeext &&
  17878. $as_test_x conftest$ac_exeext; then
  17879. eval "$as_ac_var=yes"
  17880. else
  17881. echo "$as_me: failed program was:" >&5
  17882. sed 's/^/| /' conftest.$ac_ext >&5
  17883. eval "$as_ac_var=no"
  17884. fi
  17885. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17886. conftest$ac_exeext conftest.$ac_ext
  17887. fi
  17888. ac_res=`eval echo '${'$as_ac_var'}'`
  17889. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17890. echo "${ECHO_T}$ac_res" >&6; }
  17891. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17892. cat >>confdefs.h <<_ACEOF
  17893. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17894. _ACEOF
  17895. if true; then
  17896. HAVE_ASCTIME_R_TRUE=
  17897. HAVE_ASCTIME_R_FALSE='#'
  17898. else
  17899. HAVE_ASCTIME_R_TRUE='#'
  17900. HAVE_ASCTIME_R_FALSE=
  17901. fi
  17902. else
  17903. if false; then
  17904. HAVE_ASCTIME_R_TRUE=
  17905. HAVE_ASCTIME_R_FALSE='#'
  17906. else
  17907. HAVE_ASCTIME_R_TRUE='#'
  17908. HAVE_ASCTIME_R_FALSE=
  17909. fi
  17910. fi
  17911. done
  17912. for ac_func in basename
  17913. do
  17914. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17915. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17916. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17917. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17918. echo $ECHO_N "(cached) $ECHO_C" >&6
  17919. else
  17920. cat >conftest.$ac_ext <<_ACEOF
  17921. /* confdefs.h. */
  17922. _ACEOF
  17923. cat confdefs.h >>conftest.$ac_ext
  17924. cat >>conftest.$ac_ext <<_ACEOF
  17925. /* end confdefs.h. */
  17926. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17927. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17928. #define $ac_func innocuous_$ac_func
  17929. /* System header to define __stub macros and hopefully few prototypes,
  17930. which can conflict with char $ac_func (); below.
  17931. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17932. <limits.h> exists even on freestanding compilers. */
  17933. #ifdef __STDC__
  17934. # include <limits.h>
  17935. #else
  17936. # include <assert.h>
  17937. #endif
  17938. #undef $ac_func
  17939. /* Override any GCC internal prototype to avoid an error.
  17940. Use char because int might match the return type of a GCC
  17941. builtin and then its argument prototype would still apply. */
  17942. #ifdef __cplusplus
  17943. extern "C"
  17944. #endif
  17945. char $ac_func ();
  17946. /* The GNU C library defines this for functions which it implements
  17947. to always fail with ENOSYS. Some functions are actually named
  17948. something starting with __ and the normal name is an alias. */
  17949. #if defined __stub_$ac_func || defined __stub___$ac_func
  17950. choke me
  17951. #endif
  17952. int
  17953. main ()
  17954. {
  17955. return $ac_func ();
  17956. ;
  17957. return 0;
  17958. }
  17959. _ACEOF
  17960. rm -f conftest.$ac_objext conftest$ac_exeext
  17961. if { (ac_try="$ac_link"
  17962. case "(($ac_try" in
  17963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17964. *) ac_try_echo=$ac_try;;
  17965. esac
  17966. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17967. (eval "$ac_link") 2>conftest.er1
  17968. ac_status=$?
  17969. grep -v '^ *+' conftest.er1 >conftest.err
  17970. rm -f conftest.er1
  17971. cat conftest.err >&5
  17972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17973. (exit $ac_status); } && {
  17974. test -z "$ac_cxx_werror_flag" ||
  17975. test ! -s conftest.err
  17976. } && test -s conftest$ac_exeext &&
  17977. $as_test_x conftest$ac_exeext; then
  17978. eval "$as_ac_var=yes"
  17979. else
  17980. echo "$as_me: failed program was:" >&5
  17981. sed 's/^/| /' conftest.$ac_ext >&5
  17982. eval "$as_ac_var=no"
  17983. fi
  17984. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17985. conftest$ac_exeext conftest.$ac_ext
  17986. fi
  17987. ac_res=`eval echo '${'$as_ac_var'}'`
  17988. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17989. echo "${ECHO_T}$ac_res" >&6; }
  17990. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17991. cat >>confdefs.h <<_ACEOF
  17992. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17993. _ACEOF
  17994. if true; then
  17995. HAVE_BASENAME_TRUE=
  17996. HAVE_BASENAME_FALSE='#'
  17997. else
  17998. HAVE_BASENAME_TRUE='#'
  17999. HAVE_BASENAME_FALSE=
  18000. fi
  18001. else
  18002. if false; then
  18003. HAVE_BASENAME_TRUE=
  18004. HAVE_BASENAME_FALSE='#'
  18005. else
  18006. HAVE_BASENAME_TRUE='#'
  18007. HAVE_BASENAME_FALSE=
  18008. fi
  18009. fi
  18010. done
  18011. for ac_func in gai_strerror
  18012. do
  18013. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18014. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18015. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18016. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18017. echo $ECHO_N "(cached) $ECHO_C" >&6
  18018. else
  18019. cat >conftest.$ac_ext <<_ACEOF
  18020. /* confdefs.h. */
  18021. _ACEOF
  18022. cat confdefs.h >>conftest.$ac_ext
  18023. cat >>conftest.$ac_ext <<_ACEOF
  18024. /* end confdefs.h. */
  18025. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18026. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18027. #define $ac_func innocuous_$ac_func
  18028. /* System header to define __stub macros and hopefully few prototypes,
  18029. which can conflict with char $ac_func (); below.
  18030. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18031. <limits.h> exists even on freestanding compilers. */
  18032. #ifdef __STDC__
  18033. # include <limits.h>
  18034. #else
  18035. # include <assert.h>
  18036. #endif
  18037. #undef $ac_func
  18038. /* Override any GCC internal prototype to avoid an error.
  18039. Use char because int might match the return type of a GCC
  18040. builtin and then its argument prototype would still apply. */
  18041. #ifdef __cplusplus
  18042. extern "C"
  18043. #endif
  18044. char $ac_func ();
  18045. /* The GNU C library defines this for functions which it implements
  18046. to always fail with ENOSYS. Some functions are actually named
  18047. something starting with __ and the normal name is an alias. */
  18048. #if defined __stub_$ac_func || defined __stub___$ac_func
  18049. choke me
  18050. #endif
  18051. int
  18052. main ()
  18053. {
  18054. return $ac_func ();
  18055. ;
  18056. return 0;
  18057. }
  18058. _ACEOF
  18059. rm -f conftest.$ac_objext conftest$ac_exeext
  18060. if { (ac_try="$ac_link"
  18061. case "(($ac_try" in
  18062. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18063. *) ac_try_echo=$ac_try;;
  18064. esac
  18065. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18066. (eval "$ac_link") 2>conftest.er1
  18067. ac_status=$?
  18068. grep -v '^ *+' conftest.er1 >conftest.err
  18069. rm -f conftest.er1
  18070. cat conftest.err >&5
  18071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18072. (exit $ac_status); } && {
  18073. test -z "$ac_cxx_werror_flag" ||
  18074. test ! -s conftest.err
  18075. } && test -s conftest$ac_exeext &&
  18076. $as_test_x conftest$ac_exeext; then
  18077. eval "$as_ac_var=yes"
  18078. else
  18079. echo "$as_me: failed program was:" >&5
  18080. sed 's/^/| /' conftest.$ac_ext >&5
  18081. eval "$as_ac_var=no"
  18082. fi
  18083. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18084. conftest$ac_exeext conftest.$ac_ext
  18085. fi
  18086. ac_res=`eval echo '${'$as_ac_var'}'`
  18087. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18088. echo "${ECHO_T}$ac_res" >&6; }
  18089. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18090. cat >>confdefs.h <<_ACEOF
  18091. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18092. _ACEOF
  18093. if true; then
  18094. HAVE_GAI_STRERROR_TRUE=
  18095. HAVE_GAI_STRERROR_FALSE='#'
  18096. else
  18097. HAVE_GAI_STRERROR_TRUE='#'
  18098. HAVE_GAI_STRERROR_FALSE=
  18099. fi
  18100. else
  18101. if false; then
  18102. HAVE_GAI_STRERROR_TRUE=
  18103. HAVE_GAI_STRERROR_FALSE='#'
  18104. else
  18105. HAVE_GAI_STRERROR_TRUE='#'
  18106. HAVE_GAI_STRERROR_FALSE=
  18107. fi
  18108. fi
  18109. done
  18110. for ac_func in getaddrinfo
  18111. do
  18112. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18113. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18114. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18115. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18116. echo $ECHO_N "(cached) $ECHO_C" >&6
  18117. else
  18118. cat >conftest.$ac_ext <<_ACEOF
  18119. /* confdefs.h. */
  18120. _ACEOF
  18121. cat confdefs.h >>conftest.$ac_ext
  18122. cat >>conftest.$ac_ext <<_ACEOF
  18123. /* end confdefs.h. */
  18124. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18125. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18126. #define $ac_func innocuous_$ac_func
  18127. /* System header to define __stub macros and hopefully few prototypes,
  18128. which can conflict with char $ac_func (); below.
  18129. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18130. <limits.h> exists even on freestanding compilers. */
  18131. #ifdef __STDC__
  18132. # include <limits.h>
  18133. #else
  18134. # include <assert.h>
  18135. #endif
  18136. #undef $ac_func
  18137. /* Override any GCC internal prototype to avoid an error.
  18138. Use char because int might match the return type of a GCC
  18139. builtin and then its argument prototype would still apply. */
  18140. #ifdef __cplusplus
  18141. extern "C"
  18142. #endif
  18143. char $ac_func ();
  18144. /* The GNU C library defines this for functions which it implements
  18145. to always fail with ENOSYS. Some functions are actually named
  18146. something starting with __ and the normal name is an alias. */
  18147. #if defined __stub_$ac_func || defined __stub___$ac_func
  18148. choke me
  18149. #endif
  18150. int
  18151. main ()
  18152. {
  18153. return $ac_func ();
  18154. ;
  18155. return 0;
  18156. }
  18157. _ACEOF
  18158. rm -f conftest.$ac_objext conftest$ac_exeext
  18159. if { (ac_try="$ac_link"
  18160. case "(($ac_try" in
  18161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18162. *) ac_try_echo=$ac_try;;
  18163. esac
  18164. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18165. (eval "$ac_link") 2>conftest.er1
  18166. ac_status=$?
  18167. grep -v '^ *+' conftest.er1 >conftest.err
  18168. rm -f conftest.er1
  18169. cat conftest.err >&5
  18170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18171. (exit $ac_status); } && {
  18172. test -z "$ac_cxx_werror_flag" ||
  18173. test ! -s conftest.err
  18174. } && test -s conftest$ac_exeext &&
  18175. $as_test_x conftest$ac_exeext; then
  18176. eval "$as_ac_var=yes"
  18177. else
  18178. echo "$as_me: failed program was:" >&5
  18179. sed 's/^/| /' conftest.$ac_ext >&5
  18180. eval "$as_ac_var=no"
  18181. fi
  18182. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18183. conftest$ac_exeext conftest.$ac_ext
  18184. fi
  18185. ac_res=`eval echo '${'$as_ac_var'}'`
  18186. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18187. echo "${ECHO_T}$ac_res" >&6; }
  18188. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18189. cat >>confdefs.h <<_ACEOF
  18190. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18191. _ACEOF
  18192. if true; then
  18193. HAVE_GETADDRINFO_TRUE=
  18194. HAVE_GETADDRINFO_FALSE='#'
  18195. else
  18196. HAVE_GETADDRINFO_TRUE='#'
  18197. HAVE_GETADDRINFO_FALSE=
  18198. fi
  18199. else
  18200. if false; then
  18201. HAVE_GETADDRINFO_TRUE=
  18202. HAVE_GETADDRINFO_FALSE='#'
  18203. else
  18204. HAVE_GETADDRINFO_TRUE='#'
  18205. HAVE_GETADDRINFO_FALSE=
  18206. fi
  18207. fi
  18208. done
  18209. for ac_func in gettimeofday
  18210. do
  18211. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18212. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18213. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18214. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18215. echo $ECHO_N "(cached) $ECHO_C" >&6
  18216. else
  18217. cat >conftest.$ac_ext <<_ACEOF
  18218. /* confdefs.h. */
  18219. _ACEOF
  18220. cat confdefs.h >>conftest.$ac_ext
  18221. cat >>conftest.$ac_ext <<_ACEOF
  18222. /* end confdefs.h. */
  18223. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18224. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18225. #define $ac_func innocuous_$ac_func
  18226. /* System header to define __stub macros and hopefully few prototypes,
  18227. which can conflict with char $ac_func (); below.
  18228. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18229. <limits.h> exists even on freestanding compilers. */
  18230. #ifdef __STDC__
  18231. # include <limits.h>
  18232. #else
  18233. # include <assert.h>
  18234. #endif
  18235. #undef $ac_func
  18236. /* Override any GCC internal prototype to avoid an error.
  18237. Use char because int might match the return type of a GCC
  18238. builtin and then its argument prototype would still apply. */
  18239. #ifdef __cplusplus
  18240. extern "C"
  18241. #endif
  18242. char $ac_func ();
  18243. /* The GNU C library defines this for functions which it implements
  18244. to always fail with ENOSYS. Some functions are actually named
  18245. something starting with __ and the normal name is an alias. */
  18246. #if defined __stub_$ac_func || defined __stub___$ac_func
  18247. choke me
  18248. #endif
  18249. int
  18250. main ()
  18251. {
  18252. return $ac_func ();
  18253. ;
  18254. return 0;
  18255. }
  18256. _ACEOF
  18257. rm -f conftest.$ac_objext conftest$ac_exeext
  18258. if { (ac_try="$ac_link"
  18259. case "(($ac_try" in
  18260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18261. *) ac_try_echo=$ac_try;;
  18262. esac
  18263. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18264. (eval "$ac_link") 2>conftest.er1
  18265. ac_status=$?
  18266. grep -v '^ *+' conftest.er1 >conftest.err
  18267. rm -f conftest.er1
  18268. cat conftest.err >&5
  18269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18270. (exit $ac_status); } && {
  18271. test -z "$ac_cxx_werror_flag" ||
  18272. test ! -s conftest.err
  18273. } && test -s conftest$ac_exeext &&
  18274. $as_test_x conftest$ac_exeext; then
  18275. eval "$as_ac_var=yes"
  18276. else
  18277. echo "$as_me: failed program was:" >&5
  18278. sed 's/^/| /' conftest.$ac_ext >&5
  18279. eval "$as_ac_var=no"
  18280. fi
  18281. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18282. conftest$ac_exeext conftest.$ac_ext
  18283. fi
  18284. ac_res=`eval echo '${'$as_ac_var'}'`
  18285. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18286. echo "${ECHO_T}$ac_res" >&6; }
  18287. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18288. cat >>confdefs.h <<_ACEOF
  18289. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18290. _ACEOF
  18291. if true; then
  18292. HAVE_GETTIMEOFDAY_TRUE=
  18293. HAVE_GETTIMEOFDAY_FALSE='#'
  18294. else
  18295. HAVE_GETTIMEOFDAY_TRUE='#'
  18296. HAVE_GETTIMEOFDAY_FALSE=
  18297. fi
  18298. else
  18299. if false; then
  18300. HAVE_GETTIMEOFDAY_TRUE=
  18301. HAVE_GETTIMEOFDAY_FALSE='#'
  18302. else
  18303. HAVE_GETTIMEOFDAY_TRUE='#'
  18304. HAVE_GETTIMEOFDAY_FALSE=
  18305. fi
  18306. fi
  18307. done
  18308. for ac_func in inet_aton
  18309. do
  18310. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18311. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18312. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18313. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18314. echo $ECHO_N "(cached) $ECHO_C" >&6
  18315. else
  18316. cat >conftest.$ac_ext <<_ACEOF
  18317. /* confdefs.h. */
  18318. _ACEOF
  18319. cat confdefs.h >>conftest.$ac_ext
  18320. cat >>conftest.$ac_ext <<_ACEOF
  18321. /* end confdefs.h. */
  18322. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18323. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18324. #define $ac_func innocuous_$ac_func
  18325. /* System header to define __stub macros and hopefully few prototypes,
  18326. which can conflict with char $ac_func (); below.
  18327. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18328. <limits.h> exists even on freestanding compilers. */
  18329. #ifdef __STDC__
  18330. # include <limits.h>
  18331. #else
  18332. # include <assert.h>
  18333. #endif
  18334. #undef $ac_func
  18335. /* Override any GCC internal prototype to avoid an error.
  18336. Use char because int might match the return type of a GCC
  18337. builtin and then its argument prototype would still apply. */
  18338. #ifdef __cplusplus
  18339. extern "C"
  18340. #endif
  18341. char $ac_func ();
  18342. /* The GNU C library defines this for functions which it implements
  18343. to always fail with ENOSYS. Some functions are actually named
  18344. something starting with __ and the normal name is an alias. */
  18345. #if defined __stub_$ac_func || defined __stub___$ac_func
  18346. choke me
  18347. #endif
  18348. int
  18349. main ()
  18350. {
  18351. return $ac_func ();
  18352. ;
  18353. return 0;
  18354. }
  18355. _ACEOF
  18356. rm -f conftest.$ac_objext conftest$ac_exeext
  18357. if { (ac_try="$ac_link"
  18358. case "(($ac_try" in
  18359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18360. *) ac_try_echo=$ac_try;;
  18361. esac
  18362. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18363. (eval "$ac_link") 2>conftest.er1
  18364. ac_status=$?
  18365. grep -v '^ *+' conftest.er1 >conftest.err
  18366. rm -f conftest.er1
  18367. cat conftest.err >&5
  18368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18369. (exit $ac_status); } && {
  18370. test -z "$ac_cxx_werror_flag" ||
  18371. test ! -s conftest.err
  18372. } && test -s conftest$ac_exeext &&
  18373. $as_test_x conftest$ac_exeext; then
  18374. eval "$as_ac_var=yes"
  18375. else
  18376. echo "$as_me: failed program was:" >&5
  18377. sed 's/^/| /' conftest.$ac_ext >&5
  18378. eval "$as_ac_var=no"
  18379. fi
  18380. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18381. conftest$ac_exeext conftest.$ac_ext
  18382. fi
  18383. ac_res=`eval echo '${'$as_ac_var'}'`
  18384. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18385. echo "${ECHO_T}$ac_res" >&6; }
  18386. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18387. cat >>confdefs.h <<_ACEOF
  18388. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18389. _ACEOF
  18390. if true; then
  18391. HAVE_INET_ATON_TRUE=
  18392. HAVE_INET_ATON_FALSE='#'
  18393. else
  18394. HAVE_INET_ATON_TRUE='#'
  18395. HAVE_INET_ATON_FALSE=
  18396. fi
  18397. else
  18398. if false; then
  18399. HAVE_INET_ATON_TRUE=
  18400. HAVE_INET_ATON_FALSE='#'
  18401. else
  18402. HAVE_INET_ATON_TRUE='#'
  18403. HAVE_INET_ATON_FALSE=
  18404. fi
  18405. fi
  18406. done
  18407. for ac_func in localtime_r
  18408. do
  18409. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18410. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18411. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18412. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18413. echo $ECHO_N "(cached) $ECHO_C" >&6
  18414. else
  18415. cat >conftest.$ac_ext <<_ACEOF
  18416. /* confdefs.h. */
  18417. _ACEOF
  18418. cat confdefs.h >>conftest.$ac_ext
  18419. cat >>conftest.$ac_ext <<_ACEOF
  18420. /* end confdefs.h. */
  18421. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18422. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18423. #define $ac_func innocuous_$ac_func
  18424. /* System header to define __stub macros and hopefully few prototypes,
  18425. which can conflict with char $ac_func (); below.
  18426. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18427. <limits.h> exists even on freestanding compilers. */
  18428. #ifdef __STDC__
  18429. # include <limits.h>
  18430. #else
  18431. # include <assert.h>
  18432. #endif
  18433. #undef $ac_func
  18434. /* Override any GCC internal prototype to avoid an error.
  18435. Use char because int might match the return type of a GCC
  18436. builtin and then its argument prototype would still apply. */
  18437. #ifdef __cplusplus
  18438. extern "C"
  18439. #endif
  18440. char $ac_func ();
  18441. /* The GNU C library defines this for functions which it implements
  18442. to always fail with ENOSYS. Some functions are actually named
  18443. something starting with __ and the normal name is an alias. */
  18444. #if defined __stub_$ac_func || defined __stub___$ac_func
  18445. choke me
  18446. #endif
  18447. int
  18448. main ()
  18449. {
  18450. return $ac_func ();
  18451. ;
  18452. return 0;
  18453. }
  18454. _ACEOF
  18455. rm -f conftest.$ac_objext conftest$ac_exeext
  18456. if { (ac_try="$ac_link"
  18457. case "(($ac_try" in
  18458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18459. *) ac_try_echo=$ac_try;;
  18460. esac
  18461. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18462. (eval "$ac_link") 2>conftest.er1
  18463. ac_status=$?
  18464. grep -v '^ *+' conftest.er1 >conftest.err
  18465. rm -f conftest.er1
  18466. cat conftest.err >&5
  18467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18468. (exit $ac_status); } && {
  18469. test -z "$ac_cxx_werror_flag" ||
  18470. test ! -s conftest.err
  18471. } && test -s conftest$ac_exeext &&
  18472. $as_test_x conftest$ac_exeext; then
  18473. eval "$as_ac_var=yes"
  18474. else
  18475. echo "$as_me: failed program was:" >&5
  18476. sed 's/^/| /' conftest.$ac_ext >&5
  18477. eval "$as_ac_var=no"
  18478. fi
  18479. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18480. conftest$ac_exeext conftest.$ac_ext
  18481. fi
  18482. ac_res=`eval echo '${'$as_ac_var'}'`
  18483. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18484. echo "${ECHO_T}$ac_res" >&6; }
  18485. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18486. cat >>confdefs.h <<_ACEOF
  18487. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18488. _ACEOF
  18489. if true; then
  18490. HAVE_LOCALTIME_R_TRUE=
  18491. HAVE_LOCALTIME_R_FALSE='#'
  18492. else
  18493. HAVE_LOCALTIME_R_TRUE='#'
  18494. HAVE_LOCALTIME_R_FALSE=
  18495. fi
  18496. else
  18497. if false; then
  18498. HAVE_LOCALTIME_R_TRUE=
  18499. HAVE_LOCALTIME_R_FALSE='#'
  18500. else
  18501. HAVE_LOCALTIME_R_TRUE='#'
  18502. HAVE_LOCALTIME_R_FALSE=
  18503. fi
  18504. fi
  18505. done
  18506. for ac_func in strptime
  18507. do
  18508. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18509. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18510. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18511. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18512. echo $ECHO_N "(cached) $ECHO_C" >&6
  18513. else
  18514. cat >conftest.$ac_ext <<_ACEOF
  18515. /* confdefs.h. */
  18516. _ACEOF
  18517. cat confdefs.h >>conftest.$ac_ext
  18518. cat >>conftest.$ac_ext <<_ACEOF
  18519. /* end confdefs.h. */
  18520. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18521. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18522. #define $ac_func innocuous_$ac_func
  18523. /* System header to define __stub macros and hopefully few prototypes,
  18524. which can conflict with char $ac_func (); below.
  18525. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18526. <limits.h> exists even on freestanding compilers. */
  18527. #ifdef __STDC__
  18528. # include <limits.h>
  18529. #else
  18530. # include <assert.h>
  18531. #endif
  18532. #undef $ac_func
  18533. /* Override any GCC internal prototype to avoid an error.
  18534. Use char because int might match the return type of a GCC
  18535. builtin and then its argument prototype would still apply. */
  18536. #ifdef __cplusplus
  18537. extern "C"
  18538. #endif
  18539. char $ac_func ();
  18540. /* The GNU C library defines this for functions which it implements
  18541. to always fail with ENOSYS. Some functions are actually named
  18542. something starting with __ and the normal name is an alias. */
  18543. #if defined __stub_$ac_func || defined __stub___$ac_func
  18544. choke me
  18545. #endif
  18546. int
  18547. main ()
  18548. {
  18549. return $ac_func ();
  18550. ;
  18551. return 0;
  18552. }
  18553. _ACEOF
  18554. rm -f conftest.$ac_objext conftest$ac_exeext
  18555. if { (ac_try="$ac_link"
  18556. case "(($ac_try" in
  18557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18558. *) ac_try_echo=$ac_try;;
  18559. esac
  18560. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18561. (eval "$ac_link") 2>conftest.er1
  18562. ac_status=$?
  18563. grep -v '^ *+' conftest.er1 >conftest.err
  18564. rm -f conftest.er1
  18565. cat conftest.err >&5
  18566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18567. (exit $ac_status); } && {
  18568. test -z "$ac_cxx_werror_flag" ||
  18569. test ! -s conftest.err
  18570. } && test -s conftest$ac_exeext &&
  18571. $as_test_x conftest$ac_exeext; then
  18572. eval "$as_ac_var=yes"
  18573. else
  18574. echo "$as_me: failed program was:" >&5
  18575. sed 's/^/| /' conftest.$ac_ext >&5
  18576. eval "$as_ac_var=no"
  18577. fi
  18578. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18579. conftest$ac_exeext conftest.$ac_ext
  18580. fi
  18581. ac_res=`eval echo '${'$as_ac_var'}'`
  18582. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18583. echo "${ECHO_T}$ac_res" >&6; }
  18584. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18585. cat >>confdefs.h <<_ACEOF
  18586. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18587. _ACEOF
  18588. if true; then
  18589. HAVE_STRPTIME_TRUE=
  18590. HAVE_STRPTIME_FALSE='#'
  18591. else
  18592. HAVE_STRPTIME_TRUE='#'
  18593. HAVE_STRPTIME_FALSE=
  18594. fi
  18595. else
  18596. if false; then
  18597. HAVE_STRPTIME_TRUE=
  18598. HAVE_STRPTIME_FALSE='#'
  18599. else
  18600. HAVE_STRPTIME_TRUE='#'
  18601. HAVE_STRPTIME_FALSE=
  18602. fi
  18603. fi
  18604. done
  18605. for ac_func in timegm
  18606. do
  18607. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18608. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18609. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18610. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18611. echo $ECHO_N "(cached) $ECHO_C" >&6
  18612. else
  18613. cat >conftest.$ac_ext <<_ACEOF
  18614. /* confdefs.h. */
  18615. _ACEOF
  18616. cat confdefs.h >>conftest.$ac_ext
  18617. cat >>conftest.$ac_ext <<_ACEOF
  18618. /* end confdefs.h. */
  18619. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18620. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18621. #define $ac_func innocuous_$ac_func
  18622. /* System header to define __stub macros and hopefully few prototypes,
  18623. which can conflict with char $ac_func (); below.
  18624. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18625. <limits.h> exists even on freestanding compilers. */
  18626. #ifdef __STDC__
  18627. # include <limits.h>
  18628. #else
  18629. # include <assert.h>
  18630. #endif
  18631. #undef $ac_func
  18632. /* Override any GCC internal prototype to avoid an error.
  18633. Use char because int might match the return type of a GCC
  18634. builtin and then its argument prototype would still apply. */
  18635. #ifdef __cplusplus
  18636. extern "C"
  18637. #endif
  18638. char $ac_func ();
  18639. /* The GNU C library defines this for functions which it implements
  18640. to always fail with ENOSYS. Some functions are actually named
  18641. something starting with __ and the normal name is an alias. */
  18642. #if defined __stub_$ac_func || defined __stub___$ac_func
  18643. choke me
  18644. #endif
  18645. int
  18646. main ()
  18647. {
  18648. return $ac_func ();
  18649. ;
  18650. return 0;
  18651. }
  18652. _ACEOF
  18653. rm -f conftest.$ac_objext conftest$ac_exeext
  18654. if { (ac_try="$ac_link"
  18655. case "(($ac_try" in
  18656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18657. *) ac_try_echo=$ac_try;;
  18658. esac
  18659. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18660. (eval "$ac_link") 2>conftest.er1
  18661. ac_status=$?
  18662. grep -v '^ *+' conftest.er1 >conftest.err
  18663. rm -f conftest.er1
  18664. cat conftest.err >&5
  18665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18666. (exit $ac_status); } && {
  18667. test -z "$ac_cxx_werror_flag" ||
  18668. test ! -s conftest.err
  18669. } && test -s conftest$ac_exeext &&
  18670. $as_test_x conftest$ac_exeext; then
  18671. eval "$as_ac_var=yes"
  18672. else
  18673. echo "$as_me: failed program was:" >&5
  18674. sed 's/^/| /' conftest.$ac_ext >&5
  18675. eval "$as_ac_var=no"
  18676. fi
  18677. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18678. conftest$ac_exeext conftest.$ac_ext
  18679. fi
  18680. ac_res=`eval echo '${'$as_ac_var'}'`
  18681. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18682. echo "${ECHO_T}$ac_res" >&6; }
  18683. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18684. cat >>confdefs.h <<_ACEOF
  18685. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18686. _ACEOF
  18687. if true; then
  18688. HAVE_TIMEGM_TRUE=
  18689. HAVE_TIMEGM_FALSE='#'
  18690. else
  18691. HAVE_TIMEGM_TRUE='#'
  18692. HAVE_TIMEGM_FALSE=
  18693. fi
  18694. else
  18695. if false; then
  18696. HAVE_TIMEGM_TRUE=
  18697. HAVE_TIMEGM_FALSE='#'
  18698. else
  18699. HAVE_TIMEGM_TRUE='#'
  18700. HAVE_TIMEGM_FALSE=
  18701. fi
  18702. fi
  18703. done
  18704. case "$target" in
  18705. *mingw*)
  18706. if true; then
  18707. HAVE_GETADDRINFO_TRUE=
  18708. HAVE_GETADDRINFO_FALSE='#'
  18709. else
  18710. HAVE_GETADDRINFO_TRUE='#'
  18711. HAVE_GETADDRINFO_FALSE=
  18712. fi
  18713. if false; then
  18714. HAVE_GAI_STRERROR_TRUE=
  18715. HAVE_GAI_STRERROR_FALSE='#'
  18716. else
  18717. HAVE_GAI_STRERROR_TRUE='#'
  18718. HAVE_GAI_STRERROR_FALSE=
  18719. fi
  18720. ;;
  18721. esac
  18722. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  18723. cat >confcache <<\_ACEOF
  18724. # This file is a shell script that caches the results of configure
  18725. # tests run on this system so they can be shared between configure
  18726. # scripts and configure runs, see configure's option --config-cache.
  18727. # It is not useful on other systems. If it contains results you don't
  18728. # want to keep, you may remove or edit it.
  18729. #
  18730. # config.status only pays attention to the cache file if you give it
  18731. # the --recheck option to rerun configure.
  18732. #
  18733. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18734. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18735. # following values.
  18736. _ACEOF
  18737. # The following way of writing the cache mishandles newlines in values,
  18738. # but we know of no workaround that is simple, portable, and efficient.
  18739. # So, we kill variables containing newlines.
  18740. # Ultrix sh set writes to stderr and can't be redirected directly,
  18741. # and sets the high bit in the cache file unless we assign to the vars.
  18742. (
  18743. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18744. eval ac_val=\$$ac_var
  18745. case $ac_val in #(
  18746. *${as_nl}*)
  18747. case $ac_var in #(
  18748. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  18749. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  18750. esac
  18751. case $ac_var in #(
  18752. _ | IFS | as_nl) ;; #(
  18753. *) $as_unset $ac_var ;;
  18754. esac ;;
  18755. esac
  18756. done
  18757. (set) 2>&1 |
  18758. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18759. *${as_nl}ac_space=\ *)
  18760. # `set' does not quote correctly, so add quotes (double-quote
  18761. # substitution turns \\\\ into \\, and sed turns \\ into \).
  18762. sed -n \
  18763. "s/'/'\\\\''/g;
  18764. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18765. ;; #(
  18766. *)
  18767. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18768. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18769. ;;
  18770. esac |
  18771. sort
  18772. ) |
  18773. sed '
  18774. /^ac_cv_env_/b end
  18775. t clear
  18776. :clear
  18777. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18778. t end
  18779. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18780. :end' >>confcache
  18781. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18782. if test -w "$cache_file"; then
  18783. test "x$cache_file" != "x/dev/null" &&
  18784. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  18785. echo "$as_me: updating cache $cache_file" >&6;}
  18786. cat confcache >$cache_file
  18787. else
  18788. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  18789. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18790. fi
  18791. fi
  18792. rm -f confcache
  18793. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18794. # Let make expand exec_prefix.
  18795. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18796. DEFS=-DHAVE_CONFIG_H
  18797. ac_libobjs=
  18798. ac_ltlibobjs=
  18799. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18800. # 1. Remove the extension, and $U if already installed.
  18801. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18802. ac_i=`echo "$ac_i" | sed "$ac_script"`
  18803. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18804. # will be set to the directory where LIBOBJS objects are built.
  18805. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18806. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  18807. done
  18808. LIBOBJS=$ac_libobjs
  18809. LTLIBOBJS=$ac_ltlibobjs
  18810. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  18811. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  18812. Usually this means the macro was only invoked conditionally." >&5
  18813. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  18814. Usually this means the macro was only invoked conditionally." >&2;}
  18815. { (exit 1); exit 1; }; }
  18816. fi
  18817. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  18818. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  18819. Usually this means the macro was only invoked conditionally." >&5
  18820. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  18821. Usually this means the macro was only invoked conditionally." >&2;}
  18822. { (exit 1); exit 1; }; }
  18823. fi
  18824. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  18825. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  18826. Usually this means the macro was only invoked conditionally." >&5
  18827. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  18828. Usually this means the macro was only invoked conditionally." >&2;}
  18829. { (exit 1); exit 1; }; }
  18830. fi
  18831. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  18832. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  18833. Usually this means the macro was only invoked conditionally." >&5
  18834. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  18835. Usually this means the macro was only invoked conditionally." >&2;}
  18836. { (exit 1); exit 1; }; }
  18837. fi
  18838. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  18839. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  18840. Usually this means the macro was only invoked conditionally." >&5
  18841. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  18842. Usually this means the macro was only invoked conditionally." >&2;}
  18843. { (exit 1); exit 1; }; }
  18844. fi
  18845. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  18846. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  18847. Usually this means the macro was only invoked conditionally." >&5
  18848. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  18849. Usually this means the macro was only invoked conditionally." >&2;}
  18850. { (exit 1); exit 1; }; }
  18851. fi
  18852. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  18853. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  18854. Usually this means the macro was only invoked conditionally." >&5
  18855. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  18856. Usually this means the macro was only invoked conditionally." >&2;}
  18857. { (exit 1); exit 1; }; }
  18858. fi
  18859. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  18860. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  18861. Usually this means the macro was only invoked conditionally." >&5
  18862. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  18863. Usually this means the macro was only invoked conditionally." >&2;}
  18864. { (exit 1); exit 1; }; }
  18865. fi
  18866. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  18867. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  18868. Usually this means the macro was only invoked conditionally." >&5
  18869. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  18870. Usually this means the macro was only invoked conditionally." >&2;}
  18871. { (exit 1); exit 1; }; }
  18872. fi
  18873. if test -z "${ENABLE_LIBXML2_TRUE}" && test -z "${ENABLE_LIBXML2_FALSE}"; then
  18874. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXML2\" was never defined.
  18875. Usually this means the macro was only invoked conditionally." >&5
  18876. echo "$as_me: error: conditional \"ENABLE_LIBXML2\" was never defined.
  18877. Usually this means the macro was only invoked conditionally." >&2;}
  18878. { (exit 1); exit 1; }; }
  18879. fi
  18880. if test -z "${ENABLE_LIBEXPAT_TRUE}" && test -z "${ENABLE_LIBEXPAT_FALSE}"; then
  18881. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  18882. Usually this means the macro was only invoked conditionally." >&5
  18883. echo "$as_me: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  18884. Usually this means the macro was only invoked conditionally." >&2;}
  18885. { (exit 1); exit 1; }; }
  18886. fi
  18887. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  18888. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  18889. Usually this means the macro was only invoked conditionally." >&5
  18890. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  18891. Usually this means the macro was only invoked conditionally." >&2;}
  18892. { (exit 1); exit 1; }; }
  18893. fi
  18894. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  18895. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  18896. Usually this means the macro was only invoked conditionally." >&5
  18897. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  18898. Usually this means the macro was only invoked conditionally." >&2;}
  18899. { (exit 1); exit 1; }; }
  18900. fi
  18901. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  18902. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  18903. Usually this means the macro was only invoked conditionally." >&5
  18904. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  18905. Usually this means the macro was only invoked conditionally." >&2;}
  18906. { (exit 1); exit 1; }; }
  18907. fi
  18908. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  18909. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  18910. Usually this means the macro was only invoked conditionally." >&5
  18911. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  18912. Usually this means the macro was only invoked conditionally." >&2;}
  18913. { (exit 1); exit 1; }; }
  18914. fi
  18915. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  18916. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  18917. Usually this means the macro was only invoked conditionally." >&5
  18918. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  18919. Usually this means the macro was only invoked conditionally." >&2;}
  18920. { (exit 1); exit 1; }; }
  18921. fi
  18922. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  18923. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  18924. Usually this means the macro was only invoked conditionally." >&5
  18925. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  18926. Usually this means the macro was only invoked conditionally." >&2;}
  18927. { (exit 1); exit 1; }; }
  18928. fi
  18929. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  18930. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  18931. Usually this means the macro was only invoked conditionally." >&5
  18932. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  18933. Usually this means the macro was only invoked conditionally." >&2;}
  18934. { (exit 1); exit 1; }; }
  18935. fi
  18936. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  18937. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  18938. Usually this means the macro was only invoked conditionally." >&5
  18939. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  18940. Usually this means the macro was only invoked conditionally." >&2;}
  18941. { (exit 1); exit 1; }; }
  18942. fi
  18943. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  18944. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  18945. Usually this means the macro was only invoked conditionally." >&5
  18946. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  18947. Usually this means the macro was only invoked conditionally." >&2;}
  18948. { (exit 1); exit 1; }; }
  18949. fi
  18950. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  18951. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  18952. Usually this means the macro was only invoked conditionally." >&5
  18953. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  18954. Usually this means the macro was only invoked conditionally." >&2;}
  18955. { (exit 1); exit 1; }; }
  18956. fi
  18957. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  18958. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  18959. Usually this means the macro was only invoked conditionally." >&5
  18960. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  18961. Usually this means the macro was only invoked conditionally." >&2;}
  18962. { (exit 1); exit 1; }; }
  18963. fi
  18964. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  18965. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  18966. Usually this means the macro was only invoked conditionally." >&5
  18967. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  18968. Usually this means the macro was only invoked conditionally." >&2;}
  18969. { (exit 1); exit 1; }; }
  18970. fi
  18971. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  18972. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  18973. Usually this means the macro was only invoked conditionally." >&5
  18974. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  18975. Usually this means the macro was only invoked conditionally." >&2;}
  18976. { (exit 1); exit 1; }; }
  18977. fi
  18978. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  18979. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  18980. Usually this means the macro was only invoked conditionally." >&5
  18981. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  18982. Usually this means the macro was only invoked conditionally." >&2;}
  18983. { (exit 1); exit 1; }; }
  18984. fi
  18985. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  18986. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  18987. Usually this means the macro was only invoked conditionally." >&5
  18988. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  18989. Usually this means the macro was only invoked conditionally." >&2;}
  18990. { (exit 1); exit 1; }; }
  18991. fi
  18992. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  18993. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  18994. Usually this means the macro was only invoked conditionally." >&5
  18995. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  18996. Usually this means the macro was only invoked conditionally." >&2;}
  18997. { (exit 1); exit 1; }; }
  18998. fi
  18999. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19000. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19001. Usually this means the macro was only invoked conditionally." >&5
  19002. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19003. Usually this means the macro was only invoked conditionally." >&2;}
  19004. { (exit 1); exit 1; }; }
  19005. fi
  19006. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19007. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19008. Usually this means the macro was only invoked conditionally." >&5
  19009. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19010. Usually this means the macro was only invoked conditionally." >&2;}
  19011. { (exit 1); exit 1; }; }
  19012. fi
  19013. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19014. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19015. Usually this means the macro was only invoked conditionally." >&5
  19016. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19017. Usually this means the macro was only invoked conditionally." >&2;}
  19018. { (exit 1); exit 1; }; }
  19019. fi
  19020. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19021. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19022. Usually this means the macro was only invoked conditionally." >&5
  19023. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19024. Usually this means the macro was only invoked conditionally." >&2;}
  19025. { (exit 1); exit 1; }; }
  19026. fi
  19027. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19028. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19029. Usually this means the macro was only invoked conditionally." >&5
  19030. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19031. Usually this means the macro was only invoked conditionally." >&2;}
  19032. { (exit 1); exit 1; }; }
  19033. fi
  19034. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19035. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19036. Usually this means the macro was only invoked conditionally." >&5
  19037. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19038. Usually this means the macro was only invoked conditionally." >&2;}
  19039. { (exit 1); exit 1; }; }
  19040. fi
  19041. : ${CONFIG_STATUS=./config.status}
  19042. ac_clean_files_save=$ac_clean_files
  19043. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19044. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  19045. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19046. cat >$CONFIG_STATUS <<_ACEOF
  19047. #! $SHELL
  19048. # Generated by $as_me.
  19049. # Run this file to recreate the current configuration.
  19050. # Compiler output produced by configure, useful for debugging
  19051. # configure, is in config.log if it exists.
  19052. debug=false
  19053. ac_cs_recheck=false
  19054. ac_cs_silent=false
  19055. SHELL=\${CONFIG_SHELL-$SHELL}
  19056. _ACEOF
  19057. cat >>$CONFIG_STATUS <<\_ACEOF
  19058. ## --------------------- ##
  19059. ## M4sh Initialization. ##
  19060. ## --------------------- ##
  19061. # Be more Bourne compatible
  19062. DUALCASE=1; export DUALCASE # for MKS sh
  19063. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  19064. emulate sh
  19065. NULLCMD=:
  19066. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19067. # is contrary to our usage. Disable this feature.
  19068. alias -g '${1+"$@"}'='"$@"'
  19069. setopt NO_GLOB_SUBST
  19070. else
  19071. case `(set -o) 2>/dev/null` in
  19072. *posix*) set -o posix ;;
  19073. esac
  19074. fi
  19075. # PATH needs CR
  19076. # Avoid depending upon Character Ranges.
  19077. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19078. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19079. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19080. as_cr_digits='0123456789'
  19081. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19082. # The user is always right.
  19083. if test "${PATH_SEPARATOR+set}" != set; then
  19084. echo "#! /bin/sh" >conf$$.sh
  19085. echo "exit 0" >>conf$$.sh
  19086. chmod +x conf$$.sh
  19087. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  19088. PATH_SEPARATOR=';'
  19089. else
  19090. PATH_SEPARATOR=:
  19091. fi
  19092. rm -f conf$$.sh
  19093. fi
  19094. # Support unset when possible.
  19095. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  19096. as_unset=unset
  19097. else
  19098. as_unset=false
  19099. fi
  19100. # IFS
  19101. # We need space, tab and new line, in precisely that order. Quoting is
  19102. # there to prevent editors from complaining about space-tab.
  19103. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  19104. # splitting by setting IFS to empty value.)
  19105. as_nl='
  19106. '
  19107. IFS=" "" $as_nl"
  19108. # Find who we are. Look in the path if we contain no directory separator.
  19109. case $0 in
  19110. *[\\/]* ) as_myself=$0 ;;
  19111. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19112. for as_dir in $PATH
  19113. do
  19114. IFS=$as_save_IFS
  19115. test -z "$as_dir" && as_dir=.
  19116. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19117. done
  19118. IFS=$as_save_IFS
  19119. ;;
  19120. esac
  19121. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19122. # in which case we are not to be found in the path.
  19123. if test "x$as_myself" = x; then
  19124. as_myself=$0
  19125. fi
  19126. if test ! -f "$as_myself"; then
  19127. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19128. { (exit 1); exit 1; }
  19129. fi
  19130. # Work around bugs in pre-3.0 UWIN ksh.
  19131. for as_var in ENV MAIL MAILPATH
  19132. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19133. done
  19134. PS1='$ '
  19135. PS2='> '
  19136. PS4='+ '
  19137. # NLS nuisances.
  19138. for as_var in \
  19139. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  19140. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  19141. LC_TELEPHONE LC_TIME
  19142. do
  19143. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  19144. eval $as_var=C; export $as_var
  19145. else
  19146. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19147. fi
  19148. done
  19149. # Required to use basename.
  19150. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19151. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19152. as_expr=expr
  19153. else
  19154. as_expr=false
  19155. fi
  19156. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  19157. as_basename=basename
  19158. else
  19159. as_basename=false
  19160. fi
  19161. # Name of the executable.
  19162. as_me=`$as_basename -- "$0" ||
  19163. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19164. X"$0" : 'X\(//\)$' \| \
  19165. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19166. echo X/"$0" |
  19167. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19168. s//\1/
  19169. q
  19170. }
  19171. /^X\/\(\/\/\)$/{
  19172. s//\1/
  19173. q
  19174. }
  19175. /^X\/\(\/\).*/{
  19176. s//\1/
  19177. q
  19178. }
  19179. s/.*/./; q'`
  19180. # CDPATH.
  19181. $as_unset CDPATH
  19182. as_lineno_1=$LINENO
  19183. as_lineno_2=$LINENO
  19184. test "x$as_lineno_1" != "x$as_lineno_2" &&
  19185. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  19186. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  19187. # uniformly replaced by the line number. The first 'sed' inserts a
  19188. # line-number line after each line using $LINENO; the second 'sed'
  19189. # does the real work. The second script uses 'N' to pair each
  19190. # line-number line with the line containing $LINENO, and appends
  19191. # trailing '-' during substitution so that $LINENO is not a special
  19192. # case at line end.
  19193. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  19194. # scripts with optimization help from Paolo Bonzini. Blame Lee
  19195. # E. McMahon (1931-1989) for sed's syntax. :-)
  19196. sed -n '
  19197. p
  19198. /[$]LINENO/=
  19199. ' <$as_myself |
  19200. sed '
  19201. s/[$]LINENO.*/&-/
  19202. t lineno
  19203. b
  19204. :lineno
  19205. N
  19206. :loop
  19207. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  19208. t loop
  19209. s/-\n.*//
  19210. ' >$as_me.lineno &&
  19211. chmod +x "$as_me.lineno" ||
  19212. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  19213. { (exit 1); exit 1; }; }
  19214. # Don't try to exec as it changes $[0], causing all sort of problems
  19215. # (the dirname of $[0] is not the place where we might find the
  19216. # original and so on. Autoconf is especially sensitive to this).
  19217. . "./$as_me.lineno"
  19218. # Exit status is that of the last command.
  19219. exit
  19220. }
  19221. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  19222. as_dirname=dirname
  19223. else
  19224. as_dirname=false
  19225. fi
  19226. ECHO_C= ECHO_N= ECHO_T=
  19227. case `echo -n x` in
  19228. -n*)
  19229. case `echo 'x\c'` in
  19230. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  19231. *) ECHO_C='\c';;
  19232. esac;;
  19233. *)
  19234. ECHO_N='-n';;
  19235. esac
  19236. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19237. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19238. as_expr=expr
  19239. else
  19240. as_expr=false
  19241. fi
  19242. rm -f conf$$ conf$$.exe conf$$.file
  19243. if test -d conf$$.dir; then
  19244. rm -f conf$$.dir/conf$$.file
  19245. else
  19246. rm -f conf$$.dir
  19247. mkdir conf$$.dir
  19248. fi
  19249. echo >conf$$.file
  19250. if ln -s conf$$.file conf$$ 2>/dev/null; then
  19251. as_ln_s='ln -s'
  19252. # ... but there are two gotchas:
  19253. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  19254. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  19255. # In both cases, we have to default to `cp -p'.
  19256. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  19257. as_ln_s='cp -p'
  19258. elif ln conf$$.file conf$$ 2>/dev/null; then
  19259. as_ln_s=ln
  19260. else
  19261. as_ln_s='cp -p'
  19262. fi
  19263. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  19264. rmdir conf$$.dir 2>/dev/null
  19265. if mkdir -p . 2>/dev/null; then
  19266. as_mkdir_p=:
  19267. else
  19268. test -d ./-p && rmdir ./-p
  19269. as_mkdir_p=false
  19270. fi
  19271. if test -x / >/dev/null 2>&1; then
  19272. as_test_x='test -x'
  19273. else
  19274. if ls -dL / >/dev/null 2>&1; then
  19275. as_ls_L_option=L
  19276. else
  19277. as_ls_L_option=
  19278. fi
  19279. as_test_x='
  19280. eval sh -c '\''
  19281. if test -d "$1"; then
  19282. test -d "$1/.";
  19283. else
  19284. case $1 in
  19285. -*)set "./$1";;
  19286. esac;
  19287. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  19288. ???[sx]*):;;*)false;;esac;fi
  19289. '\'' sh
  19290. '
  19291. fi
  19292. as_executable_p=$as_test_x
  19293. # Sed expression to map a string onto a valid CPP name.
  19294. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19295. # Sed expression to map a string onto a valid variable name.
  19296. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19297. exec 6>&1
  19298. # Save the log message, to keep $[0] and so on meaningful, and to
  19299. # report actual input values of CONFIG_FILES etc. instead of their
  19300. # values after options handling.
  19301. ac_log="
  19302. This file was extended by aria2c $as_me 0.14.0b, which was
  19303. generated by GNU Autoconf 2.61. Invocation command line was
  19304. CONFIG_FILES = $CONFIG_FILES
  19305. CONFIG_HEADERS = $CONFIG_HEADERS
  19306. CONFIG_LINKS = $CONFIG_LINKS
  19307. CONFIG_COMMANDS = $CONFIG_COMMANDS
  19308. $ $0 $@
  19309. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  19310. "
  19311. _ACEOF
  19312. cat >>$CONFIG_STATUS <<_ACEOF
  19313. # Files that config.status was made for.
  19314. config_files="$ac_config_files"
  19315. config_headers="$ac_config_headers"
  19316. config_commands="$ac_config_commands"
  19317. _ACEOF
  19318. cat >>$CONFIG_STATUS <<\_ACEOF
  19319. ac_cs_usage="\
  19320. \`$as_me' instantiates files from templates according to the
  19321. current configuration.
  19322. Usage: $0 [OPTIONS] [FILE]...
  19323. -h, --help print this help, then exit
  19324. -V, --version print version number and configuration settings, then exit
  19325. -q, --quiet do not print progress messages
  19326. -d, --debug don't remove temporary files
  19327. --recheck update $as_me by reconfiguring in the same conditions
  19328. --file=FILE[:TEMPLATE]
  19329. instantiate the configuration file FILE
  19330. --header=FILE[:TEMPLATE]
  19331. instantiate the configuration header FILE
  19332. Configuration files:
  19333. $config_files
  19334. Configuration headers:
  19335. $config_headers
  19336. Configuration commands:
  19337. $config_commands
  19338. Report bugs to <bug-autoconf@gnu.org>."
  19339. _ACEOF
  19340. cat >>$CONFIG_STATUS <<_ACEOF
  19341. ac_cs_version="\\
  19342. aria2c config.status 0.14.0b
  19343. configured by $0, generated by GNU Autoconf 2.61,
  19344. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  19345. Copyright (C) 2006 Free Software Foundation, Inc.
  19346. This config.status script is free software; the Free Software Foundation
  19347. gives unlimited permission to copy, distribute and modify it."
  19348. ac_pwd='$ac_pwd'
  19349. srcdir='$srcdir'
  19350. INSTALL='$INSTALL'
  19351. MKDIR_P='$MKDIR_P'
  19352. _ACEOF
  19353. cat >>$CONFIG_STATUS <<\_ACEOF
  19354. # If no file are specified by the user, then we need to provide default
  19355. # value. By we need to know if files were specified by the user.
  19356. ac_need_defaults=:
  19357. while test $# != 0
  19358. do
  19359. case $1 in
  19360. --*=*)
  19361. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19362. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  19363. ac_shift=:
  19364. ;;
  19365. *)
  19366. ac_option=$1
  19367. ac_optarg=$2
  19368. ac_shift=shift
  19369. ;;
  19370. esac
  19371. case $ac_option in
  19372. # Handling of the options.
  19373. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19374. ac_cs_recheck=: ;;
  19375. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  19376. echo "$ac_cs_version"; exit ;;
  19377. --debug | --debu | --deb | --de | --d | -d )
  19378. debug=: ;;
  19379. --file | --fil | --fi | --f )
  19380. $ac_shift
  19381. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  19382. ac_need_defaults=false;;
  19383. --header | --heade | --head | --hea )
  19384. $ac_shift
  19385. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  19386. ac_need_defaults=false;;
  19387. --he | --h)
  19388. # Conflict between --help and --header
  19389. { echo "$as_me: error: ambiguous option: $1
  19390. Try \`$0 --help' for more information." >&2
  19391. { (exit 1); exit 1; }; };;
  19392. --help | --hel | -h )
  19393. echo "$ac_cs_usage"; exit ;;
  19394. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19395. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19396. ac_cs_silent=: ;;
  19397. # This is an error.
  19398. -*) { echo "$as_me: error: unrecognized option: $1
  19399. Try \`$0 --help' for more information." >&2
  19400. { (exit 1); exit 1; }; } ;;
  19401. *) ac_config_targets="$ac_config_targets $1"
  19402. ac_need_defaults=false ;;
  19403. esac
  19404. shift
  19405. done
  19406. ac_configure_extra_args=
  19407. if $ac_cs_silent; then
  19408. exec 6>/dev/null
  19409. ac_configure_extra_args="$ac_configure_extra_args --silent"
  19410. fi
  19411. _ACEOF
  19412. cat >>$CONFIG_STATUS <<_ACEOF
  19413. if \$ac_cs_recheck; then
  19414. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  19415. CONFIG_SHELL=$SHELL
  19416. export CONFIG_SHELL
  19417. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19418. fi
  19419. _ACEOF
  19420. cat >>$CONFIG_STATUS <<\_ACEOF
  19421. exec 5>>config.log
  19422. {
  19423. echo
  19424. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19425. ## Running $as_me. ##
  19426. _ASBOX
  19427. echo "$ac_log"
  19428. } >&5
  19429. _ACEOF
  19430. cat >>$CONFIG_STATUS <<_ACEOF
  19431. #
  19432. # INIT-COMMANDS
  19433. #
  19434. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  19435. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  19436. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  19437. # from automake < 1.5.
  19438. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  19439. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  19440. LINGUAS="${LINGUAS-%UNSET%}"
  19441. _ACEOF
  19442. cat >>$CONFIG_STATUS <<\_ACEOF
  19443. # Handling of arguments.
  19444. for ac_config_target in $ac_config_targets
  19445. do
  19446. case $ac_config_target in
  19447. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19448. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19449. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  19450. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19451. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  19452. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  19453. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  19454. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  19455. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  19456. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  19457. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  19458. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  19459. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  19460. { (exit 1); exit 1; }; };;
  19461. esac
  19462. done
  19463. # If the user did not use the arguments to specify the items to instantiate,
  19464. # then the envvar interface is used. Set only those that are not.
  19465. # We use the long form for the default assignment because of an extremely
  19466. # bizarre bug on SunOS 4.1.3.
  19467. if $ac_need_defaults; then
  19468. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19469. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19470. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19471. fi
  19472. # Have a temporary directory for convenience. Make it in the build tree
  19473. # simply because there is no reason against having it here, and in addition,
  19474. # creating and moving files from /tmp can sometimes cause problems.
  19475. # Hook for its removal unless debugging.
  19476. # Note that there is a small window in which the directory will not be cleaned:
  19477. # after its creation but before its name has been assigned to `$tmp'.
  19478. $debug ||
  19479. {
  19480. tmp=
  19481. trap 'exit_status=$?
  19482. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  19483. ' 0
  19484. trap '{ (exit 1); exit 1; }' 1 2 13 15
  19485. }
  19486. # Create a (secure) tmp directory for tmp files.
  19487. {
  19488. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19489. test -n "$tmp" && test -d "$tmp"
  19490. } ||
  19491. {
  19492. tmp=./conf$$-$RANDOM
  19493. (umask 077 && mkdir "$tmp")
  19494. } ||
  19495. {
  19496. echo "$me: cannot create a temporary directory in ." >&2
  19497. { (exit 1); exit 1; }
  19498. }
  19499. #
  19500. # Set up the sed scripts for CONFIG_FILES section.
  19501. #
  19502. # No need to generate the scripts if there are no CONFIG_FILES.
  19503. # This happens for instance when ./config.status config.h
  19504. if test -n "$CONFIG_FILES"; then
  19505. _ACEOF
  19506. ac_delim='%!_!# '
  19507. for ac_last_try in false false false false false :; do
  19508. cat >conf$$subs.sed <<_ACEOF
  19509. SHELL!$SHELL$ac_delim
  19510. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  19511. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  19512. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  19513. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  19514. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  19515. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  19516. exec_prefix!$exec_prefix$ac_delim
  19517. prefix!$prefix$ac_delim
  19518. program_transform_name!$program_transform_name$ac_delim
  19519. bindir!$bindir$ac_delim
  19520. sbindir!$sbindir$ac_delim
  19521. libexecdir!$libexecdir$ac_delim
  19522. datarootdir!$datarootdir$ac_delim
  19523. datadir!$datadir$ac_delim
  19524. sysconfdir!$sysconfdir$ac_delim
  19525. sharedstatedir!$sharedstatedir$ac_delim
  19526. localstatedir!$localstatedir$ac_delim
  19527. includedir!$includedir$ac_delim
  19528. oldincludedir!$oldincludedir$ac_delim
  19529. docdir!$docdir$ac_delim
  19530. infodir!$infodir$ac_delim
  19531. htmldir!$htmldir$ac_delim
  19532. dvidir!$dvidir$ac_delim
  19533. pdfdir!$pdfdir$ac_delim
  19534. psdir!$psdir$ac_delim
  19535. libdir!$libdir$ac_delim
  19536. localedir!$localedir$ac_delim
  19537. mandir!$mandir$ac_delim
  19538. DEFS!$DEFS$ac_delim
  19539. ECHO_C!$ECHO_C$ac_delim
  19540. ECHO_N!$ECHO_N$ac_delim
  19541. ECHO_T!$ECHO_T$ac_delim
  19542. LIBS!$LIBS$ac_delim
  19543. build_alias!$build_alias$ac_delim
  19544. host_alias!$host_alias$ac_delim
  19545. target_alias!$target_alias$ac_delim
  19546. build!$build$ac_delim
  19547. build_cpu!$build_cpu$ac_delim
  19548. build_vendor!$build_vendor$ac_delim
  19549. build_os!$build_os$ac_delim
  19550. host!$host$ac_delim
  19551. host_cpu!$host_cpu$ac_delim
  19552. host_vendor!$host_vendor$ac_delim
  19553. host_os!$host_os$ac_delim
  19554. target!$target$ac_delim
  19555. target_cpu!$target_cpu$ac_delim
  19556. target_vendor!$target_vendor$ac_delim
  19557. target_os!$target_os$ac_delim
  19558. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  19559. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  19560. INSTALL_DATA!$INSTALL_DATA$ac_delim
  19561. am__isrc!$am__isrc$ac_delim
  19562. CYGPATH_W!$CYGPATH_W$ac_delim
  19563. PACKAGE!$PACKAGE$ac_delim
  19564. VERSION!$VERSION$ac_delim
  19565. ACLOCAL!$ACLOCAL$ac_delim
  19566. AUTOCONF!$AUTOCONF$ac_delim
  19567. AUTOMAKE!$AUTOMAKE$ac_delim
  19568. AUTOHEADER!$AUTOHEADER$ac_delim
  19569. MAKEINFO!$MAKEINFO$ac_delim
  19570. install_sh!$install_sh$ac_delim
  19571. STRIP!$STRIP$ac_delim
  19572. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  19573. mkdir_p!$mkdir_p$ac_delim
  19574. AWK!$AWK$ac_delim
  19575. SET_MAKE!$SET_MAKE$ac_delim
  19576. am__leading_dot!$am__leading_dot$ac_delim
  19577. AMTAR!$AMTAR$ac_delim
  19578. am__tar!$am__tar$ac_delim
  19579. am__untar!$am__untar$ac_delim
  19580. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  19581. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  19582. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  19583. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  19584. CXX!$CXX$ac_delim
  19585. CXXFLAGS!$CXXFLAGS$ac_delim
  19586. LDFLAGS!$LDFLAGS$ac_delim
  19587. CPPFLAGS!$CPPFLAGS$ac_delim
  19588. ac_ct_CXX!$ac_ct_CXX$ac_delim
  19589. EXEEXT!$EXEEXT$ac_delim
  19590. OBJEXT!$OBJEXT$ac_delim
  19591. DEPDIR!$DEPDIR$ac_delim
  19592. am__include!$am__include$ac_delim
  19593. am__quote!$am__quote$ac_delim
  19594. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  19595. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  19596. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  19597. CXXDEPMODE!$CXXDEPMODE$ac_delim
  19598. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  19599. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  19600. CC!$CC$ac_delim
  19601. CFLAGS!$CFLAGS$ac_delim
  19602. ac_ct_CC!$ac_ct_CC$ac_delim
  19603. CCDEPMODE!$CCDEPMODE$ac_delim
  19604. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  19605. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  19606. _ACEOF
  19607. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  19608. break
  19609. elif $ac_last_try; then
  19610. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  19611. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  19612. { (exit 1); exit 1; }; }
  19613. else
  19614. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19615. fi
  19616. done
  19617. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  19618. if test -n "$ac_eof"; then
  19619. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  19620. ac_eof=`expr $ac_eof + 1`
  19621. fi
  19622. cat >>$CONFIG_STATUS <<_ACEOF
  19623. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  19624. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19625. _ACEOF
  19626. sed '
  19627. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  19628. s/^/s,@/; s/!/@,|#_!!_#|/
  19629. :n
  19630. t n
  19631. s/'"$ac_delim"'$/,g/; t
  19632. s/$/\\/; p
  19633. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  19634. ' >>$CONFIG_STATUS <conf$$subs.sed
  19635. rm -f conf$$subs.sed
  19636. cat >>$CONFIG_STATUS <<_ACEOF
  19637. CEOF$ac_eof
  19638. _ACEOF
  19639. ac_delim='%!_!# '
  19640. for ac_last_try in false false false false false :; do
  19641. cat >conf$$subs.sed <<_ACEOF
  19642. RANLIB!$RANLIB$ac_delim
  19643. YACC!$YACC$ac_delim
  19644. YFLAGS!$YFLAGS$ac_delim
  19645. CXXCPP!$CXXCPP$ac_delim
  19646. GREP!$GREP$ac_delim
  19647. EGREP!$EGREP$ac_delim
  19648. XML2_CONFIG!$XML2_CONFIG$ac_delim
  19649. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  19650. XML_LIBS!$XML_LIBS$ac_delim
  19651. LIBEXPAT_LIBS!$LIBEXPAT_LIBS$ac_delim
  19652. LIBEXPAT_CPPFLAGS!$LIBEXPAT_CPPFLAGS$ac_delim
  19653. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  19654. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  19655. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  19656. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  19657. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  19658. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  19659. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  19660. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  19661. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  19662. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  19663. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  19664. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  19665. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  19666. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  19667. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  19668. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  19669. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  19670. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  19671. ENABLE_LIBXML2_TRUE!$ENABLE_LIBXML2_TRUE$ac_delim
  19672. ENABLE_LIBXML2_FALSE!$ENABLE_LIBXML2_FALSE$ac_delim
  19673. ENABLE_LIBEXPAT_TRUE!$ENABLE_LIBEXPAT_TRUE$ac_delim
  19674. ENABLE_LIBEXPAT_FALSE!$ENABLE_LIBEXPAT_FALSE$ac_delim
  19675. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  19676. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  19677. ALLOCA!$ALLOCA$ac_delim
  19678. USE_NLS!$USE_NLS$ac_delim
  19679. GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
  19680. MSGFMT!$MSGFMT$ac_delim
  19681. GMSGFMT!$GMSGFMT$ac_delim
  19682. MSGFMT_015!$MSGFMT_015$ac_delim
  19683. GMSGFMT_015!$GMSGFMT_015$ac_delim
  19684. XGETTEXT!$XGETTEXT$ac_delim
  19685. XGETTEXT_015!$XGETTEXT_015$ac_delim
  19686. MSGMERGE!$MSGMERGE$ac_delim
  19687. XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
  19688. GLIBC2!$GLIBC2$ac_delim
  19689. CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
  19690. HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
  19691. PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
  19692. LIBPTH!$LIBPTH$ac_delim
  19693. LTLIBPTH!$LTLIBPTH$ac_delim
  19694. LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim
  19695. LIBTHREAD!$LIBTHREAD$ac_delim
  19696. LTLIBTHREAD!$LTLIBTHREAD$ac_delim
  19697. LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
  19698. LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
  19699. LIBICONV!$LIBICONV$ac_delim
  19700. LTLIBICONV!$LTLIBICONV$ac_delim
  19701. INTLBISON!$INTLBISON$ac_delim
  19702. GLIBC21!$GLIBC21$ac_delim
  19703. INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
  19704. HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
  19705. HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
  19706. HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
  19707. HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
  19708. WOE32DLL!$WOE32DLL$ac_delim
  19709. WOE32!$WOE32$ac_delim
  19710. WINDRES!$WINDRES$ac_delim
  19711. LTLIBC!$LTLIBC$ac_delim
  19712. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  19713. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  19714. CATOBJEXT!$CATOBJEXT$ac_delim
  19715. DATADIRNAME!$DATADIRNAME$ac_delim
  19716. INSTOBJEXT!$INSTOBJEXT$ac_delim
  19717. GENCAT!$GENCAT$ac_delim
  19718. INTLOBJS!$INTLOBJS$ac_delim
  19719. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  19720. INTLLIBS!$INTLLIBS$ac_delim
  19721. LIBINTL!$LIBINTL$ac_delim
  19722. LTLIBINTL!$LTLIBINTL$ac_delim
  19723. POSUB!$POSUB$ac_delim
  19724. LIBOBJS!$LIBOBJS$ac_delim
  19725. HAVE_ASCTIME_R_TRUE!$HAVE_ASCTIME_R_TRUE$ac_delim
  19726. HAVE_ASCTIME_R_FALSE!$HAVE_ASCTIME_R_FALSE$ac_delim
  19727. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  19728. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  19729. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  19730. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  19731. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  19732. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  19733. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  19734. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  19735. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  19736. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  19737. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  19738. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  19739. _ACEOF
  19740. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  19741. break
  19742. elif $ac_last_try; then
  19743. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  19744. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  19745. { (exit 1); exit 1; }; }
  19746. else
  19747. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19748. fi
  19749. done
  19750. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  19751. if test -n "$ac_eof"; then
  19752. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  19753. ac_eof=`expr $ac_eof + 1`
  19754. fi
  19755. cat >>$CONFIG_STATUS <<_ACEOF
  19756. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  19757. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19758. _ACEOF
  19759. sed '
  19760. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  19761. s/^/s,@/; s/!/@,|#_!!_#|/
  19762. :n
  19763. t n
  19764. s/'"$ac_delim"'$/,g/; t
  19765. s/$/\\/; p
  19766. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  19767. ' >>$CONFIG_STATUS <conf$$subs.sed
  19768. rm -f conf$$subs.sed
  19769. cat >>$CONFIG_STATUS <<_ACEOF
  19770. CEOF$ac_eof
  19771. _ACEOF
  19772. ac_delim='%!_!# '
  19773. for ac_last_try in false false false false false :; do
  19774. cat >conf$$subs.sed <<_ACEOF
  19775. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  19776. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  19777. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  19778. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  19779. LTLIBOBJS!$LTLIBOBJS$ac_delim
  19780. _ACEOF
  19781. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
  19782. break
  19783. elif $ac_last_try; then
  19784. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  19785. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  19786. { (exit 1); exit 1; }; }
  19787. else
  19788. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19789. fi
  19790. done
  19791. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  19792. if test -n "$ac_eof"; then
  19793. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  19794. ac_eof=`expr $ac_eof + 1`
  19795. fi
  19796. cat >>$CONFIG_STATUS <<_ACEOF
  19797. cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
  19798. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  19799. _ACEOF
  19800. sed '
  19801. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  19802. s/^/s,@/; s/!/@,|#_!!_#|/
  19803. :n
  19804. t n
  19805. s/'"$ac_delim"'$/,g/; t
  19806. s/$/\\/; p
  19807. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  19808. ' >>$CONFIG_STATUS <conf$$subs.sed
  19809. rm -f conf$$subs.sed
  19810. cat >>$CONFIG_STATUS <<_ACEOF
  19811. :end
  19812. s/|#_!!_#|//g
  19813. CEOF$ac_eof
  19814. _ACEOF
  19815. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  19816. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  19817. # trailing colons and then remove the whole line if VPATH becomes empty
  19818. # (actually we leave an empty line to preserve line numbers).
  19819. if test "x$srcdir" = x.; then
  19820. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  19821. s/:*\$(srcdir):*/:/
  19822. s/:*\${srcdir}:*/:/
  19823. s/:*@srcdir@:*/:/
  19824. s/^\([^=]*=[ ]*\):*/\1/
  19825. s/:*$//
  19826. s/^[^=]*=[ ]*$//
  19827. }'
  19828. fi
  19829. cat >>$CONFIG_STATUS <<\_ACEOF
  19830. fi # test -n "$CONFIG_FILES"
  19831. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  19832. do
  19833. case $ac_tag in
  19834. :[FHLC]) ac_mode=$ac_tag; continue;;
  19835. esac
  19836. case $ac_mode$ac_tag in
  19837. :[FHL]*:*);;
  19838. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  19839. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  19840. { (exit 1); exit 1; }; };;
  19841. :[FH]-) ac_tag=-:-;;
  19842. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19843. esac
  19844. ac_save_IFS=$IFS
  19845. IFS=:
  19846. set x $ac_tag
  19847. IFS=$ac_save_IFS
  19848. shift
  19849. ac_file=$1
  19850. shift
  19851. case $ac_mode in
  19852. :L) ac_source=$1;;
  19853. :[FH])
  19854. ac_file_inputs=
  19855. for ac_f
  19856. do
  19857. case $ac_f in
  19858. -) ac_f="$tmp/stdin";;
  19859. *) # Look for the file first in the build tree, then in the source tree
  19860. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19861. # because $ac_f cannot contain `:'.
  19862. test -f "$ac_f" ||
  19863. case $ac_f in
  19864. [\\/$]*) false;;
  19865. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19866. esac ||
  19867. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  19868. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  19869. { (exit 1); exit 1; }; };;
  19870. esac
  19871. ac_file_inputs="$ac_file_inputs $ac_f"
  19872. done
  19873. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19874. # use $as_me), people would be surprised to read:
  19875. # /* config.h. Generated by config.status. */
  19876. configure_input="Generated from "`IFS=:
  19877. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  19878. if test x"$ac_file" != x-; then
  19879. configure_input="$ac_file. $configure_input"
  19880. { echo "$as_me:$LINENO: creating $ac_file" >&5
  19881. echo "$as_me: creating $ac_file" >&6;}
  19882. fi
  19883. case $ac_tag in
  19884. *:-:* | *:-) cat >"$tmp/stdin";;
  19885. esac
  19886. ;;
  19887. esac
  19888. ac_dir=`$as_dirname -- "$ac_file" ||
  19889. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19890. X"$ac_file" : 'X\(//\)[^/]' \| \
  19891. X"$ac_file" : 'X\(//\)$' \| \
  19892. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19893. echo X"$ac_file" |
  19894. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19895. s//\1/
  19896. q
  19897. }
  19898. /^X\(\/\/\)[^/].*/{
  19899. s//\1/
  19900. q
  19901. }
  19902. /^X\(\/\/\)$/{
  19903. s//\1/
  19904. q
  19905. }
  19906. /^X\(\/\).*/{
  19907. s//\1/
  19908. q
  19909. }
  19910. s/.*/./; q'`
  19911. { as_dir="$ac_dir"
  19912. case $as_dir in #(
  19913. -*) as_dir=./$as_dir;;
  19914. esac
  19915. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  19916. as_dirs=
  19917. while :; do
  19918. case $as_dir in #(
  19919. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  19920. *) as_qdir=$as_dir;;
  19921. esac
  19922. as_dirs="'$as_qdir' $as_dirs"
  19923. as_dir=`$as_dirname -- "$as_dir" ||
  19924. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19925. X"$as_dir" : 'X\(//\)[^/]' \| \
  19926. X"$as_dir" : 'X\(//\)$' \| \
  19927. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  19928. echo X"$as_dir" |
  19929. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19930. s//\1/
  19931. q
  19932. }
  19933. /^X\(\/\/\)[^/].*/{
  19934. s//\1/
  19935. q
  19936. }
  19937. /^X\(\/\/\)$/{
  19938. s//\1/
  19939. q
  19940. }
  19941. /^X\(\/\).*/{
  19942. s//\1/
  19943. q
  19944. }
  19945. s/.*/./; q'`
  19946. test -d "$as_dir" && break
  19947. done
  19948. test -z "$as_dirs" || eval "mkdir $as_dirs"
  19949. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  19950. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  19951. { (exit 1); exit 1; }; }; }
  19952. ac_builddir=.
  19953. case "$ac_dir" in
  19954. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19955. *)
  19956. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  19957. # A ".." for each directory in $ac_dir_suffix.
  19958. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  19959. case $ac_top_builddir_sub in
  19960. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19961. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19962. esac ;;
  19963. esac
  19964. ac_abs_top_builddir=$ac_pwd
  19965. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19966. # for backward compatibility:
  19967. ac_top_builddir=$ac_top_build_prefix
  19968. case $srcdir in
  19969. .) # We are building in place.
  19970. ac_srcdir=.
  19971. ac_top_srcdir=$ac_top_builddir_sub
  19972. ac_abs_top_srcdir=$ac_pwd ;;
  19973. [\\/]* | ?:[\\/]* ) # Absolute name.
  19974. ac_srcdir=$srcdir$ac_dir_suffix;
  19975. ac_top_srcdir=$srcdir
  19976. ac_abs_top_srcdir=$srcdir ;;
  19977. *) # Relative name.
  19978. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19979. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19980. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19981. esac
  19982. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19983. case $ac_mode in
  19984. :F)
  19985. #
  19986. # CONFIG_FILE
  19987. #
  19988. case $INSTALL in
  19989. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19990. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19991. esac
  19992. ac_MKDIR_P=$MKDIR_P
  19993. case $MKDIR_P in
  19994. [\\/$]* | ?:[\\/]* ) ;;
  19995. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19996. esac
  19997. _ACEOF
  19998. cat >>$CONFIG_STATUS <<\_ACEOF
  19999. # If the template does not know about datarootdir, expand it.
  20000. # FIXME: This hack should be removed a few years after 2.60.
  20001. ac_datarootdir_hack=; ac_datarootdir_seen=
  20002. case `sed -n '/datarootdir/ {
  20003. p
  20004. q
  20005. }
  20006. /@datadir@/p
  20007. /@docdir@/p
  20008. /@infodir@/p
  20009. /@localedir@/p
  20010. /@mandir@/p
  20011. ' $ac_file_inputs` in
  20012. *datarootdir*) ac_datarootdir_seen=yes;;
  20013. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20014. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20015. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20016. _ACEOF
  20017. cat >>$CONFIG_STATUS <<_ACEOF
  20018. ac_datarootdir_hack='
  20019. s&@datadir@&$datadir&g
  20020. s&@docdir@&$docdir&g
  20021. s&@infodir@&$infodir&g
  20022. s&@localedir@&$localedir&g
  20023. s&@mandir@&$mandir&g
  20024. s&\\\${datarootdir}&$datarootdir&g' ;;
  20025. esac
  20026. _ACEOF
  20027. # Neutralize VPATH when `$srcdir' = `.'.
  20028. # Shell code in configure.ac might set extrasub.
  20029. # FIXME: do we really want to maintain this feature?
  20030. cat >>$CONFIG_STATUS <<_ACEOF
  20031. sed "$ac_vpsub
  20032. $extrasub
  20033. _ACEOF
  20034. cat >>$CONFIG_STATUS <<\_ACEOF
  20035. :t
  20036. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20037. s&@configure_input@&$configure_input&;t t
  20038. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20039. s&@srcdir@&$ac_srcdir&;t t
  20040. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20041. s&@top_srcdir@&$ac_top_srcdir&;t t
  20042. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20043. s&@builddir@&$ac_builddir&;t t
  20044. s&@abs_builddir@&$ac_abs_builddir&;t t
  20045. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20046. s&@INSTALL@&$ac_INSTALL&;t t
  20047. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  20048. $ac_datarootdir_hack
  20049. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
  20050. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20051. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  20052. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  20053. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20054. which seems to be undefined. Please make sure it is defined." >&5
  20055. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20056. which seems to be undefined. Please make sure it is defined." >&2;}
  20057. rm -f "$tmp/stdin"
  20058. case $ac_file in
  20059. -) cat "$tmp/out"; rm -f "$tmp/out";;
  20060. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  20061. esac
  20062. ;;
  20063. :H)
  20064. #
  20065. # CONFIG_HEADER
  20066. #
  20067. _ACEOF
  20068. # Transform confdefs.h into a sed script `conftest.defines', that
  20069. # substitutes the proper values into config.h.in to produce config.h.
  20070. rm -f conftest.defines conftest.tail
  20071. # First, append a space to every undef/define line, to ease matching.
  20072. echo 's/$/ /' >conftest.defines
  20073. # Then, protect against being on the right side of a sed subst, or in
  20074. # an unquoted here document, in config.status. If some macros were
  20075. # called several times there might be several #defines for the same
  20076. # symbol, which is useless. But do not sort them, since the last
  20077. # AC_DEFINE must be honored.
  20078. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  20079. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  20080. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  20081. # PARAMS is the parameter list in the macro definition--in most cases, it's
  20082. # just an empty string.
  20083. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  20084. ac_dB='\\)[ (].*,\\1define\\2'
  20085. ac_dC=' '
  20086. ac_dD=' ,'
  20087. uniq confdefs.h |
  20088. sed -n '
  20089. t rset
  20090. :rset
  20091. s/^[ ]*#[ ]*define[ ][ ]*//
  20092. t ok
  20093. d
  20094. :ok
  20095. s/[\\&,]/\\&/g
  20096. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  20097. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  20098. ' >>conftest.defines
  20099. # Remove the space that was appended to ease matching.
  20100. # Then replace #undef with comments. This is necessary, for
  20101. # example, in the case of _POSIX_SOURCE, which is predefined and required
  20102. # on some systems where configure will not decide to define it.
  20103. # (The regexp can be short, since the line contains either #define or #undef.)
  20104. echo 's/ $//
  20105. s,^[ #]*u.*,/* & */,' >>conftest.defines
  20106. # Break up conftest.defines:
  20107. ac_max_sed_lines=50
  20108. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  20109. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  20110. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  20111. # et cetera.
  20112. ac_in='$ac_file_inputs'
  20113. ac_out='"$tmp/out1"'
  20114. ac_nxt='"$tmp/out2"'
  20115. while :
  20116. do
  20117. # Write a here document:
  20118. cat >>$CONFIG_STATUS <<_ACEOF
  20119. # First, check the format of the line:
  20120. cat >"\$tmp/defines.sed" <<\\CEOF
  20121. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  20122. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  20123. b
  20124. :def
  20125. _ACEOF
  20126. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  20127. echo 'CEOF
  20128. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  20129. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  20130. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  20131. grep . conftest.tail >/dev/null || break
  20132. rm -f conftest.defines
  20133. mv conftest.tail conftest.defines
  20134. done
  20135. rm -f conftest.defines conftest.tail
  20136. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  20137. cat >>$CONFIG_STATUS <<\_ACEOF
  20138. if test x"$ac_file" != x-; then
  20139. echo "/* $configure_input */" >"$tmp/config.h"
  20140. cat "$ac_result" >>"$tmp/config.h"
  20141. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  20142. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  20143. echo "$as_me: $ac_file is unchanged" >&6;}
  20144. else
  20145. rm -f $ac_file
  20146. mv "$tmp/config.h" $ac_file
  20147. fi
  20148. else
  20149. echo "/* $configure_input */"
  20150. cat "$ac_result"
  20151. fi
  20152. rm -f "$tmp/out12"
  20153. # Compute $ac_file's index in $config_headers.
  20154. _am_arg=$ac_file
  20155. _am_stamp_count=1
  20156. for _am_header in $config_headers :; do
  20157. case $_am_header in
  20158. $_am_arg | $_am_arg:* )
  20159. break ;;
  20160. * )
  20161. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20162. esac
  20163. done
  20164. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  20165. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20166. X"$_am_arg" : 'X\(//\)[^/]' \| \
  20167. X"$_am_arg" : 'X\(//\)$' \| \
  20168. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  20169. echo X"$_am_arg" |
  20170. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20171. s//\1/
  20172. q
  20173. }
  20174. /^X\(\/\/\)[^/].*/{
  20175. s//\1/
  20176. q
  20177. }
  20178. /^X\(\/\/\)$/{
  20179. s//\1/
  20180. q
  20181. }
  20182. /^X\(\/\).*/{
  20183. s//\1/
  20184. q
  20185. }
  20186. s/.*/./; q'`/stamp-h$_am_stamp_count
  20187. ;;
  20188. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  20189. echo "$as_me: executing $ac_file commands" >&6;}
  20190. ;;
  20191. esac
  20192. case $ac_file$ac_mode in
  20193. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  20194. # Strip MF so we end up with the name of the file.
  20195. mf=`echo "$mf" | sed -e 's/:.*$//'`
  20196. # Check whether this is an Automake generated Makefile or not.
  20197. # We used to match only the files named `Makefile.in', but
  20198. # some people rename them; so instead we look at the file content.
  20199. # Grep'ing the first line is not enough: some people post-process
  20200. # each Makefile.in and add a new line on top of each file to say so.
  20201. # Grep'ing the whole file is not good either: AIX grep has a line
  20202. # limit of 2048, but all sed's we know have understand at least 4000.
  20203. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  20204. dirpart=`$as_dirname -- "$mf" ||
  20205. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20206. X"$mf" : 'X\(//\)[^/]' \| \
  20207. X"$mf" : 'X\(//\)$' \| \
  20208. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  20209. echo X"$mf" |
  20210. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20211. s//\1/
  20212. q
  20213. }
  20214. /^X\(\/\/\)[^/].*/{
  20215. s//\1/
  20216. q
  20217. }
  20218. /^X\(\/\/\)$/{
  20219. s//\1/
  20220. q
  20221. }
  20222. /^X\(\/\).*/{
  20223. s//\1/
  20224. q
  20225. }
  20226. s/.*/./; q'`
  20227. else
  20228. continue
  20229. fi
  20230. # Extract the definition of DEPDIR, am__include, and am__quote
  20231. # from the Makefile without running `make'.
  20232. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  20233. test -z "$DEPDIR" && continue
  20234. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  20235. test -z "am__include" && continue
  20236. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  20237. # When using ansi2knr, U may be empty or an underscore; expand it
  20238. U=`sed -n 's/^U = //p' < "$mf"`
  20239. # Find all dependency output files, they are included files with
  20240. # $(DEPDIR) in their names. We invoke sed twice because it is the
  20241. # simplest approach to changing $(DEPDIR) to its actual value in the
  20242. # expansion.
  20243. for file in `sed -n "
  20244. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  20245. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  20246. # Make sure the directory exists.
  20247. test -f "$dirpart/$file" && continue
  20248. fdir=`$as_dirname -- "$file" ||
  20249. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20250. X"$file" : 'X\(//\)[^/]' \| \
  20251. X"$file" : 'X\(//\)$' \| \
  20252. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  20253. echo X"$file" |
  20254. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20255. s//\1/
  20256. q
  20257. }
  20258. /^X\(\/\/\)[^/].*/{
  20259. s//\1/
  20260. q
  20261. }
  20262. /^X\(\/\/\)$/{
  20263. s//\1/
  20264. q
  20265. }
  20266. /^X\(\/\).*/{
  20267. s//\1/
  20268. q
  20269. }
  20270. s/.*/./; q'`
  20271. { as_dir=$dirpart/$fdir
  20272. case $as_dir in #(
  20273. -*) as_dir=./$as_dir;;
  20274. esac
  20275. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20276. as_dirs=
  20277. while :; do
  20278. case $as_dir in #(
  20279. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20280. *) as_qdir=$as_dir;;
  20281. esac
  20282. as_dirs="'$as_qdir' $as_dirs"
  20283. as_dir=`$as_dirname -- "$as_dir" ||
  20284. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20285. X"$as_dir" : 'X\(//\)[^/]' \| \
  20286. X"$as_dir" : 'X\(//\)$' \| \
  20287. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20288. echo X"$as_dir" |
  20289. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20290. s//\1/
  20291. q
  20292. }
  20293. /^X\(\/\/\)[^/].*/{
  20294. s//\1/
  20295. q
  20296. }
  20297. /^X\(\/\/\)$/{
  20298. s//\1/
  20299. q
  20300. }
  20301. /^X\(\/\).*/{
  20302. s//\1/
  20303. q
  20304. }
  20305. s/.*/./; q'`
  20306. test -d "$as_dir" && break
  20307. done
  20308. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20309. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20310. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20311. { (exit 1); exit 1; }; }; }
  20312. # echo "creating $dirpart/$file"
  20313. echo '# dummy' > "$dirpart/$file"
  20314. done
  20315. done
  20316. ;;
  20317. "po-directories":C)
  20318. for ac_file in $CONFIG_FILES; do
  20319. # Support "outfile[:infile[:infile...]]"
  20320. case "$ac_file" in
  20321. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  20322. esac
  20323. # PO directories have a Makefile.in generated from Makefile.in.in.
  20324. case "$ac_file" in */Makefile.in)
  20325. # Adjust a relative srcdir.
  20326. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  20327. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  20328. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  20329. # In autoconf-2.13 it is called $ac_given_srcdir.
  20330. # In autoconf-2.50 it is called $srcdir.
  20331. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  20332. case "$ac_given_srcdir" in
  20333. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  20334. /*) top_srcdir="$ac_given_srcdir" ;;
  20335. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  20336. esac
  20337. # Treat a directory as a PO directory if and only if it has a
  20338. # POTFILES.in file. This allows packages to have multiple PO
  20339. # directories under different names or in different locations.
  20340. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  20341. rm -f "$ac_dir/POTFILES"
  20342. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  20343. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  20344. POMAKEFILEDEPS="POTFILES.in"
  20345. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  20346. # on $ac_dir but don't depend on user-specified configuration
  20347. # parameters.
  20348. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  20349. # The LINGUAS file contains the set of available languages.
  20350. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  20351. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  20352. fi
  20353. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  20354. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  20355. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  20356. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  20357. else
  20358. # The set of available languages was given in configure.in.
  20359. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  20360. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  20361. fi
  20362. # Compute POFILES
  20363. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  20364. # Compute UPDATEPOFILES
  20365. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  20366. # Compute DUMMYPOFILES
  20367. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  20368. # Compute GMOFILES
  20369. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  20370. case "$ac_given_srcdir" in
  20371. .) srcdirpre= ;;
  20372. *) srcdirpre='$(srcdir)/' ;;
  20373. esac
  20374. POFILES=
  20375. UPDATEPOFILES=
  20376. DUMMYPOFILES=
  20377. GMOFILES=
  20378. for lang in $ALL_LINGUAS; do
  20379. POFILES="$POFILES $srcdirpre$lang.po"
  20380. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  20381. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  20382. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  20383. done
  20384. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  20385. # environment variable.
  20386. INST_LINGUAS=
  20387. if test -n "$ALL_LINGUAS"; then
  20388. for presentlang in $ALL_LINGUAS; do
  20389. useit=no
  20390. if test "%UNSET%" != "$LINGUAS"; then
  20391. desiredlanguages="$LINGUAS"
  20392. else
  20393. desiredlanguages="$ALL_LINGUAS"
  20394. fi
  20395. for desiredlang in $desiredlanguages; do
  20396. # Use the presentlang catalog if desiredlang is
  20397. # a. equal to presentlang, or
  20398. # b. a variant of presentlang (because in this case,
  20399. # presentlang can be used as a fallback for messages
  20400. # which are not translated in the desiredlang catalog).
  20401. case "$desiredlang" in
  20402. "$presentlang"*) useit=yes;;
  20403. esac
  20404. done
  20405. if test $useit = yes; then
  20406. INST_LINGUAS="$INST_LINGUAS $presentlang"
  20407. fi
  20408. done
  20409. fi
  20410. CATALOGS=
  20411. if test -n "$INST_LINGUAS"; then
  20412. for lang in $INST_LINGUAS; do
  20413. CATALOGS="$CATALOGS $lang.gmo"
  20414. done
  20415. fi
  20416. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  20417. 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"
  20418. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  20419. if test -f "$f"; then
  20420. case "$f" in
  20421. *.orig | *.bak | *~) ;;
  20422. *) cat "$f" >> "$ac_dir/Makefile" ;;
  20423. esac
  20424. fi
  20425. done
  20426. fi
  20427. ;;
  20428. esac
  20429. done ;;
  20430. esac
  20431. done # for ac_tag
  20432. { (exit 0); exit 0; }
  20433. _ACEOF
  20434. chmod +x $CONFIG_STATUS
  20435. ac_clean_files=$ac_clean_files_save
  20436. # configure is writing to config.log, and then calls config.status.
  20437. # config.status does its own redirection, appending to config.log.
  20438. # Unfortunately, on DOS this fails, as config.log is still kept open
  20439. # by configure, so config.status won't be able to write to it; its
  20440. # output is simply discarded. So we exec the FD to /dev/null,
  20441. # effectively closing config.log, so it can be properly (re)opened and
  20442. # appended to by config.status. When coming back to configure, we
  20443. # need to make the FD available again.
  20444. if test "$no_create" != yes; then
  20445. ac_cs_success=:
  20446. ac_config_status_args=
  20447. test "$silent" = yes &&
  20448. ac_config_status_args="$ac_config_status_args --quiet"
  20449. exec 5>/dev/null
  20450. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20451. exec 5>>config.log
  20452. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20453. # would make configure fail if this is the last instruction.
  20454. $ac_cs_success || { (exit 1); exit 1; }
  20455. fi
  20456. echo " "
  20457. echo "Build: $build"
  20458. echo "Target: $target"
  20459. echo "Install prefix: $prefix"
  20460. echo "CFLAGS: $CFLAGS"
  20461. echo "CPPFLAGS: $CPPFLAGS"
  20462. echo "LDFLAGS: $LDFLAGS"
  20463. echo "LIBS: $LIBS"
  20464. echo "GnuTLS: $have_libgnutls"
  20465. echo "OpenSSL: $have_openssl"
  20466. echo "LibXML2: $have_libxml2"
  20467. echo "LibExpat: $have_libexpat"
  20468. echo "LibAres: $have_libares"
  20469. echo "LibCares: $have_libcares"
  20470. echo "Bittorrent: $enable_bittorrent"
  20471. echo "Metalink: $enable_metalink"